public ActionResult _FilterPostDispatch(SaleInvoiceFilterViewModel vm) { List <DirectSaleInvoiceLineViewModel> temp = _SaleInvoiceLineService.GetSaleDispatchForFilters(vm); DirectSaleInvoiceListViewModel svm = new DirectSaleInvoiceListViewModel(); svm.DirectSaleInvoiceLineViewModel = temp; return(PartialView("_Results", svm)); }
public ActionResult _ForDispatch(int id) { SaleInvoiceFilterViewModel vm = new SaleInvoiceFilterViewModel(); vm.SaleInvoiceHeaderId = id; vm.UpToDate = DateTime.Today.Date; SaleInvoiceHeader H = new SaleInvoiceHeaderService(_unitOfWork).FindDirectSaleInvoice(id); var settings = new SaleInvoiceSettingService(_unitOfWork).GetSaleInvoiceSettingForDocument(H.DocTypeId, H.DivisionId, H.SiteId); vm.SaleInvoiceSettings = Mapper.Map <SaleInvoiceSetting, SaleInvoiceSettingsViewModel>(settings); vm.DocumentTypeSettings = new DocumentTypeSettingsService(_unitOfWork).GetDocumentTypeSettingsForDocument(H.DocTypeId); return(PartialView("_DispatchFilters", vm)); }