w_oa_workreminddef.srw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873
  1. $PBExportHeader$w_oa_workreminddef.srw
  2. forward
  3. global type w_oa_workreminddef from window
  4. end type
  5. type cb_exit from uo_imflatbutton within w_oa_workreminddef
  6. end type
  7. type cb_3 from uo_imflatbutton within w_oa_workreminddef
  8. end type
  9. type cb_2 from uo_imflatbutton within w_oa_workreminddef
  10. end type
  11. type cb_1 from uo_imflatbutton within w_oa_workreminddef
  12. end type
  13. type em_1 from editmask within w_oa_workreminddef
  14. end type
  15. type em_2 from editmask within w_oa_workreminddef
  16. end type
  17. type cb_5 from commandbutton within w_oa_workreminddef
  18. end type
  19. type cbx_2 from checkbox within w_oa_workreminddef
  20. end type
  21. type cbx_1 from checkbox within w_oa_workreminddef
  22. end type
  23. type cb_4 from uo_imflatbutton within w_oa_workreminddef
  24. end type
  25. type dw_type from datawindow within w_oa_workreminddef
  26. end type
  27. type dw_result from datawindow within w_oa_workreminddef
  28. end type
  29. type dw_list from datawindow within w_oa_workreminddef
  30. end type
  31. type ln_bar2 from line within w_oa_workreminddef
  32. end type
  33. type ln_bar from line within w_oa_workreminddef
  34. end type
  35. type r_bar from rectangle within w_oa_workreminddef
  36. end type
  37. type pipeline_1 from pipeline within w_oa_workreminddef
  38. end type
  39. end forward
  40. global type w_oa_workreminddef from window
  41. integer width = 3611
  42. integer height = 2380
  43. boolean titlebar = true
  44. string title = "工作提醒定义"
  45. boolean controlmenu = true
  46. boolean minbox = true
  47. boolean maxbox = true
  48. windowtype windowtype = popup!
  49. long backcolor = 67108864
  50. string icon = "AppIcon!"
  51. boolean center = true
  52. event ue_delete_cur ( )
  53. event ue_delete_p ( )
  54. event ue_retrieve_list ( )
  55. event ue_retrieve_result ( )
  56. cb_exit cb_exit
  57. cb_3 cb_3
  58. cb_2 cb_2
  59. cb_1 cb_1
  60. em_1 em_1
  61. em_2 em_2
  62. cb_5 cb_5
  63. cbx_2 cbx_2
  64. cbx_1 cbx_1
  65. cb_4 cb_4
  66. dw_type dw_type
  67. dw_result dw_result
  68. dw_list dw_list
  69. ln_bar2 ln_bar2
  70. ln_bar ln_bar
  71. r_bar r_bar
  72. pipeline_1 pipeline_1
  73. end type
  74. global w_oa_workreminddef w_oa_workreminddef
  75. type variables
  76. boolean ib_edit
  77. long il_curid=-1
  78. string is_curMOD=''
  79. uo_oa_workremind uo_wrm
  80. //string is_cansee
  81. int ii_EDITCOL = 17
  82. end variables
  83. forward prototypes
  84. public subroutine wf_refresh ()
  85. public function boolean wf_check (ref string arg_msg)
  86. public function s_oa_workremind_timetype wf_releasetimetype (string arg_parm)
  87. end prototypes
  88. event ue_delete_cur();
  89. //删除
  90. IF DW_list.GetRow() <= 0 THEN
  91. MessageBox('',"没有操作目标记录")
  92. RETURN
  93. END IF
  94. IF MessageBox(publ_operator,'是否要确定删除当前记录', Exclamation!, YesNo!, 2) = 2 THEN
  95. RETURN
  96. END IF
  97. String arg_msg
  98. IF NOT uo_wrm.uf_delete(il_curID,arg_msg) THEN
  99. MessageBox (publ_operator,arg_msg,Exclamation!,OK!)
  100. RETURN
  101. END IF
  102. DW_list.SetRedraw (FALSE)
  103. Long curRow
  104. curRow = DW_list.GetRow()
  105. DW_list.DeleteRow (curRow)
  106. //dw_list.TriggerEvent (rowfocuschanged!)
  107. DW_list.SetRedraw (TRUE)
  108. dw_result.Reset()
  109. dw_result.InsertRow(0)
  110. end event
  111. event ue_delete_p();IF MessageBox(publ_operator,'准备删除多条记录!~r~n是否要确定执行', Exclamation!, YesNo!, 2) = 2 THEN
  112. RETURN
  113. END IF
  114. Long cnt
  115. String arg_msg
  116. //todo 批删除
  117. IF dw_list.RowCount() = 0 THEN
  118. MessageBox('',"当前没有操作记录")
  119. RETURN
  120. END IF
  121. dw_list.SetRedraw (FALSE)
  122. Long cnt2
  123. cnt2 = dw_list.RowCount()
  124. FOR cnt = 1 TO cnt2
  125. IF dw_list.Object.Selected[cnt ] = 1 THEN
  126. Long curID
  127. curID = dw_list.Object.wrmid[cnt]
  128. // dw_list.DeleteRow (0)
  129. DELETE FROM oa_workremindDef
  130. Where wrmid = :curID;
  131. IF NOT uo_wrm.uf_delete(curID,arg_msg) THEN
  132. // rollback;
  133. GOTO ext
  134. MessageBox (publ_operator,arg_msg,Exclamation!,OK!)
  135. // goto ext
  136. // else
  137. // commit;
  138. END IF
  139. END IF
  140. NEXT
  141. //dw_list.TriggerEvent (rowfocuschanged!)
  142. dw_list.Retrieve(is_curMOD)
  143. dw_result.Reset()
  144. dw_result.InsertRow(0)
  145. ext:
  146. dw_list.SetRedraw (TRUE)
  147. end event
  148. event ue_retrieve_list();IF dw_type.GetRow() > 0 THEN
  149. String ls_ModuleName
  150. ls_ModuleName = dw_type.Object.ModuleName[dw_type.GetRow()]
  151. dw_list.Retrieve(ls_ModuleName)
  152. this.triggerevent('ue_retrieve_result')
  153. ELSE
  154. dw_list.Reset()
  155. END IF
  156. end event
  157. event ue_retrieve_result();IF dw_list.GetRow() > 0 THEN
  158. long ll_wrmid
  159. ll_wrmid = dw_list.Object.WrmID[dw_list.GetRow()]
  160. dw_result.Retrieve(ll_wrmid)
  161. ELSE
  162. dw_result.Reset()
  163. END IF
  164. end event
  165. public subroutine wf_refresh ();Long i
  166. IF ib_edit THEN
  167. //当前处于编辑状态
  168. cb_1.normalpicname = 'save.bmp'
  169. cb_2.normalpicname = 'undo.bmp'
  170. cb_2.Text = "放弃"
  171. cb_1.Text = "保存"
  172. cb_3.Enabled = FALSE
  173. cb_4.Enabled = FALSE
  174. FOR i = 1 TO ii_EDITCOL
  175. dw_result.SetTabOrder(i,10 * i)
  176. NEXT
  177. ELSE
  178. cb_1.normalpicname = 'new.bmp'
  179. cb_2.normalpicname = 'open.bmp'
  180. cb_1.Text = "新建"
  181. cb_2.Text = "修改"
  182. cb_3.Enabled = TRUE
  183. cb_4.Enabled = TRUE
  184. FOR i = 1 TO ii_EDITCOL
  185. dw_result.SetTabOrder(i,0)
  186. NEXT
  187. END IF
  188. cb_1.of_init_draw()
  189. cb_2.of_init_draw()
  190. cb_1.of_paint()
  191. cb_2.of_paint()
  192. cb_1.TriggerEvent('ue_textchange')
  193. cb_2.TriggerEvent('ue_textchange')
  194. end subroutine
  195. public function boolean wf_check (ref string arg_msg);//检查页面内容合法性
  196. String ls_sqlStr
  197. IF dw_result.RowCount() <> 0 THEN
  198. ls_sqlStr = dw_result.Object.Expressions[1]
  199. IF NOT uo_wrm.uf_chk_synax(ls_sqlStr,arg_msg)THEN
  200. RETURN FALSE
  201. END IF
  202. END IF
  203. RETURN TRUE
  204. end function
  205. public function s_oa_workremind_timetype wf_releasetimetype (string arg_parm);s_oa_workremind_timetype ins_timetype
  206. string timeStr[]
  207. f_oa_workremind_splitstr(arg_parm,"!",ref timeStr)
  208. if pos(arg_parm,"rep")<>0 then
  209. ins_timetype.checktype=timeStr[1]
  210. ins_timetype.IntervalType=timeStr[2]
  211. ins_timetype.Interval=timeStr[3]
  212. ins_timetype.freType=timeStr[4]
  213. ins_timetype.fre=timeStr[5]
  214. ins_timetype.startDate=timeStr[6]
  215. elseif pos(arg_parm,"once")<>0 then
  216. ins_timetype.checktype=timeStr[1]
  217. ins_timetype.oncedate=timeStr[2]
  218. ins_timetype.oncetime=timeStr[3]
  219. end if
  220. return ins_timetype
  221. end function
  222. on w_oa_workreminddef.create
  223. this.cb_exit=create cb_exit
  224. this.cb_3=create cb_3
  225. this.cb_2=create cb_2
  226. this.cb_1=create cb_1
  227. this.em_1=create em_1
  228. this.em_2=create em_2
  229. this.cb_5=create cb_5
  230. this.cbx_2=create cbx_2
  231. this.cbx_1=create cbx_1
  232. this.cb_4=create cb_4
  233. this.dw_type=create dw_type
  234. this.dw_result=create dw_result
  235. this.dw_list=create dw_list
  236. this.ln_bar2=create ln_bar2
  237. this.ln_bar=create ln_bar
  238. this.r_bar=create r_bar
  239. this.pipeline_1=create pipeline_1
  240. this.Control[]={this.cb_exit,&
  241. this.cb_3,&
  242. this.cb_2,&
  243. this.cb_1,&
  244. this.em_1,&
  245. this.em_2,&
  246. this.cb_5,&
  247. this.cbx_2,&
  248. this.cbx_1,&
  249. this.cb_4,&
  250. this.dw_type,&
  251. this.dw_result,&
  252. this.dw_list,&
  253. this.ln_bar2,&
  254. this.ln_bar,&
  255. this.r_bar}
  256. end on
  257. on w_oa_workreminddef.destroy
  258. destroy(this.cb_exit)
  259. destroy(this.cb_3)
  260. destroy(this.cb_2)
  261. destroy(this.cb_1)
  262. destroy(this.em_1)
  263. destroy(this.em_2)
  264. destroy(this.cb_5)
  265. destroy(this.cbx_2)
  266. destroy(this.cbx_1)
  267. destroy(this.cb_4)
  268. destroy(this.dw_type)
  269. destroy(this.dw_result)
  270. destroy(this.dw_list)
  271. destroy(this.ln_bar2)
  272. destroy(this.ln_bar)
  273. destroy(this.r_bar)
  274. destroy(this.pipeline_1)
  275. end on
  276. event resize;ln_bar.endx = this.width
  277. ln_bar2.endx = this.width
  278. r_bar.Width = ln_bar2.EndX
  279. dw_type.height=this.height - dw_type.y - 140
  280. dw_list.height=this.height - dw_list.y - 150 - dw_result.height
  281. dw_result.y = dw_list.y + dw_list.height + 10
  282. dw_list.width = this.width - dw_list.x - 40
  283. dw_result.width = this.width - dw_result.x - 40
  284. end event
  285. event open;
  286. dw_list.setTrans(sqlca)
  287. dw_result.setTrans(sqlca)
  288. dw_type.setTrans(sqlca)
  289. dw_result.retrieve(0)
  290. dw_result.insertrow(0)
  291. string ls_msg
  292. ib_edit=false
  293. //wf_refresh()
  294. uo_wrm=create uo_oa_workremind
  295. // uo_wrm.uf_get_cansee(publ_userid,ref is_cansee,ref ls_msg)
  296. dw_type.retrieve()
  297. // dw_list.retrieve(is_curMOD)
  298. if dw_list.rowcount()=0 then
  299. // dw_list.insertrow(0)
  300. // goto ext
  301. end if
  302. //dw_result.
  303. //ext:
  304. //em_2.text=string(today())
  305. //em_1.text=string(now())
  306. end event
  307. event close;destroy uo_wrm
  308. end event
  309. type cb_exit from uo_imflatbutton within w_oa_workreminddef
  310. integer x = 713
  311. integer width = 165
  312. integer height = 172
  313. integer taborder = 10
  314. string text = "退出"
  315. boolean cancel = true
  316. string normalpicname = "exit.bmp"
  317. integer picsize = 16
  318. toolbaralignment pic_align = alignattop!
  319. boolean border = false
  320. end type
  321. event clicked;call super::clicked;close(parent)
  322. end event
  323. type cb_3 from uo_imflatbutton within w_oa_workreminddef
  324. integer x = 549
  325. integer width = 165
  326. integer height = 172
  327. integer taborder = 10
  328. boolean bringtotop = true
  329. string text = "删除"
  330. string normalpicname = "delete.bmp"
  331. integer picsize = 16
  332. toolbaralignment pic_align = alignattop!
  333. boolean border = false
  334. end type
  335. event clicked;call super::clicked;m_Dfc_Control_PopupMenu dmPopupMenu
  336. String menustr
  337. menustr = "Text=删除当前项~tEvent=ue_delete_cur"
  338. menustr = menustr + "|" + "Text=批删除~tEvent=ue_delete_p"
  339. IF Len(Trim(menustr)) <> 0 THEN
  340. dmPopupMenu = CREATE m_Dfc_Control_PopupMenu
  341. dmPopupMenu.mf_BuildMenu(THIS, menustr)
  342. dmPopupMenu.mf_PopMenu()
  343. DESTROY dmPopupMenu
  344. END IF
  345. end event
  346. type cb_2 from uo_imflatbutton within w_oa_workreminddef
  347. integer x = 357
  348. integer width = 192
  349. integer height = 172
  350. integer taborder = 10
  351. boolean bringtotop = true
  352. string text = "修改&E"
  353. string normalpicname = "open.bmp"
  354. integer picsize = 16
  355. toolbaralignment pic_align = alignattop!
  356. boolean border = false
  357. end type
  358. event clicked;call super::clicked;
  359. IF ib_edit THEN
  360. IF MessageBox(publ_operator,'是否要确定放弃保存资料', Exclamation!, YesNo!, 2) = 2 THEN
  361. RETURN
  362. END IF
  363. ELSE
  364. END IF
  365. ib_edit = NOT ib_edit
  366. wf_refresh()
  367. IF NOT ib_edit THEN
  368. parent.triggerevent('ue_retrieve_result')
  369. END IF
  370. end event
  371. type cb_1 from uo_imflatbutton within w_oa_workreminddef
  372. integer x = 165
  373. integer width = 192
  374. integer height = 172
  375. integer taborder = 10
  376. boolean bringtotop = true
  377. string text = "新建&S"
  378. string normalpicname = "new.bmp"
  379. integer picsize = 16
  380. toolbaralignment pic_align = alignattop!
  381. boolean border = false
  382. end type
  383. event clicked;call super::clicked;s_userworkremind uwrm
  384. String arg_msg = " "
  385. Long ll_row
  386. IF ib_edit THEN
  387. dw_result.AcceptText()
  388. // IF NOT wf_check(arg_msg) THEN
  389. // MessageBox('',arg_msg)
  390. // RETURN
  391. // END IF
  392. ll_row = dw_result.GetRow()
  393. IF ll_row <= 0 THEN
  394. MessageBox('',"请选择目标行")
  395. RETURN
  396. END IF
  397. // 保存
  398. IF dw_result.Object.wrmid[ll_row] <> -1 THEN
  399. uwrm.wrmid = Long( dw_result.Object.wrmid[ll_row])
  400. ELSE
  401. Long NewWrmId
  402. SELECT max(wrmid)
  403. INTO :NewWrmId
  404. FROM oa_workreminddef;
  405. NewWrmId++
  406. uwrm.wrmid = NewWrmId
  407. END IF
  408. IF IsNull(uwrm.wrmid) THEN
  409. uwrm.wrmid = 1
  410. END IF
  411. uwrm.wrmcode = String( dw_result.Object.wrmcode[ll_row])
  412. uwrm.Expressions = String( dw_result.Object.Expressions[ll_row])
  413. uwrm.expressionsmx = String( dw_result.Object.expressionsmx[ll_row])
  414. uwrm.WrmType = Long( dw_result.Object.WrmType[ll_row])
  415. uwrm.ChkTimeRule = String( dw_result.Object.ChkTimeRule[ll_row])
  416. uwrm.Funcid = Long( dw_result.Object.Funcid[ll_row])
  417. uwrm.WinName = String( dw_result.Object.WinName[ll_row])
  418. uwrm.ModuleName = String( dw_result.Object.ModuleName[ll_row])
  419. uwrm.Ifsc = Long( dw_result.Object.Ifsc[ll_row])
  420. uwrm.Ifstorage = Long( dw_result.Object.Ifstorage[ll_row])
  421. uwrm.ifcusarea = Long( dw_result.Object.ifcusarea[ll_row])
  422. uwrm.ifoutrep = Long( dw_result.Object.ifoutrep[ll_row])
  423. uwrm.ifspttype = Long( dw_result.Object.ifspttype[ll_row])
  424. uwrm.ifdftwin = Long( dw_result.Object.ifdftwin[ll_row])
  425. uwrm.ifautoopen = Long( dw_result.Object.ifautoopen[ll_row])
  426. uwrm.WrmName = String( dw_result.Object.WrmName[ll_row])
  427. uwrm.Operationstr = String(dw_result.Object.Operationstr[ll_row])
  428. uwrm.timeDirection = String(dw_result.Object.ChkTimedir[ll_row])
  429. Boolean rslt = TRUE
  430. rslt = uo_wrm.uf_save(uwrm,arg_msg)
  431. // uo_wrm.uf_test("hi")
  432. IF NOT rslt THEN
  433. MessageBox('',arg_msg)
  434. RETURN
  435. ELSE
  436. //dw_list.Retrieve(is_curMOD)
  437. dw_result.Retrieve(uwrm.wrmid)
  438. MessageBox('系统提示',"保存成功")
  439. END IF
  440. ib_edit = NOT ib_edit
  441. wf_refresh()
  442. ELSE
  443. //新建
  444. dw_result.Reset()
  445. dw_result.InsertRow(0)
  446. ib_edit = TRUE
  447. wf_refresh()
  448. END IF
  449. end event
  450. type em_1 from editmask within w_oa_workreminddef
  451. boolean visible = false
  452. integer x = 1915
  453. integer y = 124
  454. integer width = 352
  455. integer height = 64
  456. integer taborder = 50
  457. integer textsize = -9
  458. integer weight = 400
  459. fontcharset fontcharset = gb2312charset!
  460. fontpitch fontpitch = variable!
  461. string facename = "宋体"
  462. long textcolor = 33554432
  463. maskdatatype maskdatatype = timemask!
  464. string mask = "hh:mm:ss"
  465. boolean spin = true
  466. double increment = 1
  467. string minmax = "00:00:00~~23:59:59"
  468. end type
  469. type em_2 from editmask within w_oa_workreminddef
  470. boolean visible = false
  471. integer x = 1915
  472. integer y = 32
  473. integer width = 389
  474. integer height = 76
  475. integer taborder = 40
  476. integer textsize = -9
  477. integer weight = 400
  478. fontcharset fontcharset = gb2312charset!
  479. fontpitch fontpitch = variable!
  480. string facename = "宋体"
  481. long textcolor = 33554432
  482. string text = "none"
  483. borderstyle borderstyle = stylelowered!
  484. maskdatatype maskdatatype = datemask!
  485. string mask = "YYYY-MM-DD"
  486. boolean spin = true
  487. double increment = 1
  488. string minmax = "1900-01-01~~2999-12-31"
  489. end type
  490. type cb_5 from commandbutton within w_oa_workreminddef
  491. boolean visible = false
  492. integer x = 2359
  493. integer y = 88
  494. integer width = 311
  495. integer height = 80
  496. integer taborder = 50
  497. integer textsize = -9
  498. integer weight = 400
  499. fontcharset fontcharset = gb2312charset!
  500. fontpitch fontpitch = variable!
  501. string facename = "宋体"
  502. string text = "测试"
  503. end type
  504. event clicked;if f_oa_workremind_chkdate(string(dw_result.object.ChkTimeRule[1]),datetime(date(em_2.text),time(em_1.text)))then
  505. messagebox('',"时间符合")
  506. else
  507. messagebox('',"不合要求")
  508. end if
  509. end event
  510. type cbx_2 from checkbox within w_oa_workreminddef
  511. boolean visible = false
  512. integer x = 1431
  513. integer y = 100
  514. integer width = 265
  515. integer height = 60
  516. integer textsize = -9
  517. integer weight = 400
  518. fontcharset fontcharset = gb2312charset!
  519. fontpitch fontpitch = variable!
  520. string facename = "宋体"
  521. long textcolor = 33554432
  522. long backcolor = 67108864
  523. string text = "反选"
  524. end type
  525. event clicked;cbx_2.checked=false
  526. cbx_1.checked=false
  527. long cnt
  528. for cnt=1 to dw_list.rowcount()
  529. if dw_list.object.selected[cnt]=1 then
  530. dw_list.object.selected[cnt]=0
  531. else
  532. dw_list.object.selected[cnt]=1
  533. end if
  534. next
  535. end event
  536. event constructor;this.BackColor=14215660
  537. end event
  538. type cbx_1 from checkbox within w_oa_workreminddef
  539. boolean visible = false
  540. integer x = 1170
  541. integer y = 100
  542. integer width = 224
  543. integer height = 60
  544. integer textsize = -9
  545. integer weight = 400
  546. fontcharset fontcharset = gb2312charset!
  547. fontpitch fontpitch = variable!
  548. string facename = "宋体"
  549. long textcolor = 33554432
  550. long backcolor = 67108864
  551. string text = "全选"
  552. end type
  553. event clicked;long cnt,curState
  554. if cbx_1.checked then
  555. curstate=1
  556. else
  557. curState=0
  558. end if
  559. for cnt=1 to dw_list.rowcount()
  560. dw_list.object.selected[cnt]=curState
  561. next
  562. end event
  563. event constructor;this.BackColor=14215660
  564. end event
  565. type cb_4 from uo_imflatbutton within w_oa_workreminddef
  566. integer width = 165
  567. integer height = 172
  568. integer taborder = 40
  569. string text = "刷新"
  570. string normalpicname = "refresh.BMP"
  571. integer picsize = 16
  572. toolbaralignment pic_align = alignattop!
  573. boolean border = false
  574. end type
  575. event clicked;call super::clicked;dw_type.retrieve()
  576. //dw_type.setRow(1)
  577. end event
  578. type dw_type from datawindow within w_oa_workreminddef
  579. integer y = 188
  580. integer width = 1083
  581. integer height = 2040
  582. integer taborder = 40
  583. string title = "none"
  584. string dataobject = "dw_oa_remind_modlist"
  585. boolean livescroll = true
  586. borderstyle borderstyle = stylelowered!
  587. end type
  588. event rowfocuschanged;if ib_edit then
  589. IF MessageBox(publ_operator,'是否要确定放弃保存资料', Exclamation!, YesNo!, 2) = 2 THEN
  590. RETURN
  591. else
  592. ib_edit=false
  593. wf_refresh()
  594. END IF
  595. end if
  596. if currentrow > 0 then
  597. this.selectrow(0, false)
  598. this.setrow(currentrow)
  599. this.selectrow(currentrow, true)
  600. end if
  601. cbx_1.checked=false
  602. parent.triggerevent('ue_retrieve_list')
  603. //is_curMOD=dw_type.object.ModuleName[currentrow]
  604. //dw_list.retrieve(is_curMOD)
  605. end event
  606. event rowfocuschanging;IF ib_edit THEN return 1
  607. end event
  608. event clicked;
  609. if row > 0 then
  610. this.selectrow(0, false)
  611. this.setrow(row)
  612. this.selectrow(row, true)
  613. end if
  614. end event
  615. type dw_result from datawindow within w_oa_workreminddef
  616. integer x = 1097
  617. integer y = 764
  618. integer width = 2491
  619. integer height = 1472
  620. integer taborder = 40
  621. string title = "none"
  622. string dataobject = "dw_oa_remainddef_ff"
  623. boolean livescroll = true
  624. borderstyle borderstyle = stylelowered!
  625. end type
  626. event itemchanged; string name
  627. long id
  628. if dwo.name="funcid" then
  629. id=long(data)
  630. select menuname
  631. into :name
  632. from sys_func_pwr
  633. where mainid = :id;
  634. dw_result.object.winname[1]=name
  635. dw_result.accepttext()
  636. elseif dwo.name="winname" then
  637. name=data
  638. select mainid
  639. into :id
  640. from sys_func_pwr
  641. where menuname = :name;
  642. dw_result.object.funcid[1]=id
  643. dw_result.accepttext()
  644. end if
  645. end event
  646. event doubleclicked;String ls_chkRule
  647. String ls_tag
  648. ls_tag = "!"
  649. IF ib_edit THEN
  650. IF dwo.Name = "chktimedir" THEN
  651. s_oa_workremind_timetype ins_parm
  652. ins_parm = wf_releasetimetype(String(dw_result.Object.chktimeRule[1]))
  653. OpenWithParm(w_oa_workremind_detonate,ins_parm)
  654. s_oa_workremind_timetype ins_timetype
  655. ins_timetype = Message.PowerObjectParm
  656. IF NOT IsNull(ins_timetype) THEN
  657. dw_result.Object.chktimedir[1] = ins_timetype.direction
  658. ls_chkRule = ins_timetype.checkType+ls_tag
  659. ls_chkRule += ins_timetype.oncedate+ls_tag
  660. ls_chkRule += ins_timetype.oncetime+ls_tag
  661. ls_chkRule += ins_timetype.IntervalType+ls_tag
  662. ls_chkRule += ins_timetype.Interval+ls_tag
  663. ls_chkRule += ins_timetype.freType+ls_tag
  664. ls_chkRule += ins_timetype.fre+ls_tag
  665. ls_chkRule += ins_timetype.startDate
  666. dw_result.Object.chktimeRule[1] = ls_chkRule
  667. END IF
  668. END IF
  669. END IF
  670. end event
  671. type dw_list from datawindow within w_oa_workreminddef
  672. integer x = 1097
  673. integer y = 192
  674. integer width = 2496
  675. integer height = 560
  676. integer taborder = 30
  677. string title = "none"
  678. string dataobject = "dw_oa_remainddef"
  679. boolean vscrollbar = true
  680. boolean livescroll = true
  681. borderstyle borderstyle = stylelowered!
  682. end type
  683. event rowfocuschanged;
  684. if currentrow > 0 then
  685. this.selectrow(0, false)
  686. this.setrow(currentrow)
  687. this.selectrow(currentrow, true)
  688. end if
  689. parent.triggerevent('ue_retrieve_result')
  690. end event
  691. event rowfocuschanging;IF ib_edit THEN return 1
  692. end event
  693. event clicked;if row > 0 then
  694. this.selectrow(0, false)
  695. this.setrow(row)
  696. this.selectrow(row, true)
  697. il_curid = Long(dw_list.Object.WrmID[row])
  698. dw_result.Retrieve(il_curid)
  699. end if
  700. end event
  701. type ln_bar2 from line within w_oa_workreminddef
  702. long linecolor = 16777215
  703. integer linethickness = 4
  704. integer beginy = 184
  705. integer endx = 3323
  706. integer endy = 184
  707. end type
  708. type ln_bar from line within w_oa_workreminddef
  709. long linecolor = 268435456
  710. integer linethickness = 4
  711. integer beginy = 180
  712. integer endx = 3323
  713. integer endy = 180
  714. end type
  715. type r_bar from rectangle within w_oa_workreminddef
  716. long linecolor = 16777215
  717. long fillcolor = 1073741824
  718. integer x = 1737
  719. integer width = 73
  720. integer height = 172
  721. end type
  722. event constructor;this.fillcolor = 14215660
  723. this.linecolor = 14215660
  724. this.x = -1
  725. this.y = -1
  726. this.height = ln_bar2.beginy - 5
  727. this.width=ln_bar2.endx
  728. end event
  729. type pipeline_1 from pipeline within w_oa_workreminddef descriptor "pb_nvo" = "true"
  730. end type
  731. on pipeline_1.create
  732. call super::create
  733. TriggerEvent( this, "constructor" )
  734. end on
  735. on pipeline_1.destroy
  736. TriggerEvent( this, "destructor" )
  737. call super::destroy
  738. end on