/// <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>
        /// <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)""; />&nbsp;&nbsp;
//                        <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);""  />&nbsp;&nbsp;
//                        <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");
            }
        }