Exemplo n.º 1
0
        /// <summary>
        /// To fill rack combobox
        /// </summary>
        public void RackComboFill()
        {
            try
            {
                RackSP    spRack = new RackSP();
                DataTable dtbl   = new DataTable();
                if (cmbGodown.SelectedValue.ToString() != "System.Data.DataRowView")
                {
                    dtbl = spRack.RackViewAllByGodown(Convert.ToDecimal(cmbGodown.SelectedValue.ToString()));

                    DataRow drowSelect = dtbl.NewRow();
                    drowSelect[0]          = 0;
                    drowSelect["rackName"] = "All";
                    cmbRack.DataSource     = dtbl;
                    cmbRack.DisplayMember  = "rackName";
                    cmbRack.ValueMember    = "rackId";
                }
            }
            catch (Exception ex)
            {
                formMDI.infoError.ErrorString = "STKR6:" + ex.Message;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// To fill rack combobox
        /// </summary>
        public void RackComboFill()
        {
            try
            {
                RackSP    spRack = new RackSP();
                DataTable dtbl   = new DataTable();
                if (cmbGodown.SelectedValue.ToString() != "System.Data.DataRowView")
                {
                    dtbl = spRack.RackViewAllByGodown(Convert.ToDecimal(cmbGodown.SelectedValue.ToString()));

                    DataRow drowSelect = dtbl.NewRow();
                    drowSelect[0]          = 0;
                    drowSelect["rackName"] = "All";
                    cmbRack.DataSource     = dtbl;
                    cmbRack.DisplayMember  = "rackName";
                    cmbRack.ValueMember    = "rackId";
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("STKR:6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
 /// <summary>
 /// Function to fill Rack Combobox corresponding to godown
 /// </summary>
 /// <param name="decGodownId"></param>
 public void RackComboFillByGodown(decimal decGodownId)
 {
     try
     {
         RackSP spRack = new RackSP();
         DataTable dtblRack = new DataTable();
         dtblRack = spRack.RackViewAllByGodown(decGodownId);
         cmbRack.DataSource = dtblRack;
         cmbRack.ValueMember = "rackId";
         cmbRack.DisplayMember = "rackName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("MPC10:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        /// To fill rack combobox
        /// </summary>
        public void RackComboFill()
        {
            try
            {

                RackSP spRack = new RackSP();
                DataTable dtbl = new DataTable();
                if (cmbGodown.SelectedValue.ToString() != "System.Data.DataRowView")
                {


                    dtbl = spRack.RackViewAllByGodown(Convert.ToDecimal(cmbGodown.SelectedValue.ToString()));

                    DataRow drowSelect = dtbl.NewRow();
                    drowSelect[0] = 0;
                    drowSelect["rackName"] = "All";
                    cmbRack.DataSource = dtbl;
                    cmbRack.DisplayMember = "rackName";
                    cmbRack.ValueMember = "rackId";
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("STKR:6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }