예제 #1
0
        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"] = "未找到数据";
            }
        }
예제 #2
0
        /// <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();
        }
예제 #3
0
        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"] = "未找到数据";
            }
        }