Exemple #1
0
        private HouseInfo GetBelongHouse(int HouseID)
        {
            HouseInfo house = new HouseInfo();

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

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

            return(house);
        }
Exemple #2
0
        private HouseInfo GetDetailsRowModel(int iRowIndex)
        {
            string    strErr = string.Empty;
            HouseInfo house  = new HouseInfo();

            house.ID = lstDetails[iRowIndex].ID;

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

            return(house);
        }