w_ljfieb_buy_send_his.srw 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. $PBExportHeader$w_ljfieb_buy_send_his.srw
  2. forward
  3. global type w_ljfieb_buy_send_his from w_publ_easyq
  4. end type
  5. type cbx_1 from checkbox within w_ljfieb_buy_send_his
  6. end type
  7. end forward
  8. global type w_ljfieb_buy_send_his from w_publ_easyq
  9. string title = "采购电子商务发送记录"
  10. cbx_1 cbx_1
  11. end type
  12. global w_ljfieb_buy_send_his w_ljfieb_buy_send_his
  13. on w_ljfieb_buy_send_his.create
  14. int iCurrent
  15. call super::create
  16. this.cbx_1=create cbx_1
  17. iCurrent=UpperBound(this.Control)
  18. this.Control[iCurrent+1]=this.cbx_1
  19. end on
  20. on w_ljfieb_buy_send_his.destroy
  21. call super::destroy
  22. destroy(this.cbx_1)
  23. end on
  24. event open;this.triggerevent('ue_before_open')
  25. wf_movetocenter()
  26. dw_1.SetTransObject (sys_email_sqlca)
  27. EM_1.Text = String(Today(),'YYYY-MM-DD')
  28. EM_2.Text = EM_1.Text
  29. dw_1.RBUTTON_FILTER_USE = TRUE //右键查询功能开关
  30. cb_1.triggerevent(clicked!)
  31. end event
  32. type cb_func from w_publ_easyq`cb_func within w_ljfieb_buy_send_his
  33. boolean visible = false
  34. end type
  35. type cb_exit from w_publ_easyq`cb_exit within w_ljfieb_buy_send_his
  36. integer x = 151
  37. end type
  38. type cb_2 from w_publ_easyq`cb_2 within w_ljfieb_buy_send_his
  39. boolean visible = false
  40. end type
  41. type cb_psetup from w_publ_easyq`cb_psetup within w_ljfieb_buy_send_his
  42. boolean visible = false
  43. end type
  44. type cb_1 from w_publ_easyq`cb_1 within w_ljfieb_buy_send_his
  45. end type
  46. event cb_1::clicked;call super::clicked;DateTime first_date,end_date
  47. first_date = DateTime(Date(em_1.Text),Time(0))
  48. end_date = DateTime(Date(em_2.Text),Time('23:59:59'))
  49. int li_ifall
  50. Long ll_i
  51. String ls_cuscode
  52. Long ll_ReceiveCusCommID,ll_spttypeid
  53. String ls_spttype,ls_receivesccode, ls_SendSCcode,ls_scstr
  54. Long ll_scid
  55. if cbx_1.checked then
  56. li_ifall = 0
  57. else
  58. li_ifall = 1
  59. end if
  60. dw_1.SetRedraw(False)
  61. dw_1.retrieve(first_date,end_date,li_ifall)
  62. IF Not sys_power_issuper THEN
  63. dw_1.AcceptText()
  64. FOR ll_i = dw_1.RowCount() To 1 Step -1
  65. ll_ReceiveCusCommID = dw_1.Object.ljfieb_packet_ReceiveCusCommID[ll_i]
  66. ls_receivesccode = dw_1.Object.ljfieb_packet_receivesccode[ll_i]
  67. ls_SendSCcode = dw_1.Object.ljfieb_packet_SendSCcode [ll_i]
  68. IF sys_user_scstr <> '0' THEN
  69. SELECT scid INTO :ll_scid
  70. FROM u_scdef
  71. Where sccode = :ls_SendSCcode Using sqlca;
  72. IF sqlca.SQLCode <> 0 THEN
  73. ll_scid = 0
  74. END IF
  75. ls_scstr = ','+String(ll_scid)+','
  76. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  77. dw_1.DeleteRow(ll_i)
  78. CONTINUE
  79. END IF
  80. END IF
  81. SELECT CusCode
  82. INTO :ls_cuscode
  83. FROM LJFIEB_CusComm
  84. Where CusCommID = :ll_ReceiveCusCommID Using sys_email_sqlca;
  85. IF sys_email_sqlca.SQLCode <> 0 THEN
  86. ls_cuscode = ''
  87. END IF
  88. IF Trim(ls_cuscode) = '' THEN CONTINUE
  89. SELECT spttypeid
  90. INTO :ll_spttypeid
  91. FROM u_spt
  92. WHERE commcode = :ls_cuscode
  93. And commsccode = :ls_receivesccode Using sqlca;
  94. IF sqlca.SQLCode <> 0 THEN CONTINUE
  95. IF sys_user_spttypestr <> '0' THEN
  96. ls_spttype = ','+String( ll_spttypeid)+','
  97. IF Pos(sys_user_spttypestr,ls_spttype) = 0 THEN
  98. dw_1.DeleteRow(ll_i)
  99. CONTINUE
  100. END IF
  101. END IF
  102. NEXT
  103. END IF
  104. dw_1.SetRedraw(True)
  105. end event
  106. type st_3 from w_publ_easyq`st_3 within w_ljfieb_buy_send_his
  107. integer x = 0
  108. integer width = 315
  109. string text = "发送日期从:"
  110. end type
  111. type st_4 from w_publ_easyq`st_4 within w_ljfieb_buy_send_his
  112. integer x = 823
  113. end type
  114. type em_1 from w_publ_easyq`em_1 within w_ljfieb_buy_send_his
  115. integer x = 315
  116. end type
  117. type em_2 from w_publ_easyq`em_2 within w_ljfieb_buy_send_his
  118. integer x = 928
  119. end type
  120. type ddlb_yl from w_publ_easyq`ddlb_yl within w_ljfieb_buy_send_his
  121. boolean visible = false
  122. end type
  123. type cbx_yl from w_publ_easyq`cbx_yl within w_ljfieb_buy_send_his
  124. boolean visible = false
  125. end type
  126. type dw_1 from w_publ_easyq`dw_1 within w_ljfieb_buy_send_his
  127. integer y = 300
  128. string dataobject = "dw_ljfieb_buy_send_his"
  129. end type
  130. event dw_1::doubleclicked;call super::doubleclicked;IF row <= 0 THEN RETURN
  131. String ls_code,ls_sccode
  132. Long ll_scid
  133. ls_sccode = This.Object.ljfieb_packet_receivesccode[row]
  134. SELECT scid
  135. INTO :ll_scid
  136. FROM u_scdef
  137. Where sccode = :ls_sccode;
  138. IF sqlca.SQLCode <> 0 THEN ll_scid = 0
  139. ls_code = This.Object.ljfieb_packet_relatedcode[row]
  140. f_open_win(ll_scid,ls_code)
  141. end event
  142. type sle_mtrl from w_publ_easyq`sle_mtrl within w_ljfieb_buy_send_his
  143. end type
  144. type sle_cust from w_publ_easyq`sle_cust within w_ljfieb_buy_send_his
  145. end type
  146. type st_mtrl from w_publ_easyq`st_mtrl within w_ljfieb_buy_send_his
  147. end type
  148. type st_cust from w_publ_easyq`st_cust within w_ljfieb_buy_send_his
  149. end type
  150. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_ljfieb_buy_send_his
  151. end type
  152. type pb_em1 from w_publ_easyq`pb_em1 within w_ljfieb_buy_send_his
  153. integer x = 731
  154. end type
  155. type pb_em2 from w_publ_easyq`pb_em2 within w_ljfieb_buy_send_his
  156. integer x = 1344
  157. end type
  158. type pb_2 from w_publ_easyq`pb_2 within w_ljfieb_buy_send_his
  159. integer x = 1454
  160. end type
  161. type cb_help from w_publ_easyq`cb_help within w_ljfieb_buy_send_his
  162. boolean visible = false
  163. end type
  164. type cb_copyself from w_publ_easyq`cb_copyself within w_ljfieb_buy_send_his
  165. boolean visible = false
  166. end type
  167. type gb_1 from w_publ_easyq`gb_1 within w_ljfieb_buy_send_his
  168. end type
  169. type ln_bar from w_publ_easyq`ln_bar within w_ljfieb_buy_send_his
  170. end type
  171. type ln_bar2 from w_publ_easyq`ln_bar2 within w_ljfieb_buy_send_his
  172. end type
  173. type r_bar from w_publ_easyq`r_bar within w_ljfieb_buy_send_his
  174. end type
  175. type ln_1 from w_publ_easyq`ln_1 within w_ljfieb_buy_send_his
  176. end type
  177. type ln_2 from w_publ_easyq`ln_2 within w_ljfieb_buy_send_his
  178. end type
  179. type ln_3 from w_publ_easyq`ln_3 within w_ljfieb_buy_send_his
  180. boolean visible = false
  181. end type
  182. type ln_4 from w_publ_easyq`ln_4 within w_ljfieb_buy_send_his
  183. boolean visible = false
  184. end type
  185. type cbx_1 from checkbox within w_ljfieb_buy_send_his
  186. integer x = 1600
  187. integer y = 200
  188. integer width = 411
  189. integer height = 60
  190. boolean bringtotop = true
  191. integer textsize = -9
  192. integer weight = 400
  193. fontcharset fontcharset = gb2312charset!
  194. fontpitch fontpitch = variable!
  195. string facename = "宋体"
  196. long textcolor = 33554432
  197. long backcolor = 134217739
  198. string text = "只显示待处理"
  199. end type
  200. event clicked;cb_1.triggerevent(clicked!)
  201. end event