w_rp_musttake_takecodehz.srw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. $PBExportHeader$w_rp_musttake_takecodehz.srw
  2. forward
  3. global type w_rp_musttake_takecodehz from w_publ_easyq
  4. end type
  5. type sle_cuscode from singlelineedit within w_rp_musttake_takecodehz
  6. end type
  7. type st_2 from statictext within w_rp_musttake_takecodehz
  8. end type
  9. type st_1 from statictext within w_rp_musttake_takecodehz
  10. end type
  11. type sle_cusname from singlelineedit within w_rp_musttake_takecodehz
  12. end type
  13. type cb_3 from uo_imflatbutton within w_rp_musttake_takecodehz
  14. end type
  15. type ddlb_1 from dropdownlistbox within w_rp_musttake_takecodehz
  16. end type
  17. type st_5 from statictext within w_rp_musttake_takecodehz
  18. end type
  19. type ddlb_money from uo_ddlb_moneyid within w_rp_musttake_takecodehz
  20. end type
  21. type cb_xls from uo_imflatbutton within w_rp_musttake_takecodehz
  22. end type
  23. type ddlb_scid from uo_ddlb_scid within w_rp_musttake_takecodehz
  24. end type
  25. type st_6 from statictext within w_rp_musttake_takecodehz
  26. end type
  27. type st_7 from statictext within w_rp_musttake_takecodehz
  28. end type
  29. end forward
  30. global type w_rp_musttake_takecodehz from w_publ_easyq
  31. integer x = 9
  32. integer y = 12
  33. integer width = 4658
  34. string title = "客户对帐表"
  35. event ue_xls ( )
  36. sle_cuscode sle_cuscode
  37. st_2 st_2
  38. st_1 st_1
  39. sle_cusname sle_cusname
  40. cb_3 cb_3
  41. ddlb_1 ddlb_1
  42. st_5 st_5
  43. ddlb_money ddlb_money
  44. cb_xls cb_xls
  45. ddlb_scid ddlb_scid
  46. st_6 st_6
  47. st_7 st_7
  48. end type
  49. global w_rp_musttake_takecodehz w_rp_musttake_takecodehz
  50. type variables
  51. long cur_scid = -1
  52. long ins_moneyid=0
  53. string printname1
  54. string printname2
  55. string printname3
  56. string printname4
  57. Long ll_xls_billid,ll_xls_Templatesid
  58. String ls_xls_DefaultDataWindow
  59. end variables
  60. forward prototypes
  61. public subroutine wf_init_dw1 ()
  62. public function integer wf_xls_retrievedata (long arg_ationid, ref s_xls_billlist arg_str_billlist, ref uo_sendtoexcel arg_obj_st, ref string arg_msg)
  63. end prototypes
  64. event ue_xls();
  65. string arg_msg
  66. Long ll_Templatesid,ll_ationid
  67. ll_Templatesid = Message.LongParm
  68. ll_ationid = long(Message.wordparm )
  69. if isnull(ll_Templatesid) then ll_Templatesid = 0
  70. if isnull(ll_ationid) then ll_ationid = 0
  71. if ll_Templatesid = 0 then return
  72. ll_xls_Templatesid = ll_Templatesid
  73. uo_xls_constant uo_constant //Excel全局设置对象
  74. uo_constant = create uo_xls_constant
  75. uo_sendtoexcel obj_st //实例化数据处理对象
  76. obj_st = create uo_sendtoexcel
  77. obj_st.commit_transaction = sqlca //事务对象 建议显示设置 默认等于sqlca
  78. obj_st.uo_const = uo_constant //全局配置对象
  79. s_xls_billlist str_billlist
  80. str_billlist = obj_st.of_getbillinfo(ll_Templatesid,arg_msg) //根据模版获取相应的单据信息
  81. if str_billlist.count <=0 then
  82. MessageBox('错误1',arg_msg)
  83. return
  84. end if
  85. if wf_xls_retrievedata(ll_ationid,str_billlist,obj_st,arg_msg) <> 1 then
  86. MessageBox('错误2',arg_msg)
  87. return
  88. end if
  89. //发送数据
  90. obj_st.event oe_sendtoexcel(str_billlist)
  91. end event
  92. public subroutine wf_init_dw1 ();IF ddlb_1.Text = '格式一' THEN
  93. dw_1.DataObject = 'dw_rp_msttake_takecodehz'
  94. ELSEIF ddlb_1.Text = '格式二' THEN
  95. dw_1.DataObject = 'dw_rp_msttake_takecodehz_2'
  96. ELSEIF ddlb_1.Text = '格式三' THEN
  97. dw_1.DataObject = 'dw_rp_msttake_takecodehz_3'
  98. ELSEIF ddlb_1.Text = '格式四' THEN
  99. dw_1.DataObject = 'dw_rp_msttake_takecodehz_4'
  100. END IF
  101. end subroutine
  102. public function integer wf_xls_retrievedata (long arg_ationid, ref s_xls_billlist arg_str_billlist, ref uo_sendtoexcel arg_obj_st, ref string arg_msg);//==============================================================================
  103. // 函数: w_publ_1ton_share_detail::wf_xls_retrievedata()
  104. //------------------------------------------------------------------------------
  105. // 描述: 此函数需要 重载,复制祖先范例代码,然后修改retrieve参数部分两处即可
  106. //------------------------------------------------------------------------------
  107. Long LS_ROW,ll_id,i,ll_scid
  108. //LS_ROW = dw_cust.GetRow()
  109. //IF LS_ROW <= 0 THEN
  110. // arg_msg = '没有目标单据!'
  111. // RETURN 0
  112. //END IF
  113. //IF arg_ationid = 1 Or arg_ationid = 2 THEN //打印
  114. //// IF Not f_power_ind(18,sys_msg_pow) THEN
  115. //// arg_msg = sys_msg_pow
  116. //// RETURN 0
  117. //// END IF
  118. //ELSE //发送
  119. //// IF Not f_power_ind(888,sys_msg_pow) THEN
  120. //// arg_msg = sys_msg_pow
  121. //// RETURN 0
  122. //// END IF
  123. //END IF
  124. //修改点:获取 指定retriev参数
  125. //long ll_cusid
  126. DateTime firstdate,enddate
  127. firstdate = DateTime(Date(em_1.Text),Time(0))
  128. enddate = DateTime(RelativeDate(Date(em_2.Text),1),Time(0))
  129. //ll_cusid = dw_cust.Object.cusid[LS_ROW]
  130. String ls_code = ''
  131. IF Pos(sle_cuscode.Text,'%') > 0 THEN
  132. ls_code = sle_cuscode.Text
  133. ELSE
  134. ls_code = '%'+sle_cuscode.Text+'%'
  135. END IF
  136. ////可选设置///
  137. arg_obj_st.uo_const.create_new_pwd( ) //创建随机密码
  138. if sys_option_xls_ifuse_passwd = 1 then arg_obj_st.uo_const.pwd = trim(sys_option_xls_user_passwd) //默认加密密码 默认为随即密码
  139. boolean xls_locked
  140. xls_locked = not (sys_option_xls_lock = 1)
  141. /// Excel 的可选设置
  142. if arg_obj_st.of_setoption(arg_ationid, xls_locked,true,arg_msg) <> 1 then
  143. return 0
  144. end if
  145. for i = 1 to arg_str_billlist.count
  146. ////可选操作///
  147. arg_str_billlist.bill[i].ds_data = create datastore //
  148. arg_str_billlist.bill[i].ds_data.dataobject = arg_str_billlist.bill[i].datawindow //
  149. arg_str_billlist.bill[i].ds_data.settransobject(sqlca)
  150. //修改点:注意retrieve 参数与上文对应
  151. arg_str_billlist.bill[i].ds_data.retrieve(ins_moneyid,ls_code,firstdate,enddate,sys_areaid)
  152. next
  153. return 1
  154. end function
  155. on w_rp_musttake_takecodehz.create
  156. int iCurrent
  157. call super::create
  158. this.sle_cuscode=create sle_cuscode
  159. this.st_2=create st_2
  160. this.st_1=create st_1
  161. this.sle_cusname=create sle_cusname
  162. this.cb_3=create cb_3
  163. this.ddlb_1=create ddlb_1
  164. this.st_5=create st_5
  165. this.ddlb_money=create ddlb_money
  166. this.cb_xls=create cb_xls
  167. this.ddlb_scid=create ddlb_scid
  168. this.st_6=create st_6
  169. this.st_7=create st_7
  170. iCurrent=UpperBound(this.Control)
  171. this.Control[iCurrent+1]=this.sle_cuscode
  172. this.Control[iCurrent+2]=this.st_2
  173. this.Control[iCurrent+3]=this.st_1
  174. this.Control[iCurrent+4]=this.sle_cusname
  175. this.Control[iCurrent+5]=this.cb_3
  176. this.Control[iCurrent+6]=this.ddlb_1
  177. this.Control[iCurrent+7]=this.st_5
  178. this.Control[iCurrent+8]=this.ddlb_money
  179. this.Control[iCurrent+9]=this.cb_xls
  180. this.Control[iCurrent+10]=this.ddlb_scid
  181. this.Control[iCurrent+11]=this.st_6
  182. this.Control[iCurrent+12]=this.st_7
  183. end on
  184. on w_rp_musttake_takecodehz.destroy
  185. call super::destroy
  186. destroy(this.sle_cuscode)
  187. destroy(this.st_2)
  188. destroy(this.st_1)
  189. destroy(this.sle_cusname)
  190. destroy(this.cb_3)
  191. destroy(this.ddlb_1)
  192. destroy(this.st_5)
  193. destroy(this.ddlb_money)
  194. destroy(this.cb_xls)
  195. destroy(this.ddlb_scid)
  196. destroy(this.st_6)
  197. destroy(this.st_7)
  198. end on
  199. event ue_before_openretrieve;call super::ue_before_openretrieve;IF dw_1.DataObject <> '' THEN dw_1.Object.DataWindow.Print.Preview.Rulers = "yes"
  200. end event
  201. type cb_func from w_publ_easyq`cb_func within w_rp_musttake_takecodehz
  202. end type
  203. type cb_exit from w_publ_easyq`cb_exit within w_rp_musttake_takecodehz
  204. integer x = 1417
  205. end type
  206. type cb_2 from w_publ_easyq`cb_2 within w_rp_musttake_takecodehz
  207. integer taborder = 100
  208. boolean bringtotop = true
  209. end type
  210. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_musttake_takecodehz
  211. boolean bringtotop = true
  212. end type
  213. type cb_1 from w_publ_easyq`cb_1 within w_rp_musttake_takecodehz
  214. boolean bringtotop = true
  215. end type
  216. event cb_1::clicked;call super::clicked;IF dw_1.DataObject = "" THEN
  217. MessageBox('错误','未定义格式或格式不存在',stopsign!,ok!)
  218. RETURN
  219. END IF
  220. DateTime firstdate,enddate
  221. firstdate = DateTime(Date(em_1.Text),Time(0))
  222. enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
  223. String ls_code = ''
  224. IF Pos(sle_cuscode.Text,'%') > 0 THEN
  225. ls_code = sle_cuscode.Text
  226. ELSE
  227. ls_code = '%'+sle_cuscode.Text+'%'
  228. END IF
  229. DELETE From u_parm_pay Where id = 2 ;
  230. IF sqlca.SQLCode <> 0 THEN
  231. MessageBox('错误','数据库操作失败!',stopsign!,ok!)
  232. ROLLBACK;
  233. RETURN
  234. END IF
  235. INSERT Into u_parm_pay (firstdate,enddate,id) Values (:firstdate,:enddate,2);
  236. IF sqlca.SQLCode <> 0 THEN
  237. MessageBox('错误','数据库操作失败!',stopsign!,ok!)
  238. ROLLBACK;
  239. RETURN
  240. END IF
  241. DELETE From u_parm_pay Where id = 1 ;
  242. IF sqlca.SQLCode <> 0 THEN
  243. MessageBox('错误','数据库操作失败!',stopsign!,ok!)
  244. ROLLBACK;
  245. RETURN
  246. END IF
  247. INSERT Into u_parm_pay (firstdate,enddate,id) Values (:firstdate,:enddate,1);
  248. IF sqlca.SQLCode <> 0 THEN
  249. MessageBox('错误','数据库操作失败!',stopsign!,ok!)
  250. ROLLBACK;
  251. RETURN
  252. END IF
  253. COMMIT;
  254. dw_1.Retrieve(ins_moneyid,ls_code,firstdate,enddate,sys_areaid,cur_scid)
  255. dw_1.Object.txt_dzrq.Text = String(Date(firstdate))+" 到 "+em_2.Text
  256. end event
  257. type st_3 from w_publ_easyq`st_3 within w_rp_musttake_takecodehz
  258. integer x = 1307
  259. integer y = 212
  260. end type
  261. type st_4 from w_publ_easyq`st_4 within w_rp_musttake_takecodehz
  262. integer x = 2021
  263. end type
  264. type em_1 from w_publ_easyq`em_1 within w_rp_musttake_takecodehz
  265. integer x = 1513
  266. integer y = 188
  267. integer taborder = 110
  268. end type
  269. type em_2 from w_publ_easyq`em_2 within w_rp_musttake_takecodehz
  270. integer x = 2121
  271. integer y = 188
  272. integer taborder = 120
  273. long textcolor = 0
  274. end type
  275. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_musttake_takecodehz
  276. integer x = 1856
  277. integer y = 8
  278. boolean enabled = true
  279. end type
  280. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_musttake_takecodehz
  281. integer x = 1646
  282. integer y = 8
  283. boolean enabled = false
  284. boolean checked = true
  285. end type
  286. type dw_1 from w_publ_easyq`dw_1 within w_rp_musttake_takecodehz
  287. integer y = 308
  288. integer width = 3378
  289. integer height = 1624
  290. string dataobject = "dw_rp_msttake_takecodehz"
  291. boolean setcolumn_visible_use = false
  292. boolean autosave_filter_use = false
  293. boolean autosave_sort_use = false
  294. boolean autosave_setlayout_use = false
  295. boolean autosave_columnvisible_use = false
  296. end type
  297. event dw_1::constructor;int i = 0
  298. end event
  299. event dw_1::destructor;int i = 0
  300. end event
  301. event dw_1::ue_setlayout;int i = 0
  302. end event
  303. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_musttake_takecodehz
  304. end type
  305. type sle_cust from w_publ_easyq`sle_cust within w_rp_musttake_takecodehz
  306. end type
  307. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_musttake_takecodehz
  308. end type
  309. type st_cust from w_publ_easyq`st_cust within w_rp_musttake_takecodehz
  310. end type
  311. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_musttake_takecodehz
  312. boolean visible = true
  313. integer x = 1627
  314. end type
  315. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_musttake_takecodehz
  316. integer x = 1920
  317. integer y = 188
  318. end type
  319. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_musttake_takecodehz
  320. integer x = 2537
  321. integer y = 184
  322. end type
  323. type pb_2 from w_publ_easyq`pb_2 within w_rp_musttake_takecodehz
  324. integer x = 2642
  325. integer y = 184
  326. end type
  327. type cb_help from w_publ_easyq`cb_help within w_rp_musttake_takecodehz
  328. integer x = 1266
  329. end type
  330. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_musttake_takecodehz
  331. end type
  332. type gb_1 from w_publ_easyq`gb_1 within w_rp_musttake_takecodehz
  333. end type
  334. type ln_bar from w_publ_easyq`ln_bar within w_rp_musttake_takecodehz
  335. end type
  336. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_musttake_takecodehz
  337. end type
  338. type r_bar from w_publ_easyq`r_bar within w_rp_musttake_takecodehz
  339. end type
  340. type ln_1 from w_publ_easyq`ln_1 within w_rp_musttake_takecodehz
  341. end type
  342. type ln_2 from w_publ_easyq`ln_2 within w_rp_musttake_takecodehz
  343. end type
  344. type ln_3 from w_publ_easyq`ln_3 within w_rp_musttake_takecodehz
  345. integer beginy = 312
  346. integer endy = 312
  347. end type
  348. type ln_4 from w_publ_easyq`ln_4 within w_rp_musttake_takecodehz
  349. integer beginy = 316
  350. integer endy = 316
  351. end type
  352. type sle_cuscode from singlelineedit within w_rp_musttake_takecodehz
  353. integer x = 3054
  354. integer y = 188
  355. integer width = 352
  356. integer height = 88
  357. integer taborder = 80
  358. boolean bringtotop = true
  359. integer textsize = -9
  360. integer weight = 400
  361. fontcharset fontcharset = gb2312charset!
  362. fontpitch fontpitch = variable!
  363. string facename = "宋体"
  364. long textcolor = 33554432
  365. boolean autohscroll = false
  366. borderstyle borderstyle = stylelowered!
  367. end type
  368. type st_2 from statictext within w_rp_musttake_takecodehz
  369. integer x = 2747
  370. integer y = 208
  371. integer width = 293
  372. integer height = 60
  373. boolean bringtotop = true
  374. integer textsize = -9
  375. integer weight = 400
  376. fontcharset fontcharset = gb2312charset!
  377. fontpitch fontpitch = variable!
  378. string facename = "宋体"
  379. long textcolor = 33554432
  380. long backcolor = 134217739
  381. boolean enabled = false
  382. string text = "客户编号含"
  383. alignment alignment = right!
  384. boolean focusrectangle = false
  385. end type
  386. type st_1 from statictext within w_rp_musttake_takecodehz
  387. integer x = 3410
  388. integer y = 204
  389. integer width = 224
  390. integer height = 60
  391. boolean bringtotop = true
  392. integer textsize = -9
  393. integer weight = 400
  394. fontcharset fontcharset = gb2312charset!
  395. fontpitch fontpitch = variable!
  396. string facename = "宋体"
  397. long textcolor = 33554432
  398. long backcolor = 134217739
  399. string text = "客户名称"
  400. alignment alignment = right!
  401. boolean focusrectangle = false
  402. end type
  403. type sle_cusname from singlelineedit within w_rp_musttake_takecodehz
  404. integer x = 3639
  405. integer y = 188
  406. integer width = 882
  407. integer height = 80
  408. integer taborder = 100
  409. boolean bringtotop = true
  410. integer textsize = -9
  411. integer weight = 400
  412. fontcharset fontcharset = gb2312charset!
  413. fontpitch fontpitch = variable!
  414. string facename = "宋体"
  415. long textcolor = 33554432
  416. long backcolor = 134217739
  417. boolean displayonly = true
  418. borderstyle borderstyle = stylelowered!
  419. end type
  420. type cb_3 from uo_imflatbutton within w_rp_musttake_takecodehz
  421. integer x = 4544
  422. integer y = 192
  423. integer width = 110
  424. integer height = 88
  425. integer taborder = 110
  426. boolean bringtotop = true
  427. string text = "..."
  428. end type
  429. event clicked;call super::clicked;if not isvalid(w_cust_edit) then
  430. s_edit_index_tran s_ch_tran
  431. s_ch_tran.if_retrieve_all = local_retrieve_all
  432. s_ch_tran.work_mode = 1
  433. s_ch_tran.arg_pkid = 0
  434. s_ch_tran.arg_string_code = sle_cuscode.text
  435. openwithparm(w_cust_edit,s_ch_tran)
  436. s_custom s_inscust
  437. s_inscust=message.powerobjectparm
  438. if s_inscust.cusid > 0 then
  439. sle_cusname.text=s_inscust.name
  440. sle_cuscode.text=s_inscust.cuscode
  441. end if
  442. end if
  443. end event
  444. type ddlb_1 from dropdownlistbox within w_rp_musttake_takecodehz
  445. integer x = 2405
  446. integer y = 40
  447. integer width = 384
  448. integer height = 984
  449. integer taborder = 70
  450. boolean bringtotop = true
  451. integer textsize = -9
  452. integer weight = 400
  453. fontcharset fontcharset = gb2312charset!
  454. fontpitch fontpitch = variable!
  455. string facename = "宋体"
  456. long textcolor = 33554432
  457. string text = "格式一"
  458. boolean sorted = false
  459. string item[] = {"格式一","格式二","格式三","格式四","格式五","格式六"}
  460. borderstyle borderstyle = stylelowered!
  461. end type
  462. event selectionchanged;IF This.Text = '格式一' THEN
  463. dw_1.DataObject = 'dw_rp_msttake_takecodehz'
  464. ELSEIF This.Text = '格式二' THEN
  465. dw_1.DataObject = 'dw_rp_msttake_takecodehz_2'
  466. ELSEIF This.Text = '格式三' THEN
  467. dw_1.DataObject = 'dw_rp_msttake_takecodehz_3'
  468. ELSEIF This.Text = '格式四' THEN
  469. dw_1.DataObject = 'dw_rp_msttake_takecodehz_4'
  470. ELSEIF This.Text = '格式五' THEN
  471. dw_1.DataObject = 'dw_rp_msttake_takecodehz_5'
  472. ELSEIF This.Text = '格式六' THEN
  473. dw_1.DataObject = 'dw_rp_msttake_takecodehz_6'
  474. END IF
  475. wf_replacedw()
  476. dw_1.Object.DataWindow.Print.Preview.Rulers = "yes"
  477. IF sle_cuscode.Text <> "" THEN
  478. cb_1.TriggerEvent(Clicked!)
  479. END IF
  480. st_7.text=string(dw_1.dataobject)
  481. end event
  482. event destructor;f_SetProfileString(sys_empid, String(parent.ClassName()), "ddlb", this.text)
  483. end event
  484. event constructor;String ls_text
  485. ls_text = f_ProfileString(sys_empid, String(Parent.ClassName()), "ddlb","格式一")
  486. Long Index
  487. Index = This.FindItem(ls_text, 1)
  488. IF Index > 0 THEN
  489. This.Text = ls_text
  490. END IF
  491. end event
  492. type st_5 from statictext within w_rp_musttake_takecodehz
  493. integer x = 686
  494. integer y = 212
  495. integer width = 133
  496. integer height = 48
  497. boolean bringtotop = true
  498. integer textsize = -9
  499. integer weight = 400
  500. fontcharset fontcharset = gb2312charset!
  501. fontpitch fontpitch = variable!
  502. string facename = "宋体"
  503. long textcolor = 33554432
  504. long backcolor = 134217739
  505. string text = "币种"
  506. alignment alignment = right!
  507. boolean focusrectangle = false
  508. end type
  509. type ddlb_money from uo_ddlb_moneyid within w_rp_musttake_takecodehz
  510. integer x = 823
  511. integer y = 192
  512. integer taborder = 130
  513. boolean bringtotop = true
  514. end type
  515. event constructor;call super::constructor;ins_moneyid = THIS.uo_moneyid
  516. end event
  517. event selectionchanged;call super::selectionchanged;ins_moneyid = THIS.uo_moneyid
  518. cb_1.TriggerEvent(Clicked!)
  519. end event
  520. type cb_xls from uo_imflatbutton within w_rp_musttake_takecodehz
  521. integer x = 965
  522. integer height = 164
  523. integer taborder = 240
  524. boolean bringtotop = true
  525. string text = "Excel打印"
  526. string normalpicname = "excel.bmp"
  527. integer picsize = 16
  528. toolbaralignment pic_align = alignattop!
  529. boolean border = false
  530. end type
  531. event clicked;call super::clicked;// 约定 用 parent.Classname ( ) 即状况名称 作为打印模板的分类
  532. uo_sendtoexcel obj_st
  533. obj_st = create uo_sendtoexcel
  534. obj_st.commit_transaction = sqlca
  535. obj_st.TriggerEventObject = this.getparent()
  536. obj_st.TriggerEventname = 'ue_xls'
  537. string arg_msg
  538. menu m1
  539. m1 = obj_st.of_createmenu( parent.Classname ( ),sys_user_xls_print_str,sys_user_xls_send_str)
  540. if upperbound( m1.item)=2 then
  541. messagebox('错误','当前单据还没有设置Excel打印模板.')
  542. else
  543. m1.PopMenu(this.x ,this.y+THIS.height)
  544. end if
  545. end event
  546. type ddlb_scid from uo_ddlb_scid within w_rp_musttake_takecodehz
  547. integer x = 146
  548. integer y = 196
  549. integer width = 549
  550. integer height = 1120
  551. integer taborder = 30
  552. boolean bringtotop = true
  553. end type
  554. event constructor;call super::constructor;cur_scid = This.uo_scid
  555. end event
  556. event selectionchanged;call super::selectionchanged;cur_scid = This.uo_scid
  557. cb_1.TriggerEvent(Clicked!)
  558. end event
  559. type st_6 from statictext within w_rp_musttake_takecodehz
  560. integer y = 212
  561. integer width = 128
  562. integer height = 48
  563. boolean bringtotop = true
  564. integer textsize = -9
  565. integer weight = 400
  566. fontcharset fontcharset = gb2312charset!
  567. fontpitch fontpitch = variable!
  568. string facename = "宋体"
  569. long textcolor = 33554432
  570. long backcolor = 134217739
  571. string text = "分部"
  572. boolean focusrectangle = false
  573. end type
  574. type st_7 from statictext within w_rp_musttake_takecodehz
  575. integer x = 2917
  576. integer y = 56
  577. integer width = 1198
  578. integer height = 48
  579. boolean bringtotop = true
  580. integer textsize = -9
  581. integer weight = 400
  582. fontcharset fontcharset = gb2312charset!
  583. fontpitch fontpitch = variable!
  584. string facename = "宋体"
  585. long textcolor = 33554432
  586. long backcolor = 67108864
  587. boolean focusrectangle = false
  588. end type
  589. event constructor;THIS.BackColor = 14215660
  590. end event