Exemple #1
0
 //列印
 private void tsbPrint_Click(object sender, EventArgs e)
 {
     if (CheckField())
     {
         SIS.DBClass.DBClassReversal DBCR = new DBClass.DBClassReversal();
         bool result = DBCR.QueryData(txtReversalID.Text);
         if (result)
         {
             FrmReportPrint FRP = new FrmReportPrint("ReversalID", txtReversalID.Text, "rptReversal");
             FRP.ShowDialog();
         }
         else
         {
             MessageBox.Show("沒有找到沖銷單號:[" + txtReversalID.Text + "]資料,無法列印!", "列印結果");
         }
     }
 }
Exemple #2
0
 //列印
 private void tsbPrint_Click(object sender, EventArgs e)
 {
     if (CheckField())
     {
         SIS.DBClass.DBClassShipMaster DBCSM = new DBClass.DBClassShipMaster();
         bool result = DBCSM.QueryData(txtShipID.Text);
         if (result)
         {
             FrmReportPrint FRP = new FrmReportPrint("ShipID", txtShipID.Text, "rptShipMaster");
             FRP.ShowDialog();
         }
         else
         {
             MessageBox.Show("沒有找到出貨單號:[" + txtShipID.Text + "]資料,無法列印!", "列印結果");
         }
     }
 }
Exemple #3
0
 //列印
 private void tsbPrint_Click(object sender, EventArgs e)
 {
     if (CheckField(Configuration.CheckFieldType.Print))
     {
         SIS.DBClass.DBClassRMAMaster DBCRM = new DBClass.DBClassRMAMaster();
         bool result = DBCRM.QueryData(txtRMAID.Text);
         if (result)
         {
             FrmReportPrint FRP = new FrmReportPrint("RMAID", txtRMAID.Text, "rptRMAMaster");
             FRP.ShowDialog();
         }
         else
         {
             MessageBox.Show("沒有找到退貨單號:[" + txtRMAID.Text + "]資料,無法列印!", "列印結果");
         }
     }
 }