Example #1
0
 /// <summary>
 /// Function to fill the grid based on the
 /// </summary>
 public void GridFill()
 {
     try
     {
         {
             DataTable   dtbl        = new DataTable();
             PriceListSP spPriceList = new PriceListSP();
             if (cmbProductGroup.Text == "All")
             {
                 cmbProductGroup.Text = "All";
             }
             cmbPricingLevel.Text = cmbPricingLevel.Text;
             dtbl = spPriceList.ProductDetailsViewGridfill(Convert.ToDecimal(cmbProductGroup.SelectedValue.ToString()), txtProductCode.Text, txtProductName.Text, cmbPricingLevel.Text);
             dgvPricingList.DataSource = dtbl;
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PCL4" + ex.Message;
     }
 }
Example #2
0
 /// <summary>
 /// Function to fill the grid based on the
 /// </summary>
 public void GridFill()
 {
     try
     {
         {
             DataTable   dtbl        = new DataTable();
             PriceListSP spPriceList = new PriceListSP();
             if (cmbProductGroup.Text == "All")
             {
                 cmbProductGroup.Text = "All";
             }
             cmbPricingLevel.Text = cmbPricingLevel.Text;
             dtbl = spPriceList.ProductDetailsViewGridfill(Convert.ToDecimal(cmbProductGroup.SelectedValue.ToString()), txtProductCode.Text, txtProductName.Text, cmbPricingLevel.Text);
             dgvPricingList.DataSource = dtbl;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PCL4" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #3
0
 /// <summary>
 /// Function to fill the grid based on the
 /// </summary>
 public void GridFill()
 {
     try
     {
         {
             DataTable dtbl = new DataTable();
             PriceListSP spPriceList = new PriceListSP();
             if (cmbProductGroup.Text == "All")
             {
                 cmbProductGroup.Text = "All";
             }
             cmbPricingLevel.Text = cmbPricingLevel.Text;
             dtbl = spPriceList.ProductDetailsViewGridfill(Convert.ToDecimal(cmbProductGroup.SelectedValue.ToString()), txtProductCode.Text, txtProductName.Text, cmbPricingLevel.Text);
             dgvPricingList.DataSource = dtbl;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PCL4" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }