/// <summary> /// 设置 /// </summary> public override void EntitySet() { CheckContent entity = new CheckContent(); entity.ID = HTDataID; bool findFlag = entity.SelectByID(); txtCompanyTypeID.Text = entity.CompanyTypeID.ToString(); txtContent.Text = entity.Content.ToString(); txtMakeDate.DateTime = entity.MakeDate; txtMakeOPID.Text = Common.GetNameByOPID(entity.MakeOPID.ToString()); txtRemark.Text = entity.Remark.ToString(); txtParentID.Text = entity.ParentID.ToString(); if (txtMakeDate.DateTime == SystemConfiguration.DateTimeDefaultValue) { txtMakeDate.Text = ""; } HTDataSubmitFlag = entity.SubmitFlag; HTDataDelFlag = entity.DelFlag; if (!findFlag) { txtMakeOPID.Text = FParamConfig.LoginName; } BindGridDts(); }
/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private CheckContent EntityGet() { CheckContent entity = new CheckContent(); entity.ID = HTDataID; entity.SelectByID(); entity.CompanyTypeID = SysConvert.ToInt32(txtCompanyTypeID.Text.Trim()); entity.Content = txtContent.Text.Trim(); entity.MakeOPID = FParamConfig.LoginID; entity.Remark = txtRemark.Text.Trim(); entity.ParentID = SysConvert.ToInt32(txtParentID.Text.Trim()); if (txtMakeDate.DateTime != SystemConfiguration.DateTimeDefaultValue && txtMakeDate.Text != "") { entity.MakeDate = txtMakeDate.DateTime.Date; } return(entity); }