w_rp_dqtaskmx.srw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484
  1. $PBExportHeader$w_rp_dqtaskmx.srw
  2. forward
  3. global type w_rp_dqtaskmx from w_publ_easyq
  4. end type
  5. type sle_empcode from singlelineedit within w_rp_dqtaskmx
  6. end type
  7. type st_2 from statictext within w_rp_dqtaskmx
  8. end type
  9. type ddlb_1 from dropdownlistbox within w_rp_dqtaskmx
  10. end type
  11. type st_6 from statictext within w_rp_dqtaskmx
  12. end type
  13. type sle_eempcode from singlelineedit within w_rp_dqtaskmx
  14. end type
  15. type cb_3 from uo_imflatbutton within w_rp_dqtaskmx
  16. end type
  17. type cb_4 from uo_imflatbutton within w_rp_dqtaskmx
  18. end type
  19. type ddlb_2 from dropdownlistbox within w_rp_dqtaskmx
  20. end type
  21. end forward
  22. global type w_rp_dqtaskmx from w_publ_easyq
  23. string title = "工资单"
  24. sle_empcode sle_empcode
  25. st_2 st_2
  26. ddlb_1 ddlb_1
  27. st_6 st_6
  28. sle_eempcode sle_eempcode
  29. cb_3 cb_3
  30. cb_4 cb_4
  31. ddlb_2 ddlb_2
  32. end type
  33. global w_rp_dqtaskmx w_rp_dqtaskmx
  34. type variables
  35. string printname1
  36. end variables
  37. on w_rp_dqtaskmx.create
  38. int iCurrent
  39. call super::create
  40. this.sle_empcode=create sle_empcode
  41. this.st_2=create st_2
  42. this.ddlb_1=create ddlb_1
  43. this.st_6=create st_6
  44. this.sle_eempcode=create sle_eempcode
  45. this.cb_3=create cb_3
  46. this.cb_4=create cb_4
  47. this.ddlb_2=create ddlb_2
  48. iCurrent=UpperBound(this.Control)
  49. this.Control[iCurrent+1]=this.sle_empcode
  50. this.Control[iCurrent+2]=this.st_2
  51. this.Control[iCurrent+3]=this.ddlb_1
  52. this.Control[iCurrent+4]=this.st_6
  53. this.Control[iCurrent+5]=this.sle_eempcode
  54. this.Control[iCurrent+6]=this.cb_3
  55. this.Control[iCurrent+7]=this.cb_4
  56. this.Control[iCurrent+8]=this.ddlb_2
  57. end on
  58. on w_rp_dqtaskmx.destroy
  59. call super::destroy
  60. destroy(this.sle_empcode)
  61. destroy(this.st_2)
  62. destroy(this.ddlb_1)
  63. destroy(this.st_6)
  64. destroy(this.sle_eempcode)
  65. destroy(this.cb_3)
  66. destroy(this.cb_4)
  67. destroy(this.ddlb_2)
  68. end on
  69. event open;call super::open;//this.triggerevent('ue_before_open')
  70. //wf_movetocenter()
  71. //
  72. //String ls_printname1
  73. //ls_printname1 = 'dw_rp_dqtaskmx_2'
  74. //String ls_windowname
  75. //ls_windowname = THIS.ClassName ()
  76. //
  77. //printname1 = f_get_dwprint_dynamic_chname(ls_printname1,ls_windowname)
  78. //IF printname1 = '' THEN
  79. // printname1 = ls_printname1
  80. //ELSE
  81. // dw_1.DataObject = printname1
  82. //END IF
  83. //
  84. ////dw_1.DataObject = 'dw_rp_dqtaskmx_2_tx'
  85. //
  86. //
  87. //dw_1.SetTransObject (sqlca)
  88. //if_ue_sentdataout = true
  89. //EM_1.TEXT=STRING(TODAY(),'YYYY-MM-DD')
  90. //EM_2.TEXT=EM_1.TEXT
  91. //
  92. //dw_1.RBUTTON_FILTER_USE=true //右键查询功能开关
  93. //
  94. //IF TRIM(DW_1.DATAOBJECT)<>'' THEN
  95. // DW_1.OBJECT.DataWindow.PRINT.MARGIN.TOP=INTEGER(f_ProfileString (sys_empid,DW_1.DATAOBJECT, "MARGIN_TOP", "110"))
  96. // DW_1.OBJECT.DataWindow.PRINT.MARGIN.LEFT=INTEGER(f_ProfileString (sys_empid,DW_1.DATAOBJECT, "MARGIN_LEFT", "96" ))
  97. //
  98. // DW_1.OBJECT.DataWindow.PRINT.MARGIN.bottom=INTEGER(f_ProfileString (sys_empid,DW_1.DATAOBJECT, "MARGIN_BOTTOM", "110"))
  99. // DW_1.OBJECT.DataWindow.PRINT.MARGIN.right=INTEGER(f_ProfileString (sys_empid,DW_1.DATAOBJECT, "MARGIN_RIGHT", "96" ))
  100. //end if
  101. //dw_1.Object.DataWindow.Print.Preview.Rulers = "yes"
  102. //
  103. //long ls_departmentid
  104. //string ls_departmentname
  105. //
  106. // DECLARE dept_cur CURSOR FOR
  107. // SELECT cw_department.departmentid,
  108. // cw_department.departmentname
  109. // FROM cw_department ;
  110. //
  111. //open dept_cur;
  112. //fetch dept_cur into :ls_departmentid,:ls_departmentname;
  113. //
  114. //do while sqlca.sqlcode=0
  115. // ddlb_1.additem(ls_departmentname+'['+string(ls_departmentid)+']')
  116. // fetch dept_cur into :ls_departmentid,:ls_departmentname;
  117. //loop
  118. //
  119. //ddlb_1.additem('全部[-1]')
  120. //ddlb_1.text='全部[-1]'
  121. //
  122. end event
  123. event ue_before_open;call super::ue_before_open;long ls_departmentid
  124. string ls_departmentname
  125. DECLARE dept_cur CURSOR FOR
  126. SELECT cw_department.departmentid,
  127. cw_department.departmentname
  128. FROM cw_department ;
  129. open dept_cur;
  130. fetch dept_cur into :ls_departmentid,:ls_departmentname;
  131. do while sqlca.sqlcode=0
  132. ddlb_1.additem(ls_departmentname+'['+string(ls_departmentid)+']')
  133. fetch dept_cur into :ls_departmentid,:ls_departmentname;
  134. loop
  135. ddlb_1.additem('全部[-1]')
  136. ddlb_1.text='全部[-1]'
  137. wf_replacedw()
  138. dw_1.Object.DataWindow.Print.Preview.Rulers = "yes"
  139. end event
  140. type cb_func from w_publ_easyq`cb_func within w_rp_dqtaskmx
  141. integer x = 178
  142. integer width = 169
  143. end type
  144. type cb_exit from w_publ_easyq`cb_exit within w_rp_dqtaskmx
  145. integer x = 1042
  146. end type
  147. type cb_2 from w_publ_easyq`cb_2 within w_rp_dqtaskmx
  148. integer x = 859
  149. integer width = 183
  150. integer taborder = 120
  151. boolean bringtotop = true
  152. end type
  153. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_dqtaskmx
  154. integer x = 603
  155. boolean bringtotop = true
  156. end type
  157. type cb_1 from w_publ_easyq`cb_1 within w_rp_dqtaskmx
  158. integer width = 178
  159. boolean bringtotop = true
  160. end type
  161. event cb_1::clicked;call super::clicked;string ls_empcode
  162. long ls_deptid
  163. if trim(sle_empcode.text)='' then
  164. dw_1.reset()
  165. return
  166. end if
  167. if sle_empcode.text='' then
  168. ls_empcode='%%'
  169. else
  170. ls_empcode=sle_empcode.text
  171. end if
  172. ls_deptid=long(mid(ddlb_1.text,pos(ddlb_1.text,'[') + 1,pos(ddlb_1.text,']') - pos(ddlb_1.text,'[') - 1))
  173. dw_1.retrieve(long(em_1.text),ls_empcode,trim(sle_eempcode.text),ls_deptid)
  174. dw_1.object.title.text = em_1.text +'计件、异常工资明细表'
  175. end event
  176. type st_3 from w_publ_easyq`st_3 within w_rp_dqtaskmx
  177. integer x = 9
  178. integer width = 142
  179. string text = "月份"
  180. end type
  181. type st_4 from w_publ_easyq`st_4 within w_rp_dqtaskmx
  182. integer x = 1230
  183. integer y = 516
  184. end type
  185. type em_1 from w_publ_easyq`em_1 within w_rp_dqtaskmx
  186. integer x = 165
  187. integer width = 283
  188. integer height = 92
  189. integer taborder = 130
  190. string mask = "yyyymm"
  191. end type
  192. type em_2 from w_publ_easyq`em_2 within w_rp_dqtaskmx
  193. integer x = 1349
  194. integer y = 508
  195. integer taborder = 140
  196. end type
  197. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_dqtaskmx
  198. boolean visible = false
  199. integer x = 1033
  200. integer y = 332
  201. end type
  202. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_dqtaskmx
  203. boolean visible = false
  204. integer x = 818
  205. integer y = 336
  206. boolean enabled = false
  207. end type
  208. type dw_1 from w_publ_easyq`dw_1 within w_rp_dqtaskmx
  209. integer y = 304
  210. integer width = 3483
  211. integer height = 1656
  212. string dataobject = "dw_rp_dqtaskmx_2"
  213. end type
  214. event dw_1::constructor; titleclick_sort_use=true //单击标题排序功能开关
  215. RBUTTON_FILTER_USE=true //右键查询功能开关
  216. end event
  217. event dw_1::destructor;int i = 0
  218. end event
  219. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_dqtaskmx
  220. end type
  221. type sle_cust from w_publ_easyq`sle_cust within w_rp_dqtaskmx
  222. end type
  223. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_dqtaskmx
  224. end type
  225. type st_cust from w_publ_easyq`st_cust within w_rp_dqtaskmx
  226. end type
  227. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_dqtaskmx
  228. boolean visible = true
  229. boolean checked = false
  230. end type
  231. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_dqtaskmx
  232. boolean visible = false
  233. end type
  234. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_dqtaskmx
  235. boolean visible = false
  236. end type
  237. type pb_2 from w_publ_easyq`pb_2 within w_rp_dqtaskmx
  238. boolean visible = false
  239. end type
  240. type cb_help from w_publ_easyq`cb_help within w_rp_dqtaskmx
  241. integer x = 347
  242. end type
  243. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_dqtaskmx
  244. integer x = 347
  245. end type
  246. type gb_1 from w_publ_easyq`gb_1 within w_rp_dqtaskmx
  247. end type
  248. type ln_bar from w_publ_easyq`ln_bar within w_rp_dqtaskmx
  249. end type
  250. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_dqtaskmx
  251. end type
  252. type r_bar from w_publ_easyq`r_bar within w_rp_dqtaskmx
  253. end type
  254. type ln_1 from w_publ_easyq`ln_1 within w_rp_dqtaskmx
  255. end type
  256. type ln_2 from w_publ_easyq`ln_2 within w_rp_dqtaskmx
  257. end type
  258. type ln_3 from w_publ_easyq`ln_3 within w_rp_dqtaskmx
  259. end type
  260. type ln_4 from w_publ_easyq`ln_4 within w_rp_dqtaskmx
  261. end type
  262. type sle_empcode from singlelineedit within w_rp_dqtaskmx
  263. integer x = 1353
  264. integer y = 188
  265. integer width = 430
  266. integer height = 92
  267. integer taborder = 150
  268. boolean bringtotop = true
  269. integer textsize = -9
  270. integer weight = 400
  271. fontcharset fontcharset = gb2312charset!
  272. fontpitch fontpitch = variable!
  273. string facename = "宋体"
  274. long textcolor = 33554432
  275. borderstyle borderstyle = stylelowered!
  276. end type
  277. type st_2 from statictext within w_rp_dqtaskmx
  278. integer x = 462
  279. integer y = 204
  280. integer width = 137
  281. integer height = 60
  282. boolean bringtotop = true
  283. integer textsize = -9
  284. integer weight = 400
  285. fontcharset fontcharset = gb2312charset!
  286. fontpitch fontpitch = variable!
  287. string facename = "宋体"
  288. long textcolor = 33554432
  289. long backcolor = 134217739
  290. boolean enabled = false
  291. string text = "部门"
  292. alignment alignment = right!
  293. boolean focusrectangle = false
  294. end type
  295. type ddlb_1 from dropdownlistbox within w_rp_dqtaskmx
  296. integer x = 613
  297. integer y = 192
  298. integer width = 736
  299. integer height = 888
  300. integer taborder = 90
  301. boolean bringtotop = true
  302. integer textsize = -9
  303. integer weight = 400
  304. fontcharset fontcharset = gb2312charset!
  305. fontpitch fontpitch = variable!
  306. string facename = "宋体"
  307. long textcolor = 33554432
  308. boolean sorted = false
  309. boolean vscrollbar = true
  310. borderstyle borderstyle = stylelowered!
  311. end type
  312. type st_6 from statictext within w_rp_dqtaskmx
  313. integer x = 1925
  314. integer y = 204
  315. integer width = 64
  316. integer height = 60
  317. boolean bringtotop = true
  318. integer textsize = -9
  319. integer weight = 400
  320. fontcharset fontcharset = gb2312charset!
  321. fontpitch fontpitch = variable!
  322. string facename = "宋体"
  323. long textcolor = 33554432
  324. long backcolor = 134217739
  325. boolean enabled = false
  326. string text = "至"
  327. boolean focusrectangle = false
  328. end type
  329. type sle_eempcode from singlelineedit within w_rp_dqtaskmx
  330. integer x = 1998
  331. integer y = 188
  332. integer width = 430
  333. integer height = 92
  334. integer taborder = 160
  335. boolean bringtotop = true
  336. integer textsize = -9
  337. integer weight = 400
  338. fontcharset fontcharset = gb2312charset!
  339. fontpitch fontpitch = variable!
  340. string facename = "宋体"
  341. long textcolor = 33554432
  342. borderstyle borderstyle = stylelowered!
  343. end type
  344. type cb_3 from uo_imflatbutton within w_rp_dqtaskmx
  345. integer x = 1787
  346. integer y = 192
  347. integer width = 119
  348. integer height = 88
  349. integer taborder = 20
  350. boolean bringtotop = true
  351. string text = "..."
  352. end type
  353. event clicked;call super::clicked;s_empselect s_select
  354. if not isvalid(w_empinfo_choice) then
  355. openwithparm(w_empinfo_choice,'')
  356. s_select = message.powerobjectparm //接受返回结构
  357. if s_select.empid > 0 then
  358. sle_empcode.text = s_select.empcode
  359. end if
  360. end if
  361. end event
  362. type cb_4 from uo_imflatbutton within w_rp_dqtaskmx
  363. integer x = 2437
  364. integer y = 192
  365. integer width = 119
  366. integer height = 88
  367. integer taborder = 30
  368. boolean bringtotop = true
  369. string text = "..."
  370. end type
  371. event clicked;call super::clicked;s_empselect s_select
  372. if not isvalid(w_empinfo_choice) then
  373. openwithparm(w_empinfo_choice,'')
  374. s_select = message.powerobjectparm //接受返回结构
  375. if s_select.empid > 0 then
  376. sle_eempcode.text = s_select.empcode
  377. end if
  378. end if
  379. end event
  380. type ddlb_2 from dropdownlistbox within w_rp_dqtaskmx
  381. integer x = 1879
  382. integer y = 88
  383. integer width = 480
  384. integer height = 300
  385. integer taborder = 20
  386. boolean bringtotop = true
  387. integer textsize = -9
  388. integer weight = 400
  389. fontcharset fontcharset = gb2312charset!
  390. fontpitch fontpitch = variable!
  391. string facename = "宋体"
  392. long textcolor = 33554432
  393. string text = "格式一"
  394. string item[] = {"格式一","格式二"}
  395. borderstyle borderstyle = stylelowered!
  396. end type
  397. event selectionchanged;If This.Text = '格式一' Then
  398. dw_1.DataObject = 'dw_rp_dqtaskmx_2'
  399. Else
  400. If This.Text = '格式二' Then
  401. dw_1.DataObject = 'dw_rp_dqtaskmx_3'
  402. End If
  403. End If
  404. cb_1.triggerevent(clicked!)
  405. end event
  406. event constructor;If This.Text = '格式一' Then
  407. dw_1.DataObject = 'dw_rp_dqtaskmx_2'
  408. Else
  409. If This.Text = '格式二' Then
  410. dw_1.DataObject = 'dw_rp_dqtaskmx_3'
  411. End If
  412. End If
  413. end event