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"] = "未找到数据"; } }
/// <summary> /// 模型数据改变 /// </summary> /// <param name="obj"></param> private void dataChanged(MatWareHousAreaLocationInfoModel MatWareHousAreaLocationInfoChange) { //getPageData(pageRepuestParams.PageIndex, pageRepuestParams.PageSize); var tmpModel = MatWareHousAreaLocationInfoList.FirstOrDefault(a => a.Id == MatWareHousAreaLocationInfoChange.Id); this.MatWareHousAreaLocationInfo = MatWareHousAreaLocationInfoList.FirstOrDefault(); }
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"] = "未找到数据"; } }