/// <summary>
 /// 添加连接信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void ButDevAdd_Click(object sender, DirectEventArgs e)
 {
     try
     {
         HidSaveFlag.Value         = "1";
         Button5.Hidden            = false;
         Window4.Title             = GetLangStr("CCTVStationManager48", "添加连接设备");
         CmbDevice.AllowBlank      = false;
         CmbStationType.AllowBlank = false;
         CmbStationType.Reset();
         TxtQStationName.Reset();
         CmbDevice.Reset();
         CmbStation.Reset();
         MNumChannel.Reset();
         RNumChannel.Reset();
         CmbDirection.Reset();
         CmbDeviceRecord.Reset();
         TxtMasterId.Reset();
         CmbIsuse.Reset();
         ButQuery.Hidden        = false;
         CmbDeviceRecord.Hidden = false;
         CmbStationType.Hidden  = false;
         TxtQStationName.Hidden = false;
         CmbDevice.Hidden       = false;
         CmbStation.Hidden      = false;
         CompositeField1.Hidden = false;
         Window4.Show();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("CCTVStationManager.aspx-ButDevAdd_Click", ex.Message + ";" + ex.StackTrace, "ButDevAdd_Click has an exception");
     }
 }
 protected void ButDevAdd_Click(object sender, DirectEventArgs e)
 {
     try
     {
         HidSaveFlag.Value = "1";
         Button5.Hidden    = false;
         Text_SBBH.Text    = tgsPproperty.GetRecordId();
         Cob_SBLX.Reset();
         Text_SBMC.Reset();
         Cob_SBXH.Reset();
         Cob_SFSY.Reset();
         Text_IP.Reset();
         Text_DK.Reset();
         Text_TYDS.Reset();
         Cob_TXLX.Reset();
         Cob_TXXY.Reset();
         Text_YHM.Reset();
         Text_MM.Reset();
         Cob_JSDW.Reset();
         Cob_ZZCS.Reset();
         Cob_WHDW.Reset();
         Window4.Show();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("ServerManager.aspx-ButDevAdd_Click", ex.Message + ";" + ex.StackTrace, "ButDevAdd_Click has an exception");
     }
 }
예제 #3
0
        /// <summary>
        /// 关联监测点窗口
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <returns></returns>
        protected void btnAddStation_Click(object sender, DirectEventArgs e)
        {
            try
            {
                RowSelectionModel sm = this.GridKeyRoad.SelectionModel.Primary as RowSelectionModel;
                //string Id = HideRoad.Value as string;

                if (sm.SelectedRow != null)
                {
                    GridQueryStation.RemoveAll();
                    GridBindStation.RemoveAll();
                    StoreStationType.DataSource = tgsPproperty.GetStationTypeInfo();
                    StoreStationType.DataBind();
                    StoreBindStation.DataSource = new DataTable();
                    StoreBindStation.DataSource = dtBind;
                    StoreBindStation.DataBind();
                    TxtStationName.Reset();
                    CmbStationType.Reset();
                    StoreQueryStation.DataSource = new DataTable();
                    StoreQueryStation.DataBind();
                    Window4.Show();
                }
                else
                {
                    Notice(GetLangStr("KeyRoadManager48", "信息提示"), GetLangStr("KeyRoadManager49", "请选择道路信息!"));
                }
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("KeyRoadManager.aspx-btnAddStation_Click", ex.Message + ";" + ex.StackTrace, "btnAddStation_Click has an exception");
            }
        }
        private void taal_Click(object sender, RoutedEventArgs e)
        {
            Window4 wiskunde = new Window4();

            wiskunde.Show();
            this.Close();;
        }
예제 #5
0
        void NextExample(object parameter)
        {
            var win = new Window4 {
                DataContext = new ViewModelWindow4()
            };

            win.Show();

            if (CloseWindowEvent != null)
            {
                CloseWindowEvent(this, null);
            }
        }
        protected void Dialysis_13(object sender, DirectEventArgs e)
        {
            _PAT_IC   = e.ExtraParams["pat_ic"].ToString();
            _PIF_NAME = e.ExtraParams["pif_name"].ToString();
            string USER_ID  = Session["USER_ID"].ToString();
            string usertype = Session["USER_RIGHT"].ToString();

            Window4.Show();
            Window4.Loader.SuspendScripting();
            Window4.Loader.Url            = "Dialysis_13_new.aspx?PAT_IC=" + _PAT_IC + "&PAT_NAME=" + _PIF_NAME + "&USER_ID=" + USER_ID + "&USER_TYPE=" + usertype;
            Window4.Loader.DisableCaching = true;
            Window4.LoadContent();
        }
예제 #7
0
    void Start()
    {
        Application.targetFrameRate = 60;
        Stage.inst.onKeyDown.Add(OnKeyDown);

        _mainView = this.GetComponent <UIPanel>().ui;

        _testWin = new Window4();

        _mainView.GetChild("n0").onClick.Add(() => { _testWin.Show(); });

        StartCoroutine(WaitSomeTime());
    }
예제 #8
0
    void Start()
    {
        Application.targetFrameRate = 60;
        Stage.inst.onKeyDown.Add(OnKeyDown);

        _mainView = this.GetComponent<UIPanel>().ui;

        _testWin = new Window4();

        _mainView.GetChild("n0").onClick.Add(() => {  _testWin.Show(); });

        StartCoroutine(WaitSomeTime());
    }
        public void RowDblClickShow()
        {
            try
            {
                RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel;
                if (sm.SelectedRow != null)
                {
                    string id = sm.SelectedRow.RecordID;
                    Window4.Title = GetLangStr("DeviceManager81", "查看设备信息");
                    DataTable dt = deviceManager.GetDeviceInfo("device_id='" + id + "'");
                    if (dt != null)
                    {
                        if (dt.Rows.Count > 0)
                        {
                            Text_SBBH.Text  = dt.Rows[0]["DEVICE_ID"].ToString();
                            Cob_SBLX.Value  = dt.Rows[0]["DEVICE_TYPE_ID"].ToString();
                            Text_SBMC.Value = dt.Rows[0]["DEVICE_NAME"].ToString();
                            Cob_SBXH.Value  = dt.Rows[0]["DEVICE_MODE_ID"].ToString();
                            Cob_SFSY.Value  = dt.Rows[0]["ISUSE"].ToString();
                            Text_IP.Text    = dt.Rows[0]["IPADDRESS"].ToString();
                            Text_DK.Text    = dt.Rows[0]["PORT"].ToString();
                            Text_TYDS.Text  = dt.Rows[0]["CHANNELS"].ToString();
                            Cob_TXLX.Text   = dt.Rows[0]["COMM_TYPE_ID"].ToString();
                            Cob_TXXY.Text   = dt.Rows[0]["PROTOCOL_ID"].ToString();
                            Text_YHM.Text   = dt.Rows[0]["USERNAME"].ToString();
                            Text_MM.Text    = dt.Rows[0]["PASSWORD"].ToString();
                            Text_Ledth.Text = dt.Rows[0]["DEV_LENGTH"].ToString();
                            Text_Width.Text = dt.Rows[0]["DEV_WIDTH"].ToString();
                            Text_CKH.Text   = dt.Rows[0]["PORT_NUM"].ToString();
                            Text_CKCS.Text  = dt.Rows[0]["PORT_PARAM"].ToString();
                            Cob_JSDW.Value  = dt.Rows[0]["BUILD_ID"].ToString();
                            Cob_ZZCS.Value  = dt.Rows[0]["MAKE_COMPANY_ID"].ToString();;
                            Cob_WHDW.Value  = dt.Rows[0]["MAINTAIN_COMPANY_ID"].ToString();
                            Button5.Hidden  = true;
                            sbmc            = dt.Rows[0]["DEVICE_NAME"].ToString();

                            Window4.Show();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("DeviceManager.aspx-RowDblClickShow", ex.Message + ";" + ex.StackTrace, "RowDblClickShow has an exception");
            }
        }
예제 #10
0
    void Start()
    {
        Application.targetFrameRate = 60;
        GRoot.inst.SetContentScaleFactor(1136, 640);
        Stage.inst.onKeyDown.Add(OnKeyDown);

        UIPackage.AddPackage("UI/ModalWaiting");
        UIConfig.globalModalWaiting = UIPackage.GetItemURL("ModalWaiting", "GlobalModalWaiting");
        UIConfig.windowModalWaiting = UIPackage.GetItemURL("ModalWaiting", "WindowModalWaiting");

        UIObjectFactory.SetPackageItemExtension(UIPackage.GetItemURL("ModalWaiting", "GlobalModalWaiting"), typeof(GlobalWaiting));

        _mainView = UIPackage.CreateObject("ModalWaiting", "Main").asCom;
        _mainView.SetSize(GRoot.inst.width, GRoot.inst.height);
        _mainView.AddRelation(GRoot.inst, RelationType.Size);
        GRoot.inst.AddChild(_mainView);

        _testWin = new Window4();

        _mainView.GetChild("n0").onClick.Add(() => { _testWin.Show(); });

        StartCoroutine(WaitSomeTime());
    }
    void Start()
    {
        Application.targetFrameRate = 60;
        GRoot.inst.SetContentScaleFactor(1136, 640);
        Stage.inst.onKeyDown.Add(OnKeyDown);

        UIPackage.AddPackage("UI/ModalWaiting");
        UIConfig.globalModalWaiting = UIPackage.GetItemURL("ModalWaiting", "GlobalModalWaiting");
        UIConfig.windowModalWaiting = UIPackage.GetItemURL("ModalWaiting", "WindowModalWaiting");

        UIObjectFactory.SetPackageItemExtension(UIPackage.GetItemURL("ModalWaiting", "GlobalModalWaiting"), typeof(GlobalWaiting));

        _mainView = UIPackage.CreateObject("ModalWaiting", "Main").asCom;
        _mainView.SetSize(GRoot.inst.width, GRoot.inst.height);
        _mainView.AddRelation(GRoot.inst, RelationType.Size);
        GRoot.inst.AddChild(_mainView);

        _testWin = new Window4();

        _mainView.GetChild("n0").onClick.Add(() => { _testWin.Show(); });

        StartCoroutine(WaitSomeTime());
    }
        public void Modify()
        {
            try
            {
                RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel;
                if (sm.SelectedRow != null)
                {
                    string id = sm.SelectedRow.RecordID;
                    HidSaveFlag.Value         = "2";
                    Window4.Title             = GetLangStr("CCTVStationManager73", "修改连接设备信息");
                    CmbDevice.AllowBlank      = true;
                    CmbStationType.AllowBlank = true;
                    HiddenId.Value            = id;
                    CmbStationType.Reset();
                    TxtQStationName.Reset();
                    CmbDevice.Reset();
                    CmbDeviceRecord.Reset();
                    TxtMasterId.Reset();
                    CmbDirection.Reset();
                    CmbStation.Reset();
                    MNumChannel.Reset();
                    RNumChannel.Reset();;
                    CmbIsuse.Reset();
                    TxtMasterId.Reset();
                    ButQuery.Hidden        = true;
                    CmbStationType.Hidden  = true;
                    TxtQStationName.Hidden = true;
                    CmbDevice.Hidden       = true;
                    CmbDeviceRecord.Hidden = true;
                    CmbStation.Hidden      = true;
                    CompositeField1.Hidden = true;

                    //StringBuilder mySqlBuild = new StringBuilder("STATION_ID,MCHANNELID,RCHANNELID,MASTERID,ISUSE,DIRECTION_ID");
                    //string mySql = mySqlBuild.ToString();

                    DataTable dt2 = deviceManager.GetCctvSetting("*", " id = '" + id + "'");

                    if (dt2 != null)
                    {
                        if (dt2.Rows.Count > 0)
                        {
                            this.StoreDirection.DataSource = tgsPproperty.GetDirectionInfoByStation(dt2.Rows[0]["col1"].ToString());
                            this.StoreDirection.DataBind();
                            MNumChannel.Text = dt2.Rows[0]["col5"].ToString();
                            RNumChannel.Text = dt2.Rows[0]["col18"].ToString();
                            TxtMasterId.Text = dt2.Rows[0]["col31"].ToString();

                            CmbIsuse.Value     = dt2.Rows[0]["col32"].ToString();
                            CmbDirection.Value = dt2.Rows[0]["col3"].ToString();
                        }
                    }
                    Button5.Hidden = false;
                    DataRow[] dr = dt2.Select("col0='" + id + "'");
                    jktdh = dr[0]["col5"].ToString();
                    hftdh = dr[0]["col18"].ToString();
                    ssfx  = dr[0]["col4"].ToString();
                    jzbh  = dr[0]["col31"].ToString();
                    DataRow[] dr1 = dtsfsy.Select("col0='" + dt2.Rows[0]["col32"].ToString() + "'");
                    sgqy = dr1[0]["col1"].ToString();
                    Window4.Show();
                }
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("CCTVStationManager.aspx-Modify", ex.Message + ";" + ex.StackTrace, "Modify has an exception");
            }
        }
        public void Modify()
        {
            try
            {
                RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel;
                if (sm.SelectedRow != null)
                {
                    string id = sm.SelectedRow.RecordID;
                    HidSaveFlag.Value = "2";
                    Window4.Title     = GetLangStr("ServerManager63", "修改服务器信息");
                    HiddenId.Value    = id;
                    DataTable dt = deviceManager.GetServerInfo("server_id='" + id + "'");
                    if (dt != null)
                    {
                        if (dt.Rows.Count > 0)
                        {
                            Text_SBBH.Text  = dt.Rows[0]["SERVER_ID"].ToString();
                            Cob_SBLX.Value  = dt.Rows[0]["SERVER_TYPE_ID"].ToString();
                            Text_SBMC.Value = dt.Rows[0]["SERVER_NAME"].ToString();

                            DataTable da = deviceManager.GetServerTypeMode("device_type_id='" + Cob_SBLX.Value.ToString() + "'");
                            Cob_SBXH.Reset();
                            this.StoreSBXH.DataSource = da;
                            this.StoreSBXH.DataBind();
                            Cob_SBXH.Value = dt.Rows[0]["SERVER_MODE_ID"].ToString();
                            Cob_SFSY.Value = dt.Rows[0]["ISUSE"].ToString();
                            Text_IP.Text   = dt.Rows[0]["IPADDRESS"].ToString();
                            Text_DK.Text   = dt.Rows[0]["PORT"].ToString();
                            Text_TYDS.Text = dt.Rows[0]["CHANNELS"].ToString();
                            Cob_TXLX.Text  = dt.Rows[0]["COMM_TYPE_ID"].ToString();
                            Cob_TXXY.Text  = dt.Rows[0]["PROTOCOL_ID"].ToString();
                            Text_YHM.Text  = dt.Rows[0]["USERNAME"].ToString();
                            Text_MM.Text   = dt.Rows[0]["PASSWORD"].ToString();
                            Cob_JSDW.Value = dt.Rows[0]["BUILD_ID"].ToString();
                            Cob_ZZCS.Value = dt.Rows[0]["MAKE_COMPANY_ID"].ToString();;
                            Cob_WHDW.Value = dt.Rows[0]["MAINTAIN_COMPANY_ID"].ToString();
                            Button5.Hidden = false;
                            Window4.Show();
                            if (dtServer != null)
                            {
                                DataRow[] rows = dtServer.Select("col0='" + dt.Rows[0]["SERVER_TYPE_ID"].ToString() + "'");
                                if (rows.Length > 0)
                                {
                                    fwqlx = rows[0]["col1"].ToString();
                                }
                            }

                            if (dtTxlx != null)
                            {
                                DataRow[] dr = dtTxlx.Select("col1='" + dt.Rows[0]["COMM_TYPE_ID"].ToString() + "'");
                                if (dr.Length > 0)
                                {
                                    txlx = dr[0]["col2"].ToString();
                                }
                            }

                            if (dtTxxy != null)
                            {
                                DataRow[] dd = dtTxxy.Select("col1='" + dt.Rows[0]["PROTOCOL_ID"].ToString() + "'");
                                if (dd.Length > 0)
                                {
                                    txxy = dd[0]["col2"].ToString();
                                }
                            }

                            if (dtSfsy != null)
                            {
                                DataRow[] dl = dtSfsy.Select("col1='" + dt.Rows[0]["ISUSE"].ToString() + "'");
                                if (dl.Length > 0)
                                {
                                    sfsy = dl[0]["col2"].ToString();
                                }
                            }
                            fwqmc  = Text_SBMC.Text;
                            fwqxh  = da.Rows[0]["col3"].ToString();
                            fwqip  = Text_IP.Text;
                            fwqdk  = Text_DK.Text;
                            yhm    = Text_YHM.Text;
                            mm     = Text_MM.Text;
                            fwqtds = Text_TYDS.Text;
                            jsdw   = Cob_JSDW.SelectedItem.Text;
                            whdw   = Cob_WHDW.SelectedItem.Text;
                            sbzzcs = Cob_ZZCS.SelectedItem.Text;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("ServerManager.aspx-Modify", ex.Message + ";" + ex.StackTrace, "Modify has an exception");
            }
        }
        public void Modify()
        {
            try
            {
                Ext.Net.SelectedListItem ss;
                RowSelectionModel        sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel;
                if (sm.SelectedRow != null)
                {
                    string id = sm.SelectedRow.RecordID;
                    HidSaveFlag.Value         = "2";
                    Window4.Title             = GetLangStr("TGSStationManager64", "修改连接设备信息");
                    CmbDevice.AllowBlank      = true;
                    CmbStationType.AllowBlank = true;
                    HiddenId.Value            = id;
                    CmbStationType.Reset();
                    MulCmbAppFlag.Reset();
                    TxtQStationName.Reset();
                    CmbDevice.Reset();
                    CmbDirection.Reset();
                    CmbStation.Reset();
                    NumChannel.Reset();
                    CmbIsSacn.Reset();
                    TxtImagePath.Reset();
                    TxtIpaddress.Reset();
                    NumPort.Reset();
                    CmbIsuse.Reset();
                    ButQuery.Hidden        = true;
                    CmbStationType.Hidden  = true;
                    TxtQStationName.Hidden = true;
                    CmbDevice.Hidden       = true;
                    CmbStation.Hidden      = true;
                    CompositeField1.Hidden = true;
                    DataTable dt2 = deviceManager.GetTGSSetting("*", " id = '" + id + "'");
                    MulCmbAppFlag.SelectedItems.Clear();
                    if (dt2 != null)
                    {
                        if (dt2.Rows.Count > 0)
                        {
                            this.StoreDirection.DataSource = tgsPproperty.GetDirectionInfoByStation(dt2.Rows[0]["col2"].ToString());
                            this.StoreDirection.DataBind();
                            NumChannel.Text   = dt2.Rows[0]["col8"].ToString();
                            CmbIsSacn.Value   = dt2.Rows[0]["col10"].ToString();
                            TxtImagePath.Text = dt2.Rows[0]["col9"].ToString();
                            TxtIpaddress.Text = dt2.Rows[0]["col14"].ToString();
                            string port = dt2.Rows[0]["col13"].ToString();
                            if (!string.IsNullOrEmpty(port))
                            {
                                NumPort.Text = dt2.Rows[0]["col13"].ToString();
                            }
                            CmbIsuse.Value     = dt2.Rows[0]["col15"].ToString();
                            CmbDirection.Value = dt2.Rows[0]["col16"].ToString();
                            string   appflag  = dt2.Rows[0]["col20"].ToString();
                            string[] appflags = appflag.Split(',');
                            for (int i = 0; i < appflags.Length; i++)
                            {
                                Ext.Net.SelectedListItem si = new SelectedListItem(appflags[i]);
                                ss = si;
                                MulCmbAppFlag.SelectedItems.Add(si);
                            }
                            MulCmbAppFlag.Render();
                        }
                    }
                    DataRow[] dr = dtsbmc.Select("col0='" + id + "'");
                    sbtd = NumChannel.Text;

                    DataRow[] drs = dtsfqy.Select("col0='" + dt2.Rows[0]["col10"].ToString() + "'");
                    //CmbIsSacn.SelectedItem.Text;
                    sfwjsm = drs[0]["col1"].ToString();
                    DataRow[] dr2 = dttype.Select("col0='" + dt2.Rows[0]["col15"].ToString() + "'");
                    sfsy   = dr2[0]["col1"].ToString();
                    tpbclj = TxtImagePath.Text;
                    bdljip = TxtIpaddress.Text;
                    bdljdk = NumPort.Text;
                    ssfx   = dt2.Rows[0]["col17"].ToString();
                    string sygzs = GetMultiCombo(MulCmbAppFlag.SelectedItems);
                    if (sygzs.Contains(","))
                    {
                        string[] sygz = sygzs.Split(',');
                        for (int i = 0; i < sygz.Length; i++)
                        {
                            DataRow[] dt3 = dtsygz.Select("col0='" + sygz[i] + "'");
                            sytrgz = sytrgz + "[" + dt3[0]["col1"].ToString() + "]";
                        }
                    }
                    else
                    {
                        DataRow[] dt3 = dtsygz.Select("col0='" + sygzs + "'");
                        sytrgz = sytrgz + "[" + dt3[0]["col1"].ToString() + "]";
                    }

                    //sytrgz = MulCmbAppFlag.Value.ToString();
                    Button5.Hidden = false;
                    Window4.Show();
                }
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("TGSStationManager.aspx-Modify", ex.Message + ";" + ex.StackTrace, "Modify  has an exception");
            }
        }
예제 #15
0
        private void buttonRed_Click(object sender, RoutedEventArgs e)
        {
            Window4 sW = new Window4();

            sW.Show();
        }
        public void Modify()
        {
            try
            {
                types = 1;
                RowSelectionModel sm = this.GridDeviceManager.SelectionModel.Primary as RowSelectionModel;
                if (sm.SelectedRow != null)
                {
                    string id = sm.SelectedRow.RecordID;
                    HidSaveFlag.Value = "2";
                    Window4.Title     = GetLangStr("DeviceManager82", "修改设备信息");
                    HiddenId.Value    = id;
                    DataTable dt = deviceManager.GetDeviceInfo("device_id='" + id + "'");
                    if (dt != null)
                    {
                        if (dt.Rows.Count > 0)
                        {
                            Text_SBBH.Text  = dt.Rows[0]["DEVICE_ID"].ToString();
                            Cob_SBLX.Value  = dt.Rows[0]["DEVICE_TYPE_ID"].ToString();
                            Text_SBMC.Value = dt.Rows[0]["DEVICE_NAME"].ToString();
                            DataTable da = deviceManager.GetDeviceTypeMode("device_type_id='" + dt.Rows[0]["DEVICE_TYPE_ID"].ToString() + "'");
                            this.StoreDeviceMode.DataSource = da;
                            this.StoreDeviceMode.DataBind();
                            Cob_SBXH.Value      = dt.Rows[0]["DEVICE_MODE_ID"].ToString();
                            Cob_SFSY.Value      = dt.Rows[0]["ISUSE"].ToString();
                            Text_IP.Text        = dt.Rows[0]["IPADDRESS"].ToString();
                            Text_DK.Text        = dt.Rows[0]["PORT"].ToString();
                            Text_TYDS.Text      = dt.Rows[0]["CHANNELS"].ToString();
                            Cob_TXLX.Text       = dt.Rows[0]["COMM_TYPE_ID"].ToString();
                            Cob_TXXY.Text       = dt.Rows[0]["PROTOCOL_ID"].ToString();
                            Text_YHM.Text       = dt.Rows[0]["USERNAME"].ToString();
                            Text_MM.Text        = dt.Rows[0]["PASSWORD"].ToString();
                            Text_Ledth.Text     = dt.Rows[0]["DEV_LENGTH"].ToString();
                            Text_Width.Text     = dt.Rows[0]["DEV_WIDTH"].ToString();
                            Text_CKH.Text       = dt.Rows[0]["PORT_NUM"].ToString();
                            Text_CKCS.Text      = dt.Rows[0]["PORT_PARAM"].ToString();
                            Cob_JSDW.Value      = dt.Rows[0]["BUILD_ID"].ToString();
                            Cob_ZZCS.Value      = dt.Rows[0]["MAKE_COMPANY_ID"].ToString();;
                            Cob_WHDW.Value      = dt.Rows[0]["MAINTAIN_COMPANY_ID"].ToString();
                            TxtDeviceIdExt.Text = dt.Rows[0]["DEVICE_IDEXT"].ToString();
                            Button5.Hidden      = false;
                            Window4.Show();

                            sbmc  = Text_SBMC.Text;
                            sblx  = Cob_SBLX.SelectedItem.Text;
                            kksb  = Cob_SBXH.SelectedItem.Text;
                            sfsy  = Cob_SFSY.SelectedItem.Text;
                            sbip  = Text_IP.Text;
                            sbdk  = Text_DK.Text;
                            sbtds = Text_TYDS.Text;
                            wbbh  = TxtDeviceIdExt.Text;
                            txlx  = Cob_TXLX.SelectedItem.Text;
                            txxy  = Cob_TXXY.SelectedItem.Text;
                            yhm   = Text_YHM.Text;
                            mm    = Text_MM.Text;
                            sbcd  = Text_Ledth.Text;
                            sbkd  = Text_Width.Text;
                            ckh   = Text_CKH.Text;
                            ckcs  = Text_CKCS.Text;
                            jsdw  = Cob_JSDW.SelectedItem.Text;
                            whdw  = Cob_WHDW.SelectedItem.Text;
                            sbzzs = Cob_ZZCS.SelectedItem.Text;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("DeviceManager.aspx-Modify", ex.Message + ";" + ex.StackTrace, "Modify has an exception");
            }
        }
예제 #17
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            Window4 win4 = new Window4();

            win4.Show();
        }