/// <summary>
        /// Function to use the pricelist gridfill
        /// </summary>
        /// <param name="decgroupId"></param>
        /// <param name="strproductName"></param>
        /// <param name="decsizeId"></param>
        /// <param name="decModelNoId"></param>
        /// <param name="decpricinglevelId"></param>
        /// <returns></returns>
        public List <DataTable> PriceListGridFill(decimal decgroupId, string strproductName, decimal decsizeId, decimal decModelNoId, decimal decpricinglevelId)
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spPriceList.PriceListGridFill(decgroupId, strproductName, decsizeId, decModelNoId, decpricinglevelId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("PL1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
Esempio n. 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)
     {
         MessageBox.Show(" RPL2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 3
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);
     }
 }