Example #1
0
 /// <summary>
 /// grid fill function
 /// </summary>
 public void GridFill()
 {
     try
     {
         UnitSP    spUnit   = new UnitSP();
         DataTable dtblUnit = new DataTable();
         dtblUnit = spUnit.UnitSearch(txtUnitSearch.Text.Trim());
         dgvUnitSearch.DataSource = dtblUnit;
     }
     catch (Exception ex)
     {
         MessageBox.Show("U1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #2
0
        public List <DataTable> UnitSearch(string strUnitName)
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spUnit.UnitSearch(strUnitName);
            }
            catch (Exception ex)
            {
                MessageBox.Show("UBLL1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }