Пример #1
0
        private void BindData()
        {
            string         id   = Request.QueryString["id"];
            WorkStationBLL bll  = null;
            WorkStation    info = new WorkStation();

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