w_aifmb_datetime_parm_ch.srw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968
  1. $PBExportHeader$w_aifmb_datetime_parm_ch.srw
  2. forward
  3. global type w_aifmb_datetime_parm_ch from window
  4. end type
  5. type cb_10 from commandbutton within w_aifmb_datetime_parm_ch
  6. end type
  7. type cb_9 from commandbutton within w_aifmb_datetime_parm_ch
  8. end type
  9. type tab_1 from tab within w_aifmb_datetime_parm_ch
  10. end type
  11. type tabpage_1 from userobject within tab_1
  12. end type
  13. type mle_1 from multilineedit within tabpage_1
  14. end type
  15. type cb_2 from commandbutton within tabpage_1
  16. end type
  17. type cb_1 from commandbutton within tabpage_1
  18. end type
  19. type em_1 from editmask within tabpage_1
  20. end type
  21. type dw_1 from datawindow within tabpage_1
  22. end type
  23. type tabpage_1 from userobject within tab_1
  24. mle_1 mle_1
  25. cb_2 cb_2
  26. cb_1 cb_1
  27. em_1 em_1
  28. dw_1 dw_1
  29. end type
  30. type tabpage_2 from userobject within tab_1
  31. end type
  32. type ddlb_1 from dropdownlistbox within tabpage_2
  33. end type
  34. type em_2 from editmask within tabpage_2
  35. end type
  36. type cb_4 from commandbutton within tabpage_2
  37. end type
  38. type cb_3 from commandbutton within tabpage_2
  39. end type
  40. type mle_2 from multilineedit within tabpage_2
  41. end type
  42. type dw_2 from datawindow within tabpage_2
  43. end type
  44. type tabpage_2 from userobject within tab_1
  45. ddlb_1 ddlb_1
  46. em_2 em_2
  47. cb_4 cb_4
  48. cb_3 cb_3
  49. mle_2 mle_2
  50. dw_2 dw_2
  51. end type
  52. type tabpage_3 from userobject within tab_1
  53. end type
  54. type mle_3 from multilineedit within tabpage_3
  55. end type
  56. type dw_3 from datawindow within tabpage_3
  57. end type
  58. type cb_6 from commandbutton within tabpage_3
  59. end type
  60. type cb_5 from commandbutton within tabpage_3
  61. end type
  62. type em_3 from editmask within tabpage_3
  63. end type
  64. type ddlb_2 from dropdownlistbox within tabpage_3
  65. end type
  66. type tabpage_3 from userobject within tab_1
  67. mle_3 mle_3
  68. dw_3 dw_3
  69. cb_6 cb_6
  70. cb_5 cb_5
  71. em_3 em_3
  72. ddlb_2 ddlb_2
  73. end type
  74. type tabpage_4 from userobject within tab_1
  75. end type
  76. type mle_4 from multilineedit within tabpage_4
  77. end type
  78. type dw_4 from datawindow within tabpage_4
  79. end type
  80. type cb_8 from commandbutton within tabpage_4
  81. end type
  82. type cb_7 from commandbutton within tabpage_4
  83. end type
  84. type em_4 from editmask within tabpage_4
  85. end type
  86. type tabpage_4 from userobject within tab_1
  87. mle_4 mle_4
  88. dw_4 dw_4
  89. cb_8 cb_8
  90. cb_7 cb_7
  91. em_4 em_4
  92. end type
  93. type tab_1 from tab within w_aifmb_datetime_parm_ch
  94. tabpage_1 tabpage_1
  95. tabpage_2 tabpage_2
  96. tabpage_3 tabpage_3
  97. tabpage_4 tabpage_4
  98. end type
  99. end forward
  100. global type w_aifmb_datetime_parm_ch from window
  101. integer width = 1733
  102. integer height = 1208
  103. boolean titlebar = true
  104. string title = "执行频率"
  105. boolean controlmenu = true
  106. windowtype windowtype = response!
  107. long backcolor = 67108864
  108. string icon = "AppIcon!"
  109. boolean center = true
  110. cb_10 cb_10
  111. cb_9 cb_9
  112. tab_1 tab_1
  113. end type
  114. global w_aifmb_datetime_parm_ch w_aifmb_datetime_parm_ch
  115. type variables
  116. s_aifmb_datetime_parm_ch ins_rslt
  117. end variables
  118. forward prototypes
  119. public subroutine wf_monthstr ()
  120. public subroutine wf_weekstr ()
  121. public subroutine wf_yearstr ()
  122. public subroutine wf_daystr ()
  123. end prototypes
  124. public subroutine wf_monthstr ();String ls_str = ''
  125. datawindow dw_3
  126. dw_3 = tab_1.tabpage_3.dw_3
  127. Long i
  128. IF dw_3.RowCount() > 0 THEN
  129. ls_str = String(dw_3.Object.month[1]) + ' ' + String(dw_3.Object.mtime[1], 'HH:mm')
  130. FOR i = 2 To dw_3.RowCount()
  131. ls_str += ',' + String(dw_3.Object.month[i]) + ' ' + String(dw_3.Object.mtime[i], 'HH:mm')
  132. NEXT
  133. END IF
  134. tab_1.tabpage_3.mle_3.Text = ls_str
  135. end subroutine
  136. public subroutine wf_weekstr ();String ls_str = ''
  137. datawindow dw_2
  138. dw_2 = tab_1.tabpage_2.dw_2
  139. Long i
  140. IF dw_2.RowCount() > 0 THEN
  141. ls_str = String(dw_2.Object.week[1]) + ' ' + String(dw_2.Object.wtime[1], 'HH:mm')
  142. FOR i = 2 To dw_2.RowCount()
  143. ls_str += ',' + String(dw_2.Object.week[i]) + ' ' + String(dw_2.Object.wtime[i], 'HH:mm')
  144. NEXT
  145. END IF
  146. tab_1.tabpage_2.mle_2.Text = ls_str
  147. end subroutine
  148. public subroutine wf_yearstr ();String ls_str = ''
  149. Long i
  150. datawindow dw_4
  151. dw_4 = tab_1.tabpage_4.dw_4
  152. IF dw_4.RowCount() > 0 THEN
  153. ls_str = String(dw_4.Object.ytime[1], 'MM-dd HH:mm')
  154. FOR i = 2 To dw_4.RowCount()
  155. ls_str += ',' + String(dw_4.Object.ytime[i], 'MM-dd HH:mm')
  156. NEXT
  157. END IF
  158. tab_1.tabpage_4.mle_4.Text = ls_str
  159. end subroutine
  160. public subroutine wf_daystr ();String ls_str = ''
  161. Long i
  162. datawindow dw_1
  163. dw_1 = tab_1.tabpage_1.dw_1
  164. IF dw_1.RowCount() > 0 THEN
  165. ls_str = String(dw_1.Object.dtime[1], 'HH:mm')
  166. FOR i = 2 To dw_1.RowCount()
  167. ls_str += ',' + String(dw_1.Object.dtime[i], 'HH:mm')
  168. NEXT
  169. END IF
  170. tab_1.tabpage_1.mle_1.Text = ls_str
  171. end subroutine
  172. on w_aifmb_datetime_parm_ch.create
  173. this.cb_10=create cb_10
  174. this.cb_9=create cb_9
  175. this.tab_1=create tab_1
  176. this.Control[]={this.cb_10,&
  177. this.cb_9,&
  178. this.tab_1}
  179. end on
  180. on w_aifmb_datetime_parm_ch.destroy
  181. destroy(this.cb_10)
  182. destroy(this.cb_9)
  183. destroy(this.tab_1)
  184. end on
  185. event open;tab_1.tabpage_4.em_4.Text = '2000-01-01 00:00:00'
  186. end event
  187. event close;closewithreturn(this, ins_rslt)
  188. end event
  189. type cb_10 from commandbutton within w_aifmb_datetime_parm_ch
  190. integer x = 1440
  191. integer y = 1008
  192. integer width = 224
  193. integer height = 84
  194. integer taborder = 50
  195. integer textsize = -9
  196. integer weight = 400
  197. fontcharset fontcharset = gb2312charset!
  198. fontpitch fontpitch = variable!
  199. string facename = "宋体"
  200. string text = "取消"
  201. end type
  202. event clicked;ins_rslt.ifok = 0
  203. close(parent)
  204. end event
  205. type cb_9 from commandbutton within w_aifmb_datetime_parm_ch
  206. integer x = 1175
  207. integer y = 1008
  208. integer width = 224
  209. integer height = 84
  210. integer taborder = 40
  211. integer textsize = -9
  212. integer weight = 400
  213. fontcharset fontcharset = gb2312charset!
  214. fontpitch fontpitch = variable!
  215. string facename = "宋体"
  216. string text = "确定"
  217. end type
  218. event clicked;ins_rslt.ifok = 1
  219. IF tab_1.SelectedTab = 1 THEN
  220. ins_rslt.pricetype = 'D'
  221. ins_rslt.priceparam = tab_1.tabpage_1.mle_1.Text
  222. ELSEIF tab_1.SelectedTab = 2 THEN
  223. ins_rslt.pricetype = 'W'
  224. ins_rslt.priceparam = tab_1.tabpage_2.mle_2.Text
  225. ELSEIF tab_1.SelectedTab = 3 THEN
  226. ins_rslt.pricetype = 'M'
  227. ins_rslt.priceparam = tab_1.tabpage_3.mle_3.Text
  228. ELSEIF tab_1.SelectedTab = 4 THEN
  229. ins_rslt.pricetype = 'Y'
  230. ins_rslt.priceparam = tab_1.tabpage_4.mle_4.Text
  231. END IF
  232. Close(Parent)
  233. end event
  234. type tab_1 from tab within w_aifmb_datetime_parm_ch
  235. integer width = 1719
  236. integer height = 980
  237. integer taborder = 10
  238. integer textsize = -9
  239. integer weight = 400
  240. fontcharset fontcharset = gb2312charset!
  241. fontpitch fontpitch = variable!
  242. string facename = "宋体"
  243. long backcolor = 67108864
  244. boolean raggedright = true
  245. boolean focusonbuttondown = true
  246. integer selectedtab = 1
  247. tabpage_1 tabpage_1
  248. tabpage_2 tabpage_2
  249. tabpage_3 tabpage_3
  250. tabpage_4 tabpage_4
  251. end type
  252. on tab_1.create
  253. this.tabpage_1=create tabpage_1
  254. this.tabpage_2=create tabpage_2
  255. this.tabpage_3=create tabpage_3
  256. this.tabpage_4=create tabpage_4
  257. this.Control[]={this.tabpage_1,&
  258. this.tabpage_2,&
  259. this.tabpage_3,&
  260. this.tabpage_4}
  261. end on
  262. on tab_1.destroy
  263. destroy(this.tabpage_1)
  264. destroy(this.tabpage_2)
  265. destroy(this.tabpage_3)
  266. destroy(this.tabpage_4)
  267. end on
  268. type tabpage_1 from userobject within tab_1
  269. integer x = 18
  270. integer y = 96
  271. integer width = 1682
  272. integer height = 868
  273. long backcolor = 67108864
  274. string text = "天"
  275. long tabtextcolor = 33554432
  276. long picturemaskcolor = 536870912
  277. mle_1 mle_1
  278. cb_2 cb_2
  279. cb_1 cb_1
  280. em_1 em_1
  281. dw_1 dw_1
  282. end type
  283. on tabpage_1.create
  284. this.mle_1=create mle_1
  285. this.cb_2=create cb_2
  286. this.cb_1=create cb_1
  287. this.em_1=create em_1
  288. this.dw_1=create dw_1
  289. this.Control[]={this.mle_1,&
  290. this.cb_2,&
  291. this.cb_1,&
  292. this.em_1,&
  293. this.dw_1}
  294. end on
  295. on tabpage_1.destroy
  296. destroy(this.mle_1)
  297. destroy(this.cb_2)
  298. destroy(this.cb_1)
  299. destroy(this.em_1)
  300. destroy(this.dw_1)
  301. end on
  302. type mle_1 from multilineedit within tabpage_1
  303. integer x = 759
  304. integer y = 104
  305. integer width = 923
  306. integer height = 764
  307. integer taborder = 30
  308. integer textsize = -9
  309. integer weight = 400
  310. fontcharset fontcharset = gb2312charset!
  311. fontpitch fontpitch = variable!
  312. string facename = "宋体"
  313. long textcolor = 33554432
  314. boolean displayonly = true
  315. borderstyle borderstyle = stylelowered!
  316. end type
  317. type cb_2 from commandbutton within tabpage_1
  318. integer x = 430
  319. integer y = 8
  320. integer width = 169
  321. integer height = 84
  322. integer taborder = 60
  323. integer textsize = -9
  324. integer weight = 400
  325. fontcharset fontcharset = gb2312charset!
  326. fontpitch fontpitch = variable!
  327. string facename = "宋体"
  328. string text = "删除"
  329. end type
  330. event clicked;Long row
  331. row = dw_1.GetRow()
  332. IF row > 0 THEN
  333. dw_1.DeleteRow(row)
  334. END IF
  335. wf_daystr()
  336. end event
  337. type cb_1 from commandbutton within tabpage_1
  338. integer x = 251
  339. integer y = 8
  340. integer width = 169
  341. integer height = 84
  342. integer taborder = 50
  343. integer textsize = -9
  344. integer weight = 400
  345. fontcharset fontcharset = gb2312charset!
  346. fontpitch fontpitch = variable!
  347. string facename = "宋体"
  348. string text = "添加"
  349. end type
  350. event clicked;Time lt_addtime
  351. lt_addtime = Time(em_1.Text)
  352. Long i, row
  353. FOR i = 1 To dw_1.RowCount()
  354. IF dw_1.Object.dtime[i] = lt_addtime THEN RETURN
  355. IF dw_1.Object.dtime[i] > lt_addtime THEN
  356. EXIT
  357. END IF
  358. NEXT
  359. IF i > dw_1.RowCount() THEN i = 0
  360. row = dw_1.InsertRow(i)
  361. dw_1.Object.dtime[row] = lt_addtime
  362. wf_daystr()
  363. end event
  364. type em_1 from editmask within tabpage_1
  365. integer y = 8
  366. integer width = 201
  367. integer height = 84
  368. integer taborder = 40
  369. integer textsize = -9
  370. integer weight = 400
  371. fontcharset fontcharset = gb2312charset!
  372. fontpitch fontpitch = variable!
  373. string facename = "宋体"
  374. long textcolor = 33554432
  375. string text = "00:00"
  376. borderstyle borderstyle = stylelowered!
  377. maskdatatype maskdatatype = timemask!
  378. string mask = "HH:mm"
  379. end type
  380. type dw_1 from datawindow within tabpage_1
  381. integer y = 104
  382. integer width = 763
  383. integer height = 764
  384. integer taborder = 20
  385. string title = "none"
  386. string dataobject = "dw_aifmb_day_datetime_parm_ch"
  387. boolean vscrollbar = true
  388. boolean livescroll = true
  389. borderstyle borderstyle = stylelowered!
  390. end type
  391. event clicked;IF row > 0 THEN
  392. This.SetRow(row)
  393. This.ScrollToRow(row)
  394. END IF
  395. end event
  396. event rowfocuschanged;This.SelectRow(0, False)
  397. IF currentrow > 0 THEN
  398. This.SelectRow(currentrow, True)
  399. END IF
  400. end event
  401. type tabpage_2 from userobject within tab_1
  402. integer x = 18
  403. integer y = 96
  404. integer width = 1682
  405. integer height = 868
  406. long backcolor = 67108864
  407. string text = "周"
  408. long tabtextcolor = 33554432
  409. long picturemaskcolor = 536870912
  410. ddlb_1 ddlb_1
  411. em_2 em_2
  412. cb_4 cb_4
  413. cb_3 cb_3
  414. mle_2 mle_2
  415. dw_2 dw_2
  416. end type
  417. on tabpage_2.create
  418. this.ddlb_1=create ddlb_1
  419. this.em_2=create em_2
  420. this.cb_4=create cb_4
  421. this.cb_3=create cb_3
  422. this.mle_2=create mle_2
  423. this.dw_2=create dw_2
  424. this.Control[]={this.ddlb_1,&
  425. this.em_2,&
  426. this.cb_4,&
  427. this.cb_3,&
  428. this.mle_2,&
  429. this.dw_2}
  430. end on
  431. on tabpage_2.destroy
  432. destroy(this.ddlb_1)
  433. destroy(this.em_2)
  434. destroy(this.cb_4)
  435. destroy(this.cb_3)
  436. destroy(this.mle_2)
  437. destroy(this.dw_2)
  438. end on
  439. type ddlb_1 from dropdownlistbox within tabpage_2
  440. integer y = 12
  441. integer width = 192
  442. integer height = 760
  443. integer taborder = 70
  444. integer textsize = -9
  445. integer weight = 400
  446. fontcharset fontcharset = gb2312charset!
  447. fontpitch fontpitch = variable!
  448. string facename = "宋体"
  449. long textcolor = 33554432
  450. string text = "日"
  451. boolean sorted = false
  452. string item[] = {"日","一","二","三","四","五","六"}
  453. borderstyle borderstyle = stylelowered!
  454. end type
  455. type em_2 from editmask within tabpage_2
  456. integer x = 197
  457. integer y = 8
  458. integer width = 201
  459. integer height = 84
  460. integer taborder = 50
  461. integer textsize = -9
  462. integer weight = 400
  463. fontcharset fontcharset = gb2312charset!
  464. fontpitch fontpitch = variable!
  465. string facename = "宋体"
  466. long textcolor = 33554432
  467. string text = "00:00"
  468. borderstyle borderstyle = stylelowered!
  469. maskdatatype maskdatatype = timemask!
  470. string mask = "HH:mm"
  471. end type
  472. type cb_4 from commandbutton within tabpage_2
  473. integer x = 594
  474. integer y = 8
  475. integer width = 169
  476. integer height = 84
  477. integer taborder = 70
  478. integer textsize = -9
  479. integer weight = 400
  480. fontcharset fontcharset = gb2312charset!
  481. fontpitch fontpitch = variable!
  482. string facename = "宋体"
  483. string text = "删除"
  484. end type
  485. event clicked;long row
  486. row = dw_2.GetRow()
  487. if row > 0 then
  488. dw_2.DeleteRow(row)
  489. end if
  490. wf_weekstr()
  491. end event
  492. type cb_3 from commandbutton within tabpage_2
  493. integer x = 416
  494. integer y = 8
  495. integer width = 169
  496. integer height = 84
  497. integer taborder = 60
  498. integer textsize = -9
  499. integer weight = 400
  500. fontcharset fontcharset = gb2312charset!
  501. fontpitch fontpitch = variable!
  502. string facename = "宋体"
  503. string text = "添加"
  504. end type
  505. event clicked;Long ll_week
  506. IF ddlb_1.Text = '日' THEN
  507. ll_week = 0
  508. ELSEIF ddlb_1.Text = '一' THEN
  509. ll_week = 1
  510. ELSEIF ddlb_1.Text = '二' THEN
  511. ll_week = 2
  512. ELSEIF ddlb_1.Text = '三' THEN
  513. ll_week = 3
  514. ELSEIF ddlb_1.Text = '四' THEN
  515. ll_week = 4
  516. ELSEIF ddlb_1.Text = '五' THEN
  517. ll_week = 5
  518. ELSEIF ddlb_1.Text = '六' THEN
  519. ll_week = 6
  520. END IF
  521. Time lt_addtime
  522. lt_addtime = Time(em_2.Text)
  523. Long i
  524. FOR i = 1 To dw_2.RowCount()
  525. IF dw_2.Object.week[i] = ll_week And dw_2.Object.wtime[i] = lt_addtime THEN RETURN
  526. IF dw_2.Object.week[i] > ll_week Or (dw_2.Object.week[i] = ll_week And dw_2.Object.wtime[i] > lt_addtime) THEN
  527. EXIT
  528. END IF
  529. NEXT
  530. if i > dw_2.RowCount() then i = 0
  531. long row
  532. row = dw_2.InsertRow(i)
  533. dw_2.Object.week[row] = ll_week
  534. dw_2.Object.wtime[row] = lt_addtime
  535. wf_weekstr()
  536. end event
  537. type mle_2 from multilineedit within tabpage_2
  538. integer x = 759
  539. integer y = 104
  540. integer width = 923
  541. integer height = 764
  542. integer taborder = 40
  543. integer textsize = -9
  544. integer weight = 400
  545. fontcharset fontcharset = gb2312charset!
  546. fontpitch fontpitch = variable!
  547. string facename = "宋体"
  548. long textcolor = 33554432
  549. boolean displayonly = true
  550. borderstyle borderstyle = stylelowered!
  551. end type
  552. type dw_2 from datawindow within tabpage_2
  553. integer y = 104
  554. integer width = 763
  555. integer height = 764
  556. integer taborder = 30
  557. string title = "none"
  558. string dataobject = "dw_aifmb_week_datetime_parm_ch"
  559. boolean livescroll = true
  560. borderstyle borderstyle = stylelowered!
  561. end type
  562. event rowfocuschanged;This.SelectRow(0, False)
  563. IF currentrow > 0 THEN
  564. This.SelectRow(currentrow, True)
  565. END IF
  566. end event
  567. event clicked;IF row > 0 THEN
  568. This.SetRow(row)
  569. This.ScrollToRow(row)
  570. END IF
  571. end event
  572. type tabpage_3 from userobject within tab_1
  573. integer x = 18
  574. integer y = 96
  575. integer width = 1682
  576. integer height = 868
  577. long backcolor = 67108864
  578. string text = "月"
  579. long tabtextcolor = 33554432
  580. long picturemaskcolor = 536870912
  581. mle_3 mle_3
  582. dw_3 dw_3
  583. cb_6 cb_6
  584. cb_5 cb_5
  585. em_3 em_3
  586. ddlb_2 ddlb_2
  587. end type
  588. on tabpage_3.create
  589. this.mle_3=create mle_3
  590. this.dw_3=create dw_3
  591. this.cb_6=create cb_6
  592. this.cb_5=create cb_5
  593. this.em_3=create em_3
  594. this.ddlb_2=create ddlb_2
  595. this.Control[]={this.mle_3,&
  596. this.dw_3,&
  597. this.cb_6,&
  598. this.cb_5,&
  599. this.em_3,&
  600. this.ddlb_2}
  601. end on
  602. on tabpage_3.destroy
  603. destroy(this.mle_3)
  604. destroy(this.dw_3)
  605. destroy(this.cb_6)
  606. destroy(this.cb_5)
  607. destroy(this.em_3)
  608. destroy(this.ddlb_2)
  609. end on
  610. type mle_3 from multilineedit within tabpage_3
  611. integer x = 759
  612. integer y = 104
  613. integer width = 923
  614. integer height = 764
  615. integer taborder = 50
  616. integer textsize = -9
  617. integer weight = 400
  618. fontcharset fontcharset = gb2312charset!
  619. fontpitch fontpitch = variable!
  620. string facename = "宋体"
  621. long textcolor = 33554432
  622. boolean displayonly = true
  623. borderstyle borderstyle = stylelowered!
  624. end type
  625. type dw_3 from datawindow within tabpage_3
  626. integer y = 104
  627. integer width = 763
  628. integer height = 764
  629. integer taborder = 40
  630. string title = "none"
  631. string dataobject = "dw_aifmb_month_datetime_parm_ch"
  632. boolean livescroll = true
  633. borderstyle borderstyle = stylelowered!
  634. end type
  635. event rowfocuschanged;This.SelectRow(0, False)
  636. IF currentrow > 0 THEN
  637. This.SelectRow(currentrow, True)
  638. END IF
  639. end event
  640. event clicked;IF row > 0 THEN
  641. This.SetRow(row)
  642. This.ScrollToRow(row)
  643. END IF
  644. end event
  645. type cb_6 from commandbutton within tabpage_3
  646. integer x = 594
  647. integer y = 8
  648. integer width = 169
  649. integer height = 84
  650. integer taborder = 80
  651. integer textsize = -9
  652. integer weight = 400
  653. fontcharset fontcharset = gb2312charset!
  654. fontpitch fontpitch = variable!
  655. string facename = "宋体"
  656. string text = "删除"
  657. end type
  658. event clicked;long row
  659. row = dw_3.GetRow()
  660. if row > 0 then
  661. dw_3.DeleteRow(row)
  662. end if
  663. wf_monthstr()
  664. end event
  665. type cb_5 from commandbutton within tabpage_3
  666. integer x = 416
  667. integer y = 8
  668. integer width = 169
  669. integer height = 84
  670. integer taborder = 70
  671. integer textsize = -9
  672. integer weight = 400
  673. fontcharset fontcharset = gb2312charset!
  674. fontpitch fontpitch = variable!
  675. string facename = "宋体"
  676. string text = "添加"
  677. end type
  678. event clicked;Long ll_month
  679. ll_month = long(ddlb_2.Text)
  680. Time lt_addtime
  681. lt_addtime = Time(em_3.Text)
  682. Long i
  683. FOR i = 1 To dw_3.RowCount()
  684. IF dw_3.Object.month[i] = ll_month And dw_3.Object.mtime[i] = lt_addtime THEN RETURN
  685. IF dw_3.Object.month[i] > ll_month Or (dw_3.Object.month[i] = ll_month And dw_3.Object.mtime[i] > lt_addtime) THEN
  686. EXIT
  687. END IF
  688. NEXT
  689. if i > dw_3.RowCount() then i = 0
  690. long row
  691. row = dw_3.InsertRow(i)
  692. dw_3.Object.month[row] = ll_month
  693. dw_3.Object.mtime[row] = lt_addtime
  694. wf_monthstr()
  695. end event
  696. type em_3 from editmask within tabpage_3
  697. integer x = 197
  698. integer y = 8
  699. integer width = 201
  700. integer height = 84
  701. integer taborder = 60
  702. integer textsize = -9
  703. integer weight = 400
  704. fontcharset fontcharset = gb2312charset!
  705. fontpitch fontpitch = variable!
  706. string facename = "宋体"
  707. long textcolor = 33554432
  708. string text = "00:00"
  709. borderstyle borderstyle = stylelowered!
  710. maskdatatype maskdatatype = timemask!
  711. string mask = "HH:mm"
  712. end type
  713. type ddlb_2 from dropdownlistbox within tabpage_3
  714. integer y = 12
  715. integer width = 192
  716. integer height = 760
  717. integer taborder = 80
  718. integer textsize = -9
  719. integer weight = 400
  720. fontcharset fontcharset = gb2312charset!
  721. fontpitch fontpitch = variable!
  722. string facename = "宋体"
  723. long textcolor = 33554432
  724. string text = "1"
  725. boolean sorted = false
  726. boolean vscrollbar = true
  727. string item[] = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"}
  728. borderstyle borderstyle = stylelowered!
  729. end type
  730. type tabpage_4 from userobject within tab_1
  731. integer x = 18
  732. integer y = 96
  733. integer width = 1682
  734. integer height = 868
  735. long backcolor = 67108864
  736. string text = "年"
  737. long tabtextcolor = 33554432
  738. long picturemaskcolor = 536870912
  739. mle_4 mle_4
  740. dw_4 dw_4
  741. cb_8 cb_8
  742. cb_7 cb_7
  743. em_4 em_4
  744. end type
  745. on tabpage_4.create
  746. this.mle_4=create mle_4
  747. this.dw_4=create dw_4
  748. this.cb_8=create cb_8
  749. this.cb_7=create cb_7
  750. this.em_4=create em_4
  751. this.Control[]={this.mle_4,&
  752. this.dw_4,&
  753. this.cb_8,&
  754. this.cb_7,&
  755. this.em_4}
  756. end on
  757. on tabpage_4.destroy
  758. destroy(this.mle_4)
  759. destroy(this.dw_4)
  760. destroy(this.cb_8)
  761. destroy(this.cb_7)
  762. destroy(this.em_4)
  763. end on
  764. type mle_4 from multilineedit within tabpage_4
  765. integer x = 759
  766. integer y = 104
  767. integer width = 923
  768. integer height = 764
  769. integer taborder = 60
  770. integer textsize = -9
  771. integer weight = 400
  772. fontcharset fontcharset = gb2312charset!
  773. fontpitch fontpitch = variable!
  774. string facename = "宋体"
  775. long textcolor = 33554432
  776. boolean displayonly = true
  777. borderstyle borderstyle = stylelowered!
  778. end type
  779. type dw_4 from datawindow within tabpage_4
  780. integer y = 104
  781. integer width = 763
  782. integer height = 764
  783. integer taborder = 50
  784. string title = "none"
  785. string dataobject = "dw_aifmb_year_datetime_parm_ch"
  786. boolean livescroll = true
  787. borderstyle borderstyle = stylelowered!
  788. end type
  789. event rowfocuschanged;This.SelectRow(0, False)
  790. IF currentrow > 0 THEN
  791. This.SelectRow(currentrow, True)
  792. END IF
  793. end event
  794. event clicked;IF row > 0 THEN
  795. This.SetRow(row)
  796. This.ScrollToRow(row)
  797. END IF
  798. end event
  799. type cb_8 from commandbutton within tabpage_4
  800. integer x = 594
  801. integer y = 8
  802. integer width = 169
  803. integer height = 84
  804. integer taborder = 90
  805. integer textsize = -9
  806. integer weight = 400
  807. fontcharset fontcharset = gb2312charset!
  808. fontpitch fontpitch = variable!
  809. string facename = "宋体"
  810. string text = "删除"
  811. end type
  812. event clicked;Long row
  813. row = dw_4.GetRow()
  814. IF row > 0 THEN
  815. dw_4.DeleteRow(row)
  816. END IF
  817. wf_yearstr()
  818. end event
  819. type cb_7 from commandbutton within tabpage_4
  820. integer x = 416
  821. integer y = 8
  822. integer width = 169
  823. integer height = 84
  824. integer taborder = 80
  825. integer textsize = -9
  826. integer weight = 400
  827. fontcharset fontcharset = gb2312charset!
  828. fontpitch fontpitch = variable!
  829. string facename = "宋体"
  830. string text = "添加"
  831. end type
  832. event clicked;DateTime lt_adytime
  833. lt_adytime = DateTime(Date('2000-' + Mid(em_4.Text,1, 5)), Time(Mid(em_4.Text, 7)))
  834. IF lt_adytime < DateTime(2000-01-01) THEN RETURN
  835. Long i, row
  836. FOR i = 1 To dw_4.RowCount()
  837. IF dw_4.Object.ytime[i] = lt_adytime THEN RETURN
  838. IF dw_4.Object.ytime[i] > lt_adytime THEN
  839. EXIT
  840. END IF
  841. NEXT
  842. IF i > dw_4.RowCount() THEN i = 0
  843. row = dw_4.InsertRow(i)
  844. dw_4.Object.ytime[row] = lt_adytime
  845. wf_yearstr()
  846. end event
  847. type em_4 from editmask within tabpage_4
  848. integer x = 14
  849. integer y = 8
  850. integer width = 389
  851. integer height = 84
  852. integer taborder = 70
  853. integer textsize = -9
  854. integer weight = 400
  855. fontcharset fontcharset = gb2312charset!
  856. fontpitch fontpitch = variable!
  857. string facename = "宋体"
  858. long textcolor = 33554432
  859. string text = "01-01 00:00"
  860. borderstyle borderstyle = stylelowered!
  861. maskdatatype maskdatatype = datetimemask!
  862. string mask = "MM-dd HH:mm"
  863. end type