Example #1
0
 /// <summary>
 /// Function to fill pricelist gridfill
 /// </summary>
 public void PriceListGridFill()
 {
     try
     {
         if (cmbProductGroup.SelectedIndex == 0)
         {
             decGroupId = 0;
         }
         else
         {
             decGroupId = Convert.ToDecimal(cmbProductGroup.SelectedValue);
         }
         if (cmbModel.SelectedIndex == 0)
         {
             decModelId = 0;
         }
         else
         {
             decModelId = Convert.ToDecimal(cmbModel.SelectedValue);
         }
         if (cmbProduct.SelectedIndex == 0)
         {
             strProductName = string.Empty;
         }
         else
         {
             strProductName = cmbProduct.Text;
         }
         if (cmbSize.SelectedIndex == 0)
         {
             decSizeId = 0;
         }
         else
         {
             decSizeId = Convert.ToDecimal(cmbSize.SelectedValue);
         }
         if (cmbPricingLevel.SelectedIndex == 0)
         {
             decPricingLevelId = 0;
         }
         else
         {
             decPricingLevelId = Convert.ToDecimal(cmbPricingLevel.SelectedValue);
         }
         dtblPriceListReport     = spPricingList.PriceListGridFill(decGroupId, strProductName, decSizeId, decModelId, decPricingLevelId);
         dgvPriceList.DataSource = dtblPriceListReport;
     }
     catch (Exception ex)
     {
         MessageBox.Show(" RPL2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #2
0
 /// <summary>
 /// Function to fill pricelist gridfill
 /// </summary>
 public void PriceListGridFill()
 {
     try
     {
         if (cmbProductGroup.SelectedIndex == 0)
         {
             decGroupId = 0;
         }
         else
         {
             decGroupId = Convert.ToDecimal(cmbProductGroup.SelectedValue);
         }
         if (cmbModel.SelectedIndex == 0)
         {
             decModelId = 0;
         }
         else
         {
             decModelId = Convert.ToDecimal(cmbModel.SelectedValue);
         }
         if (cmbProduct.SelectedIndex == 0)
         {
             strProductName = string.Empty;
         }
         else
         {
             strProductName = cmbProduct.Text;
         }
         if (cmbSize.SelectedIndex == 0)
         {
             decSizeId = 0;
         }
         else
         {
             decSizeId = Convert.ToDecimal(cmbSize.SelectedValue);
         }
         if (cmbPricingLevel.SelectedIndex == 0)
         {
             decPricingLevelId = 0;
         }
         else
         {
             decPricingLevelId = Convert.ToDecimal(cmbPricingLevel.SelectedValue);
         }
         dtblPriceListReport     = spPricingList.PriceListGridFill(decGroupId, strProductName, decSizeId, decModelId, decPricingLevelId);
         dgvPriceList.DataSource = dtblPriceListReport;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "RPL2:" + ex.Message;
     }
 }
 /// <summary>
 /// Function to fill the pricelist details for the products
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable   dtbl        = new DataTable();
         PriceListSP spPriceList = new PriceListSP();
         dtbl = spPriceList.PriceListGridFill();
         dgvProductGroup.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PLP6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #4
0
 /// <summary>
 /// Function to fill the pricelist details for the products
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable   dtbl        = new DataTable();
         PriceListSP spPriceList = new PriceListSP();
         dtbl = spPriceList.PriceListGridFill();
         dgvProductGroup.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PLP7" + ex.Message + ex.Message;
     }
 }
Example #5
0
 /// <summary>
 /// Function to fill the pricelist details for the products
 /// </summary>
 public void GridFill()
 {
     try
     {
         DataTable dtbl = new DataTable();
         PriceListSP spPriceList = new PriceListSP();
         dtbl = spPriceList.PriceListGridFill();
         dgvProductGroup.DataSource = dtbl;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PLP6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }