/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private ItemTypeForm EntityGet() { ItemTypeForm entity = new ItemTypeForm(); entity.ID = HTDataID; entity.SelectByID(); entity.CLSA = txtCLSA.Text.Trim(); entity.CLSB = txtCLSB.Text.Trim(); entity.ItemTypeID = SysConvert.ToInt32(drpItemTypeID.EditValue); entity.Remark = txtRemark.Text.Trim(); return(entity); }
/// <summary> /// 设置 /// </summary> public override void EntitySet() { ItemTypeForm entity = new ItemTypeForm(); entity.ID = HTDataID; bool findFlag = entity.SelectByID(); txtCLSA.Text = entity.CLSA.ToString(); txtCLSB.Text = entity.CLSB.ToString(); drpItemTypeID.EditValue = entity.ItemTypeID; txtRemark.Text = entity.Remark.ToString(); if (!findFlag) { } }