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