private void FillTestTypeList()
        {
            try
            {
                //Xóa trắng Checklistbox

                clbTestType.DataSource = null;
                clbTestType.Items.Clear();

                dtTestTypeList = TestTypeListBusiness.GetAllTestTypeList();



                DataBinding.BindData(clbTestType, dtTestTypeList, TTestTypeList.Columns.TestTypeId,
                                     TTestTypeList.Columns.TestTypeName);
                SetAllCheckedBoxTrue(clbTestType);

                ////Thiết lập chiều rộng tự động cho lưới hiển thị
                //clbTestType.ColumnWidth =
                //    MkStrWidth(dtTestTypeList, clbTestType.Font, TTestTypeList.Columns.TestTypeName) + 20;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#2
0
 /// <summary>
 /// Hàm lấy toàn bộ danh sách T_Test_Type_List
 /// </summary>
 private void LoadAllTestTypeList()
 {
     _tblTestTypeList      = TestTypeListBusiness.GetAllTestTypeList();
     cboTest.DataSource    = _tblTestTypeList.DefaultView;
     cboTest.ValueMember   = "TestType_ID";
     cboTest.DisplayMember = "TestType_Name";
 }
示例#3
0
 void InitData()
 {
     try
     {
         _dtPrintColor       = new Select().From(SysPrintColor.Schema).ExecuteDataSet().Tables[0];
         _dtPrintColorDetail = new Select().From(SysPrintColorDetail.Schema).ExecuteDataSet().Tables[0];
         DataTable dtTestTypeList = TestTypeListBusiness.GetAllTestTypeList();
         DataBinding.BindData(cboTestTypeList, dtTestTypeList, TTestTypeList.Columns.TestTypeId,
                              TTestTypeList.Columns.TestTypeName);
         CreateTreeView();
         tvwColorConfig.Nodes[0].ExpandAll();
     }
     catch
     {
     }
 }