| | |
| | | /// <exception cref="Exception"></exception> |
| | | public void AddLocationStatusChangeRecord(DtLocationInfo locationInfo, int lastStatus, int changeType, int? taskNum) |
| | | { |
| | | try |
| | | { |
| | | DtLocationStatusChangeRecord locationStatusChangeRecord = new DtLocationStatusChangeRecord() |
| | | { |
| | | AfterStatus = locationInfo.LocationStatus, |
| | |
| | | Creater = "System", |
| | | CreateDate = DateTime.Now, |
| | | }; |
| | | |
| | | base.AddData(locationStatusChangeRecord); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception($"{ex.Message}"); |
| | | } |
| | | |
| | | } |
| | | |
| | | public void AddLocationStatusChangeRecord(List<DtLocationInfo> locationInfos, int newStatus, int changeType, List<int>? taskNums) |