Ejemplo n.º 1
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";
 }
        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;
            }
        }
Ejemplo n.º 3
0
 private void LoadTestTypeButton()
 {
     dtTestTypeList = TestTypeListBusiness.GetTestTypeNameAndIdList();
     foreach (DataRow dr in dtTestTypeList.Rows)
     {
         var btx = new ButtonItem();
         btx.Text   = dr[TTestTypeList.Columns.TestTypeName].ToString();
         btx.Name   = dr[TTestTypeList.Columns.TestTypeId].ToString();
         btx.Click += AddTestType;
         stsTestTypeList.Tabs.Add(btx);
     }
 }
Ejemplo n.º 4
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
     {
     }
 }