[燈控排程] 紀錄 Operation_log 資料程序調整 | 後端匯出操作紀錄 api 程序建置 | [操作紀錄] 列表顯示程序調整
This commit is contained in:
parent
bfa2e59b87
commit
4c271743ac
@ -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
@ -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; }
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -294,5 +294,7 @@ namespace FrontendWebApi.Models
|
||||
public class PageResult<T> : BasePageResult
|
||||
{
|
||||
public T data { get; set; }
|
||||
|
||||
public bool isEnable { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user