public PrintInOutTemplate(int inOutID, string moduleName, string printName)
 {
     InitializeComponent();
     ModuleName = moduleName;
     PrintInOutTemplateVM = new PrintInOutTemplateVM(inOutID, printName);
     BindData();
 }
Example #2
0
 public void PrintSelectedWarehouseOut()
 {
     var toPrints = Entities.Cast<WarehouseOut>().Where(o => o.IsSelected);
     foreach (var wo in toPrints)
     {
         var reportVM = new PrintInOutTemplateVM(wo.Id, "打印出库单");
         var dataSources = new Dictionary<string, object> { { "Header", reportVM.Header }, { "Lines", reportVM.Lines } };
         var printHelper = new PrintHelper(dataSources, "PrintTemplate\\内贸出库单\\上海长然出入库单.rdlc", null, true);
         printHelper.Run();
     }
 }