public ActionResult BSOMoveReportYear(BSOMoveReportYearModel model) { List <ReferenceItem> listDeliveryCenter = referenceBusinessLogic.GetReferencesList(Constants.DeliveryCenterRef); List <DeliveryCenter> list = referenceBusinessLogic.GetDeliveryCenterList(); List <BSOHistoryItem> listBsoHistory = bsoBusinessLogic.BSO_GetListHistory(new DateTime(2010, 1, 1), new DateTime(model.Year + 1, 1, 1), null); BSOMoveReportYear printedForm = new BSOMoveReportYear(listBsoHistory, listDeliveryCenter, model.Year); return(File(printedForm.GetExcel(), System.Net.Mime.MediaTypeNames.Application.Octet, string.Format("Отчет по движению бланков за {0} год.xls", model.Year))); }
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(); }