F_Main.Designer.cs 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. namespace PLC_WF
  2. {
  3. partial class F_Main
  4. {
  5. /// <summary>
  6. /// 必需的设计器变量。
  7. /// </summary>
  8. private System.ComponentModel.IContainer components = null;
  9. /// <summary>
  10. /// 清理所有正在使用的资源。
  11. /// </summary>
  12. /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
  13. protected override void Dispose(bool disposing)
  14. {
  15. if (disposing && (components != null))
  16. {
  17. components.Dispose();
  18. }
  19. base.Dispose(disposing);
  20. }
  21. #region Windows 窗体设计器生成的代码
  22. /// <summary>
  23. /// 设计器支持所需的方法 - 不要修改
  24. /// 使用代码编辑器修改此方法的内容。
  25. /// </summary>
  26. private void InitializeComponent()
  27. {
  28. this.components = new System.ComponentModel.Container();
  29. System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(F_Main));
  30. this.grbSetting = new System.Windows.Forms.GroupBox();
  31. this.btnRefreshForm = new System.Windows.Forms.Button();
  32. this.cboPLCST = new System.Windows.Forms.ComboBox();
  33. this.btnGetSetting = new System.Windows.Forms.Button();
  34. this.btnSetSetting = new System.Windows.Forms.Button();
  35. this.chkAutoStart = new System.Windows.Forms.CheckBox();
  36. this.label5 = new System.Windows.Forms.Label();
  37. this.label4 = new System.Windows.Forms.Label();
  38. this.label2 = new System.Windows.Forms.Label();
  39. this.label3 = new System.Windows.Forms.Label();
  40. this.label1 = new System.Windows.Forms.Label();
  41. this.lblPort = new System.Windows.Forms.Label();
  42. this.txtDescription = new System.Windows.Forms.TextBox();
  43. this.txtDisplayName = new System.Windows.Forms.TextBox();
  44. this.txtServiceName = new System.Windows.Forms.TextBox();
  45. this.txtInterval = new System.Windows.Forms.TextBox();
  46. this.txtPort = new System.Windows.Forms.TextBox();
  47. this.btnExePath = new System.Windows.Forms.Button();
  48. this.txtStatus = new System.Windows.Forms.TextBox();
  49. this.btnLog = new System.Windows.Forms.Button();
  50. this.btnStop = new System.Windows.Forms.Button();
  51. this.btnStart = new System.Windows.Forms.Button();
  52. this.grbWS = new System.Windows.Forms.GroupBox();
  53. this.btnWS_Delete = new System.Windows.Forms.Button();
  54. this.btnWS_Refresh = new System.Windows.Forms.Button();
  55. this.btnWS_ReStart = new System.Windows.Forms.Button();
  56. this.btnWS_Stop = new System.Windows.Forms.Button();
  57. this.btnWS_Start = new System.Windows.Forms.Button();
  58. this.btnWS_Insert = new System.Windows.Forms.Button();
  59. this.serviceController1 = new System.ServiceProcess.ServiceController();
  60. this.grbES = new System.Windows.Forms.GroupBox();
  61. this.btnLogLenW = new System.Windows.Forms.Button();
  62. this.btnLogLenR = new System.Windows.Forms.Button();
  63. this.txtLogLen = new System.Windows.Forms.TextBox();
  64. this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
  65. this.grbDB = new System.Windows.Forms.GroupBox();
  66. this.btnGetDB = new System.Windows.Forms.Button();
  67. this.btnSetDB = new System.Windows.Forms.Button();
  68. this.btnOracleTest = new System.Windows.Forms.Button();
  69. this.label6 = new System.Windows.Forms.Label();
  70. this.txtOraclePassword = new System.Windows.Forms.TextBox();
  71. this.label7 = new System.Windows.Forms.Label();
  72. this.txtOracleUserName = new System.Windows.Forms.TextBox();
  73. this.label9 = new System.Windows.Forms.Label();
  74. this.txtOracleDatabaseName = new System.Windows.Forms.TextBox();
  75. this.label11 = new System.Windows.Forms.Label();
  76. this.txtOraclePort = new System.Windows.Forms.TextBox();
  77. this.label10 = new System.Windows.Forms.Label();
  78. this.txtOracleName = new System.Windows.Forms.TextBox();
  79. this.grbMES = new System.Windows.Forms.GroupBox();
  80. this.btnGetMES = new System.Windows.Forms.Button();
  81. this.btnSetMES = new System.Windows.Forms.Button();
  82. this.btnMESTest = new System.Windows.Forms.Button();
  83. this.label8 = new System.Windows.Forms.Label();
  84. this.txtMES_Password = new System.Windows.Forms.TextBox();
  85. this.label12 = new System.Windows.Forms.Label();
  86. this.txtMES_User = new System.Windows.Forms.TextBox();
  87. this.label13 = new System.Windows.Forms.Label();
  88. this.txtMES_Account = new System.Windows.Forms.TextBox();
  89. this.label14 = new System.Windows.Forms.Label();
  90. this.txtMES_Port = new System.Windows.Forms.TextBox();
  91. this.label15 = new System.Windows.Forms.Label();
  92. this.txtMES_IP = new System.Windows.Forms.TextBox();
  93. this.panel1 = new System.Windows.Forms.Panel();
  94. this.cboPLCType = new System.Windows.Forms.ComboBox();
  95. this.btnPLC_CRW = new System.Windows.Forms.Button();
  96. this.textBox1 = new System.Windows.Forms.TextBox();
  97. this.txtEPTS = new System.Windows.Forms.TextBox();
  98. this.label16 = new System.Windows.Forms.Label();
  99. this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker();
  100. this.grbSetting.SuspendLayout();
  101. this.grbWS.SuspendLayout();
  102. this.grbES.SuspendLayout();
  103. this.grbDB.SuspendLayout();
  104. this.grbMES.SuspendLayout();
  105. this.panel1.SuspendLayout();
  106. this.SuspendLayout();
  107. //
  108. // grbSetting
  109. //
  110. this.grbSetting.Controls.Add(this.btnRefreshForm);
  111. this.grbSetting.Controls.Add(this.cboPLCST);
  112. this.grbSetting.Controls.Add(this.btnGetSetting);
  113. this.grbSetting.Controls.Add(this.btnSetSetting);
  114. this.grbSetting.Controls.Add(this.chkAutoStart);
  115. this.grbSetting.Controls.Add(this.label5);
  116. this.grbSetting.Controls.Add(this.label4);
  117. this.grbSetting.Controls.Add(this.label2);
  118. this.grbSetting.Controls.Add(this.txtEPTS);
  119. this.grbSetting.Controls.Add(this.label16);
  120. this.grbSetting.Controls.Add(this.label3);
  121. this.grbSetting.Controls.Add(this.label1);
  122. this.grbSetting.Controls.Add(this.lblPort);
  123. this.grbSetting.Controls.Add(this.txtDescription);
  124. this.grbSetting.Controls.Add(this.txtDisplayName);
  125. this.grbSetting.Controls.Add(this.txtServiceName);
  126. this.grbSetting.Controls.Add(this.txtInterval);
  127. this.grbSetting.Controls.Add(this.txtPort);
  128. this.grbSetting.Location = new System.Drawing.Point(0, 0);
  129. this.grbSetting.Name = "grbSetting";
  130. this.grbSetting.Size = new System.Drawing.Size(350, 162);
  131. this.grbSetting.TabIndex = 1;
  132. this.grbSetting.TabStop = false;
  133. this.grbSetting.Text = "PLC服务";
  134. //
  135. // btnRefreshForm
  136. //
  137. this.btnRefreshForm.Location = new System.Drawing.Point(269, 136);
  138. this.btnRefreshForm.Name = "btnRefreshForm";
  139. this.btnRefreshForm.Size = new System.Drawing.Size(75, 23);
  140. this.btnRefreshForm.TabIndex = 13;
  141. this.btnRefreshForm.Text = "刷新设置";
  142. this.btnRefreshForm.UseVisualStyleBackColor = true;
  143. this.btnRefreshForm.Click += new System.EventHandler(this.btnRefreshForm_Click);
  144. //
  145. // cboPLCST
  146. //
  147. this.cboPLCST.FormattingEnabled = true;
  148. this.cboPLCST.Location = new System.Drawing.Point(41, 20);
  149. this.cboPLCST.Name = "cboPLCST";
  150. this.cboPLCST.Size = new System.Drawing.Size(303, 20);
  151. this.cboPLCST.TabIndex = 1;
  152. this.cboPLCST.SelectedIndexChanged += new System.EventHandler(this.cboPLCST_SelectedIndexChanged);
  153. //
  154. // btnGetSetting
  155. //
  156. this.btnGetSetting.Location = new System.Drawing.Point(107, 136);
  157. this.btnGetSetting.Name = "btnGetSetting";
  158. this.btnGetSetting.Size = new System.Drawing.Size(75, 23);
  159. this.btnGetSetting.TabIndex = 11;
  160. this.btnGetSetting.Text = "读取设置";
  161. this.btnGetSetting.UseVisualStyleBackColor = true;
  162. this.btnGetSetting.Click += new System.EventHandler(this.btnGetSetting_Click);
  163. //
  164. // btnSetSetting
  165. //
  166. this.btnSetSetting.Location = new System.Drawing.Point(188, 136);
  167. this.btnSetSetting.Name = "btnSetSetting";
  168. this.btnSetSetting.Size = new System.Drawing.Size(75, 23);
  169. this.btnSetSetting.TabIndex = 12;
  170. this.btnSetSetting.Text = "保存设置";
  171. this.btnSetSetting.UseVisualStyleBackColor = true;
  172. this.btnSetSetting.Click += new System.EventHandler(this.btnSetSetting_Click);
  173. //
  174. // chkAutoStart
  175. //
  176. this.chkAutoStart.AutoSize = true;
  177. this.chkAutoStart.Location = new System.Drawing.Point(93, 53);
  178. this.chkAutoStart.Name = "chkAutoStart";
  179. this.chkAutoStart.Size = new System.Drawing.Size(48, 16);
  180. this.chkAutoStart.TabIndex = 6;
  181. this.chkAutoStart.Text = "自启";
  182. this.chkAutoStart.UseVisualStyleBackColor = true;
  183. //
  184. // label5
  185. //
  186. this.label5.AutoSize = true;
  187. this.label5.Location = new System.Drawing.Point(6, 113);
  188. this.label5.Name = "label5";
  189. this.label5.Size = new System.Drawing.Size(29, 12);
  190. this.label5.TabIndex = 9;
  191. this.label5.Text = "描述";
  192. //
  193. // label4
  194. //
  195. this.label4.AutoSize = true;
  196. this.label4.Location = new System.Drawing.Point(147, 84);
  197. this.label4.Name = "label4";
  198. this.label4.Size = new System.Drawing.Size(41, 12);
  199. this.label4.TabIndex = 7;
  200. this.label4.Text = "显示名";
  201. //
  202. // label2
  203. //
  204. this.label2.AutoSize = true;
  205. this.label2.Location = new System.Drawing.Point(147, 55);
  206. this.label2.Name = "label2";
  207. this.label2.Size = new System.Drawing.Size(41, 12);
  208. this.label2.TabIndex = 2;
  209. this.label2.Text = "服务名";
  210. //
  211. // label3
  212. //
  213. this.label3.AutoSize = true;
  214. this.label3.Location = new System.Drawing.Point(6, 24);
  215. this.label3.Name = "label3";
  216. this.label3.Size = new System.Drawing.Size(29, 12);
  217. this.label3.TabIndex = 0;
  218. this.label3.Text = "类型";
  219. //
  220. // label1
  221. //
  222. this.label1.AutoSize = true;
  223. this.label1.Location = new System.Drawing.Point(6, 141);
  224. this.label1.Name = "label1";
  225. this.label1.Size = new System.Drawing.Size(29, 12);
  226. this.label1.TabIndex = 4;
  227. this.label1.Text = "间隔";
  228. //
  229. // lblPort
  230. //
  231. this.lblPort.AutoSize = true;
  232. this.lblPort.Location = new System.Drawing.Point(6, 55);
  233. this.lblPort.Name = "lblPort";
  234. this.lblPort.Size = new System.Drawing.Size(29, 12);
  235. this.lblPort.TabIndex = 4;
  236. this.lblPort.Text = "端口";
  237. //
  238. // txtDescription
  239. //
  240. this.txtDescription.Location = new System.Drawing.Point(41, 109);
  241. this.txtDescription.Name = "txtDescription";
  242. this.txtDescription.Size = new System.Drawing.Size(303, 21);
  243. this.txtDescription.TabIndex = 10;
  244. //
  245. // txtDisplayName
  246. //
  247. this.txtDisplayName.Location = new System.Drawing.Point(194, 80);
  248. this.txtDisplayName.Name = "txtDisplayName";
  249. this.txtDisplayName.Size = new System.Drawing.Size(150, 21);
  250. this.txtDisplayName.TabIndex = 8;
  251. this.txtDisplayName.TextChanged += new System.EventHandler(this.txtDisplayName_TextChanged);
  252. //
  253. // txtServiceName
  254. //
  255. this.txtServiceName.Location = new System.Drawing.Point(194, 51);
  256. this.txtServiceName.Name = "txtServiceName";
  257. this.txtServiceName.Size = new System.Drawing.Size(150, 21);
  258. this.txtServiceName.TabIndex = 3;
  259. //
  260. // txtInterval
  261. //
  262. this.txtInterval.Location = new System.Drawing.Point(41, 136);
  263. this.txtInterval.Name = "txtInterval";
  264. this.txtInterval.Size = new System.Drawing.Size(60, 21);
  265. this.txtInterval.TabIndex = 5;
  266. this.txtInterval.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPort_KeyDown);
  267. this.txtInterval.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPort_KeyPress);
  268. //
  269. // txtPort
  270. //
  271. this.txtPort.Location = new System.Drawing.Point(41, 51);
  272. this.txtPort.MaxLength = 6;
  273. this.txtPort.Name = "txtPort";
  274. this.txtPort.Size = new System.Drawing.Size(46, 21);
  275. this.txtPort.TabIndex = 5;
  276. this.txtPort.TextChanged += new System.EventHandler(this.txtPort_TextChanged);
  277. this.txtPort.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPort_KeyDown);
  278. this.txtPort.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPort_KeyPress);
  279. //
  280. // btnExePath
  281. //
  282. this.btnExePath.Location = new System.Drawing.Point(87, 49);
  283. this.btnExePath.Name = "btnExePath";
  284. this.btnExePath.Size = new System.Drawing.Size(75, 23);
  285. this.btnExePath.TabIndex = 3;
  286. this.btnExePath.Text = "exe path";
  287. this.btnExePath.UseVisualStyleBackColor = true;
  288. this.btnExePath.Click += new System.EventHandler(this.btnExePath_Click);
  289. //
  290. // txtStatus
  291. //
  292. this.txtStatus.Dock = System.Windows.Forms.DockStyle.Top;
  293. this.txtStatus.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  294. this.txtStatus.Location = new System.Drawing.Point(3, 3);
  295. this.txtStatus.Name = "txtStatus";
  296. this.txtStatus.Size = new System.Drawing.Size(707, 29);
  297. this.txtStatus.TabIndex = 0;
  298. this.txtStatus.TabStop = false;
  299. this.txtStatus.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
  300. this.txtStatus.TextChanged += new System.EventHandler(this.txtStatus_TextChanged);
  301. this.txtStatus.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtStatus_KeyPress);
  302. //
  303. // btnLog
  304. //
  305. this.btnLog.Location = new System.Drawing.Point(6, 49);
  306. this.btnLog.Name = "btnLog";
  307. this.btnLog.Size = new System.Drawing.Size(75, 23);
  308. this.btnLog.TabIndex = 2;
  309. this.btnLog.Text = "日志";
  310. this.btnLog.UseVisualStyleBackColor = true;
  311. this.btnLog.Click += new System.EventHandler(this.btnLog_Click);
  312. //
  313. // btnStop
  314. //
  315. this.btnStop.Location = new System.Drawing.Point(87, 20);
  316. this.btnStop.Name = "btnStop";
  317. this.btnStop.Size = new System.Drawing.Size(75, 23);
  318. this.btnStop.TabIndex = 1;
  319. this.btnStop.Text = "停止服务";
  320. this.btnStop.UseVisualStyleBackColor = true;
  321. this.btnStop.Click += new System.EventHandler(this.btnStop_Click);
  322. //
  323. // btnStart
  324. //
  325. this.btnStart.Location = new System.Drawing.Point(6, 20);
  326. this.btnStart.Name = "btnStart";
  327. this.btnStart.Size = new System.Drawing.Size(75, 23);
  328. this.btnStart.TabIndex = 0;
  329. this.btnStart.Text = "启动服务";
  330. this.btnStart.UseVisualStyleBackColor = true;
  331. this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
  332. //
  333. // grbWS
  334. //
  335. this.grbWS.Controls.Add(this.btnWS_Delete);
  336. this.grbWS.Controls.Add(this.btnWS_Refresh);
  337. this.grbWS.Controls.Add(this.btnWS_ReStart);
  338. this.grbWS.Controls.Add(this.btnWS_Stop);
  339. this.grbWS.Controls.Add(this.btnWS_Start);
  340. this.grbWS.Controls.Add(this.btnWS_Insert);
  341. this.grbWS.Location = new System.Drawing.Point(356, 0);
  342. this.grbWS.Name = "grbWS";
  343. this.grbWS.Size = new System.Drawing.Size(168, 107);
  344. this.grbWS.TabIndex = 5;
  345. this.grbWS.TabStop = false;
  346. this.grbWS.Text = "Windows Service";
  347. //
  348. // btnWS_Delete
  349. //
  350. this.btnWS_Delete.Location = new System.Drawing.Point(87, 20);
  351. this.btnWS_Delete.Name = "btnWS_Delete";
  352. this.btnWS_Delete.Size = new System.Drawing.Size(75, 23);
  353. this.btnWS_Delete.TabIndex = 1;
  354. this.btnWS_Delete.Text = "卸载服务";
  355. this.btnWS_Delete.UseVisualStyleBackColor = true;
  356. this.btnWS_Delete.Click += new System.EventHandler(this.btnWS_Delete_Click);
  357. //
  358. // btnWS_Refresh
  359. //
  360. this.btnWS_Refresh.Location = new System.Drawing.Point(87, 78);
  361. this.btnWS_Refresh.Name = "btnWS_Refresh";
  362. this.btnWS_Refresh.Size = new System.Drawing.Size(75, 23);
  363. this.btnWS_Refresh.TabIndex = 5;
  364. this.btnWS_Refresh.Text = "刷新状态";
  365. this.btnWS_Refresh.UseVisualStyleBackColor = true;
  366. this.btnWS_Refresh.Click += new System.EventHandler(this.btnWS_Refresh_Click);
  367. //
  368. // btnWS_ReStart
  369. //
  370. this.btnWS_ReStart.Location = new System.Drawing.Point(6, 78);
  371. this.btnWS_ReStart.Name = "btnWS_ReStart";
  372. this.btnWS_ReStart.Size = new System.Drawing.Size(75, 23);
  373. this.btnWS_ReStart.TabIndex = 4;
  374. this.btnWS_ReStart.Text = "重启服务";
  375. this.btnWS_ReStart.UseVisualStyleBackColor = true;
  376. this.btnWS_ReStart.Click += new System.EventHandler(this.btnWS_ReStart_Click);
  377. //
  378. // btnWS_Stop
  379. //
  380. this.btnWS_Stop.Location = new System.Drawing.Point(87, 49);
  381. this.btnWS_Stop.Name = "btnWS_Stop";
  382. this.btnWS_Stop.Size = new System.Drawing.Size(75, 23);
  383. this.btnWS_Stop.TabIndex = 3;
  384. this.btnWS_Stop.Text = "停止服务";
  385. this.btnWS_Stop.UseVisualStyleBackColor = true;
  386. this.btnWS_Stop.Click += new System.EventHandler(this.btnWS_Stop_Click);
  387. //
  388. // btnWS_Start
  389. //
  390. this.btnWS_Start.Location = new System.Drawing.Point(6, 49);
  391. this.btnWS_Start.Name = "btnWS_Start";
  392. this.btnWS_Start.Size = new System.Drawing.Size(75, 23);
  393. this.btnWS_Start.TabIndex = 2;
  394. this.btnWS_Start.Text = "启动服务";
  395. this.btnWS_Start.UseVisualStyleBackColor = true;
  396. this.btnWS_Start.Click += new System.EventHandler(this.btnWS_Start_Click);
  397. //
  398. // btnWS_Insert
  399. //
  400. this.btnWS_Insert.Location = new System.Drawing.Point(6, 20);
  401. this.btnWS_Insert.Name = "btnWS_Insert";
  402. this.btnWS_Insert.Size = new System.Drawing.Size(75, 23);
  403. this.btnWS_Insert.TabIndex = 0;
  404. this.btnWS_Insert.Text = "注册服务";
  405. this.btnWS_Insert.UseVisualStyleBackColor = true;
  406. this.btnWS_Insert.Click += new System.EventHandler(this.btnWS_Insert_Click);
  407. //
  408. // grbES
  409. //
  410. this.grbES.Controls.Add(this.btnLogLenW);
  411. this.grbES.Controls.Add(this.btnLogLenR);
  412. this.grbES.Controls.Add(this.btnLog);
  413. this.grbES.Controls.Add(this.btnExePath);
  414. this.grbES.Controls.Add(this.btnStart);
  415. this.grbES.Controls.Add(this.btnStop);
  416. this.grbES.Controls.Add(this.txtLogLen);
  417. this.grbES.Location = new System.Drawing.Point(530, 0);
  418. this.grbES.Name = "grbES";
  419. this.grbES.Size = new System.Drawing.Size(168, 136);
  420. this.grbES.TabIndex = 4;
  421. this.grbES.TabStop = false;
  422. this.grbES.Text = "exe Service";
  423. //
  424. // btnLogLenW
  425. //
  426. this.btnLogLenW.Location = new System.Drawing.Point(87, 77);
  427. this.btnLogLenW.Name = "btnLogLenW";
  428. this.btnLogLenW.Size = new System.Drawing.Size(75, 23);
  429. this.btnLogLenW.TabIndex = 2;
  430. this.btnLogLenW.Text = "设日志长度";
  431. this.btnLogLenW.UseVisualStyleBackColor = true;
  432. this.btnLogLenW.Click += new System.EventHandler(this.btnLogLenW_Click);
  433. //
  434. // btnLogLenR
  435. //
  436. this.btnLogLenR.Location = new System.Drawing.Point(6, 77);
  437. this.btnLogLenR.Name = "btnLogLenR";
  438. this.btnLogLenR.Size = new System.Drawing.Size(75, 23);
  439. this.btnLogLenR.TabIndex = 2;
  440. this.btnLogLenR.Text = "读日志长度";
  441. this.btnLogLenR.UseVisualStyleBackColor = true;
  442. this.btnLogLenR.Click += new System.EventHandler(this.btnLogLenR_Click);
  443. //
  444. // txtLogLen
  445. //
  446. this.txtLogLen.Location = new System.Drawing.Point(6, 106);
  447. this.txtLogLen.Name = "txtLogLen";
  448. this.txtLogLen.Size = new System.Drawing.Size(75, 21);
  449. this.txtLogLen.TabIndex = 5;
  450. this.txtLogLen.TextChanged += new System.EventHandler(this.txtPort_TextChanged);
  451. this.txtLogLen.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtPort_KeyDown);
  452. this.txtLogLen.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPort_KeyPress);
  453. //
  454. // notifyIcon1
  455. //
  456. this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
  457. this.notifyIcon1.Text = "notifyIcon1";
  458. this.notifyIcon1.Visible = true;
  459. this.notifyIcon1.Click += new System.EventHandler(this.notifyIcon1_Click);
  460. this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
  461. //
  462. // grbDB
  463. //
  464. this.grbDB.Controls.Add(this.btnGetDB);
  465. this.grbDB.Controls.Add(this.btnSetDB);
  466. this.grbDB.Controls.Add(this.btnOracleTest);
  467. this.grbDB.Controls.Add(this.label6);
  468. this.grbDB.Controls.Add(this.txtOraclePassword);
  469. this.grbDB.Controls.Add(this.label7);
  470. this.grbDB.Controls.Add(this.txtOracleUserName);
  471. this.grbDB.Controls.Add(this.label9);
  472. this.grbDB.Controls.Add(this.txtOracleDatabaseName);
  473. this.grbDB.Controls.Add(this.label11);
  474. this.grbDB.Controls.Add(this.txtOraclePort);
  475. this.grbDB.Controls.Add(this.label10);
  476. this.grbDB.Controls.Add(this.txtOracleName);
  477. this.grbDB.Location = new System.Drawing.Point(0, 171);
  478. this.grbDB.Name = "grbDB";
  479. this.grbDB.Size = new System.Drawing.Size(230, 136);
  480. this.grbDB.TabIndex = 2;
  481. this.grbDB.TabStop = false;
  482. this.grbDB.Text = "数据库设置";
  483. //
  484. // btnGetDB
  485. //
  486. this.btnGetDB.Location = new System.Drawing.Point(149, 49);
  487. this.btnGetDB.Name = "btnGetDB";
  488. this.btnGetDB.Size = new System.Drawing.Size(75, 23);
  489. this.btnGetDB.TabIndex = 10;
  490. this.btnGetDB.Text = "读取设置";
  491. this.btnGetDB.UseVisualStyleBackColor = true;
  492. this.btnGetDB.Click += new System.EventHandler(this.btnGetDB_Click);
  493. //
  494. // btnSetDB
  495. //
  496. this.btnSetDB.Location = new System.Drawing.Point(149, 78);
  497. this.btnSetDB.Name = "btnSetDB";
  498. this.btnSetDB.Size = new System.Drawing.Size(75, 23);
  499. this.btnSetDB.TabIndex = 11;
  500. this.btnSetDB.Text = "保存设置";
  501. this.btnSetDB.UseVisualStyleBackColor = true;
  502. this.btnSetDB.Click += new System.EventHandler(this.btnSetDB_Click);
  503. //
  504. // btnOracleTest
  505. //
  506. this.btnOracleTest.Location = new System.Drawing.Point(149, 107);
  507. this.btnOracleTest.Name = "btnOracleTest";
  508. this.btnOracleTest.Size = new System.Drawing.Size(75, 23);
  509. this.btnOracleTest.TabIndex = 12;
  510. this.btnOracleTest.Text = "连接测试";
  511. this.btnOracleTest.UseVisualStyleBackColor = true;
  512. this.btnOracleTest.Click += new System.EventHandler(this.btnOracleTest_Click);
  513. //
  514. // label6
  515. //
  516. this.label6.AutoSize = true;
  517. this.label6.Location = new System.Drawing.Point(6, 112);
  518. this.label6.Name = "label6";
  519. this.label6.Size = new System.Drawing.Size(29, 12);
  520. this.label6.TabIndex = 8;
  521. this.label6.Text = "密码";
  522. //
  523. // txtOraclePassword
  524. //
  525. this.txtOraclePassword.Location = new System.Drawing.Point(41, 108);
  526. this.txtOraclePassword.Name = "txtOraclePassword";
  527. this.txtOraclePassword.Size = new System.Drawing.Size(100, 21);
  528. this.txtOraclePassword.TabIndex = 9;
  529. this.txtOraclePassword.UseSystemPasswordChar = true;
  530. //
  531. // label7
  532. //
  533. this.label7.AutoSize = true;
  534. this.label7.Location = new System.Drawing.Point(6, 83);
  535. this.label7.Name = "label7";
  536. this.label7.Size = new System.Drawing.Size(29, 12);
  537. this.label7.TabIndex = 6;
  538. this.label7.Text = "用户";
  539. //
  540. // txtOracleUserName
  541. //
  542. this.txtOracleUserName.Location = new System.Drawing.Point(41, 79);
  543. this.txtOracleUserName.Name = "txtOracleUserName";
  544. this.txtOracleUserName.Size = new System.Drawing.Size(100, 21);
  545. this.txtOracleUserName.TabIndex = 7;
  546. //
  547. // label9
  548. //
  549. this.label9.AutoSize = true;
  550. this.label9.Location = new System.Drawing.Point(6, 54);
  551. this.label9.Name = "label9";
  552. this.label9.Size = new System.Drawing.Size(29, 12);
  553. this.label9.TabIndex = 4;
  554. this.label9.Text = "实例";
  555. //
  556. // txtOracleDatabaseName
  557. //
  558. this.txtOracleDatabaseName.Location = new System.Drawing.Point(41, 50);
  559. this.txtOracleDatabaseName.Name = "txtOracleDatabaseName";
  560. this.txtOracleDatabaseName.Size = new System.Drawing.Size(100, 21);
  561. this.txtOracleDatabaseName.TabIndex = 5;
  562. //
  563. // label11
  564. //
  565. this.label11.AutoSize = true;
  566. this.label11.Location = new System.Drawing.Point(147, 24);
  567. this.label11.Name = "label11";
  568. this.label11.Size = new System.Drawing.Size(29, 12);
  569. this.label11.TabIndex = 2;
  570. this.label11.Text = "端口";
  571. //
  572. // txtOraclePort
  573. //
  574. this.txtOraclePort.Location = new System.Drawing.Point(182, 20);
  575. this.txtOraclePort.MaxLength = 6;
  576. this.txtOraclePort.Name = "txtOraclePort";
  577. this.txtOraclePort.Size = new System.Drawing.Size(42, 21);
  578. this.txtOraclePort.TabIndex = 3;
  579. this.txtOraclePort.Text = "1521";
  580. this.txtOraclePort.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPort_KeyPress);
  581. //
  582. // label10
  583. //
  584. this.label10.AutoSize = true;
  585. this.label10.Location = new System.Drawing.Point(6, 24);
  586. this.label10.Name = "label10";
  587. this.label10.Size = new System.Drawing.Size(29, 12);
  588. this.label10.TabIndex = 0;
  589. this.label10.Text = "地址";
  590. //
  591. // txtOracleName
  592. //
  593. this.txtOracleName.Location = new System.Drawing.Point(41, 20);
  594. this.txtOracleName.Name = "txtOracleName";
  595. this.txtOracleName.Size = new System.Drawing.Size(100, 21);
  596. this.txtOracleName.TabIndex = 1;
  597. this.txtOracleName.Text = "127.0.0.1";
  598. //
  599. // grbMES
  600. //
  601. this.grbMES.Controls.Add(this.btnGetMES);
  602. this.grbMES.Controls.Add(this.btnSetMES);
  603. this.grbMES.Controls.Add(this.btnMESTest);
  604. this.grbMES.Controls.Add(this.label8);
  605. this.grbMES.Controls.Add(this.txtMES_Password);
  606. this.grbMES.Controls.Add(this.label12);
  607. this.grbMES.Controls.Add(this.txtMES_User);
  608. this.grbMES.Controls.Add(this.label13);
  609. this.grbMES.Controls.Add(this.txtMES_Account);
  610. this.grbMES.Controls.Add(this.label14);
  611. this.grbMES.Controls.Add(this.txtMES_Port);
  612. this.grbMES.Controls.Add(this.label15);
  613. this.grbMES.Controls.Add(this.txtMES_IP);
  614. this.grbMES.Location = new System.Drawing.Point(236, 171);
  615. this.grbMES.Name = "grbMES";
  616. this.grbMES.Size = new System.Drawing.Size(230, 136);
  617. this.grbMES.TabIndex = 3;
  618. this.grbMES.TabStop = false;
  619. this.grbMES.Text = "MES设置";
  620. //
  621. // btnGetMES
  622. //
  623. this.btnGetMES.Location = new System.Drawing.Point(149, 49);
  624. this.btnGetMES.Name = "btnGetMES";
  625. this.btnGetMES.Size = new System.Drawing.Size(75, 23);
  626. this.btnGetMES.TabIndex = 10;
  627. this.btnGetMES.Text = "读取设置";
  628. this.btnGetMES.UseVisualStyleBackColor = true;
  629. this.btnGetMES.Click += new System.EventHandler(this.btnGetMES_Click);
  630. //
  631. // btnSetMES
  632. //
  633. this.btnSetMES.Location = new System.Drawing.Point(149, 78);
  634. this.btnSetMES.Name = "btnSetMES";
  635. this.btnSetMES.Size = new System.Drawing.Size(75, 23);
  636. this.btnSetMES.TabIndex = 11;
  637. this.btnSetMES.Text = "保存设置";
  638. this.btnSetMES.UseVisualStyleBackColor = true;
  639. this.btnSetMES.Click += new System.EventHandler(this.btnSetMES_Click);
  640. //
  641. // btnMESTest
  642. //
  643. this.btnMESTest.Location = new System.Drawing.Point(149, 107);
  644. this.btnMESTest.Name = "btnMESTest";
  645. this.btnMESTest.Size = new System.Drawing.Size(75, 23);
  646. this.btnMESTest.TabIndex = 12;
  647. this.btnMESTest.Text = "连接测试";
  648. this.btnMESTest.UseVisualStyleBackColor = true;
  649. this.btnMESTest.Click += new System.EventHandler(this.btnMESTest_Click);
  650. //
  651. // label8
  652. //
  653. this.label8.AutoSize = true;
  654. this.label8.Location = new System.Drawing.Point(6, 112);
  655. this.label8.Name = "label8";
  656. this.label8.Size = new System.Drawing.Size(29, 12);
  657. this.label8.TabIndex = 8;
  658. this.label8.Text = "密码";
  659. //
  660. // txtMES_Password
  661. //
  662. this.txtMES_Password.Location = new System.Drawing.Point(41, 108);
  663. this.txtMES_Password.Name = "txtMES_Password";
  664. this.txtMES_Password.Size = new System.Drawing.Size(100, 21);
  665. this.txtMES_Password.TabIndex = 9;
  666. this.txtMES_Password.UseSystemPasswordChar = true;
  667. //
  668. // label12
  669. //
  670. this.label12.AutoSize = true;
  671. this.label12.Location = new System.Drawing.Point(6, 83);
  672. this.label12.Name = "label12";
  673. this.label12.Size = new System.Drawing.Size(29, 12);
  674. this.label12.TabIndex = 6;
  675. this.label12.Text = "用户";
  676. //
  677. // txtMES_User
  678. //
  679. this.txtMES_User.Location = new System.Drawing.Point(41, 79);
  680. this.txtMES_User.Name = "txtMES_User";
  681. this.txtMES_User.Size = new System.Drawing.Size(100, 21);
  682. this.txtMES_User.TabIndex = 7;
  683. //
  684. // label13
  685. //
  686. this.label13.AutoSize = true;
  687. this.label13.Location = new System.Drawing.Point(6, 54);
  688. this.label13.Name = "label13";
  689. this.label13.Size = new System.Drawing.Size(29, 12);
  690. this.label13.TabIndex = 4;
  691. this.label13.Text = "帐套";
  692. //
  693. // txtMES_Account
  694. //
  695. this.txtMES_Account.Location = new System.Drawing.Point(41, 50);
  696. this.txtMES_Account.Name = "txtMES_Account";
  697. this.txtMES_Account.Size = new System.Drawing.Size(100, 21);
  698. this.txtMES_Account.TabIndex = 5;
  699. //
  700. // label14
  701. //
  702. this.label14.AutoSize = true;
  703. this.label14.Location = new System.Drawing.Point(147, 24);
  704. this.label14.Name = "label14";
  705. this.label14.Size = new System.Drawing.Size(29, 12);
  706. this.label14.TabIndex = 2;
  707. this.label14.Text = "端口";
  708. //
  709. // txtMES_Port
  710. //
  711. this.txtMES_Port.Location = new System.Drawing.Point(182, 20);
  712. this.txtMES_Port.MaxLength = 6;
  713. this.txtMES_Port.Name = "txtMES_Port";
  714. this.txtMES_Port.Size = new System.Drawing.Size(42, 21);
  715. this.txtMES_Port.TabIndex = 3;
  716. this.txtMES_Port.Text = "1234";
  717. this.txtMES_Port.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtPort_KeyPress);
  718. //
  719. // label15
  720. //
  721. this.label15.AutoSize = true;
  722. this.label15.Location = new System.Drawing.Point(6, 24);
  723. this.label15.Name = "label15";
  724. this.label15.Size = new System.Drawing.Size(29, 12);
  725. this.label15.TabIndex = 0;
  726. this.label15.Text = "地址";
  727. //
  728. // txtMES_IP
  729. //
  730. this.txtMES_IP.Location = new System.Drawing.Point(41, 20);
  731. this.txtMES_IP.Name = "txtMES_IP";
  732. this.txtMES_IP.Size = new System.Drawing.Size(100, 21);
  733. this.txtMES_IP.TabIndex = 1;
  734. this.txtMES_IP.Text = "127.0.0.1";
  735. //
  736. // panel1
  737. //
  738. this.panel1.Controls.Add(this.cboPLCType);
  739. this.panel1.Controls.Add(this.btnPLC_CRW);
  740. this.panel1.Controls.Add(this.textBox1);
  741. this.panel1.Controls.Add(this.grbSetting);
  742. this.panel1.Controls.Add(this.grbMES);
  743. this.panel1.Controls.Add(this.grbWS);
  744. this.panel1.Controls.Add(this.grbDB);
  745. this.panel1.Controls.Add(this.grbES);
  746. this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
  747. this.panel1.Location = new System.Drawing.Point(3, 32);
  748. this.panel1.Name = "panel1";
  749. this.panel1.Size = new System.Drawing.Size(707, 307);
  750. this.panel1.TabIndex = 6;
  751. //
  752. // cboPLCType
  753. //
  754. this.cboPLCType.FormattingEnabled = true;
  755. this.cboPLCType.Items.AddRange(new object[] {
  756. "MelsecA1EAscii",
  757. "SiemensS7_1200",
  758. "SimpleSocketClientModel"});
  759. this.cboPLCType.Location = new System.Drawing.Point(530, 142);
  760. this.cboPLCType.Name = "cboPLCType";
  761. this.cboPLCType.Size = new System.Drawing.Size(168, 20);
  762. this.cboPLCType.TabIndex = 7;
  763. //
  764. // btnPLC_CRW
  765. //
  766. this.btnPLC_CRW.Location = new System.Drawing.Point(611, 167);
  767. this.btnPLC_CRW.Name = "btnPLC_CRW";
  768. this.btnPLC_CRW.Size = new System.Drawing.Size(75, 23);
  769. this.btnPLC_CRW.TabIndex = 2;
  770. this.btnPLC_CRW.Text = "PLC测试";
  771. this.btnPLC_CRW.UseVisualStyleBackColor = true;
  772. this.btnPLC_CRW.Click += new System.EventHandler(this.btnPLC_CRW_Click);
  773. //
  774. // textBox1
  775. //
  776. this.textBox1.Location = new System.Drawing.Point(565, 196);
  777. this.textBox1.Multiline = true;
  778. this.textBox1.Name = "textBox1";
  779. this.textBox1.Size = new System.Drawing.Size(121, 69);
  780. this.textBox1.TabIndex = 6;
  781. //
  782. // txtEPTS
  783. //
  784. this.txtEPTS.Location = new System.Drawing.Point(66, 81);
  785. this.txtEPTS.Name = "txtEPTS";
  786. this.txtEPTS.Size = new System.Drawing.Size(75, 21);
  787. this.txtEPTS.TabIndex = 5;
  788. //
  789. // label16
  790. //
  791. this.label16.AutoSize = true;
  792. this.label16.Location = new System.Drawing.Point(7, 85);
  793. this.label16.Name = "label16";
  794. this.label16.Size = new System.Drawing.Size(53, 12);
  795. this.label16.TabIndex = 4;
  796. this.label16.Text = "轮巡代码";
  797. //
  798. // F_Main
  799. //
  800. this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
  801. this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  802. this.ClientSize = new System.Drawing.Size(713, 342);
  803. this.Controls.Add(this.panel1);
  804. this.Controls.Add(this.txtStatus);
  805. this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
  806. this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  807. this.MaximizeBox = false;
  808. this.Name = "F_Main";
  809. this.Padding = new System.Windows.Forms.Padding(3);
  810. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  811. this.Text = "PLC服务管理";
  812. this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.F_Main_FormClosing);
  813. this.Shown += new System.EventHandler(this.F_Main_Shown);
  814. this.SizeChanged += new System.EventHandler(this.F_Main_SizeChanged);
  815. this.TextChanged += new System.EventHandler(this.F_Main_TextChanged);
  816. this.grbSetting.ResumeLayout(false);
  817. this.grbSetting.PerformLayout();
  818. this.grbWS.ResumeLayout(false);
  819. this.grbES.ResumeLayout(false);
  820. this.grbES.PerformLayout();
  821. this.grbDB.ResumeLayout(false);
  822. this.grbDB.PerformLayout();
  823. this.grbMES.ResumeLayout(false);
  824. this.grbMES.PerformLayout();
  825. this.panel1.ResumeLayout(false);
  826. this.panel1.PerformLayout();
  827. this.ResumeLayout(false);
  828. this.PerformLayout();
  829. }
  830. #endregion
  831. private System.Windows.Forms.GroupBox grbSetting;
  832. private System.Windows.Forms.GroupBox grbWS;
  833. private System.ServiceProcess.ServiceController serviceController1;
  834. private System.Windows.Forms.Button btnStart;
  835. private System.Windows.Forms.Button btnStop;
  836. private System.Windows.Forms.TextBox txtPort;
  837. private System.Windows.Forms.Button btnLog;
  838. private System.Windows.Forms.TextBox txtStatus;
  839. private System.Windows.Forms.Button btnExePath;
  840. private System.Windows.Forms.Button btnWS_Delete;
  841. private System.Windows.Forms.Button btnWS_ReStart;
  842. private System.Windows.Forms.Button btnWS_Stop;
  843. private System.Windows.Forms.Button btnWS_Start;
  844. private System.Windows.Forms.Button btnWS_Insert;
  845. private System.Windows.Forms.GroupBox grbES;
  846. private System.Windows.Forms.TextBox txtServiceName;
  847. private System.Windows.Forms.Label label2;
  848. private System.Windows.Forms.Label lblPort;
  849. private System.Windows.Forms.CheckBox chkAutoStart;
  850. private System.Windows.Forms.ComboBox cboPLCST;
  851. private System.Windows.Forms.Label label3;
  852. private System.Windows.Forms.Label label5;
  853. private System.Windows.Forms.Label label4;
  854. private System.Windows.Forms.TextBox txtDescription;
  855. private System.Windows.Forms.TextBox txtDisplayName;
  856. private System.Windows.Forms.Button btnGetSetting;
  857. private System.Windows.Forms.Button btnSetSetting;
  858. private System.Windows.Forms.NotifyIcon notifyIcon1;
  859. private System.Windows.Forms.Button btnWS_Refresh;
  860. private System.Windows.Forms.Button btnRefreshForm;
  861. private System.Windows.Forms.GroupBox grbDB;
  862. private System.Windows.Forms.Button btnOracleTest;
  863. private System.Windows.Forms.Label label6;
  864. private System.Windows.Forms.TextBox txtOraclePassword;
  865. private System.Windows.Forms.Label label7;
  866. private System.Windows.Forms.TextBox txtOracleUserName;
  867. private System.Windows.Forms.Label label9;
  868. private System.Windows.Forms.TextBox txtOracleDatabaseName;
  869. private System.Windows.Forms.Label label11;
  870. private System.Windows.Forms.TextBox txtOraclePort;
  871. private System.Windows.Forms.Label label10;
  872. private System.Windows.Forms.TextBox txtOracleName;
  873. private System.Windows.Forms.Button btnGetDB;
  874. private System.Windows.Forms.Button btnSetDB;
  875. private System.Windows.Forms.GroupBox grbMES;
  876. private System.Windows.Forms.Button btnGetMES;
  877. private System.Windows.Forms.Button btnSetMES;
  878. private System.Windows.Forms.Button btnMESTest;
  879. private System.Windows.Forms.Label label14;
  880. private System.Windows.Forms.TextBox txtMES_Port;
  881. private System.Windows.Forms.Label label15;
  882. private System.Windows.Forms.TextBox txtMES_IP;
  883. private System.Windows.Forms.Label label8;
  884. private System.Windows.Forms.TextBox txtMES_Password;
  885. private System.Windows.Forms.Label label12;
  886. private System.Windows.Forms.TextBox txtMES_User;
  887. private System.Windows.Forms.Label label13;
  888. private System.Windows.Forms.TextBox txtMES_Account;
  889. private System.Windows.Forms.Panel panel1;
  890. private System.Windows.Forms.TextBox textBox1;
  891. private System.Windows.Forms.Button btnLogLenR;
  892. private System.Windows.Forms.Button btnLogLenW;
  893. private System.Windows.Forms.ComboBox cboPLCType;
  894. private System.Windows.Forms.Button btnPLC_CRW;
  895. private System.Windows.Forms.TextBox txtLogLen;
  896. private System.Windows.Forms.TextBox txtInterval;
  897. private System.Windows.Forms.Label label1;
  898. private System.Windows.Forms.TextBox txtEPTS;
  899. private System.Windows.Forms.Label label16;
  900. private System.ComponentModel.BackgroundWorker backgroundWorker1;
  901. }
  902. }