示例#1
0
    public void bindData()
    {
        testTestplanSelfInfor = new ASCXTestPlanInfor();

        testTestplanSelfInfor = (ASCXTestPlanInfor)Page.LoadControl("~/Frame/TestPlan/TestPlanInfor.ascx");
        testTestplanSelfInfor.TBItemNameText                  = "";
        testTestplanSelfInfor.TBSWVersionText                 = "";
        testTestplanSelfInfor.TBHwVersionText                 = "";
        testTestplanSelfInfor.TBUSBPortText                   = "";
        testTestplanSelfInfor.TBDescriptionText               = "";
        testTestplanSelfInfor.TH2Text                         = "名称";
        testTestplanSelfInfor.TH3Text                         = "软件版本号";
        testTestplanSelfInfor.TH4Text                         = "硬件版本号";
        testTestplanSelfInfor.TH5Text                         = "USB端口";
        testTestplanSelfInfor.TH6Text                         = "是否初始化芯片";
        testTestplanSelfInfor.TH7Text                         = "是否初始化EEPROM";
        testTestplanSelfInfor.TH8Text                         = "是否不备份系数";
        testTestplanSelfInfor.TH9Text                         = "是否检查SN";
        testTestplanSelfInfor.TH13Text                        = "是否检查品名";
        testTestplanSelfInfor.TH14Text                        = "是否检查软件版本号";
        testTestplanSelfInfor.TH10Text                        = "是否跳过";
        testTestplanSelfInfor.TH11Text                        = "描述";
        testTestplanSelfInfor.TH12Text                        = "修订号";
        testTestplanSelfInfor.TH15Text                        = "是否开启CDR";
        testTestplanSelfInfor.EnableDDIgnoreBackupCoef        = true;
        testTestplanSelfInfor.EnableDDIsEEPROMIni             = true;
        testTestplanSelfInfor.EnableDDIsChipIni               = true;
        testTestplanSelfInfor.EnableTBUSBPort                 = true;
        testTestplanSelfInfor.EnableTBHwVersion               = true;
        testTestplanSelfInfor.EnableTBSWVersion               = true;
        testTestplanSelfInfor.EnableTBItemName                = true;
        testTestplanSelfInfor.EnableDDIgnoreFlag              = false;
        testTestplanSelfInfor.EnableDDSNCheck                 = true;
        testTestplanSelfInfor.EnableDDPNCheck                 = true;
        testTestplanSelfInfor.EnableDDSWCheck                 = true;
        testTestplanSelfInfor.EnableTBDescription             = true;
        testTestplanSelfInfor.EnableTextVersion               = false;
        testTestplanSelfInfor.EnableDDCDROn                   = true;
        testTestplanSelfInfor.DDIsChipIniSelectedIndex        = -1;
        testTestplanSelfInfor.DDIgnoreFlagSelectedIndex       = 0;
        testTestplanSelfInfor.DDIsEEPROMIniSelectedIndex      = -1;
        testTestplanSelfInfor.DDIgnoreBackupCoefSelectedIndex = -1;
        testTestplanSelfInfor.DDCheckSNCoefSelectedIndex      = -1;
        testTestplanSelfInfor.DDCDROnSelectedIndex            = 1;
        this.AddNewTestPlan.Controls.Add(testTestplanSelfInfor);
        ConfigExpressionList();
    }
示例#2
0
    public void bindData()
    {
        testTestplanSelfInfor = new ASCXTestPlanInfor();

        testTestplanSelfInfor = (ASCXTestPlanInfor)Page.LoadControl("../../Frame/TestPlan/TestPlanInfor.ascx");
        testTestplanSelfInfor.TBItemNameText                  = "";
        testTestplanSelfInfor.TBSWVersionText                 = "";
        testTestplanSelfInfor.TBHwVersionText                 = "";
        testTestplanSelfInfor.TBUSBPortText                   = "";
        testTestplanSelfInfor.TBDescriptionText               = "";
        testTestplanSelfInfor.TH2Text                         = mydt.Columns[2].ColumnName;
        testTestplanSelfInfor.TH3Text                         = mydt.Columns[3].ColumnName;
        testTestplanSelfInfor.TH4Text                         = mydt.Columns[4].ColumnName;
        testTestplanSelfInfor.TH5Text                         = mydt.Columns[5].ColumnName;
        testTestplanSelfInfor.TH6Text                         = mydt.Columns[6].ColumnName;
        testTestplanSelfInfor.TH7Text                         = mydt.Columns[7].ColumnName;
        testTestplanSelfInfor.TH8Text                         = mydt.Columns[8].ColumnName;
        testTestplanSelfInfor.TH9Text                         = mydt.Columns[9].ColumnName;
        testTestplanSelfInfor.TH13Text                        = mydt.Columns["PNCheck"].ColumnName;
        testTestplanSelfInfor.TH14Text                        = mydt.Columns["SWCheck"].ColumnName;
        testTestplanSelfInfor.TH10Text                        = mydt.Columns["IgnoreFlag"].ColumnName;
        testTestplanSelfInfor.TH11Text                        = mydt.Columns["ItemDescription"].ColumnName;
        testTestplanSelfInfor.TH12Text                        = mydt.Columns["Version"].ColumnName;
        testTestplanSelfInfor.EnableDDIgnoreBackupCoef        = true;
        testTestplanSelfInfor.EnableDDIsEEPROMIni             = true;
        testTestplanSelfInfor.EnableDDIsChipIni               = true;
        testTestplanSelfInfor.EnableTBUSBPort                 = true;
        testTestplanSelfInfor.EnableTBHwVersion               = true;
        testTestplanSelfInfor.EnableTBSWVersion               = true;
        testTestplanSelfInfor.EnableTBItemName                = true;
        testTestplanSelfInfor.EnableDDIgnoreFlag              = true;
        testTestplanSelfInfor.EnableDDSNCheck                 = true;
        testTestplanSelfInfor.EnableDDPNCheck                 = true;
        testTestplanSelfInfor.EnableDDSWCheck                 = true;
        testTestplanSelfInfor.EnableTBDescription             = true;
        testTestplanSelfInfor.EnableTextVersion               = false;
        testTestplanSelfInfor.DDIsChipIniSelectedIndex        = -1;
        testTestplanSelfInfor.DDIgnoreFlagSelectedIndex       = -1;
        testTestplanSelfInfor.DDIsEEPROMIniSelectedIndex      = -1;
        testTestplanSelfInfor.DDIgnoreBackupCoefSelectedIndex = -1;
        testTestplanSelfInfor.DDCheckSNCoefSelectedIndex      = -1;
        this.AddNewTestPlan.Controls.Add(testTestplanSelfInfor);
        ConfigExpressionList();
    }