/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private GZNote EntityGet() { GZNote entity = new GZNote(); entity.ID = HTDataID; entity.SelectByID(); entity.FormNo = txtFormNo.Text.Trim(); entity.OPID = FParamConfig.LoginID; entity.OPName = txtOPName.Text.Trim(); entity.FormDate = txtFormDate.DateTime.Date; entity.Remark = txtRemark.Text.Trim(); return(entity); }
/// <summary> /// 设置 /// </summary> public override void EntitySet() { GZNote entity = new GZNote(); entity.ID = HTDataID; bool findFlag = entity.SelectByID(); txtFormNo.Text = entity.FormNo.ToString(); txtOPName.Text = entity.OPName.ToString(); txtFormDate.DateTime = entity.FormDate; txtRemark.Text = entity.Remark.ToString(); HTDataSubmitFlag = entity.SubmitFlag; HTDataDelFlag = entity.DelFlag; if (!findFlag) { } BindGridDts(); }