/// <summary> /// 设置 /// </summary> public override void EntitySet() { MailAlarmType entity = new MailAlarmType(); entity.ID = HTDataID; bool findFlag = entity.SelectByID(); txtCode.Text = entity.Code.ToString(); txtName.Text = entity.Name.ToString(); txtMailFileName.Text = entity.MailFileName.ToString(); txtMailTitle.Text = entity.MailTitle.ToString(); txtMailExcuteTime.Time = entity.MailExcuteTime; txtMailExcuteTime2.Time = entity.MailExcuteTime2; txtMailExcuteTime3.Time = entity.MailExcuteTime3; txtAlarmCondition.Text = entity.AlarmCondition.ToString(); txtRemark.Text = entity.Remark.ToString(); HTDataSubmitFlag = entity.SubmitFlag; HTDataDelFlag = entity.DelFlag; if (!findFlag) { } BindGridDts(); }
/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private MailAlarmType EntityGet() { MailAlarmType entity = new MailAlarmType(); entity.ID = HTDataID; entity.SelectByID(); entity.Code = txtCode.Text.Trim(); entity.Name = txtName.Text.Trim(); entity.MailFileName = txtMailFileName.Text.Trim(); entity.MailTitle = txtMailTitle.Text.Trim(); entity.MailExcuteTime = txtMailExcuteTime.Time; entity.MailExcuteTime2 = txtMailExcuteTime2.Time; entity.MailExcuteTime3 = txtMailExcuteTime3.Time; entity.AlarmCondition = txtAlarmCondition.Text.Trim(); entity.Remark = txtRemark.Text.Trim(); return(entity); }