Beispiel #1
0
 /// <summary>
 /// 根据月报Id删除报表上报情况
 /// </summary>
 /// <param name="monthReportId"></param>
 public static void DeleteReportRemindByReportRemind(Model.ManagementReport_ReportRemind reportRemind)
 {
     Model.SUBHSSEDB db = Funs.DB;
     if (reportRemind != null)
     {
         db.ManagementReport_ReportRemind.DeleteOnSubmit(reportRemind);
         db.SubmitChanges();
     }
 }
Beispiel #2
0
 /// <summary>
 /// 添加报表上报情况
 /// </summary>
 /// <param name="reportRemind"></param>
 public static void AddReportRemind(Model.ManagementReport_ReportRemind reportRemind)
 {
     Model.SUBHSSEDB db = Funs.DB;
     Model.ManagementReport_ReportRemind newReportRemind = new Model.ManagementReport_ReportRemind
     {
         ReportRemindId = SQLHelper.GetNewID(typeof(Model.ManagementReport_ReportRemind)),
         ProjectId      = reportRemind.ProjectId,
         Months         = reportRemind.Months,
         Year           = reportRemind.Year,
         Month          = reportRemind.Month,
         Quarterly      = reportRemind.Quarterly,
         HalfYear       = reportRemind.HalfYear,
         ReportName     = reportRemind.ReportName,
         CompileDate    = reportRemind.CompileDate
     };
     db.ManagementReport_ReportRemind.InsertOnSubmit(newReportRemind);
     db.SubmitChanges();
 }