Exemplo n.º 1
0
 /// <summary>
 /// gridfill function for search and update
 /// </summary>
 /// <param name="decProductId"></param>
 public void GridFill(decimal decProductId)
 {
     try
     {
         StandardRateSP spStandardRate   = new StandardRateSP();
         DataTable      dtblStandardRate = new DataTable();
         dtblStandardRate           = spStandardRate.StandardRateGridFill(decProductId);
         dgvStandardRate.DataSource = dtblStandardRate;
     }
     catch (Exception ex)
     {
         MessageBox.Show("SRP3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Function to get all details for Gridfill based on parameter
        /// </summary>
        /// <param name="decProductId"></param>
        /// <returns></returns>
        public List <DataTable> StandardRateGridFill(decimal decProductId)
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = spStandaredRate.StandardRateGridFill(decProductId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AL6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }