コード例 #1
0
 private void btnShowBillInfo_Click(object sender, EventArgs e)
 {
     if (dataGridViewAccReceInfo.RowCount <= 0)
     {
         MessageBox.Show("عفوا لا توجد فواتير");
     }
     else
     {
         BL.CLS_ACOUNT_RECEIPT_ITEMS acc_receipt_items = new BL.CLS_ACOUNT_RECEIPT_ITEMS();
         PL.SHOW_ITEMS items = new PL.SHOW_ITEMS();
         DataTable     Dt    = new DataTable();
         Dt = acc_receipt_items.GET_ACOUNT_RECEIPT_ITEMS(Convert.ToString(this.dataGridViewAccReceInfo.CurrentRow.Cells[4].Value));
         if (Dt.Rows.Count > 0)
         {
             items.dataGridViewITEMS.DataSource = Dt;
         }
         items.ShowDialog();
     }
 }
コード例 #2
0
 private void btnShowReceipt_Click(object sender, EventArgs e)
 {
     if (dataGridViewRECEIPT_WORKER.RowCount <= 0)
     {
         MessageBox.Show("عفوا لا توجد فواتير");
     }
     else
     {
         BL.CLS_RECEIPT_ITEMS receipt_items = new BL.CLS_RECEIPT_ITEMS();
         PL.SHOW_ITEMS        items         = new PL.SHOW_ITEMS();
         DataTable            Dt            = new DataTable();
         Dt = receipt_items.SEARCH_RECEIPT_ITEMS(Convert.ToString(this.dataGridViewRECEIPT_WORKER.CurrentRow.Cells[5].Value));
         if (Dt.Rows.Count > 0)
         {
             items.dataGridViewITEMS.DataSource = Dt;
         }
         items.ShowDialog();
     }
 }