Exemplo n.º 1
0
        public List <DataTable> ModelNoOnlyViewAll()
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = SpModelNo.ModelNoOnlyViewAll();
            }
            catch (Exception ex)
            {
                MessageBox.Show("MN1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Function to fill datagridview
 /// </summary>
 public void Gridfill()
 {
     try
     {
         DataTable dtblModelNo = new DataTable();
         ModelNoSP spModelNo   = new ModelNoSP();
         dtblModelNo           = spModelNo.ModelNoOnlyViewAll();
         dgvModalNo.DataSource = dtblModelNo;
     }
     catch (Exception ex)
     {
         MessageBox.Show("MN2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }