public void ClearTextValue()
    {
        pnSelf = new ASCXPNSelfInfor();
        try
        {
            {
                pnSelf = (ASCXPNSelfInfor)Page.LoadControl("~/Frame/Production/PNSelfInfor.ascx");
                ConfigMCoefsandPN(pnSelf);
                pnSelf.Colum2TextConfig      = "";
                pnSelf.Colum3TextConfig      = "";
                pnSelf.Colum4TextConfig      = "";
                pnSelf.Colum5TextConfig      = "";
                pnSelf.Colum6TextConfig      = "";
                pnSelf.ConfigSeletedIndexDD7 = -1;
                pnSelf.ConfigSeletedIndexDD8 = -1;

                pnSelf.ConfigSeletedIndexDD10 = -1;
                pnSelf.ConfigSeletedIndexDD11 = -1;
                pnSelf.ConfigSeletedIndexDD12 = -1;
                pnSelf.ConfigSeletedIndexDD13 = -1;
                pnSelf.ConfigSeletedIndexDD14 = -1;
                pnSelf.Colum15TextConfig      = "";
                pnSelf.Colum16TextConfig      = "";
                pnSelf.Colum17TextConfig      = "";
                pnSelf.Colum17TextToolTip     = "";
                pnSelf.Colum18TextConfig      = "";
                pnSelf.Colum18TextToolTip     = "";
                pnSelf.DropDownTextSelected   = -1;
                pnSelf.Colum20TextConfig      = "";
                pnSelf.DropDown21TextSelected = -1;
                pnSelf.EnableColum8Text       = true;
                pnSelf.EnableColum7Text       = true;
                pnSelf.EnableColum6Text       = true;
                pnSelf.EnableColum5Text       = true;
                pnSelf.EnableColum4Text       = true;
                pnSelf.EnableColum3Text       = true;
                pnSelf.EnableColum2Text       = true;

                pnSelf.EnableColum10Text = true;
                pnSelf.EnableColum11Text = true;
                pnSelf.EnableColum12Text = true;
                pnSelf.EnableColum13Text = true;
                pnSelf.EnableColum14Text = true;
                pnSelf.EnableColum15Text = true;
                pnSelf.EnableColum16Text = true;
                pnSelf.EnableColum17Text = true;
                pnSelf.EnableColum18Text = true;
                pnSelf.EnableColum19Text = true;
                pnSelf.EnableColum20Text = true;
                pnSelf.EnableColum21Text = true;
                pnSelf.TH2Text           = "品名";
                pnSelf.TH3Text           = "描述";
                pnSelf.TH4Text           = "通道数";
                pnSelf.TH5Text           = "电压数";
                pnSelf.TH6Text           = "传感器类型";
                pnSelf.TH7Text           = "系数组";
                pnSelf.TH8Text           = mydt.Columns[9].ColumnName;

                pnSelf.TH10Text = "是否存在TEC";
                pnSelf.TH11Text = "耦合类型";
                pnSelf.TH12Text = "APC类型";
                pnSelf.TH13Text = "误码率(BER)";
                pnSelf.TH14Text = "最大速率";
                pnSelf.TH15Text = "正式品名";
                pnSelf.TH16Text = "别名";
                pnSelf.TH17Text = "Ibias公式";
                pnSelf.TH18Text = "Imod公式";
                pnSelf.TH19Text = "是否用摄氏温度";
                pnSelf.TH20Text = "接收端饱和入射光(dbm)";
                pnSelf.TH21Text = "是否已转产";
                this.PNSelfInfor.Controls.Add(pnSelf);
            }
        }
        catch (System.Exception ex)
        {
            throw ex;
        }
    }
    public bool ConfigMCoefsandPN(ASCXPNSelfInfor input)
    {
        MCoefsIDMap.Clear();
        try
        {
            for (int i = 0; i < mydtCoefs.Rows.Count; i++)
            {
                input.InsertColum7Text(i, new ListItem(mydtCoefs.Rows[i]["ItemName"].ToString().Trim()));

                MCoefsIDMap.Add(i, Convert.ToInt32(mydtCoefs.Rows[i]["ID"]));
            }
            input.InsertColum8Text(0, new ListItem("old"));
            input.InsertColum8Text(1, new ListItem("new"));
            DriverIDMap.Add(0, 0);
            DriverIDMap.Add(1, 1);

            //input.InsertColum9Text(0, new ListItem("old"));
            //input.InsertColum9Text(1, new ListItem("new"));
            //APCStyleIDMap.Add(0, 0);
            //APCStyleIDMap.Add(1, 1);

            input.InsertColum12Text(0, new ListItem("None"));
            input.InsertColum12Text(1, new ListItem("Open-Loop"));
            input.InsertColum12Text(2, new ListItem("Close-Loop"));
            input.InsertColum12Text(3, new ListItem("PIDClose-Loop"));
            APCTypeIDMap.Add(0, 0);
            APCTypeIDMap.Add(1, 1);
            APCTypeIDMap.Add(2, 2);
            APCTypeIDMap.Add(3, 3);

            input.InsertColum10Text(0, new ListItem("not TEC present"));
            input.InsertColum10Text(1, new ListItem("1 TEC Present"));
            input.InsertColum10Text(2, new ListItem("2 TEC Present"));
            input.InsertColum10Text(3, new ListItem("3 TEC Present"));
            input.InsertColum10Text(4, new ListItem("4 TEC Present"));
            TecPresentIDMap.Add(0, 0);
            TecPresentIDMap.Add(1, 1);
            TecPresentIDMap.Add(2, 2);
            TecPresentIDMap.Add(3, 3);
            TecPresentIDMap.Add(4, 4);

            input.InsertColum11Text(0, new ListItem("DC"));
            input.InsertColum11Text(1, new ListItem("AC"));
            CoupleTypeIDMap.Add(0, 0);
            CoupleTypeIDMap.Add(1, 1);
            input.InsertColum13Text(0, new ListItem("5E-5"));
            input.InsertColum13Text(1, new ListItem("1E-1"));
            input.InsertColum13Text(2, new ListItem("1E-2"));
            input.InsertColum13Text(3, new ListItem("1E-3"));
            input.InsertColum13Text(4, new ListItem("1E-4"));
            input.InsertColum13Text(5, new ListItem("1E-5"));
            input.InsertColum13Text(6, new ListItem("1E-6"));
            input.InsertColum13Text(7, new ListItem("1E-7"));
            input.InsertColum13Text(8, new ListItem("1E-8"));
            input.InsertColum13Text(9, new ListItem("1E-9"));
            input.InsertColum13Text(10, new ListItem("1E-10"));
            input.InsertColum13Text(11, new ListItem("1E-11"));
            input.InsertColum13Text(12, new ListItem("1E-12"));
            input.InsertColum13Text(13, new ListItem("1E-15"));
            BERIDMap.Add(0, 0);
            BERIDMap.Add(1, 1);
            BERIDMap.Add(2, 2);
            BERIDMap.Add(3, 3);
            BERIDMap.Add(4, 4);
            BERIDMap.Add(5, 5);
            BERIDMap.Add(6, 6);
            BERIDMap.Add(7, 7);
            BERIDMap.Add(8, 8);
            BERIDMap.Add(9, 9);
            BERIDMap.Add(10, 10);
            BERIDMap.Add(11, 11);
            BERIDMap.Add(12, 12);
            input.InsertColum14Text(0, new ListItem("1G"));
            input.InsertColum14Text(1, new ListItem("10G"));
            input.InsertColum14Text(2, new ListItem("14G"));
            input.InsertColum14Text(3, new ListItem("25G"));
            input.InsertColum14Text(4, new ListItem("28G"));
            MaxRateIDMap.Add(0, 0);
            MaxRateIDMap.Add(1, 1);
            MaxRateIDMap.Add(2, 2);
            MaxRateIDMap.Add(3, 3);
            MaxRateIDMap.Add(4, 4);
            return(true);
        }
        catch (System.Exception ex)
        {
            throw ex;
        }
    }
示例#3
0
    public void ClearTextValue()
    {
        pnSelf = new ASCXPNSelfInfor();
        try
        {
            {
                pnSelf = (ASCXPNSelfInfor)Page.LoadControl("../../Frame/Production/PNSelfInfor.ascx");
                ConfigMCoefsandPN(pnSelf);
                pnSelf.Colum2TextConfig      = "";
                pnSelf.Colum3TextConfig      = "";
                pnSelf.Colum4TextConfig      = "";
                pnSelf.Colum5TextConfig      = "";
                pnSelf.Colum6TextConfig      = "";
                pnSelf.ConfigSeletedIndexDD7 = -1;
                pnSelf.ConfigSeletedIndexDD8 = -1;

                pnSelf.ConfigSeletedIndexDD10 = -1;
                pnSelf.ConfigSeletedIndexDD11 = -1;
                pnSelf.ConfigSeletedIndexDD12 = -1;
                pnSelf.ConfigSeletedIndexDD13 = -1;
                pnSelf.ConfigSeletedIndexDD14 = -1;
                pnSelf.Colum15TextConfig      = "";
                pnSelf.Colum16TextConfig      = "";
                pnSelf.Colum17TextConfig      = "";
                pnSelf.Colum18TextConfig      = "";
                pnSelf.DropDownTextSelected   = -1;
                pnSelf.Colum20TextConfig      = "";
                pnSelf.EnableColum8Text       = true;
                pnSelf.EnableColum7Text       = true;
                pnSelf.EnableColum6Text       = true;
                pnSelf.EnableColum5Text       = true;
                pnSelf.EnableColum4Text       = true;
                pnSelf.EnableColum3Text       = true;
                pnSelf.EnableColum2Text       = true;

                pnSelf.EnableColum10Text = true;
                pnSelf.EnableColum11Text = true;
                pnSelf.EnableColum12Text = true;
                pnSelf.EnableColum13Text = true;
                pnSelf.EnableColum14Text = true;
                pnSelf.EnableColum15Text = true;
                pnSelf.EnableColum16Text = true;
                pnSelf.EnableColum17Text = true;
                pnSelf.EnableColum18Text = true;
                pnSelf.EnableColum19Text = true;
                pnSelf.EnableColum20Text = true;
                pnSelf.TH2Text           = mydt.Columns[2].ColumnName;
                pnSelf.TH3Text           = "Description";
                pnSelf.TH4Text           = mydt.Columns[4].ColumnName;
                pnSelf.TH5Text           = mydt.Columns[5].ColumnName;
                pnSelf.TH6Text           = mydt.Columns[6].ColumnName;
                pnSelf.TH7Text           = mydt.Columns[7].ColumnName;
                pnSelf.TH8Text           = mydt.Columns[9].ColumnName;

                pnSelf.TH10Text = mydt.Columns[10].ColumnName;
                pnSelf.TH11Text = mydt.Columns[11].ColumnName;
                pnSelf.TH12Text = mydt.Columns[12].ColumnName;
                pnSelf.TH13Text = mydt.Columns[13].ColumnName;
                pnSelf.TH14Text = mydt.Columns[14].ColumnName;
                pnSelf.TH15Text = mydt.Columns[15].ColumnName;
                pnSelf.TH16Text = mydt.Columns[16].ColumnName;
                pnSelf.TH17Text = mydt.Columns[17].ColumnName;
                pnSelf.TH18Text = mydt.Columns[18].ColumnName;
                pnSelf.TH19Text = mydt.Columns[19].ColumnName;
                pnSelf.TH20Text = mydt.Columns[20].ColumnName;
                this.PNSelfInfor.Controls.Add(pnSelf);
            }
        }
        catch (System.Exception ex)
        {
            throw ex;
        }
    }