TextEdit_Express.cs 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  1. using System;
  2. using System.ComponentModel;
  3. using System.Diagnostics;
  4. using System.Drawing;
  5. using System.Runtime.CompilerServices;
  6. using System.Windows.Forms;
  7. using Microsoft.VisualBasic.CompilerServices;
  8. namespace Dongke.IBOSS.PRD.Framework.Controls
  9. {
  10. [DesignerGenerated]
  11. [EditorBrowsable(EditorBrowsableState.Never)]
  12. public class TextEdit_Express : Form
  13. {
  14. private IContainer components;
  15. [AccessedThroughProperty("TableLayoutPanel1")]
  16. private TableLayoutPanel _TableLayoutPanel1;
  17. [AccessedThroughProperty("OK_Button")]
  18. private Button _OK_Button;
  19. [AccessedThroughProperty("Cancel_Button")]
  20. private Button _Cancel_Button;
  21. [AccessedThroughProperty("Panel1")]
  22. private Panel _Panel1;
  23. [AccessedThroughProperty("TextBox1")]
  24. private TextBox _TextBox1;
  25. [AccessedThroughProperty("Button1")]
  26. private Button _Button1;
  27. [AccessedThroughProperty("ContextMenuStrip1")]
  28. private ContextMenuStrip _ContextMenuStrip1;
  29. [AccessedThroughProperty("页码ToolStripMenuItem")]
  30. private ToolStripMenuItem _页码ToolStripMenuItem;
  31. [AccessedThroughProperty("总页数ToolStripMenuItem")]
  32. private ToolStripMenuItem _总页数ToolStripMenuItem;
  33. [AccessedThroughProperty("当前日期ToolStripMenuItem")]
  34. private ToolStripMenuItem _当前日期ToolStripMenuItem;
  35. [AccessedThroughProperty("当前日期2ToolStripMenuItem")]
  36. private ToolStripMenuItem _当前日期2ToolStripMenuItem;
  37. [AccessedThroughProperty("当前年ToolStripMenuItem")]
  38. private ToolStripMenuItem _当前年ToolStripMenuItem;
  39. [AccessedThroughProperty("ToolStripMenuItem1")]
  40. private ToolStripMenuItem _ToolStripMenuItem1;
  41. [AccessedThroughProperty("ToolStripMenuItem2")]
  42. private ToolStripMenuItem _ToolStripMenuItem2;
  43. [AccessedThroughProperty("ToolStripMenuItem3")]
  44. private ToolStripMenuItem _ToolStripMenuItem3;
  45. [AccessedThroughProperty("ToolStripMenuItem4")]
  46. private ToolStripMenuItem _ToolStripMenuItem4;
  47. [AccessedThroughProperty("ToolStripMenuItem5")]
  48. private ToolStripMenuItem _ToolStripMenuItem5;
  49. [AccessedThroughProperty("Button2")]
  50. private Button _Button2;
  51. [AccessedThroughProperty("ContextMenuStrip2")]
  52. private ContextMenuStrip _ContextMenuStrip2;
  53. [AccessedThroughProperty("ToolStripSeparator1")]
  54. private ToolStripSeparator _ToolStripSeparator1;
  55. [AccessedThroughProperty("Button3")]
  56. private Button _Button3;
  57. [AccessedThroughProperty("ContextMenuStrip3")]
  58. private ContextMenuStrip _ContextMenuStrip3;
  59. [AccessedThroughProperty("Label1")]
  60. private Label _Label1;
  61. [AccessedThroughProperty("Label2")]
  62. private Label _Label2;
  63. [AccessedThroughProperty("Label3")]
  64. private Label _Label3;
  65. internal virtual TableLayoutPanel TableLayoutPanel1
  66. {
  67. get
  68. {
  69. return _TableLayoutPanel1;
  70. }
  71. [MethodImpl(MethodImplOptions.Synchronized)]
  72. set
  73. {
  74. _TableLayoutPanel1 = value;
  75. }
  76. }
  77. internal virtual Button OK_Button
  78. {
  79. get
  80. {
  81. return _OK_Button;
  82. }
  83. [MethodImpl(MethodImplOptions.Synchronized)]
  84. set
  85. {
  86. EventHandler value2 = OK_Button_Click;
  87. if (_OK_Button != null)
  88. {
  89. _OK_Button.Click -= value2;
  90. }
  91. _OK_Button = value;
  92. if (_OK_Button != null)
  93. {
  94. _OK_Button.Click += value2;
  95. }
  96. }
  97. }
  98. internal virtual Button Cancel_Button
  99. {
  100. get
  101. {
  102. return _Cancel_Button;
  103. }
  104. [MethodImpl(MethodImplOptions.Synchronized)]
  105. set
  106. {
  107. EventHandler value2 = Cancel_Button_Click;
  108. if (_Cancel_Button != null)
  109. {
  110. _Cancel_Button.Click -= value2;
  111. }
  112. _Cancel_Button = value;
  113. if (_Cancel_Button != null)
  114. {
  115. _Cancel_Button.Click += value2;
  116. }
  117. }
  118. }
  119. internal virtual Panel Panel1
  120. {
  121. get
  122. {
  123. return _Panel1;
  124. }
  125. [MethodImpl(MethodImplOptions.Synchronized)]
  126. set
  127. {
  128. _Panel1 = value;
  129. }
  130. }
  131. internal virtual TextBox TextBox1
  132. {
  133. get
  134. {
  135. return _TextBox1;
  136. }
  137. [MethodImpl(MethodImplOptions.Synchronized)]
  138. set
  139. {
  140. _TextBox1 = value;
  141. }
  142. }
  143. internal virtual Button Button1
  144. {
  145. get
  146. {
  147. return _Button1;
  148. }
  149. [MethodImpl(MethodImplOptions.Synchronized)]
  150. set
  151. {
  152. EventHandler value2 = Button1_Click;
  153. if (_Button1 != null)
  154. {
  155. _Button1.Click -= value2;
  156. }
  157. _Button1 = value;
  158. if (_Button1 != null)
  159. {
  160. _Button1.Click += value2;
  161. }
  162. }
  163. }
  164. internal virtual ContextMenuStrip ContextMenuStrip1
  165. {
  166. get
  167. {
  168. return _ContextMenuStrip1;
  169. }
  170. [MethodImpl(MethodImplOptions.Synchronized)]
  171. set
  172. {
  173. _ContextMenuStrip1 = value;
  174. }
  175. }
  176. internal virtual ToolStripMenuItem 页码ToolStripMenuItem
  177. {
  178. get
  179. {
  180. return _页码ToolStripMenuItem;
  181. }
  182. [MethodImpl(MethodImplOptions.Synchronized)]
  183. set
  184. {
  185. EventHandler value2 = 页码ToolStripMenuItem_Click;
  186. if (_页码ToolStripMenuItem != null)
  187. {
  188. _页码ToolStripMenuItem.Click -= value2;
  189. }
  190. _页码ToolStripMenuItem = value;
  191. if (_页码ToolStripMenuItem != null)
  192. {
  193. _页码ToolStripMenuItem.Click += value2;
  194. }
  195. }
  196. }
  197. internal virtual ToolStripMenuItem 总页数ToolStripMenuItem
  198. {
  199. get
  200. {
  201. return _总页数ToolStripMenuItem;
  202. }
  203. [MethodImpl(MethodImplOptions.Synchronized)]
  204. set
  205. {
  206. EventHandler value2 = 页码ToolStripMenuItem_Click;
  207. if (_总页数ToolStripMenuItem != null)
  208. {
  209. _总页数ToolStripMenuItem.Click -= value2;
  210. }
  211. _总页数ToolStripMenuItem = value;
  212. if (_总页数ToolStripMenuItem != null)
  213. {
  214. _总页数ToolStripMenuItem.Click += value2;
  215. }
  216. }
  217. }
  218. internal virtual ToolStripMenuItem 当前日期ToolStripMenuItem
  219. {
  220. get
  221. {
  222. return _当前日期ToolStripMenuItem;
  223. }
  224. [MethodImpl(MethodImplOptions.Synchronized)]
  225. set
  226. {
  227. EventHandler value2 = 页码ToolStripMenuItem_Click;
  228. if (_当前日期ToolStripMenuItem != null)
  229. {
  230. _当前日期ToolStripMenuItem.Click -= value2;
  231. }
  232. _当前日期ToolStripMenuItem = value;
  233. if (_当前日期ToolStripMenuItem != null)
  234. {
  235. _当前日期ToolStripMenuItem.Click += value2;
  236. }
  237. }
  238. }
  239. internal virtual ToolStripMenuItem 当前日期2ToolStripMenuItem
  240. {
  241. get
  242. {
  243. return _当前日期2ToolStripMenuItem;
  244. }
  245. [MethodImpl(MethodImplOptions.Synchronized)]
  246. set
  247. {
  248. EventHandler value2 = 页码ToolStripMenuItem_Click;
  249. if (_当前日期2ToolStripMenuItem != null)
  250. {
  251. _当前日期2ToolStripMenuItem.Click -= value2;
  252. }
  253. _当前日期2ToolStripMenuItem = value;
  254. if (_当前日期2ToolStripMenuItem != null)
  255. {
  256. _当前日期2ToolStripMenuItem.Click += value2;
  257. }
  258. }
  259. }
  260. internal virtual ToolStripMenuItem 当前年ToolStripMenuItem
  261. {
  262. get
  263. {
  264. return _当前年ToolStripMenuItem;
  265. }
  266. [MethodImpl(MethodImplOptions.Synchronized)]
  267. set
  268. {
  269. EventHandler value2 = 页码ToolStripMenuItem_Click;
  270. if (_当前年ToolStripMenuItem != null)
  271. {
  272. _当前年ToolStripMenuItem.Click -= value2;
  273. }
  274. _当前年ToolStripMenuItem = value;
  275. if (_当前年ToolStripMenuItem != null)
  276. {
  277. _当前年ToolStripMenuItem.Click += value2;
  278. }
  279. }
  280. }
  281. internal virtual ToolStripMenuItem ToolStripMenuItem1
  282. {
  283. get
  284. {
  285. return _ToolStripMenuItem1;
  286. }
  287. [MethodImpl(MethodImplOptions.Synchronized)]
  288. set
  289. {
  290. EventHandler value2 = 页码ToolStripMenuItem_Click;
  291. if (_ToolStripMenuItem1 != null)
  292. {
  293. _ToolStripMenuItem1.Click -= value2;
  294. }
  295. _ToolStripMenuItem1 = value;
  296. if (_ToolStripMenuItem1 != null)
  297. {
  298. _ToolStripMenuItem1.Click += value2;
  299. }
  300. }
  301. }
  302. internal virtual ToolStripMenuItem ToolStripMenuItem2
  303. {
  304. get
  305. {
  306. return _ToolStripMenuItem2;
  307. }
  308. [MethodImpl(MethodImplOptions.Synchronized)]
  309. set
  310. {
  311. EventHandler value2 = 页码ToolStripMenuItem_Click;
  312. if (_ToolStripMenuItem2 != null)
  313. {
  314. _ToolStripMenuItem2.Click -= value2;
  315. }
  316. _ToolStripMenuItem2 = value;
  317. if (_ToolStripMenuItem2 != null)
  318. {
  319. _ToolStripMenuItem2.Click += value2;
  320. }
  321. }
  322. }
  323. internal virtual ToolStripMenuItem ToolStripMenuItem3
  324. {
  325. get
  326. {
  327. return _ToolStripMenuItem3;
  328. }
  329. [MethodImpl(MethodImplOptions.Synchronized)]
  330. set
  331. {
  332. EventHandler value2 = 页码ToolStripMenuItem_Click;
  333. if (_ToolStripMenuItem3 != null)
  334. {
  335. _ToolStripMenuItem3.Click -= value2;
  336. }
  337. _ToolStripMenuItem3 = value;
  338. if (_ToolStripMenuItem3 != null)
  339. {
  340. _ToolStripMenuItem3.Click += value2;
  341. }
  342. }
  343. }
  344. internal virtual ToolStripMenuItem ToolStripMenuItem4
  345. {
  346. get
  347. {
  348. return _ToolStripMenuItem4;
  349. }
  350. [MethodImpl(MethodImplOptions.Synchronized)]
  351. set
  352. {
  353. EventHandler value2 = 页码ToolStripMenuItem_Click;
  354. if (_ToolStripMenuItem4 != null)
  355. {
  356. _ToolStripMenuItem4.Click -= value2;
  357. }
  358. _ToolStripMenuItem4 = value;
  359. if (_ToolStripMenuItem4 != null)
  360. {
  361. _ToolStripMenuItem4.Click += value2;
  362. }
  363. }
  364. }
  365. internal virtual ToolStripMenuItem ToolStripMenuItem5
  366. {
  367. get
  368. {
  369. return _ToolStripMenuItem5;
  370. }
  371. [MethodImpl(MethodImplOptions.Synchronized)]
  372. set
  373. {
  374. EventHandler value2 = 页码ToolStripMenuItem_Click;
  375. if (_ToolStripMenuItem5 != null)
  376. {
  377. _ToolStripMenuItem5.Click -= value2;
  378. }
  379. _ToolStripMenuItem5 = value;
  380. if (_ToolStripMenuItem5 != null)
  381. {
  382. _ToolStripMenuItem5.Click += value2;
  383. }
  384. }
  385. }
  386. internal virtual Button Button2
  387. {
  388. get
  389. {
  390. return _Button2;
  391. }
  392. [MethodImpl(MethodImplOptions.Synchronized)]
  393. set
  394. {
  395. EventHandler value2 = Button2_Click;
  396. if (_Button2 != null)
  397. {
  398. _Button2.Click -= value2;
  399. }
  400. _Button2 = value;
  401. if (_Button2 != null)
  402. {
  403. _Button2.Click += value2;
  404. }
  405. }
  406. }
  407. internal virtual ContextMenuStrip ContextMenuStrip2
  408. {
  409. get
  410. {
  411. return _ContextMenuStrip2;
  412. }
  413. [MethodImpl(MethodImplOptions.Synchronized)]
  414. set
  415. {
  416. _ContextMenuStrip2 = value;
  417. }
  418. }
  419. internal virtual ToolStripSeparator ToolStripSeparator1
  420. {
  421. get
  422. {
  423. return _ToolStripSeparator1;
  424. }
  425. [MethodImpl(MethodImplOptions.Synchronized)]
  426. set
  427. {
  428. _ToolStripSeparator1 = value;
  429. }
  430. }
  431. internal virtual Button Button3
  432. {
  433. get
  434. {
  435. return _Button3;
  436. }
  437. [MethodImpl(MethodImplOptions.Synchronized)]
  438. set
  439. {
  440. EventHandler value2 = Button3_Click;
  441. if (_Button3 != null)
  442. {
  443. _Button3.Click -= value2;
  444. }
  445. _Button3 = value;
  446. if (_Button3 != null)
  447. {
  448. _Button3.Click += value2;
  449. }
  450. }
  451. }
  452. internal virtual ContextMenuStrip ContextMenuStrip3
  453. {
  454. get
  455. {
  456. return _ContextMenuStrip3;
  457. }
  458. [MethodImpl(MethodImplOptions.Synchronized)]
  459. set
  460. {
  461. _ContextMenuStrip3 = value;
  462. }
  463. }
  464. internal virtual Label Label1
  465. {
  466. get
  467. {
  468. return _Label1;
  469. }
  470. [MethodImpl(MethodImplOptions.Synchronized)]
  471. set
  472. {
  473. _Label1 = value;
  474. }
  475. }
  476. internal virtual Label Label2
  477. {
  478. get
  479. {
  480. return _Label2;
  481. }
  482. [MethodImpl(MethodImplOptions.Synchronized)]
  483. set
  484. {
  485. _Label2 = value;
  486. }
  487. }
  488. internal virtual Label Label3
  489. {
  490. get
  491. {
  492. return _Label3;
  493. }
  494. [MethodImpl(MethodImplOptions.Synchronized)]
  495. set
  496. {
  497. _Label3 = value;
  498. }
  499. }
  500. public TextEdit_Express()
  501. {
  502. base.Load += TextEdit_Express_Load;
  503. InitializeComponent();
  504. }
  505. [DebuggerNonUserCode]
  506. protected override void Dispose(bool disposing)
  507. {
  508. try
  509. {
  510. if (disposing && components != null)
  511. {
  512. components.Dispose();
  513. }
  514. }
  515. finally
  516. {
  517. base.Dispose(disposing);
  518. }
  519. }
  520. [System.Diagnostics.DebuggerStepThrough]
  521. private void InitializeComponent()
  522. {
  523. this.components = new System.ComponentModel.Container();
  524. this.TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
  525. this.OK_Button = new System.Windows.Forms.Button();
  526. this.Cancel_Button = new System.Windows.Forms.Button();
  527. this.Panel1 = new System.Windows.Forms.Panel();
  528. this.TextBox1 = new System.Windows.Forms.TextBox();
  529. this.ContextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
  530. this.页码ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  531. this.总页数ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  532. this.当前日期ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  533. this.当前日期2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  534. this.当前年ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
  535. this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
  536. this.ToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
  537. this.ToolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
  538. this.ToolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
  539. this.ToolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem();
  540. this.ToolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
  541. this.Button1 = new System.Windows.Forms.Button();
  542. this.Button2 = new System.Windows.Forms.Button();
  543. this.ContextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);
  544. this.Button3 = new System.Windows.Forms.Button();
  545. this.ContextMenuStrip3 = new System.Windows.Forms.ContextMenuStrip(this.components);
  546. this.Label1 = new System.Windows.Forms.Label();
  547. this.Label2 = new System.Windows.Forms.Label();
  548. this.Label3 = new System.Windows.Forms.Label();
  549. this.TableLayoutPanel1.SuspendLayout();
  550. this.Panel1.SuspendLayout();
  551. this.ContextMenuStrip1.SuspendLayout();
  552. base.SuspendLayout();
  553. this.TableLayoutPanel1.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right;
  554. this.TableLayoutPanel1.ColumnCount = 2;
  555. this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
  556. this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
  557. this.TableLayoutPanel1.Controls.Add(this.OK_Button, 0, 0);
  558. this.TableLayoutPanel1.Controls.Add(this.Cancel_Button, 1, 0);
  559. System.Windows.Forms.Control tableLayoutPanel = this.TableLayoutPanel1;
  560. System.Drawing.Point location = new System.Drawing.Point(297, 203);
  561. tableLayoutPanel.Location = location;
  562. this.TableLayoutPanel1.Name = "TableLayoutPanel1";
  563. this.TableLayoutPanel1.RowCount = 1;
  564. this.TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
  565. System.Windows.Forms.Control tableLayoutPanel2 = this.TableLayoutPanel1;
  566. System.Drawing.Size size = new System.Drawing.Size(146, 27);
  567. tableLayoutPanel2.Size = size;
  568. this.TableLayoutPanel1.TabIndex = 0;
  569. this.OK_Button.Anchor = System.Windows.Forms.AnchorStyles.None;
  570. System.Windows.Forms.Control oK_Button = this.OK_Button;
  571. location = new System.Drawing.Point(3, 3);
  572. oK_Button.Location = location;
  573. this.OK_Button.Name = "OK_Button";
  574. System.Windows.Forms.Control oK_Button2 = this.OK_Button;
  575. size = new System.Drawing.Size(67, 21);
  576. oK_Button2.Size = size;
  577. this.OK_Button.TabIndex = 0;
  578. this.OK_Button.Text = "确定";
  579. this.Cancel_Button.Anchor = System.Windows.Forms.AnchorStyles.None;
  580. this.Cancel_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel;
  581. System.Windows.Forms.Control cancel_Button = this.Cancel_Button;
  582. location = new System.Drawing.Point(76, 3);
  583. cancel_Button.Location = location;
  584. this.Cancel_Button.Name = "Cancel_Button";
  585. System.Windows.Forms.Control cancel_Button2 = this.Cancel_Button;
  586. size = new System.Drawing.Size(67, 21);
  587. cancel_Button2.Size = size;
  588. this.Cancel_Button.TabIndex = 1;
  589. this.Cancel_Button.Text = "取消";
  590. this.Panel1.Controls.Add(this.TextBox1);
  591. this.Panel1.Dock = System.Windows.Forms.DockStyle.Top;
  592. System.Windows.Forms.Control panel = this.Panel1;
  593. location = new System.Drawing.Point(0, 0);
  594. panel.Location = location;
  595. this.Panel1.Name = "Panel1";
  596. System.Windows.Forms.Control panel2 = this.Panel1;
  597. size = new System.Drawing.Size(443, 193);
  598. panel2.Size = size;
  599. this.Panel1.TabIndex = 1;
  600. this.TextBox1.AcceptsReturn = true;
  601. this.TextBox1.Dock = System.Windows.Forms.DockStyle.Fill;
  602. this.TextBox1.Font = new System.Drawing.Font("宋体", 14.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
  603. this.TextBox1.HideSelection = false;
  604. System.Windows.Forms.Control textBox = this.TextBox1;
  605. location = new System.Drawing.Point(0, 0);
  606. textBox.Location = location;
  607. this.TextBox1.Multiline = true;
  608. this.TextBox1.Name = "TextBox1";
  609. this.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
  610. System.Windows.Forms.Control textBox2 = this.TextBox1;
  611. size = new System.Drawing.Size(443, 193);
  612. textBox2.Size = size;
  613. this.TextBox1.TabIndex = 1;
  614. this.ContextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[11]
  615. {
  616. this.页码ToolStripMenuItem, this.总页数ToolStripMenuItem, this.当前日期ToolStripMenuItem, this.当前日期2ToolStripMenuItem, this.当前年ToolStripMenuItem, this.ToolStripMenuItem1, this.ToolStripMenuItem2, this.ToolStripMenuItem3, this.ToolStripMenuItem4, this.ToolStripMenuItem5,
  617. this.ToolStripSeparator1
  618. });
  619. this.ContextMenuStrip1.Name = "ContextMenuStrip1";
  620. System.Windows.Forms.Control contextMenuStrip = this.ContextMenuStrip1;
  621. size = new System.Drawing.Size(129, 230);
  622. contextMenuStrip.Size = size;
  623. this.页码ToolStripMenuItem.Name = "页码ToolStripMenuItem";
  624. System.Windows.Forms.ToolStripItem toolStripItem = this.页码ToolStripMenuItem;
  625. size = new System.Drawing.Size(128, 22);
  626. toolStripItem.Size = size;
  627. this.页码ToolStripMenuItem.Text = "页码";
  628. this.总页数ToolStripMenuItem.Name = "总页数ToolStripMenuItem";
  629. System.Windows.Forms.ToolStripItem toolStripItem2 = this.总页数ToolStripMenuItem;
  630. size = new System.Drawing.Size(128, 22);
  631. toolStripItem2.Size = size;
  632. this.总页数ToolStripMenuItem.Text = "总页数";
  633. this.当前日期ToolStripMenuItem.Name = "当前日期ToolStripMenuItem";
  634. System.Windows.Forms.ToolStripItem toolStripItem3 = this.当前日期ToolStripMenuItem;
  635. size = new System.Drawing.Size(128, 22);
  636. toolStripItem3.Size = size;
  637. this.当前日期ToolStripMenuItem.Text = "当前日期";
  638. this.当前日期ToolStripMenuItem.ToolTipText = "插入当前日期,以-号分格";
  639. this.当前日期2ToolStripMenuItem.Name = "当前日期2ToolStripMenuItem";
  640. System.Windows.Forms.ToolStripItem toolStripItem4 = this.当前日期2ToolStripMenuItem;
  641. size = new System.Drawing.Size(128, 22);
  642. toolStripItem4.Size = size;
  643. this.当前日期2ToolStripMenuItem.Text = "当前日期2";
  644. this.当前日期2ToolStripMenuItem.ToolTipText = "长日期格式";
  645. this.当前年ToolStripMenuItem.Name = "当前年ToolStripMenuItem";
  646. System.Windows.Forms.ToolStripItem toolStripItem5 = this.当前年ToolStripMenuItem;
  647. size = new System.Drawing.Size(128, 22);
  648. toolStripItem5.Size = size;
  649. this.当前年ToolStripMenuItem.Text = "当前年";
  650. this.ToolStripMenuItem1.Name = "ToolStripMenuItem1";
  651. System.Windows.Forms.ToolStripItem toolStripMenuItem = this.ToolStripMenuItem1;
  652. size = new System.Drawing.Size(128, 22);
  653. toolStripMenuItem.Size = size;
  654. this.ToolStripMenuItem1.Text = "当前月";
  655. this.ToolStripMenuItem2.Name = "ToolStripMenuItem2";
  656. System.Windows.Forms.ToolStripItem toolStripMenuItem2 = this.ToolStripMenuItem2;
  657. size = new System.Drawing.Size(128, 22);
  658. toolStripMenuItem2.Size = size;
  659. this.ToolStripMenuItem2.Text = "当前日";
  660. this.ToolStripMenuItem3.Name = "ToolStripMenuItem3";
  661. System.Windows.Forms.ToolStripItem toolStripMenuItem3 = this.ToolStripMenuItem3;
  662. size = new System.Drawing.Size(128, 22);
  663. toolStripMenuItem3.Size = size;
  664. this.ToolStripMenuItem3.Text = "当前时间";
  665. this.ToolStripMenuItem4.Name = "ToolStripMenuItem4";
  666. System.Windows.Forms.ToolStripItem toolStripMenuItem4 = this.ToolStripMenuItem4;
  667. size = new System.Drawing.Size(128, 22);
  668. toolStripMenuItem4.Size = size;
  669. this.ToolStripMenuItem4.Text = "行号";
  670. this.ToolStripMenuItem4.ToolTipText = "表格详细数据行号,从1开始计算";
  671. this.ToolStripMenuItem5.Name = "ToolStripMenuItem5";
  672. System.Windows.Forms.ToolStripItem toolStripMenuItem5 = this.ToolStripMenuItem5;
  673. size = new System.Drawing.Size(128, 22);
  674. toolStripMenuItem5.Size = size;
  675. this.ToolStripMenuItem5.Text = "页行号";
  676. this.ToolStripMenuItem5.ToolTipText = "每页从1重新开始计算的行号";
  677. this.ToolStripSeparator1.Name = "ToolStripSeparator1";
  678. System.Windows.Forms.ToolStripItem toolStripSeparator = this.ToolStripSeparator1;
  679. size = new System.Drawing.Size(125, 6);
  680. toolStripSeparator.Size = size;
  681. System.Windows.Forms.Control button = this.Button1;
  682. location = new System.Drawing.Point(17, 203);
  683. button.Location = location;
  684. this.Button1.Name = "Button1";
  685. System.Windows.Forms.Control button2 = this.Button1;
  686. size = new System.Drawing.Size(106, 23);
  687. button2.Size = size;
  688. this.Button1.TabIndex = 2;
  689. this.Button1.Text = "插入系统变量.…";
  690. this.Button1.UseVisualStyleBackColor = true;
  691. System.Windows.Forms.Control button3 = this.Button2;
  692. location = new System.Drawing.Point(133, 203);
  693. button3.Location = location;
  694. this.Button2.Name = "Button2";
  695. System.Windows.Forms.Control button4 = this.Button2;
  696. size = new System.Drawing.Size(128, 23);
  697. button4.Size = size;
  698. this.Button2.TabIndex = 2;
  699. this.Button2.Text = "插入自定义变量.…";
  700. this.Button2.UseVisualStyleBackColor = true;
  701. this.ContextMenuStrip2.Name = "ContextMenuStrip2";
  702. System.Windows.Forms.Control contextMenuStrip2 = this.ContextMenuStrip2;
  703. size = new System.Drawing.Size(61, 4);
  704. contextMenuStrip2.Size = size;
  705. System.Windows.Forms.Control button5 = this.Button3;
  706. location = new System.Drawing.Point(17, 230);
  707. button5.Location = location;
  708. this.Button3.Name = "Button3";
  709. System.Windows.Forms.Control button6 = this.Button3;
  710. size = new System.Drawing.Size(106, 23);
  711. button6.Size = size;
  712. this.Button3.TabIndex = 2;
  713. this.Button3.Text = "插入字段变量.…";
  714. this.Button3.UseVisualStyleBackColor = true;
  715. this.ContextMenuStrip3.Name = "ContextMenuStrip3";
  716. System.Windows.Forms.Control contextMenuStrip3 = this.ContextMenuStrip3;
  717. size = new System.Drawing.Size(61, 4);
  718. contextMenuStrip3.Size = size;
  719. System.Windows.Forms.Control label = this.Label1;
  720. location = new System.Drawing.Point(10, 258);
  721. label.Location = location;
  722. this.Label1.Name = "Label1";
  723. System.Windows.Forms.Control label2 = this.Label1;
  724. size = new System.Drawing.Size(421, 64);
  725. label2.Size = size;
  726. this.Label1.TabIndex = 3;
  727. this.Label1.Text = "注1:在表达式中可进行加、减、乘、除运算及带括号的运算(如果有系统变量、自定义变量及字段变量,则会先把变量替换为相应的值后再进行计算),还可以使用大部分.NET自身的函数及自定义函数(请参见帮助文件)。但请注意,如果使用了除 加、减、乘、除运算及带括号的运算外的其他运算及涉及到函数,程序将用动态编译的办法来求表达式的值,此时速度会比较慢。";
  728. System.Windows.Forms.Control label3 = this.Label2;
  729. location = new System.Drawing.Point(14, 327);
  730. label3.Location = location;
  731. this.Label2.Name = "Label2";
  732. System.Windows.Forms.Control label4 = this.Label2;
  733. size = new System.Drawing.Size(413, 25);
  734. label4.Size = size;
  735. this.Label2.TabIndex = 3;
  736. this.Label2.Text = "注2:如果不同类型的变量名称存在相同的情况 ,则程序替换变量的顺序是:先字段变量,再自定义变量,最后才是系统变量。";
  737. System.Windows.Forms.Control label5 = this.Label3;
  738. location = new System.Drawing.Point(14, 362);
  739. label5.Location = location;
  740. this.Label3.Name = "Label3";
  741. System.Windows.Forms.Control label6 = this.Label3;
  742. size = new System.Drawing.Size(413, 25);
  743. label6.Size = size;
  744. this.Label3.TabIndex = 3;
  745. this.Label3.Text = "注3:如果表达式不合法,则不会进行计算,而是直接显示文本(设计时不会检测表达式的合法性)。";
  746. base.AcceptButton = this.OK_Button;
  747. System.Drawing.SizeF sizeF = new System.Drawing.SizeF(6f, 12f);
  748. base.AutoScaleDimensions = sizeF;
  749. base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  750. base.CancelButton = this.Cancel_Button;
  751. size = new System.Drawing.Size(443, 392);
  752. base.ClientSize = size;
  753. base.Controls.Add(this.Label1);
  754. base.Controls.Add(this.Panel1);
  755. base.Controls.Add(this.Button2);
  756. base.Controls.Add(this.Label2);
  757. base.Controls.Add(this.Button3);
  758. base.Controls.Add(this.Button1);
  759. base.Controls.Add(this.Label3);
  760. base.Controls.Add(this.TableLayoutPanel1);
  761. base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
  762. base.MaximizeBox = false;
  763. base.MinimizeBox = false;
  764. base.Name = "TextEdit_Express";
  765. base.ShowInTaskbar = false;
  766. base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  767. this.Text = "表达式编辑器";
  768. this.TableLayoutPanel1.ResumeLayout(false);
  769. this.Panel1.ResumeLayout(false);
  770. this.Panel1.PerformLayout();
  771. this.ContextMenuStrip1.ResumeLayout(false);
  772. base.ResumeLayout(false);
  773. }
  774. private void OK_Button_Click(object sender, EventArgs e)
  775. {
  776. base.DialogResult = DialogResult.OK;
  777. Close();
  778. }
  779. private void Cancel_Button_Click(object sender, EventArgs e)
  780. {
  781. base.DialogResult = DialogResult.Cancel;
  782. Close();
  783. }
  784. private void Button1_Click(object sender, EventArgs e)
  785. {
  786. ContextMenuStrip1.Show((Control)sender, 0, 0);
  787. }
  788. private void 页码ToolStripMenuItem_Click(object sender, EventArgs e)
  789. {
  790. string text = ((ToolStripMenuItem)sender).Text;
  791. text = "[" + text + "]";
  792. TextBox1.Paste(text);
  793. TextBox1.Focus();
  794. }
  795. private void Button2_Click(object sender, EventArgs e)
  796. {
  797. ContextMenuStrip2.Show((Control)sender, 0, 0);
  798. }
  799. private void TextEdit_Express_Load(object sender, EventArgs e)
  800. {
  801. checked
  802. {
  803. if (mbsjmodule.FieldsString2 == null)
  804. {
  805. Button2.Enabled = false;
  806. }
  807. else if (mbsjmodule.FieldsString2.GetLength(0) < 0)
  808. {
  809. Button2.Enabled = false;
  810. }
  811. else
  812. {
  813. Button2.Enabled = true;
  814. int num = 0;
  815. int num2 = mbsjmodule.FieldsString2.GetLength(0) - 1;
  816. for (int i = num; i <= num2; i++)
  817. {
  818. if (Operators.CompareString(mbsjmodule.FieldsString2[i, 0], "", TextCompare: false) != 0)
  819. {
  820. ToolStripItem toolStripItem = ContextMenuStrip2.Items.Add(mbsjmodule.FieldsString2[i, 0]);
  821. toolStripItem.Click += 页码ToolStripMenuItem_Click;
  822. }
  823. }
  824. if (ContextMenuStrip2.Items.Count <= 0)
  825. {
  826. Button2.Enabled = false;
  827. }
  828. }
  829. if (mbsjmodule.FieldsString == null)
  830. {
  831. Button3.Enabled = false;
  832. return;
  833. }
  834. if (mbsjmodule.FieldsString.Length < 0)
  835. {
  836. Button3.Enabled = false;
  837. return;
  838. }
  839. Button3.Enabled = true;
  840. int num3 = 0;
  841. int num4 = mbsjmodule.FieldsString.Length - 1;
  842. for (int j = num3; j <= num4; j++)
  843. {
  844. ToolStripItem toolStripItem2 = ContextMenuStrip3.Items.Add(mbsjmodule.FieldsString[j]);
  845. toolStripItem2.Click += 页码ToolStripMenuItem_Click;
  846. }
  847. }
  848. }
  849. private void Button3_Click(object sender, EventArgs e)
  850. {
  851. ContextMenuStrip3.Show((Control)sender, 0, 0);
  852. }
  853. }
  854. }