コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                Models.AccountEntity accEntity = new Models.AccountEntity();
                accEntity.Load_AllAccount_ToRadComboBox(cbbAccount);

                Models.DonViEntity dvEntity = new Models.DonViEntity();
                dvEntity.Load_DataSource_RadDropDownTree(ddtDonVi);
            }

            if (_phutrach != null)
            {
                this.UpdateStatus();
                if (!this.Page.IsPostBack)
                {
                    cbbAccount.SelectedValue   = _phutrach.ACCID.ToString();
                    ddtDonVi.SelectedValue     = _phutrach.DVID.ToString();
                    rblTrangThai.SelectedValue = _phutrach.PCCCStatus.ToString();
                }
            }
            else
            {
                this.CreateStatus();
            }
        }