Example #1
0
        private WarehouseInfo GetBelongWarehouse(int WarehouseID)
        {
            WarehouseInfo warehouse = new WarehouseInfo();

            if (WarehouseID <= 0)
            {
                Common.Common_Func.ErrorMessage("获取仓库信息失败", "错误");
                return(null);
            }
            else
            {
                string strError = string.Empty;
                warehouse = new WarehouseInfo()
                {
                    ID = WarehouseID
                };

                if (!Basic_Func.GetWarehouseByID(ref warehouse, ref strError))
                {
                    Common.Common_Func.ErrorMessage(strError, "错误");
                    return(null);
                }
            }

            return(warehouse);
        }
Example #2
0
        private WarehouseInfo GetListRowModel(int iRowIndex)
        {
            string        strErr    = string.Empty;
            WarehouseInfo warehouse = new WarehouseInfo();

            warehouse.ID = lstMain[iRowIndex].ID;

            if (!Basic_Func.GetWarehouseByID(ref warehouse, ref strErr))
            {
                Common.Common_Func.ErrorMessage(strErr, "读取失败");
                GetListQueryData();
                return(null);
            }

            return(warehouse);
        }