Пример #1
0
        public List <DataTable> RackViewAll()
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = SPRack.RackViewAll();
            }
            catch (Exception ex)
            {
                MessageBox.Show("RackBll 8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
Пример #2
0
 /// <summary>
 /// Function to fill rack combobox
 /// </summary>
 public void RackComboFill()
 {
     try
     {
         RackSP    spRack = new RackSP();
         DataTable dtbl   = new DataTable();
         dtbl = spRack.RackViewAll();
         DataRow dr = dtbl.NewRow();
         dr["rackName"] = "All";
         dr["rackId"]   = 0;
         dtbl.Rows.InsertAt(dr, 0);
         cmbRack.DataSource    = dtbl;
         cmbRack.DisplayMember = "rackName";
         cmbRack.ValueMember   = "rackId";
     }
     catch (Exception ex)
     {
         MessageBox.Show("SE:10" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }