/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private ItemFinalType EntityGet() { ItemFinalType entity = new ItemFinalType(); entity.ID = HTDataID; entity.SelectByID(); entity.Code = txtCode.Text.Trim(); entity.Name = txtName.Text.Trim(); entity.Remark = txtRemark.Text.Trim(); return(entity); }
/// <summary> /// 设置 /// </summary> public override void EntitySet() { ItemFinalType entity = new ItemFinalType(); entity.ID = HTDataID; bool findFlag = entity.SelectByID(); txtCode.Text = entity.Code.ToString(); txtName.Text = entity.Name.ToString(); txtRemark.Text = entity.Remark.ToString(); if (!findFlag) { } }