Beispiel #1
0
 void barBtnRePrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var ets = gcPrint.GetSelectedDataSource<UltraDbEntity.T_ERP_Delivery>();
     var vw = new PrintView();
     vw.Deliverys = ets;
     InitView(vw);
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         MsgBox.ShowMessage("打印成功");
         barBtnRefresh_ItemClick(null, null);
     }
 }
Beispiel #2
0
 void barBtnPrint_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     var ets = gcUnAudit.GetSelectedDataSource<UltraDbEntity.T_ERP_Delivery>();
     var vw = new PrintView();
     vw.Deliverys = ets;
     InitView(vw);
     if (vw.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         ets.ForEach(j =>
         {
             j.IsPrinted = true;
             j.PrintTime = TimeSync.Default.CurrentSyncTime;
             j.PrintUser = this.CurUser;
         });
         FASControls.SerNoCaller_WL.Calr_Delivery.BatchEdt(ets);
         MsgBox.ShowMessage("打印成功");
         barBtnRefresh_ItemClick(null, null);
     }
 }