Ejemplo n.º 1
0
        public void InitializeControl()
        {
            List <string> myPhong = bll.GetListPhong();

            myPhong.RemoveAt(myPhong.Count - 1);
            comboBox1.DataSource            = myPhong;
            comboBoxTenLoaiTS.DataSource    = bll.GetListTenLoaiTS();
            textBoxMaCTT.Text               = "01-TSCĐ-" + RandomString(8);
            comboBox1.SelectedIndex         = 0;
            comboBoxTenLoaiTS.SelectedIndex = 0;
            numericUpDownTyLeHM.Maximum     = 100;
            numericUpDownTyLeCL.Maximum     = 100;
            numericUpDownVAT.Maximum        = 100;
            numericUpDownSoLuong.Minimum    = 1;
        }
Ejemplo n.º 2
0
        public void InitializeControl()
        {
            comboBoxMaTS.DataSource      = bll.GetListMaTS();
            comboBoxTenLoaiTS.DataSource = bll.GetListTenLoaiTS();
            List <string> myList = bll.GetListPhong();

            myList.RemoveAt(myList.Count - 1);
            List <string> myList2 = bll.GetListPhong();

            myList2.RemoveAt(myList2.Count - 1);
            comboBoxPhong.DataSource    = myList;
            comboBoxPhongMoi.DataSource = myList2;
            comboBoxPhongMoi.Enabled    = false;
            numericUpDown1.Enabled      = false;
        }