public List <DataTable> VoucherTypeViewAllCorrespondingToSalesOrderAndSalesQuotation()
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = spDeliveryNoteMaster.VoucherTypeViewAllCorrespondingToSalesOrderAndSalesQuotation();
            }
            catch (Exception ex)
            {
                MessageBox.Show("DNBLL:7" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
Esempio n. 2
0
 /// <summary>
 /// Function to fill Voucher combobox
 /// </summary>
 public void VoucherComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         dtbl = spDeliveryNoteMaster.VoucherTypeViewAllCorrespondingToSalesOrderAndSalesQuotation();
         cmbDeliveryMode.DataSource = dtbl;
         DataRow drawselect = dtbl.NewRow();
         drawselect["voucherTypeId"]   = 0;
         drawselect["voucherTypeName"] = "All";
         dtbl.Rows.InsertAt(drawselect, 0);
         cmbDeliveryMode.ValueMember   = "voucherTypeId";
         cmbDeliveryMode.DisplayMember = "voucherTypeName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("DNREP05: " + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Function to fill Voucher combobox
 /// </summary>
 public void VoucherComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         dtbl = spDeliveryNoteMaster.VoucherTypeViewAllCorrespondingToSalesOrderAndSalesQuotation();
         cmbDeliveryMode.DataSource = dtbl;
         DataRow drawselect = dtbl.NewRow();
         drawselect["voucherTypeId"]   = 0;
         drawselect["voucherTypeName"] = "All";
         dtbl.Rows.InsertAt(drawselect, 0);
         cmbDeliveryMode.ValueMember   = "voucherTypeId";
         cmbDeliveryMode.DisplayMember = "voucherTypeName";
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "DNREP5:" + ex.Message;
     }
 }