示例#1
0
        protected void GetWarehouseShelfByID()
        {
            CustomProfile    profile         = CustomProfile.GetProfile();
            iWarehouseClient Warehouseclient = new iWarehouseClient();

            try
            {
                mShelf shelf = new mShelf();
                shelf = Warehouseclient.GetWarehouseShelfByID(long.Parse(hdnshelfID.Value), profile.DBConnection._constr);

                if (shelf.Name != null)
                {
                    txtshelf.Text = shelf.Name.ToString();
                }
                if (shelf.SortCode != null)
                {
                    txtsortcode.Text = shelf.SortCode.ToString();
                }
                if (shelf.Description != null)
                {
                    txtdescription.Text = shelf.Description.ToString();
                }
                if (shelf.CustomerID != null)
                {
                    hdncustomerID.Value = shelf.CustomerID.ToString();
                }
                hdnCompanyID.Value = shelf.CompanyID.ToString();
            }
            catch (System.Exception ex)
            {
                Login.Profile.ErrorHandling(ex, this, "WarehousePassage", "GetWarehouseShelfByID");
            }
            finally
            {
                Warehouseclient.Close();
            }
        }