public FacilityRunArgDateListResponse Execute(FacilityRunArgDateListRequest request) { FacilityRunArgDateListResponse dateListResponse = new FacilityRunArgDateListResponse(); int[] array = ServiceHelper.LoadService <IProductionService>().GetFacilities(request.CraftDID).Select(m => m.FacilityDID).ToArray <int>(); dateListResponse.CollectDates = (IList <DateTime>)ServiceHelper.LoadService <IFacilityRunArgService>().GetFacilityRunArgDateTimes(array, request.StartTime, request.EndTime); return(dateListResponse); }
private void RefreshDateList() { FacilityRunArgDateListResponse dateListResponse = LocalApi.Execute(new FacilityRunArgDateListRequest() { CraftDID = this.CraftDID, CraftNO = this.CraftNO, StartTime = this.dateScaleBar.StartDate, EndTime = this.dateScaleBar.EndDate }); if (dateListResponse.IsError) { return; } this.dateScaleBar.SetDates(dateListResponse.CollectDates); }