public List <DataTable> ProductGroupViewForGridFill(string strGroupName, string strGroupUnder)
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spProductGroup.ProductGroupViewForGridFill(strGroupName, strGroupUnder);
            }
            catch (Exception ex)
            {
                MessageBox.Show("AL29:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
예제 #2
0
        /// <summary>
        /// Function to fill the grid to view all the product groups
        /// </summary>
        private void GridFill()
        {
            try
            {
                DataTable        dtbl            = new DataTable();
                ProductGroupSP   spProducttGroup = new ProductGroupSP();
                ProductGroupInfo info            = new ProductGroupInfo();
                if (cmbUnderSearch.Text == "")
                {
                    cmbUnderSearch.Text = "All";
                }

                dtbl = spProducttGroup.ProductGroupViewForGridFill(txtProductGroupSearch.Text, cmbUnderSearch.Text);
                dgvProductGroup.DataSource = dtbl;
            }
            catch (Exception ex)
            {
                MessageBox.Show("PG9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }