Beispiel #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)
     {
         formMDI.infoError.ErrorString = "RPL2:" + ex.Message;
     }
 }
Beispiel #2
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;
     }
 }