Esempio n. 1
0
 /// <summary>
 /// Function to fill DataGridView PurcahseReturnTax
 /// </summary>
 public void DGVPurchaseReturnTaxFill()
 {
     try
     {
         TaxSP spTax = new TaxSP();
         DataTable dtblPurchaseReturnTax = new DataTable();
         dtblPurchaseReturnTax = spTax.TaxViewAllByVoucherTypeId(decPurchaseReturnVoucherTypeId);
         dgvPurchaseReturnTax.DataSource = dtblPurchaseReturnTax;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR:15" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Tax gridfill function
 /// </summary>
 public void taxGridFill()
 {
     try
     {
         TaxSP spTax = new TaxSP();
         DataTable dtblTax = new DataTable();
         dtblTax = spTax.TaxViewAllByVoucherTypeId(DecSalesInvoiceVoucherTypeId);
         dgvSalesInvoiceTax.DataSource = dtblTax;
     }
     catch (Exception ex)
     {
         MessageBox.Show("SI: 11" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Function to fill the Tax grid
 /// </summary>
 public void taxGridFill()
 {
     try
     {
         TaxSP spTax = new TaxSP();
         DataTable dtblTax = new DataTable();
         SalesBillTaxSP spSalesbillTax = new SalesBillTaxSP();
         dtblTax = spTax.TaxViewAllByVoucherTypeId(DecPOSVoucherTypeId);
         dgvPOSTax.DataSource = dtblTax;
         this.dgvPOSTax.Columns["dgvtxtTaxAmt"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight;
     }
     catch (Exception ex)
     {
         MessageBox.Show("POS:20" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }