public void bindData() { FlowcontrolSelfInfor = new ASCXFlowControlSelfInfor(); { FlowcontrolSelfInfor = (ASCXFlowControlSelfInfor)Page.LoadControl("~/Frame/TestPlan/FlowControlSelfInfor.ascx"); ConfigControlTypeID(FlowcontrolSelfInfor); FlowcontrolSelfInfor.TH2Text = "名称"; FlowcontrolSelfInfor.Colum2TextConfig = ""; FlowcontrolSelfInfor.TH4Text = "通道"; FlowcontrolSelfInfor.Colum4TextConfig = ""; FlowcontrolSelfInfor.TH5Text = "温度"; FlowcontrolSelfInfor.Colum5TextConfig = ""; FlowcontrolSelfInfor.TH6Text = "电压"; FlowcontrolSelfInfor.Colum6TextConfig = ""; FlowcontrolSelfInfor.TH7Text = "码型"; FlowcontrolSelfInfor.Colum7TextConfig = ""; FlowcontrolSelfInfor.TH8Text = "速率"; FlowcontrolSelfInfor.Colum8TextConfig = ""; FlowcontrolSelfInfor.TH9Text = "流程类型"; FlowcontrolSelfInfor.ConfigSeletedCtrolType = -1; FlowcontrolSelfInfor.TH10Text = "温度补偿(℃)"; FlowcontrolSelfInfor.Colum10TextConfig = ""; FlowcontrolSelfInfor.TH11Text = "温度等待时间(s)"; FlowcontrolSelfInfor.Colum11TextConfig = ""; FlowcontrolSelfInfor.TH12Text = "描述"; FlowcontrolSelfInfor.Colum12TextConfig = ""; FlowcontrolSelfInfor.TH13Text = "是否跳过"; this.AddNewFlowControl.Controls.Add(FlowcontrolSelfInfor); FlowcontrolSelfInfor.EnableColum13Text = true; FlowcontrolSelfInfor.EnableColum12Text = true; FlowcontrolSelfInfor.EnableColum11Text = true; FlowcontrolSelfInfor.EnableColum10Text = true; FlowcontrolSelfInfor.EnableColum9Text = true; FlowcontrolSelfInfor.EnableColum8Text = true; FlowcontrolSelfInfor.EnableColum7Text = true; FlowcontrolSelfInfor.EnableColum6Text = true; FlowcontrolSelfInfor.EnableColum5Text = true; FlowcontrolSelfInfor.EnableColum4Text = true; FlowcontrolSelfInfor.EnableColum2Text = true; FlowcontrolSelfInfor.Colum13TextSelected = -1; } }
public void bindData() { FlowcontrolSelfInfor = new ASCXFlowControlSelfInfor(); { FlowcontrolSelfInfor = (ASCXFlowControlSelfInfor)Page.LoadControl("../../Frame/TestPlan/FlowControlSelfInfor.ascx"); ConfigControlTypeID(FlowcontrolSelfInfor); FlowcontrolSelfInfor.TH2Text = mydt.Columns[2].ColumnName; FlowcontrolSelfInfor.Colum2TextConfig = ""; FlowcontrolSelfInfor.TH4Text = mydt.Columns[4].ColumnName; FlowcontrolSelfInfor.Colum4TextConfig = ""; FlowcontrolSelfInfor.TH5Text = mydt.Columns[5].ColumnName; FlowcontrolSelfInfor.Colum5TextConfig = ""; FlowcontrolSelfInfor.TH6Text = mydt.Columns[6].ColumnName; FlowcontrolSelfInfor.Colum6TextConfig = ""; FlowcontrolSelfInfor.TH7Text = mydt.Columns[7].ColumnName; FlowcontrolSelfInfor.Colum7TextConfig = ""; FlowcontrolSelfInfor.TH8Text = mydt.Columns[8].ColumnName; FlowcontrolSelfInfor.Colum8TextConfig = ""; FlowcontrolSelfInfor.TH9Text = mydt.Columns[9].ColumnName; FlowcontrolSelfInfor.ConfigSeletedCtrolType = -1; FlowcontrolSelfInfor.TH10Text = mydt.Columns[10].ColumnName; FlowcontrolSelfInfor.Colum10TextConfig = ""; FlowcontrolSelfInfor.TH11Text = mydt.Columns[11].ColumnName; FlowcontrolSelfInfor.Colum11TextConfig = ""; FlowcontrolSelfInfor.TH12Text = mydt.Columns[12].ColumnName; FlowcontrolSelfInfor.Colum12TextConfig = ""; FlowcontrolSelfInfor.TH13Text = mydt.Columns[13].ColumnName; this.AddNewFlowControl.Controls.Add(FlowcontrolSelfInfor); FlowcontrolSelfInfor.EnableColum13Text = true; FlowcontrolSelfInfor.EnableColum12Text = true; FlowcontrolSelfInfor.EnableColum11Text = true; FlowcontrolSelfInfor.EnableColum10Text = true; FlowcontrolSelfInfor.EnableColum9Text = true; FlowcontrolSelfInfor.EnableColum8Text = true; FlowcontrolSelfInfor.EnableColum7Text = true; FlowcontrolSelfInfor.EnableColum6Text = true; FlowcontrolSelfInfor.EnableColum5Text = true; FlowcontrolSelfInfor.EnableColum4Text = true; FlowcontrolSelfInfor.EnableColum2Text = true; FlowcontrolSelfInfor.Colum13TextSelected = -1; } }
public bool ConfigControlTypeID(ASCXFlowControlSelfInfor input) { ControlTypeIDMap.Clear(); try { input.InsertColum9Text(0, new ListItem("LP")); input.InsertColum9Text(1, new ListItem("FMT")); input.InsertColum9Text(2, new ListItem("LP&FMT")); ControlTypeIDMap.Add(0, 1); ControlTypeIDMap.Add(1, 2); ControlTypeIDMap.Add(2, 3); return(true); } catch (System.Exception ex) { throw ex; } }