public string UpdateOutApply(T_HR_OUTAPPLYRECORD entOTRd) { using (OutApplyBLL bllOverTimeRecord = new OutApplyBLL()) { if (entOTRd.STARTDATE <= DateTime.Now) { string str = "外出申请的开始时间:必须大于当前时间"; Tracer.Debug(str); return(str); } if (bllOverTimeRecord.UpdateOutApply(entOTRd) == 1) { return("OK"); } else { return("Fail"); } } }
public string UpdateOutApply(T_HR_OUTAPPLYRECORD entOTRd) { using (OutApplyBLL bllOverTimeRecord = new OutApplyBLL()) { if (entOTRd.STARTDATE <= DateTime.Now) { string str = "外出申请的开始时间:必须大于当前时间"; Tracer.Debug(str); return str; } if (bllOverTimeRecord.UpdateOutApply(entOTRd) == 1) return "OK"; else return "Fail"; } }