public bool UpdatePmsHeadH(PmsHeadH pmsHeadH) { bool result = false; try { m_PMSSqlConnection.Update("UpdatePmsHeadH", pmsHeadH); result = true; } catch (Exception ex) { m_Logger.Error("PmsHeadHBiz/UpdatePmsHeadH" + ex.Message.ToString()); } return(result); }
private PmsHeadH GetResultPmsHeadH(string description, string item, string valueFrom, string valueTo, PmsHeadH pmsHeadH) { PmsHeadH resultPmsHeadH = new PmsHeadH(); description = description.Replace("#DateTime#", QDateTime.FormatLongDate(pmsHeadH.Maintaindate)); description = description.Replace("#User#", pmsHeadH.Maintainuser); description = description.Replace("#Item#", item); description = description.Replace("#ValueFrom#", valueFrom); description = description.Replace("#ValueTo#", valueTo); if (item == "Due Date") { description = description + " for " + pmsHeadH.ReasonType + " (" + pmsHeadH.Reason + ")"; } resultPmsHeadH.Description = description; return(resultPmsHeadH); }
private IList <PmsHeadH> GetResultListPmsHeadH(string description, string item, string valueFrom, string valueTo, PmsHeadH pmsHeadH, IList <PmsHeadH> resultListPmsHeadH) { pmsHeadH = GetResultPmsHeadH(description, item, valueFrom, valueTo, pmsHeadH); resultListPmsHeadH.Add(pmsHeadH); return(resultListPmsHeadH); }