예제 #1
0
 /// <summary>
 /// Gridfill function
 /// </summary>
 public void GridFill()
 {
     try
     {
         ServiceSP spService   = new ServiceSP();
         DataTable dtblService = new DataTable();
         dtblService           = spService.ServiceGridFill();
         dgvService.DataSource = dtblService;
     }
     catch (Exception ex)
     {
         MessageBox.Show("Ser4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
        /// <summary>
        /// Function to view all details for Gridfill
        /// </summary>
        /// <returns></returns>
        public List <DataTable> ServiceGridFill()
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = spService.ServiceGridFill();
            }
            catch (Exception ex)
            {
                MessageBox.Show("AL33:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }