Пример #1
0
 /// <summary>
 /// Function to fill QuotationNo combobox
 /// </summary>
 public void QuotationNoComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         SalesQuotationMasterSP SPSalesQuotationMaster = new SalesQuotationMasterSP();
         dtbl = SPSalesQuotationMaster.GetQuotationNoCorrespondingtoLedgerForSalesOrderRpt(Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString()));
         if (dtbl != null)
         {
             cmbQuotationNo.DataSource    = dtbl;
             cmbQuotationNo.DisplayMember = "invoiceNo";
             cmbQuotationNo.ValueMember   = "quotationMasterId";
             DataRow dr = dtbl.NewRow();
             dr["invoiceNo"]         = "All";
             dr["quotationMasterId"] = 0;
             dtbl.Rows.InsertAt(dr, 0);
             cmbQuotationNo.SelectedIndex = 0;
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "SORP8:" + ex.Message;
     }
 }
Пример #2
0
 /// <summary>
 /// Function to fill QuotationNo combobox
 /// </summary>
 public void QuotationNoComboFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         SalesQuotationMasterSP SPSalesQuotationMaster = new SalesQuotationMasterSP();
         dtbl = SPSalesQuotationMaster.GetQuotationNoCorrespondingtoLedgerForSalesOrderRpt(Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString()));
         if (dtbl != null)
         {
             cmbQuotationNo.DataSource = dtbl;
             cmbQuotationNo.DisplayMember = "invoiceNo";
             cmbQuotationNo.ValueMember = "quotationMasterId";
             DataRow dr = dtbl.NewRow();
             dr["invoiceNo"] = "All";
             dr["quotationMasterId"] = 0;
             dtbl.Rows.InsertAt(dr, 0);
             cmbQuotationNo.SelectedIndex = 0;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("SORP8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }