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

            try
            {
                listObj = SPRack.RackViewAllByGodown(decGodown);
            }
            catch (Exception ex)
            {
                MessageBox.Show("RackBll 8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }
Пример #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);
            }
        }