示例#1
0
 /// <summary>
 /// Function to fill all rack in datagridview
 /// </summary>
 public void GridFill()
 {
     try
     {
         RackSP    spRack   = new RackSP();
         DataTable dtblRack = new DataTable();
         dtblRack           = spRack.RackSearch(txtRackNameSearch.Text.Trim(), cmbGodownSearch.Text.ToString());
         dgvRack.DataSource = dtblRack;
     }
     catch (Exception ex)
     {
         MessageBox.Show("R5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
示例#2
0
        public List <DataTable> RackSearch(string strRackName, string strGodownname)
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = SPRack.RackSearch(strRackName, strGodownname);
            }
            catch (Exception ex)
            {
                MessageBox.Show("RackBll 1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }