void getWareHousAreaLocationInfo(Guid matwarehouseareaSelection) { string smatwarehouseareaSelection = ""; if (matwarehouseareaSelection != Guid.Empty) { smatwarehouseareaSelection = matwarehouseareaSelection.ToString(); } // var result = Utility.Http.HttpClientHelper.GetResponse <OperationResult <List <MatWareHousAreaLocationInfoModel> > > (GlobalData.ServerRootUri + $"MatWareHousAreaLocationInfo/GetPageData1/{smatwarehouseareaSelection}"); // if (result != null && result.Data != null && result.Data.Any()) { MatWareHousAreaLocationInfoList = new ObservableCollection <MatWareHousAreaLocationInfoModel>(result.Data); TotalCounts = result.Data.Count; // DataGridDetailColumnCount = MatWareHousAreaLocationInfoList.FirstOrDefault().ColumnNumber; SetDataTableData(); // bDataGridDetailCreate = true; MatWareHousAreaLocationItemInfoList.Clear(); } else { MatWareHousAreaLocationInfoList?.Clear(); TotalCounts = 0; Application.Current.Resources["UiMessage"] = "未找到数据"; } }
void getWareHousAreaLocationItemInfo(string warehousarealocation) { var result = Utility.Http.HttpClientHelper.GetResponse <OperationResult <List <MatWareHousAreaLocationItemInfoModel> > > (GlobalData.ServerRootUri + $"MatWareHousAreaLocationInfo/GetPageData2/{warehousarealocation}"); // if (result != null && result.Data != null && result.Data.Any()) { MatWareHousAreaLocationItemInfoList = new ObservableCollection <MatWareHousAreaLocationItemInfoModel>(result.Data); // TotalCounts = result.Data.Count; } else { MatWareHousAreaLocationInfoList?.Clear(); TotalCounts = 0; Application.Current.Resources["UiMessage"] = "未找到数据"; } }