Esempio n. 1
0
        private void BindData()
        {
            string       id   = Request.QueryString["id"];
            WarehouseBLL bll  = null;
            Warehouse    info = new Warehouse();

            try
            {
                bll = BLLFactory.CreateBLL <WarehouseBLL>();
                if (string.IsNullOrEmpty(id) == false)
                {
                    info.ID = id;
                    info    = bll.Get(info);

                    UIBindHelper.BindForm(this.Page, info);
                    this.hiID.Value         = info.ID;
                    this.HiCREATEUSER.Value = info.CREATEUSER;
                    this.HiCREATETIME.Value = info.CREATETIME.ToString();
                }
                else
                {
                    info = new Warehouse();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }