/// <summary> /// Function to fill the pricelist details in datagridview /// </summary> public void PriceListPopupGridFill() { try { DataTable dtbl = new DataTable(); PriceListSP spPriceList = new PriceListSP(); dtbl = spPriceList.PriceListPopupGridFill(decPricingLevelMain, decProductMain); dgvProductGroup.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("PLP10" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to use fill the grid pricelist popup grid /// </summary> /// <param name="decPriceLevelId"></param> /// <param name="decProductId"></param> /// <returns></returns> public List <DataTable> PriceListPopupGridFill(decimal decPriceLevelId, decimal decProductId) { List <DataTable> listObj = new List <DataTable>(); try { listObj = spPriceList.PriceListPopupGridFill(decPriceLevelId, decProductId); } catch (Exception ex) { MessageBox.Show("PL3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(listObj); }