public void ShowMarkWindow(string x, string y) { try { Window win = new Window(); win.ID = "AddMarkInfo"; win.Title = GetLangStr("MarkerManager27", "自定义标注信息"); win.Icon = Icon.Application; win.Width = System.Web.UI.WebControls.Unit.Pixel(400); win.Height = System.Web.UI.WebControls.Unit.Pixel(190); win.Plain = true; win.BodyStyle = "padding:6px;"; win.Collapsible = true; win.Layout = "Form"; win.Plain = true; win.Items.Add(CommonExt.AddTextField("txtzbx", GetLangStr("MarkerManager28", "X坐标"), x)); win.Items.Add(CommonExt.AddTextField("txtzby", GetLangStr("MarkerManager29", "Y坐标"), y)); win.Items.Add(CommonExt.AddTextField("txtName", GetLangStr("MarkerManager30", "名称"), false, "")); win.Buttons.Add(CommonExt.AddButton("butEnter", GetLangStr("MarkerManager31", "确定"), "Accept", "MarkerManager.MarkPointSave()")); win.Buttons.Add(CommonExt.AddButton("butCancel", GetLangStr("MarkerManager32", "退出"), "Cancel", win.ClientID + ".hide()")); win.Render(this.Form); win.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("MarkerManager.aspx-ShowMarkWindow", ex.Message + ";" + ex.StackTrace, "ShowMarkWindow has an exception"); } }
/// <summary> /// /// </summary> private void AddWindowDevice() { try { Window window = new Window(); window.ID = "DeviceAdd"; window.Title = "设备信息增加"; window.Width = Unit.Pixel(400); window.Height = Unit.Pixel(420); window.Modal = true; window.Collapsible = true; window.Maximizable = false; window.Resizable = false; window.Hidden = true; window.Layout = "Fit"; window.AutoLoad.Mode = LoadMode.Merge; Ext.Net.FormPanel tab = new Ext.Net.FormPanel(); tab.Title = "设备信息"; tab.Header = false; tab.Padding = 5; tab.DefaultAnchor = "98%"; tab.AnchorVertical = "100%"; tab.MonitorValid = true; tab.Listeners.ClientValidation.Handler = "butSaveEditDevice.setDisabled(!valid);"; ComboBox cmbDeviceStation = CommonExt.AddComboBox("cmbEDeviceStation", "所属监测点", "StoreStaion", "请选择所属监测点", false); cmbDeviceStation.Listeners.Select.Handler = "SystemStation.SelectDeviceEvent()"; tab.Items.Add(cmbDeviceStation); tab.Items.Add(CommonExt.AddTextField("txtEDeviceName", "设备名称", false, "例:[八达岭高速昌平电警抓拍机]")); ComboBox cmbDirection = CommonExt.AddComboBox("cmbEDeviceDirection", "所属方向", "StoreDirection", "请选择所属方向", false); cmbDirection.Listeners.Select.Handler = "SystemStation.SelectDirectionEvent()"; tab.Items.Add(cmbDirection); tab.Items.Add(CommonExt.AddComboBox("cmdEDeviceType", "设备类型", "StoreType", "请选择设备类型", false)); tab.Items.Add(CommonExt.AddTextField("txtEDeviceIP", "设备IP地址", false, "例:[192.168.0.1]")); tab.Items.Add(CommonExt.AddTextField("txtEDeviceSport", "设备端口", false, "例:[18000]")); tab.Items.Add(CommonExt.AddComboBox("cmdEDeviceCompany", "设备厂家", "StoreCompany", "请选择设备厂家", false)); tab.Items.Add(CommonExt.AddComboBox("cmdEDeviceCamera", "相机类型", "StoreCamera", "请选择相机类型", false)); tab.Items.Add(CommonExt.AddComboBox("cmdEDeviceScan", "是否扫描文件", "StoreShow", "请选择是/否", false)); tab.Items.Add(CommonExt.AddTextField("txtEDeviceServiceIP", "图片保存服务器IP", false, "例:[192.168.0.1]")); tab.Items.Add(CommonExt.AddTextField("txtEDeviceImagePath", "图片保存路径", false, "例:[D:\\CAPTURE\\192.168.0.1]")); window.Buttons.Add(CommonExt.AddButton("butSaveEditDevice", "保存", "Disk", "SystemStation.InfoSaveDevice()")); window.Buttons.Add(CommonExt.AddButton("butCancelEditDevice", "取消", "Cancel", window.ClientID + ".hide()")); window.Items.Add(tab); window.Render(this.Form); window.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); } }
private void AddWindow() { Window window = new Window(); window.ID = "SystemCodeAdd"; window.Title = "字典信息管理"; window.Width = Unit.Pixel(400); window.Height = Unit.Pixel(280); window.Modal = true; window.Collapsible = true; window.Maximizable = false; window.Resizable = false; window.Hidden = true; window.AutoLoad.Mode = LoadMode.Merge; FormPanel tabs = new FormPanel(); tabs.ID = "TabPanel1"; tabs.IDMode = IDMode.Explicit; tabs.Border = false; tabs.Width = Unit.Pixel(400); tabs.Closable = true; tabs.DefaultAnchor = "100%"; Ext.Net.Panel tab = new Ext.Net.Panel(); tab.Title = "代码表"; tab.Padding = 5; tabs.Add(tab); TextField tx = CommonExt.AddTextField("txtECodeType", "代码类型"); tx.Text = Session["CodeId"] as string; tab.Items.Add(tx); tx.ReadOnly = true; tab.Items.Add(CommonExt.AddTextField("txtECodeId", "代码值")); tab.Items.Add(CommonExt.AddTextField("txtECodeDesc", "代码描述")); tab.Items.Add(CommonExt.AddTextField("txtECodeRemark", "备注")); tab.Items.Add(CommonExt.AddCheckbox("chkEIsUse", "是否启用")); Toolbar toolbar = new Ext.Net.Toolbar(); ToolbarFill toolbarFill = new ToolbarFill(); toolbar.Add(toolbarFill); window.BottomBar.Add(toolbar); CommonExt.AddButton(toolbar, "butSaveEdit", "保存", "Disk", "SystemCode.InfoSave()"); CommonExt.AddButton(toolbar, "butCancelEdit", "取消", "Cancel", window.ClientID + ".hide()"); window.Items.Add(tabs); window.Render(this.Form); window.Show(); }
/// <summary> /// /// </summary> private void AddWindowsStation() { try { Window window = new Window(); window.ID = "StationAdd"; window.Title = "监测点增加"; window.Width = Unit.Pixel(400); window.Height = Unit.Pixel(300); window.Collapsible = true; window.Maximizable = false; window.Resizable = false; window.Hidden = true; window.Layout = "Fit"; window.AutoLoad.Mode = LoadMode.Merge; Ext.Net.FormPanel tab = new Ext.Net.FormPanel(); tab.Title = "监测点信息"; tab.Header = false; tab.Padding = 5; tab.DefaultAnchor = "98%"; tab.AnchorVertical = "100%"; tab.MonitorValid = true; tab.Listeners.ClientValidation.Handler = "butSaveEdit.setDisabled(!valid);"; ComboBox cmbDepartment = CommonExt.AddComboBox("cmbEDepartment", "所属机构", "StoreCombo", "请选择所属机构", false); cmbDepartment.Listeners.Select.Handler = "SystemStation.SelectDepartEvent()"; tab.Items.Add(cmbDepartment); ComboBox cmbLocation = CommonExt.AddComboBox("cmbELocation", "所属地点", "StoreLocation", "请选择所属地点", false); cmbLocation.Listeners.Select.Handler = "SystemStation.SelectStationEvent()"; tab.Items.Add(cmbLocation); tab.Items.Add(CommonExt.AddTextField("txtEStationID", "监测点编号", false, "例:[2012030010]")); tab.Items.Add(CommonExt.AddTextField("txtEStationName", "监测点名称", false, "例:[八达岭高速昌平卡口]")); tab.Items.Add(CommonExt.AddComboBox("cmdEStationType", "监测点类型", "StoreType", "请选择监测点类型", false)); tab.Items.Add(CommonExt.AddComboBox("cmdEStationShow", "卡口系统显示", "StoreShow", "请选择是/否", false)); tab.Items.Add(CommonExt.AddTextField("txtEDescription", "描述")); window.Buttons.Add(CommonExt.AddButton("butSaveEdit", "保存", "Disk", "SystemStation.InfoSave()")); window.Buttons.Add(CommonExt.AddButton("butCancelEdit", "取消", "Cancel", window.ClientID + ".hide()")); window.Items.Add(tab); window.Render(this.Form); window.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); } }
/// <summary> /// 显示自定义窗体 /// </summary> private void AddWindow() { try { Window window = new Window(); window.ID = "PrivAdd"; window.Title = GetLangStr("PrivManager41", "增加权限"); window.Width = Unit.Pixel(360); window.Height = Unit.Pixel(220); window.Modal = true; window.Maximizable = false; window.Resizable = false; window.Hidden = true; window.AutoLoad.Mode = LoadMode.Merge; window.Layout = "FitLayout"; Ext.Net.FormPanel tab = new Ext.Net.FormPanel(); tab.MonitorValid = true; tab.Title = GetLangStr("PrivManager42", "权限信息"); tab.Header = false; tab.Padding = 20; tab.Height = 200; TextField txtPrivId = CommonExt.AddTextField("txtAPrivID", GetLangStr("PrivManager9", "权限编号")); txtPrivId.Text = tgsPproperty.GetMinRecordId(); txtPrivId.Disabled = true; tab.Items.Add(txtPrivId); tab.Items.Add(CommonExt.AddTextFieldWidth("txtAPrivName", GetLangStr("PrivManager10", "权限名称"), false, GetLangStr("PrivManager45", "请输入权限名称"))); tab.Items.Add(CommonExt.AddTextFieldWidth("txtARemark", GetLangStr("PrivManager11", "权限描述"), true, GetLangStr("PrivManager47", "请输入权限描述"))); tab.Buttons.Add(CommonExt.AddButton("butSaveEdit", GetLangStr("PrivManager13", "保存"), "Disk", "PrivManager.InfoSave()")); tab.Buttons.Add(CommonExt.AddButton("butCancelEdit", GetLangStr("PrivManager49", "取消"), "Cancel", window.ClientID + ".hide()")); tab.Listeners.ClientValidation.Handler = "butSaveEdit.setDisabled(!valid);"; window.Items.Add(tab); window.Render(this.Form); window.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("PrivManager.aspx-AddWindow", ex.Message + ";" + ex.StackTrace, "AddWindow has an exception"); } }
/// <summary> /// 显示注册窗体 /// </summary> private void AddWindow() { Window window = new Window(); window.ID = "UserAdd"; window.Title = GetLangStr("TGSUserManager51", "用户注册"); window.Width = Unit.Pixel(400); window.Height = Unit.Pixel(260); window.Modal = true; window.Maximizable = false; window.Resizable = false; window.Hidden = true; window.AutoLoad.Mode = LoadMode.Merge; window.Layout = "FitLayout"; Ext.Net.FormPanel tab = new Ext.Net.FormPanel(); tab.MonitorValid = true; tab.Padding = 20; tab.Height = 220; TextField txtUserId = CommonExt.AddTextField("txtAUserID", GetLangStr("TGSUserManager52", "用户编号")); txtUserId.Text = tgsPproperty.GetMinRecordId(); txtUserId.Disabled = true; tab.Items.Add(txtUserId); TextField txtUserName = CommonExt.AddTextField("txtAUserName", GetLangStr("TGSUserManager53", "用户名"), false, ""); txtUserName.Width = Unit.Pixel(300); tab.Items.Add(txtUserName); tab.Items.Add(CommonExt.AddTextFieldPassword("txtAPassWord", GetLangStr("TGSUserManager54", "密码"), false)); tab.Items.Add(CommonExt.AddTextFieldPassword_Confirm("txtAConfirmPassWord", GetLangStr("TGSUserManager46", "重复密码"), false, "txtAPassWord")); tab.Buttons.Add(CommonExt.AddButton("butSaveEdit", GetLangStr("TGSUserManager56", "保存"), "Disk", "UserManager.InfoSave()")); tab.Buttons.Add(CommonExt.AddButton("butCancelEdit", GetLangStr("TGSUserManager57", "取消"), "Cancel", window.ClientID + ".hide()")); tab.Listeners.ClientValidation.Handler = "butSaveEdit.setDisabled(!valid);"; window.Items.Add(tab); window.Render(this.Form); window.Show(); }
/// <summary> /// /// </summary> /// <param name="surl1"></param> /// <param name="surl2"></param> // protected void ApplyImage(string surl1, string surl2) // { // try // { // var tpl = new XTemplate { ID = "Template1" }; // if (surl1 != string.Empty || surl2 != string.Empty) // { // tpl.Html = @"<div class=""details""> // <tpl for="".""> // <center> // <img src=""{url1}"" onload=""resizeimg(this);"" alt=""车辆图片(双击图片进行放大)"" onDblClick=""OpenPicPage(this.src)""; /> // <img src=""{url2}"" onload=""resizeimg(this);"" alt=""车辆图片(双击图片进行放大)"" onDblClick=""OpenPicPage(this.src)"";/> // </center> // </tpl> // </div>"; // tpl.Overwrite(this.ImagePanel, new // { // url1 = surl1, // url2 = surl2 // }); // } // else // { // tpl.Html = @"<div class=""details""> // <tpl for="".""> // <center> // <img src=""{url1}"" onload=""resizeimg(this);"" /> // <img src=""{url2}"" onload=""resizeimg(this);"" /> // </center> // </tpl> // </div>"; // tpl.Overwrite(this.ImagePanel, new // { // url1 = surl1, // url2 = surl2 // }); // } // tpl.Render(); // } // catch (Exception ex) // { // ILog.WriteErrorLog(ex); // logManager.InsertLogError("FlowMonitor.aspx-ApplyImage", ex.Message, "ApplyImage has an exception"); // } // } /// <summary> /// /// </summary> /// <param name="sdata"></param> private void AddWindow(string sdata) { try { Window win = new Window(); win.ID = "Window1"; win.Title = "报警详细信息"; win.Icon = Icon.Application; win.Width = Unit.Pixel(800); win.Height = Unit.Pixel(490); win.Plain = true; win.Border = false; win.BodyBorder = false; win.Collapsible = true; TabPanel center = new TabPanel(); center.ID = "CenterPanel"; center.ActiveTabIndex = 0; Ext.Net.Panel tab2 = new Ext.Net.Panel(); tab2.ID = "Tab2"; tab2.Title = "报警信息"; tab2.Border = false; tab2.BodyStyle = "padding:6px;"; Container container = new Container(); container.Layout = "Column"; container.Height = 130; Container container1 = new Container(); container1.LabelAlign = LabelAlign.Left; container1.Layout = "Form"; container1.ColumnWidth = 0.35; container1.Items.Add(CommonExt.AddTextField("txtcxkk", "报警卡口", Bll.Common.GetdatabyField(sdata, "col1"))); container1.Items.Add(CommonExt.AddTextField("txtbjyz", "报警阈值(%)", Bll.Common.GetdatabyField(sdata, "col6"))); container1.Items.Add(CommonExt.AddTextField("txtpzsj", "配置时间", Bll.Common.GetdatabyField(sdata, "col11", ""))); Container container2 = new Container(); container2.LabelAlign = LabelAlign.Left; container2.Layout = "Form"; container2.ColumnWidth = 0.3; container2.Items.Add(CommonExt.AddTextField("txttjzq", "统计周期", Bll.Common.GetdatabyField(sdata, "col5"))); container2.Items.Add(CommonExt.AddTextField("txtkkpzr", "卡口配置人", Bll.Common.GetdatabyField(sdata, "col9"))); container2.Items.Add(CommonExt.AddComboBox("cmbcljg", "处理结果", "Storecljg", "请选择...", false, 224, 105, Bll.Common.GetdatabyField(sdata, "col10"))); Container container3 = new Container(); container3.LabelAlign = LabelAlign.Left; container3.Layout = "Form"; container3.ColumnWidth = 0.4; container3.Items.Add(CommonExt.AddTextField("txtbjsj", "报警时间", Bll.Common.GetdatabyField(sdata, "col4", ""))); container3.Items.Add(CommonExt.AddTextField("txtkkfx", "卡口方向", Bll.Common.GetdatabyField(sdata, "col14"))); container3.Items.Add(CommonExt.AddButton("btnSavecljg", "保存", "Disk", "Ovel.Savecljg(" + Bll.Common.GetdatabyField(sdata, "col0") + ")")); //container3.Items.Add(CommonExt.AddButton("butCancel", "退出", "Cancel", win.ClientID + ".hide()")); container.Items.Add(container1); container.Items.Add(container2); container.Items.Add(container3); tab2.Items.Add(container); center.Items.Add(tab2); //Ext.Net.Panel south = new Ext.Net.Panel(); //south.ID = "SouthPanel"; //south.Title = "图片信息"; //south.Height = Unit.Pixel(380); //south.BodyStyle = "padding:6px;"; //string img1 = Bll.Common.GetdatabyField(sdata, "col14"); //string img2 = Bll.Common.GetdatabyField(sdata, "col15"); //south.Html = GetHtml(img1, img2); BorderLayout layout = new BorderLayout(); layout.South.Split = true; layout.South.Collapsible = true; layout.Center.Items.Add(center); //layout.South.Items.Add(south); win.Items.Add(layout); win.Render(this.Form); win.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("FlowMonitor.aspx-AddWindow", ex.Message, "AddWindow has an exception"); } }
/// <summary> /// /// </summary> /// <param name="sdata"></param> private void AddWindow(string sdata) { try { Window win = new Window(); win.ID = "Window1"; win.Title = GetLangStr("AlarmMonitor29", "报警详细信息"); win.Icon = Icon.Application; win.Width = Unit.Pixel(800); win.Height = Unit.Pixel(630); win.Plain = true; win.Border = false; win.BodyBorder = false; win.Collapsible = true; TabPanel center = new TabPanel(); center.ID = "CenterPanel"; center.ActiveTabIndex = 0; Ext.Net.Panel tab2 = new Ext.Net.Panel(); tab2.ID = "Tab2"; tab2.Title = GetLangStr("AlarmMonitor30", "报警信息"); tab2.Border = false; tab2.BodyStyle = "padding:6px;"; Container container = new Container(); container.Layout = "Column"; container.Height = 128; Container container1 = new Container(); container1.LabelAlign = LabelAlign.Left; container1.Layout = "Form"; container1.ColumnWidth = 0.25; container1.Items.Add(CommonExt.AddTextField("txthphm", GetLangStr("AlarmMonitor7", "号牌号码"), Bll.Common.GetdatabyField(sdata, "col3"))); container1.Items.Add(CommonExt.AddTextField("txtbjlx", GetLangStr("AlarmMonitor12", "报警类型"), Bll.Common.GetdatabyField(sdata, "col19"))); container1.Items.Add(CommonExt.AddTextField("txtcdbh", GetLangStr("AlarmMonitor31", "布控原因"), Bll.Common.GetdatabyField(sdata, "col27"))); container1.Items.Add(CommonExt.AddTextField("txtcjjg", GetLangStr("AlarmMonitor32", "有效时间"), Bll.Common.GetdatabyField(sdata, "col29"))); container1.ColumnWidth = 0.3; //container1.Items.Add(CommonExt.AddComboBox("cmbClbj", "处理结果", "StoreClbj", "请选择...", false, 224, 105, Bll.Common.GetdatabyField(sdata, "col17"))); Container container2 = new Container(); container2.LabelAlign = LabelAlign.Left; container2.Layout = "Form"; container2.ColumnWidth = 0.3; container2.Items.Add(CommonExt.AddTextField("txthpzl", GetLangStr("AlarmMonitor8", "号牌种类"), Bll.Common.GetdatabyField(sdata, "col5"))); container2.Items.Add(CommonExt.AddTextField("txtkkmc", GetLangStr("AlarmMonitor6", "报警卡口"), Bll.Common.GetdatabyField(sdata, "col2"))); container2.Items.Add(CommonExt.AddTextField("txtbkr", GetLangStr("AlarmMonitor33", "布控人员"), Bll.Common.GetdatabyField(sdata, "col26"))); container2.Items.Add(CommonExt.AddTextField("txtbjyy", GetLangStr("AlarmMonitor13", "报警原因"), Bll.Common.GetdatabyField(sdata, "col20"))); Container container3 = new Container(); container3.LabelAlign = LabelAlign.Left; container3.Layout = "Form"; container3.ColumnWidth = 0.45; container3.Items.Add(CommonExt.AddTextField("txtbjsj", GetLangStr("AlarmMonitor9", "报警时间"), Bll.Common.GetdatabyField(sdata, "col6"))); container3.Items.Add(CommonExt.AddTextField("txtfxmc", GetLangStr("AlarmMonitor34", "布控类型"), Bll.Common.GetdatabyField(sdata, "col28"))); container3.Items.Add(CommonExt.AddTextField("txtbkrbh", GetLangStr("AlarmMonitor35", "布控人电话"), Bll.Common.GetdatabyField(sdata, "col25"))); container3.Items.Add(CommonExt.AddComboBox("cmbClbj", GetLangStr("AlarmMonitor16", "处理结果"), "StoreClbj", GetLangStr("AlarmMonitor36", "请选择..."), false, 224, 105, Bll.Common.GetdatabyField(sdata, "col24"))); //container3.Items.Add(CommonExt.AddButton("butCancel", "退出", "Cancel", win.ClientID + ".hide()")); Toolbar toolbar = new Toolbar(); toolbar.ID = "tool1"; toolbar.Items.Add(new ToolbarFill()); toolbar.Items.Add(CommonExt.AddButton("btnSaveClbj", GetLangStr("AlarmMonitor37", "保存"), "Disk", "Ovel.SaveClbj(" + Bll.Common.GetdatabyField(sdata, "col0") + ")")); container.Items.Add(container1); container.Items.Add(container2); container.Items.Add(container3); tab2.Items.Add(container); tab2.Items.Add(toolbar); center.Items.Add(tab2); Ext.Net.Panel south = new Ext.Net.Panel(); south.ID = "SouthPanel"; south.Title = GetLangStr("AlarmMonitor4", "图片信息"); south.Height = Unit.Pixel(380); south.BodyStyle = "padding:6px;"; string img1 = Bll.Common.GetdatabyField(sdata, "col14"); string img2 = Bll.Common.GetdatabyField(sdata, "col15"); south.Html = GetHtml(img1, img2); BorderLayout layout = new BorderLayout(); layout.South.Split = true; layout.South.Collapsible = true; layout.Center.Items.Add(center); layout.South.Items.Add(south); win.Items.Add(layout); win.Render(this.Form); win.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("AlarmMonitor.aspx-AddWindow", ex.Message + ";" + ex.StackTrace, "AddWindow has an exception"); } }
/// <summary> /// 添加车道信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void AddLane(object sender, DirectEventArgs e) { if (string.IsNullOrEmpty(HideStation.Value.ToString())) { Notice("提示", "请选择左侧监测点!"); return; } try { Window window = new Window(); window.ID = "LimitAdd"; window.Title = GetLangStr("TGSLimitSpeed36", "限速设置"); window.Width = Unit.Pixel(400); window.Height = Unit.Pixel(320); window.Maximizable = false; window.Resizable = false; window.Hidden = true; window.Layout = "Fit"; window.AutoLoad.Mode = LoadMode.Merge; Ext.Net.FormPanel tab = new Ext.Net.FormPanel(); tab.Title = GetLangStr("TGSLimitSpeed20", "限速信息"); tab.Header = false; tab.Padding = 5; tab.DefaultAnchor = "98%"; tab.AnchorVertical = "100%"; tab.MonitorValid = true; tab.Listeners.ClientValidation.Handler = "butSaveLimit.setDisabled(!valid);"; /* switch (HideLimitType.Value as string) * { * case "1": * tab.Items.Add(CommonExt.AddComboBox("cmdLDirection", GetLangStr("TGSLimitSpeed21", "所属方向"), "StoreDirDev", GetLangStr("TGSLimitSpeed22", "请选择所属方向"), true)); * tab.Items.Add(CommonExt.AddTextField("txtLLane", GetLangStr("TGSLimitSpeed23", "车道编号"))); * X.GetCmp<ComboBox>("cmdLDirection").Hidden = true; * X.GetCmp<TextField>("txtLLane").Hidden = false; * break; * * case "2": * tab.Items.Add(CommonExt.AddComboBox("cmdLDirection", GetLangStr("TGSLimitSpeed21", "所属方向"), "StoreDirDev", GetLangStr("TGSLimitSpeed22", "请选择所属方向"), false)); * tab.Items.Add(CommonExt.AddTextField("txtLLane", GetLangStr("TGSLimitSpeed23", "车道编号"))); * X.GetCmp<TextField>("txtLLane").Hidden = false; * * break; * * case "3": * tab.Items.Add(CommonExt.AddComboBox("cmdLDirection", GetLangStr("TGSLimitSpeed21", "所属方向"), "StoreDirDev", GetLangStr("TGSLimitSpeed22", "请选择所属方向"), false)); * tab.Items.Add(CommonExt.AddTextField("txtLLane", GetLangStr("TGSLimitSpeed23", "车道编号"), false, "例:[1]")); * break; * * default: * tab.Items.Add(CommonExt.AddTextField("txtLLane", GetLangStr("TGSLimitSpeed23", "车道编号"), false, "例:[1]")); * break; * } */ tab.Items.Add(CommonExt.AddTextField("txtLLane", GetLangStr("TGSLimitSpeed23", "车道编号"), false, "例:[1]")); tab.Items.Add(CommonExt.AddTextField("sfEBSpeed", GetLangStr("TGSLimitSpeed11", "大车限速"), false, "例:[60]")); tab.Items.Add(CommonExt.AddTextField("sfESSpeed", GetLangStr("TGSLimitSpeed12", "小车限速"), false, "例:[80]")); tab.Items.Add(CommonExt.AddTextField("sfEBASpeed", GetLangStr("TGSLimitSpeed13", "大车标牌限速"), false, "例:[65]")); tab.Items.Add(CommonExt.AddTextField("sfESASpeed", GetLangStr("TGSLimitSpeed14", "小车标牌限速"), false, "例:[85]")); tab.Items.Add(CommonExt.AddTextField("sfEBLSpeed", GetLangStr("TGSLimitSpeed15", "大车限低速"), false, "例:[40]")); tab.Items.Add(CommonExt.AddTextField("sfESLSpeed", GetLangStr("TGSLimitSpeed16", "小车限低速"), false, "例:[50]")); window.Buttons.Add(CommonExt.AddButton("butSaveLimit", GetLangStr("TGSLimitSpeed24", "保存"), "Disk", "TGSLimitSpeed.InfoLimitSave()")); window.Buttons.Add(CommonExt.AddButton("butCancelLimit", GetLangStr("TGSLimitSpeed25", "取消"), "Cancel", window.ClientID + ".hide()")); X.GetCmp <TextField>("sfEBSpeed").Text = "80"; X.GetCmp <TextField>("sfESSpeed").Text = "80"; X.GetCmp <TextField>("sfEBASpeed").Text = "65"; X.GetCmp <TextField>("sfESASpeed").Text = "85"; X.GetCmp <TextField>("sfEBLSpeed").Text = "10"; X.GetCmp <TextField>("sfESLSpeed").Text = "10"; X.GetCmp <TextField>("sfEBASpeed").Hidden = true; X.GetCmp <TextField>("sfESASpeed").Hidden = true; window.Items.Add(tab); window.Render(this.Form); window.Show(); } catch (Exception ex) { ILog.WriteErrorLog(ex); logManager.InsertLogError("TGSLimitSpeed.aspx-AddLane", ex.Message + ";" + ex.StackTrace, "AddLane has an exception"); } }