コード例 #1
0
        private void btn_preview_Click(object sender, EventArgs e)
        {
            Program.myPrintCase = 1;
            Program.TableQuery  = null;
            //if (Program.TableQuery != null) Program.TableQuery.Clear();
            if (objDataSet.Tables["TableCheque"] != null)
            {
                Program.TableQuery = objDataSet.Tables["TableCheque"];
            }
            FrmPrint frm = new FrmPrint();

            frm.Show();
        }
コード例 #2
0
 private void btn_preview_Click(object sender, EventArgs e)
 {
     Program.myPrintCase = 10;
     if (objDataSet.Tables["TableCycleProduct"] != null)
     {
         Program.TableQuery = objDataSet.Tables["TableCycleProduct"];
     }
     else
     {
         Program.TableQuery = null;
     }
     FrmPrint frm = new FrmPrint();
     frm.Show();
 }
コード例 #3
0
        private void btn_preview_Click(object sender, EventArgs e)
        {
            Program.myPrintCase = 9;
            if (objDataSet.Tables["TableTotalPriceOrdersDay"] != null)
            {
                Program.TableQuery = objDataSet.Tables["TableTotalPriceOrdersDay"];
            }
            else
            {
                Program.TableQuery = null;
            }
            FrmPrint frm = new FrmPrint();

            frm.Show();
        }
コード例 #4
0
        private void button5_Click(object sender, EventArgs e)
        {
            Program.myPrintCase = 3;
            Program.TableQuery  = null;
            if (objDataSet.Tables["TableCustomerAccount2"] != null)
            {
                Program.TableQuery = objDataSet.Tables["TableCustomerAccount2"].DefaultView.ToTable();
            }
            else
            {
                Program.TableQuery = null;
            }
            FrmPrint frm = new FrmPrint();

            frm.Show();
        }