Ejemplo n.º 1
0
        private OnlyPeriodsReportModel GetOnlyPeriodsReportModel()
        {
            var model = new OnlyPeriodsReportModel();

            model.FromDate = DateTime.Today.AddDays(-7);
            model.ToDate   = DateTime.Today.AddDays(1);
            model.Periods  = GetPeriods();
            return(model);
        }
Ejemplo n.º 2
0
        private FileTableModel GetOnlyPeriodReportFiles(string author, string reportCode, OnlyPeriodsReportModel model)
        {
            var selectedfiles = GetFilesByFilter(model.SelectedReportPeriod, author, null, reportCode, null, model.FromDate, model.ToDate);
            var viewmodel     = new FileTableModel();

            viewmodel.FileList = BuildFileModel(selectedfiles, getUserLang(Request.Cookies["lang"]))?.ToList();
            return(viewmodel);
        }
Ejemplo n.º 3
0
 public ActionResult GetQualityControlReports(OnlyPeriodsReportModel model)
 {
     return(PartialView("_FileTable", GetOnlyPeriodReportFiles("3", "03", model)));
 }
Ejemplo n.º 4
0
 public ActionResult GetOverallProductionReports(OnlyPeriodsReportModel model)
 {
     return(PartialView("_FileTable", GetOnlyPeriodReportFiles("3", "01", model)));
 }
Ejemplo n.º 5
0
 public ActionResult GetCoalProductionByMineReports(OnlyPeriodsReportModel model)
 {
     return(PartialView("_FileTable", GetOnlyPeriodReportFiles("2", "02", model)));
 }
Ejemplo n.º 6
0
 public ActionResult GetComparisonInfoMiningsReport(OnlyPeriodsReportModel model)
 {
     return(PartialView("_FileTable", GetOnlyPeriodReportFiles("3", "04", model)));
 }
Ejemplo n.º 7
0
 public ActionResult GetSiteSafetyReport(OnlyPeriodsReportModel model)
 {
     return(PartialView("_FileTable", GetOnlyPeriodReportFiles("3", "07", model)));
 }
Ejemplo n.º 8
0
 public ActionResult GetStockpilesMonthReport(OnlyPeriodsReportModel model)
 {
     return(PartialView("_FileTable", GetOnlyPeriodReportFiles("3", "05", model)));
 }