Example #1
0
        private void BindData()
        {
            string   id   = Request.QueryString["id"];
            WHMatBLL bll  = null;
            WHMat    info = new WHMat();

            try
            {
                bll = BLLFactory.CreateBLL <WHMatBLL>();
                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 WHMat();
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }