/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private FNORel EntityGet() { FNORel entity = new FNORel(); entity.ID = HTDataID; entity.SelectByID(); entity.Name = txtName.Text.Trim(); entity.CLSA = txtCLSA.Text.Trim(); entity.CLSB = txtCLSB.Text.Trim(); entity.FormNoControlID = SysConvert.ToInt32(drpFormNoControlID.EditValue); entity.Remark = txtRemark.Text.Trim(); entity.SelfEditFlag = SysConvert.ToInt32(chkSelfEditFlag.Checked); entity.SubTypeID = SysConvert.ToInt32(txtSubTypeID.Text); return(entity); }
/// <summary> /// 设置 /// </summary> public override void EntitySet() { FNORel entity = new FNORel(); entity.ID = HTDataID; bool findFlag = entity.SelectByID(); txtName.Text = entity.Name.ToString(); txtCLSA.Text = entity.CLSA.ToString(); txtCLSB.Text = entity.CLSB.ToString(); drpFormNoControlID.EditValue = entity.FormNoControlID; txtRemark.Text = entity.Remark.ToString(); txtSubTypeID.Text = entity.SubTypeID.ToString(); chkSelfEditFlag.Checked = SysConvert.ToBoolean(entity.SelfEditFlag); if (!findFlag) { } }