Esempio n. 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);
         }
         listObjPriceListReport  = BllPriceList.PriceListGridFill(decGroupId, strProductName, decSizeId, decModelId, decPricingLevelId);
         dgvPriceList.DataSource = listObjPriceListReport[0];
     }
     catch (Exception ex)
     {
         MessageBox.Show(" RPL2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Function to fill the pricelist details for the products
 /// </summary>
 public void GridFill()
 {
     try
     {
         List <DataTable> listObj      = new List <DataTable>();
         PriceListBll     BllPriceList = new PriceListBll();
         listObj = BllPriceList.PriceListGridFill();
         dgvProductGroup.DataSource = listObj[0];
     }
     catch (Exception ex)
     {
         MessageBox.Show("PLP6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }