public ActionResult GetBSOOperativeInformation(BSOOperativeInformationModel model) { if (model.Date == null) { model.Date = DateTime.Now; } DateTime tempDate = model.Date.AddDays(1); List <BSOSumStatus> list = bsoBusinessLogic.BSO_GetSumAllStatus(tempDate); BSOOperativeInformation printedForm = new BSOOperativeInformation(model.Date, list); return(File(printedForm.GetExcel(), System.Net.Mime.MediaTypeNames.Application.Octet, string.Format("Оперативная информация о расходовании БСО(ВС).xls"))); }
public PrintedFormsModel() { PartyJournal = new PartyJournalModel(); BSOFailForm13 = new BSOFailForm13Model(); BSOOperativeInformation = new BSOOperativeInformationModel(); BSOReportForm10 = new BSOReportForm10Model(); BSOReportForm10Full = new BSOReportForm10FullModel(); SMSBaseReport = new SMSBaseReportModel(); AllocationBSO = new AllocationBSOModel(); BSOMoveReportYear = new BSOMoveReportYearModel(); ScenarioForm2 = new ScenarioForm2Model(); ClientVisitReport = new ClientVisitReportModel(); SNILSReport = new SNILSReportModel(); StatusReport = new StatusReportModel(); }