Exemplo n.º 1
0
      public void InitializeControl()
      {
          List <string> t = bll.GetListKhoa_BLL();
          int           k = t.Count;

          t.RemoveAt(k - 1);
          cbbKhoa.DataSource           = t;
          cbbMTS.DataSource            = bll.GetTenTSChiaKhoa_BLL();
          numericUpDownSoLuong.Minimum = 0;
      }
Exemplo n.º 2
0
        private void LoadCbb()
        {
            cbbKhoa.DataSource = bll.GetListKhoa_BLL();
            List <string> listSortSX = new List <string> {
                "Ten tai san", "Ten loai tai san", "So luong", "Ty le hao mon", "Ty le con lai"
            };

            com.DataSource = listSortSX;
            List <string> listSortSXTruong = new List <string> {
                "Ten tai san", "Ten loai tai san", "So luong", "Ty le hao mon", "Ty le con lai"
            };

            comboBox1.DataSource = listSortSXTruong;
            List <string> listSortSXKhoa = new List <string> {
                "Ten tai san", "Ten loai tai san", "So luong", "Ty le hao mon", "Ty le con lai"
            };

            cbbSapXepKhoa.DataSource = listSortSXKhoa;
            List <string> listSortSXCTG = new List <string> {
                "Ten tai san", "Ten loai tai san", "So luong"
            };

            cbbSapXepCTG.DataSource = listSortSXCTG;
        }