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

            try
            {
                bll = BLLFactory.CreateBLL <VDCameraBLL>();
                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();
                    this.PostionID.Value    = info.PostionID;
                }
                else
                {
                    info = new VDCamera();
                    this.PostionID.Value = postionID;
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack == false)
            {
                VDCamera    camera = null;
                VDCameraBLL cbll   = BLLFactory.CreateBLL <VDCameraBLL>();
                camera = cbll.Get(new VDCamera {
                    ID = Request.QueryString["id"]
                });

                this.hiCamera.Value = LAF.Common.Serialization.JsonConvertHelper.GetSerializes(camera);
            }
        }