コード例 #1
0
        private void BindData()
        {
            string        id   = Request.QueryString["id"];
            EquipmentBLL  bll  = null;
            EquipmentInfo info = new EquipmentInfo();

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

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