示例#1
0
        public override void FormOnLoad()
        {
            BasePageLogic.BindCategory(base.UserInfo, cboCategory, "DataDictionaryCategory");

            //修改数据做相关控制
            if (currentRowData != null && !string.IsNullOrEmpty(currentRowData[CiItemsTable.FieldId].ToString()))
            {
                currentItems            = itemsService.GetEntity(base.UserInfo, currentRowData[CiItemsTable.FieldId].ToString());
                btnSaveContinue.Visible = false;
                isAdd                     = false;
                txtCode.Text              = currentItems.Code;
                txtFullName.Text          = currentItems.FullName;
                cboCategory.SelectedValue = BusinessLogic.ConvertToString(currentItems.Category);
                txtDescription.Text       = currentItems.Description;
                chkEnabled.Checked        = BusinessLogic.ConvertIntToBoolean(currentItems.Enabled);
            }
        }