w_oa_workremind_dftwin.srw 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. $PBExportHeader$w_oa_workremind_dftwin.srw
  2. forward
  3. global type w_oa_workremind_dftwin from window
  4. end type
  5. type dw_mx from datawindow within w_oa_workremind_dftwin
  6. end type
  7. type cb_exit from commandbutton within w_oa_workremind_dftwin
  8. end type
  9. end forward
  10. global type w_oa_workremind_dftwin from window
  11. integer width = 3611
  12. integer height = 2380
  13. boolean titlebar = true
  14. string title = "工作提醒"
  15. boolean controlmenu = true
  16. windowtype windowtype = popup!
  17. long backcolor = 67108864
  18. string icon = "AppIcon!"
  19. boolean center = true
  20. dw_mx dw_mx
  21. cb_exit cb_exit
  22. end type
  23. global w_oa_workremind_dftwin w_oa_workremind_dftwin
  24. type variables
  25. uo_oa_workremind u_wrm
  26. end variables
  27. on w_oa_workremind_dftwin.create
  28. this.dw_mx=create dw_mx
  29. this.cb_exit=create cb_exit
  30. this.Control[]={this.dw_mx,&
  31. this.cb_exit}
  32. end on
  33. on w_oa_workremind_dftwin.destroy
  34. destroy(this.dw_mx)
  35. destroy(this.cb_exit)
  36. end on
  37. event open;s_edit_index_tran s_tran
  38. s_tran = Message.PowerObjectParm
  39. //1.取提醒的语句
  40. //2.改下dw的SQL语句
  41. //3.刷新
  42. Boolean rslt = TRUE
  43. String arg_msg
  44. String ls_ExpressionsMx
  45. //
  46. //uo_oa_workremind u_wrm
  47. u_wrm = CREATE uo_oa_workremind
  48. dw_mx.settransobject(sqlca)
  49. //1
  50. rslt = u_wrm.uf_get_userworkremind_mx(s_tran.arg_pkid, ls_ExpressionsMx, arg_msg)
  51. IF NOT rslt THEN
  52. MessageBox('ERROR', arg_msg)
  53. RETURN
  54. END IF
  55. //2
  56. dw_mx.Modify("datawindow.table.select = ~"" + ls_ExpressionsMx+ "~"")
  57. //3
  58. dw_mx.Retrieve()
  59. /*
  60. SELECT u_SaleTask.Taskcode as billcode,
  61. u_SaleTask.Dscrp as billdscrp,
  62. u_SaleTask.otheramt as billnum,
  63. u_SaleTask.taskdate as billdate,
  64. u_SaleTask.rel_rep as billrep
  65. FROM u_SaleTask
  66. */
  67. end event
  68. type dw_mx from datawindow within w_oa_workremind_dftwin
  69. integer width = 3593
  70. integer height = 2092
  71. integer taborder = 10
  72. string title = "none"
  73. string dataobject = "dw_oa_workremind_dftwin"
  74. boolean livescroll = true
  75. borderstyle borderstyle = stylelowered!
  76. end type
  77. event doubleclicked;dw_mx.SelectRow(0,FALSE)
  78. dw_mx.SelectRow(row,TRUE)
  79. dw_mx.SetRow(row)
  80. if row > 0 then
  81. string ls_code
  82. ls_code = dw_mx.Object.billcode[row]
  83. f_open_win(-1,ls_code)
  84. end if
  85. end event
  86. type cb_exit from commandbutton within w_oa_workremind_dftwin
  87. integer x = 1509
  88. integer y = 2156
  89. integer width = 270
  90. integer height = 84
  91. integer taborder = 10
  92. integer textsize = -9
  93. integer weight = 400
  94. fontcharset fontcharset = gb2312charset!
  95. fontpitch fontpitch = variable!
  96. string facename = "宋体"
  97. string text = "关 闭"
  98. end type
  99. event clicked;close(parent)
  100. end event