[燈控排程] 紀錄 Operation_log 資料程序調整 | 後端匯出操作紀錄 api 程序建置 | [操作紀錄] 列表顯示程序調整

This commit is contained in:
dev01 2023-05-31 15:59:07 +08:00
parent bfa2e59b87
commit 4c271743ac
5 changed files with 1624 additions and 1460 deletions

View File

@ -136,9 +136,9 @@ namespace FrontendWebApi.ApiControllers
};
ScheduleDevices.Add(ScheduleDevice);
}
opeInput.parameter = JsonConvert.SerializeObject(saveSchedule);
await backendRepository.AddMutiByCustomTable(ScheduleDevices, "schedule_device");
saveSchedule.light_schedule_guid = newguid.ToString();
opeInput.parameter = JsonConvert.SerializeObject(saveSchedule);
await InsertOperation(opeInput);
}
else
@ -184,7 +184,7 @@ namespace FrontendWebApi.ApiControllers
// 兩邊設備 guid 排序後比較
saveSchedule.devicelist.Sort();
targetScheduleDevice.Sort();
if (saveSchedule.devicelist != targetScheduleDevice) {
if (!saveSchedule.devicelist.SequenceEqual(targetScheduleDevice)) {
saveSchedule.changeNames.Add("設備變更");
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -168,5 +168,13 @@ namespace FrontendWebApi.Models
public string building_tag{ get; set; }
public short operation_type { get; set; }
}
public class OperationLogExportInput {
public bool isNiagara { get; set; }
public string exportOpeTypeName { get; set; }
public PageResult<OperationLogInput> listInput { get; set; }
public List<OperationLogOutput> exportList { get; set; }
}
}

View File

@ -294,5 +294,7 @@ namespace FrontendWebApi.Models
public class PageResult<T> : BasePageResult
{
public T data { get; set; }
public bool isEnable { get; set; }
}
}