public ActionResult GetSMSBaseReport(SMSBaseReportModel model) { SmsBase.SmsBaseGet get = new SmsBase.SmsBaseGet() { CreateDateFrom = model.SmsBaseDateFrom, CreateDateTo = model.SmsBaseDateTo.AddDays(1) }; List <SmsBase> listSmsBase = smsBusinessLogic.SMSBase_GetAll(get); SMSBaseReport printedForm = new SMSBaseReport(listSmsBase, model.SmsBaseDateFrom, model.SmsBaseDateTo); 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(); }