Files
zszq-trs/YLErpDAL/Modules/SuperviseReportModule/SAC/Common/SACReportNoteHelper.cs
T
2024-05-09 14:06:26 +08:00

55 lines
2.0 KiB
C#

namespace YLErp.Modules.SuperviseReportModule.SAC.Common
{
public class SACReportNoteHelper : YLBaseService
{
public SACReportNoteHelper(YLBaseService baseService) : base(baseService)
{
}
//protected List<SACReportNotes> GetReportNotes(string infoTag)
//{
// return DbContext.sac_report_notes.Where(O => O.ReportType == ReportType && O.InfoTag == infoTag && O.IsValid == true).ToList();
//}
//public bool CheckCreateSacReportNote(string infoTag)
//{
// SACReportNotes note = GetReportNotes(infoTag).FirstOrDefault();
// if (note == null)
// {
// note = new SACReportNotes()
// {
// ReportType = ReportType,
// InfoTag = formatInfoTag(_reqInfo.ReportDate.ToString("yyyy-MM-dd")),
// ReportDate = _reqInfo.ReportDate,
// changeStatus = false,
// ReportResponse = false,
// CreateTime = DateTime.Now,
// InfoCache = "",
// IsValid = true,
// DataId = "",
// };
// note.OptTime = note.CreateTime;
// }
// else
// {
// switch (_operationType)
// {
// case OptFlagsEnum.A:
// noData = true;//新增数据已报送,跳过
// return model;
// case OptFlagsEnum.U:
// note.OptTime = DateTime.Now;
// break;
// case OptFlagsEnum.D:
// note.OptTime = DateTime.Now;
// note.IsValid = false;
// break;
// case OptFlagsEnum.NONE:
// default:
// throw new ServiceException("未知操作类型");
// }
// }
//}
}
}