| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using System;
- using System.Collections.Generic;
- using System.Collections;
- using System.ComponentModel;
- using System.IO;
- using System.Diagnostics;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- using CoreFS.CA06;
- using Infragistics.Win.UltraWinMaskedEdit;
- using Infragistics.Win.UltraWinGrid;
- using Infragistics.Win;
- using Core.StlMes.Client.LgCommon;
- namespace Core.StlMes.Client.LgIntegrationQuery
- {
- public partial class frmDbMgLog : frmStyleBase
- {
- public frmDbMgLog()
- {
- InitializeComponent();
- }
- private void frmSystemLog_Load(object sender, EventArgs e)
- {
-
- }
- private void button1_Click(object sender, EventArgs e)
- {
- if (listBox1.SelectedItem == null || listBox1.SelectedItem.ToString().Trim() == "")
- {
- return;
- }
- string[] strR =new string[5];
- string Activenum = "";
- string MaxActive = "";
- string MaxIdle = "";
- string MinIdel = "";
- string IdleNum = "";
- this.ob.MainUrl = listBox1.SelectedItem.ToString(); // CoreCommon.coreCommon.UrlList[]; 平台方法
- CoreClientParam ccp = new CoreClientParam();
- ccp.ServerName = "CoreFS.Util.CoreDBUtil";
- ccp.MethodName = "GetConnectionStatu";
- ccp = this.ExecuteNonQuery(ccp, CoreInvokeType.Internal);
- strR =ccp.ReturnObject.ToString().Split(',');
- Activenum = strR[0].ToString();
- MaxActive = strR[1].ToString();
- MaxIdle = strR[2].ToString();
- MinIdel = strR[3].ToString();
- IdleNum = strR[4].ToString();
- textBox1.Text = "连接池中激活的连接数为:" + Activenum + ",允许最大并发数:" + MaxActive + ",最大等待数: " + MaxIdle + ",最小等待数:" + MinIdel + ",空闲连接数:" + IdleNum;
- // log.info("\n连接池中激活的连接数为:" + Activenum + "\n允许最大并发数:" + MaxActive + "\n 最大等待数: " + MaxIdle + "\n最小等待数:" + MinIdel + "\n空闲连接数:" + IdleNum + "\n");
- }
- private void bltclear_Click(object sender, EventArgs e)
- {
- textBox1.Text = "";
- }
- }
- }
|