Ejemplo n.º 1
0
        private void frmIventoryRepair_Load(object sender, EventArgs e)
        {
            DataTable dt = bllss4.getAllPart();

            foreach (DataRow dr in dt.Rows)
            {
                comboBox1.Items.Add(dr[1]);
            }

            DataTable dt1 = bllss4.getAllTranSactionTypes();

            foreach (DataRow dr in dt1.Rows)
            {
                comboBox2.Items.Add(dr[1]);
            }

            DataTable dt2 = bllss4.getAllWareHouses();

            foreach (DataRow dr in dt2.Rows)
            {
                comboBox4.Items.Add(dr[1]);
            }
            addValuecbb5();
            comboBox1.SelectedText = partName;
            comboBox2.SelectedText = transactionType;
            txtAmount.SelectedText = amount.ToString();
            comboBox4.SelectedText = source;
            comboBox5.SelectedText = destination;
        }