public override void DoPrint()
 {
     base.DoPrint();
     report.AddReportData((DataRowView)bdsMain.Current, "主表");
     report.AddReportData(LDetailDataSet[LDetailDALName.IndexOf("stkGoodInStockDetailDAL")].Tables[0], "入库明细");
     report.ReportMenu.Show(btnPrint, new Point(0, btnPrint.Height));
 }
Beispiel #2
0
 public override void DoPrint()
 {
     base.DoPrint();
     report.AddReportData(BWS.ERP.DataAccess.DbHelperSQL.Query("SELECT * FROM sysRoles WHERE ID=" + BillID.ToString()).Tables[0], "主表");
     //report.AddReportData((IEnumerable)bdsMain.Current, "主表");
     report.AddReportData(LDetailDataSet[LDetailDALName.IndexOf("sysRolesRightsDAL")].Tables[0], "角色权限");
     report.AddReportData(LDetailDataSet[LDetailDALName.IndexOf("sysRolesUserDAL")].Tables[0], "角色用户");
     report.ReportMenu.Show(btnPrint, new Point(0, btnPrint.Height));
 }
Beispiel #3
0
 /// <summary>
 /// 打印收银条
 /// </summary>
 private void PrintBill()
 {
     try
     {
         if (IsPrint)
         {
             report.ShowPrintDialog = false;
             report.AddReportData((DataRowView)bdsMain.Current, "dtMain");
             report.AddReportData(LDetailDataSet[LDetailDALName.IndexOf("stkGoodOutStockDetailDAL")].Tables[0], "dtDetail");
             if (BWS.ERP.BasePublic.BasePublic.FormParaList(FormID)["PrintOrPreview"].ToString().ToLower() == "print")
             {
                 report.PrintReport();
             }
             else
             {
                 report.PreviewReport();
             }
         }
     }
     catch (Exception)
     {
     }
 }