w_rp_gz_cwork_mx.srw 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. $PBExportHeader$w_rp_gz_cwork_mx.srw
  2. forward
  3. global type w_rp_gz_cwork_mx from w_publ_easyq
  4. end type
  5. type ddlb_flag from dropdownlistbox within w_rp_gz_cwork_mx
  6. end type
  7. end forward
  8. global type w_rp_gz_cwork_mx from w_publ_easyq
  9. string title = "考勤单明细表"
  10. ddlb_flag ddlb_flag
  11. end type
  12. global w_rp_gz_cwork_mx w_rp_gz_cwork_mx
  13. type variables
  14. Long cur_flag = -1 //-1:全部,0未审,1已审核
  15. end variables
  16. on w_rp_gz_cwork_mx.create
  17. int iCurrent
  18. call super::create
  19. this.ddlb_flag=create ddlb_flag
  20. iCurrent=UpperBound(this.Control)
  21. this.Control[iCurrent+1]=this.ddlb_flag
  22. end on
  23. on w_rp_gz_cwork_mx.destroy
  24. call super::destroy
  25. destroy(this.ddlb_flag)
  26. end on
  27. event open;call super::open;EM_1.TEXT=string(today(),'yyyy-mm')+'-01'
  28. EM_2.TEXT=STRING(TODAY(),'YYYY-MM-DD')
  29. //s_hide_col s_col
  30. //s_col.col_1 = 'u_outwaremx_costamt'
  31. //s_col.col_2 = 'gfamt'
  32. //f_hide_col(490,dw_1,s_col)
  33. IF cbx_loginretr.Checked THEN
  34. cb_1.TriggerEvent(Clicked!)
  35. END IF
  36. end event
  37. event ue_before_open;call super::ue_before_open;if_ue_retr=true
  38. if_ue_filter=true
  39. if_ue_sort=true
  40. if_ue_sentdataout=true
  41. end event
  42. type cb_func from w_publ_easyq`cb_func within w_rp_gz_cwork_mx
  43. end type
  44. type cb_exit from w_publ_easyq`cb_exit within w_rp_gz_cwork_mx
  45. end type
  46. type cb_2 from w_publ_easyq`cb_2 within w_rp_gz_cwork_mx
  47. integer taborder = 120
  48. boolean bringtotop = true
  49. end type
  50. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_gz_cwork_mx
  51. boolean bringtotop = true
  52. end type
  53. type cb_1 from w_publ_easyq`cb_1 within w_rp_gz_cwork_mx
  54. boolean bringtotop = true
  55. end type
  56. event cb_1::clicked;DateTime first_date,end_date
  57. first_date = DateTime(Date(em_1.Text),Time(0))
  58. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  59. IF first_date < sys_showsaledata_mindt THEN first_date = sys_showsaledata_mindt
  60. dw_1.Retrieve(first_date,end_date,cur_flag)
  61. end event
  62. type st_3 from w_publ_easyq`st_3 within w_rp_gz_cwork_mx
  63. end type
  64. type st_4 from w_publ_easyq`st_4 within w_rp_gz_cwork_mx
  65. end type
  66. type em_1 from w_publ_easyq`em_1 within w_rp_gz_cwork_mx
  67. integer x = 224
  68. integer taborder = 130
  69. end type
  70. type em_2 from w_publ_easyq`em_2 within w_rp_gz_cwork_mx
  71. integer taborder = 140
  72. end type
  73. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_gz_cwork_mx
  74. integer x = 1541
  75. integer y = 12
  76. end type
  77. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_gz_cwork_mx
  78. integer x = 1330
  79. integer y = 12
  80. end type
  81. type dw_1 from w_publ_easyq`dw_1 within w_rp_gz_cwork_mx
  82. integer y = 304
  83. integer width = 2743
  84. integer height = 928
  85. string dataobject = "dw_rp_gz_cwork_mx"
  86. end type
  87. event dw_1::doubleclicked;call super::doubleclicked;//IF row > 0 THEN
  88. // String ls_code
  89. // Long ll_scid
  90. // int li_thflag
  91. //
  92. // ll_scid = THIS.Object.u_outware_scid[row]
  93. // ls_code = THIS.Object.u_outware_outwarecode[row]
  94. // li_thflag = THIS.Object.thflag[row]
  95. //
  96. // if li_thflag = 1 then
  97. // f_open_win('w_outware_sale_th',ll_scid,ls_code)
  98. // else
  99. // f_open_win('w_outware_sale',ll_scid,ls_code)
  100. // end if
  101. //END IF
  102. end event
  103. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_gz_cwork_mx
  104. end type
  105. type sle_cust from w_publ_easyq`sle_cust within w_rp_gz_cwork_mx
  106. end type
  107. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_gz_cwork_mx
  108. end type
  109. type st_cust from w_publ_easyq`st_cust within w_rp_gz_cwork_mx
  110. end type
  111. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_gz_cwork_mx
  112. boolean visible = true
  113. integer x = 1330
  114. end type
  115. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_gz_cwork_mx
  116. end type
  117. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_gz_cwork_mx
  118. end type
  119. type pb_2 from w_publ_easyq`pb_2 within w_rp_gz_cwork_mx
  120. end type
  121. type cb_help from w_publ_easyq`cb_help within w_rp_gz_cwork_mx
  122. end type
  123. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_gz_cwork_mx
  124. end type
  125. type gb_1 from w_publ_easyq`gb_1 within w_rp_gz_cwork_mx
  126. end type
  127. type ln_bar from w_publ_easyq`ln_bar within w_rp_gz_cwork_mx
  128. end type
  129. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_gz_cwork_mx
  130. end type
  131. type r_bar from w_publ_easyq`r_bar within w_rp_gz_cwork_mx
  132. end type
  133. type ln_1 from w_publ_easyq`ln_1 within w_rp_gz_cwork_mx
  134. end type
  135. type ln_2 from w_publ_easyq`ln_2 within w_rp_gz_cwork_mx
  136. end type
  137. type ln_3 from w_publ_easyq`ln_3 within w_rp_gz_cwork_mx
  138. end type
  139. type ln_4 from w_publ_easyq`ln_4 within w_rp_gz_cwork_mx
  140. end type
  141. type ddlb_flag from dropdownlistbox within w_rp_gz_cwork_mx
  142. integer x = 1577
  143. integer y = 196
  144. integer width = 379
  145. integer height = 484
  146. integer taborder = 90
  147. boolean bringtotop = true
  148. integer textsize = -9
  149. integer weight = 400
  150. fontcharset fontcharset = gb2312charset!
  151. fontpitch fontpitch = variable!
  152. string facename = "宋体"
  153. long textcolor = 33554432
  154. string text = "[全部]"
  155. boolean sorted = false
  156. boolean vscrollbar = true
  157. string item[] = {"[全部]","待审核","已审核"}
  158. borderstyle borderstyle = stylelowered!
  159. end type
  160. event selectionchanged;if index=1 then
  161. cur_flag=-1
  162. elseif index=2 then
  163. cur_flag= 0
  164. elseif index=3 then
  165. cur_flag= 1
  166. end if
  167. cb_1.triggerevent(clicked!)
  168. end event