w_rp_associat_sptcust.srw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. $PBExportHeader$w_rp_associat_sptcust.srw
  2. forward
  3. global type w_rp_associat_sptcust from w_publ_easyq
  4. end type
  5. type cb_3 from uo_imflatbutton within w_rp_associat_sptcust
  6. end type
  7. type cb_4 from uo_imflatbutton within w_rp_associat_sptcust
  8. end type
  9. type cb_5 from uo_imflatbutton within w_rp_associat_sptcust
  10. end type
  11. type cb_6 from uo_imflatbutton within w_rp_associat_sptcust
  12. end type
  13. type cb_7 from uo_imflatbutton within w_rp_associat_sptcust
  14. end type
  15. type st_1 from statictext within w_rp_associat_sptcust
  16. end type
  17. type st_2 from statictext within w_rp_associat_sptcust
  18. end type
  19. type ddlb_3 from uo_ddlb_scid within w_rp_associat_sptcust
  20. end type
  21. type ddlb_money from uo_ddlb_moneyid within w_rp_associat_sptcust
  22. end type
  23. type cbx_ifacc from checkbox within w_rp_associat_sptcust
  24. end type
  25. end forward
  26. global type w_rp_associat_sptcust from w_publ_easyq
  27. integer width = 4357
  28. string title = "往来账"
  29. event ue_usual_query_filt ( )
  30. cb_3 cb_3
  31. cb_4 cb_4
  32. cb_5 cb_5
  33. cb_6 cb_6
  34. cb_7 cb_7
  35. st_1 st_1
  36. st_2 st_2
  37. ddlb_3 ddlb_3
  38. ddlb_money ddlb_money
  39. cbx_ifacc cbx_ifacc
  40. end type
  41. global w_rp_associat_sptcust w_rp_associat_sptcust
  42. type variables
  43. long ins_moneyid=0
  44. long cur_scid
  45. long cur_scid_arr[]
  46. uo_reissue_sptcust uo_sptcust
  47. end variables
  48. forward prototypes
  49. public function string wf_getname (integer ai_id, integer ai_type)
  50. end prototypes
  51. event ue_usual_query_filt();String obj_expr = ''
  52. IF Trim(sle_cust.Text) <> '' THEN
  53. IF Pos(Trim(sle_cust.Text),'%') = 0 THEN
  54. obj_expr = obj_expr+'( sptcode like "%'+Trim(sle_cust.Text)+'%" )'
  55. obj_expr = obj_expr+' or (u_spt_name like "%'+Trim(sle_cust.Text)+'%" )'
  56. obj_expr = obj_expr+'or( u_cust_cuscode like "%'+Trim(sle_cust.Text)+'%" )'
  57. obj_expr = obj_expr+' or (u_cust_name like "%'+Trim(sle_cust.Text)+'%" )'
  58. ELSE
  59. obj_expr = obj_expr+'( sptcode like "'+Trim(sle_cust.Text)+'") '
  60. obj_expr = obj_expr+' or (u_spt_name like "'+Trim(sle_cust.Text)+'" )'
  61. obj_expr = obj_expr+'or ( u_cust_cuscode like "'+Trim(sle_cust.Text)+'") '
  62. obj_expr = obj_expr+' or (u_cust_name like "'+Trim(sle_cust.Text)+'" )'
  63. END IF
  64. END IF
  65. dw_1.SetFilter(obj_expr)
  66. dw_1.SetRedraw(False)
  67. dw_1.Filter()
  68. IF dw_1.RowCount() >= 1 THEN
  69. dw_1.SelectRow(0,False)
  70. dw_1.SelectRow(1,True)
  71. END IF
  72. dw_1.SetRedraw(True)
  73. end event
  74. public function string wf_getname (integer ai_id, integer ai_type);string ls_name
  75. if ai_type = 1 then
  76. SELECT
  77. U_Expenses.ExpensesName into :ls_name
  78. FROM U_Expenses
  79. where U_Expenses.Expensestype = 1
  80. and ExpensesID = :ai_id ;
  81. else
  82. SELECT
  83. U_Expenses.ExpensesName into :ls_name
  84. FROM U_Expenses
  85. where U_Expenses.Expensestype = 0
  86. and ExpensesID = :ai_id ;
  87. end if
  88. if isnull(ls_name ) then ls_name = ''
  89. return ls_name
  90. end function
  91. on w_rp_associat_sptcust.create
  92. int iCurrent
  93. call super::create
  94. this.cb_3=create cb_3
  95. this.cb_4=create cb_4
  96. this.cb_5=create cb_5
  97. this.cb_6=create cb_6
  98. this.cb_7=create cb_7
  99. this.st_1=create st_1
  100. this.st_2=create st_2
  101. this.ddlb_3=create ddlb_3
  102. this.ddlb_money=create ddlb_money
  103. this.cbx_ifacc=create cbx_ifacc
  104. iCurrent=UpperBound(this.Control)
  105. this.Control[iCurrent+1]=this.cb_3
  106. this.Control[iCurrent+2]=this.cb_4
  107. this.Control[iCurrent+3]=this.cb_5
  108. this.Control[iCurrent+4]=this.cb_6
  109. this.Control[iCurrent+5]=this.cb_7
  110. this.Control[iCurrent+6]=this.st_1
  111. this.Control[iCurrent+7]=this.st_2
  112. this.Control[iCurrent+8]=this.ddlb_3
  113. this.Control[iCurrent+9]=this.ddlb_money
  114. this.Control[iCurrent+10]=this.cbx_ifacc
  115. end on
  116. on w_rp_associat_sptcust.destroy
  117. call super::destroy
  118. destroy(this.cb_3)
  119. destroy(this.cb_4)
  120. destroy(this.cb_5)
  121. destroy(this.cb_6)
  122. destroy(this.cb_7)
  123. destroy(this.st_1)
  124. destroy(this.st_2)
  125. destroy(this.ddlb_3)
  126. destroy(this.ddlb_money)
  127. destroy(this.cbx_ifacc)
  128. end on
  129. event open;call super::open;uo_sptcust = CREATE uo_reissue_sptcust
  130. uo_sptcust.commit_transaction = sqlca
  131. end event
  132. type cb_func from w_publ_easyq`cb_func within w_rp_associat_sptcust
  133. integer x = 1637
  134. integer width = 165
  135. string text = "功能"
  136. end type
  137. type cb_exit from w_publ_easyq`cb_exit within w_rp_associat_sptcust
  138. integer x = 2501
  139. end type
  140. type cb_2 from w_publ_easyq`cb_2 within w_rp_associat_sptcust
  141. integer x = 2313
  142. end type
  143. type cb_psetup from w_publ_easyq`cb_psetup within w_rp_associat_sptcust
  144. integer x = 2057
  145. end type
  146. type cb_1 from w_publ_easyq`cb_1 within w_rp_associat_sptcust
  147. end type
  148. event cb_1::clicked;call super::clicked;Int arg_ifacc
  149. DateTime firstdate,enddate
  150. firstdate = DateTime(Date(em_1.Text),Time(0))
  151. enddate = DateTime(Date(em_2.Text),Time('23:59:59'))
  152. if cbx_ifacc.checked then
  153. arg_ifacc = 1
  154. else
  155. arg_ifacc = 0
  156. end if
  157. DELETE From u_parm_pay Where id = 1 ;
  158. IF sqlca.SQLCode <> 0 THEN
  159. MessageBox('错误','数据库操作失败!',stopsign!,ok!)
  160. ROLLBACK;
  161. RETURN
  162. END IF
  163. INSERT Into u_parm_pay (firstdate,enddate,id) Values (:firstdate,:enddate,1);
  164. IF sqlca.SQLCode <> 0 THEN
  165. MessageBox('错误','数据库操作失败!',stopsign!,ok!)
  166. ROLLBACK;
  167. RETURN
  168. END IF
  169. COMMIT;
  170. DELETE From u_parm_pay Where id = 2 ;
  171. IF sqlca.SQLCode <> 0 THEN
  172. MessageBox('错误','数据库操作失败!'+sqlca.SQLErrText,stopsign!,ok!)
  173. ROLLBACK;
  174. RETURN
  175. END IF
  176. INSERT INTO u_parm_pay (firstdate,enddate,id)
  177. Values (:firstdate,:enddate,2);
  178. IF sqlca.SQLCode <> 0 THEN
  179. MessageBox('错误','数据库操作失败!'+sqlca.SQLErrText,stopsign!,ok!)
  180. ROLLBACK;
  181. RETURN
  182. END IF
  183. COMMIT;
  184. dw_1.Retrieve(arg_ifacc,cur_scid_arr,ins_moneyid)
  185. end event
  186. type st_3 from w_publ_easyq`st_3 within w_rp_associat_sptcust
  187. end type
  188. type st_4 from w_publ_easyq`st_4 within w_rp_associat_sptcust
  189. end type
  190. type em_1 from w_publ_easyq`em_1 within w_rp_associat_sptcust
  191. end type
  192. type em_2 from w_publ_easyq`em_2 within w_rp_associat_sptcust
  193. end type
  194. type ddlb_yl from w_publ_easyq`ddlb_yl within w_rp_associat_sptcust
  195. boolean visible = false
  196. end type
  197. type cbx_yl from w_publ_easyq`cbx_yl within w_rp_associat_sptcust
  198. boolean visible = false
  199. end type
  200. type dw_1 from w_publ_easyq`dw_1 within w_rp_associat_sptcust
  201. integer y = 404
  202. string dataobject = "dw_rp_associat_sptcust"
  203. end type
  204. type sle_mtrl from w_publ_easyq`sle_mtrl within w_rp_associat_sptcust
  205. integer x = 3131
  206. integer y = 72
  207. end type
  208. type sle_cust from w_publ_easyq`sle_cust within w_rp_associat_sptcust
  209. boolean visible = true
  210. integer x = 2149
  211. integer y = 188
  212. end type
  213. event sle_cust::modified;call super::modified; PARENT.TRIGGEREVENT("ue_usual_query_filt")
  214. end event
  215. type st_mtrl from w_publ_easyq`st_mtrl within w_rp_associat_sptcust
  216. integer x = 2674
  217. integer y = 88
  218. end type
  219. type st_cust from w_publ_easyq`st_cust within w_rp_associat_sptcust
  220. boolean visible = true
  221. integer x = 1495
  222. integer y = 204
  223. integer width = 645
  224. string text = "供应商/客户名称/编码含:"
  225. end type
  226. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_rp_associat_sptcust
  227. end type
  228. type pb_em1 from w_publ_easyq`pb_em1 within w_rp_associat_sptcust
  229. end type
  230. type pb_em2 from w_publ_easyq`pb_em2 within w_rp_associat_sptcust
  231. end type
  232. type pb_2 from w_publ_easyq`pb_2 within w_rp_associat_sptcust
  233. end type
  234. type cb_help from w_publ_easyq`cb_help within w_rp_associat_sptcust
  235. boolean visible = false
  236. integer x = 3525
  237. end type
  238. type cb_copyself from w_publ_easyq`cb_copyself within w_rp_associat_sptcust
  239. integer x = 1801
  240. end type
  241. type gb_1 from w_publ_easyq`gb_1 within w_rp_associat_sptcust
  242. end type
  243. type ln_bar from w_publ_easyq`ln_bar within w_rp_associat_sptcust
  244. end type
  245. type ln_bar2 from w_publ_easyq`ln_bar2 within w_rp_associat_sptcust
  246. end type
  247. event ln_bar2::constructor;call super::constructor;long i
  248. for i = 1 to dw_1.rowcount()
  249. next
  250. end event
  251. type r_bar from w_publ_easyq`r_bar within w_rp_associat_sptcust
  252. integer x = 3360
  253. end type
  254. type ln_1 from w_publ_easyq`ln_1 within w_rp_associat_sptcust
  255. integer beginy = 392
  256. integer endy = 392
  257. end type
  258. type ln_2 from w_publ_easyq`ln_2 within w_rp_associat_sptcust
  259. integer beginy = 396
  260. integer endy = 396
  261. end type
  262. type ln_3 from w_publ_easyq`ln_3 within w_rp_associat_sptcust
  263. boolean visible = false
  264. end type
  265. type ln_4 from w_publ_easyq`ln_4 within w_rp_associat_sptcust
  266. boolean visible = false
  267. end type
  268. type cb_3 from uo_imflatbutton within w_rp_associat_sptcust
  269. integer x = 160
  270. integer width = 151
  271. integer height = 164
  272. integer taborder = 80
  273. boolean bringtotop = true
  274. string text = "全选"
  275. string normalpicname = "ok.BMP"
  276. integer picsize = 16
  277. toolbaralignment pic_align = alignattop!
  278. boolean border = false
  279. end type
  280. event clicked;call super::clicked;long i
  281. for i = 1 to dw_1.rowcount()
  282. dw_1.object.isselected[i] = 1
  283. next
  284. end event
  285. type cb_4 from uo_imflatbutton within w_rp_associat_sptcust
  286. integer x = 320
  287. integer width = 151
  288. integer height = 164
  289. integer taborder = 90
  290. boolean bringtotop = true
  291. string text = "反选"
  292. string normalpicname = "DELETE.BMP"
  293. integer picsize = 16
  294. toolbaralignment pic_align = alignattop!
  295. boolean border = false
  296. end type
  297. event clicked;call super::clicked;long i
  298. for i = 1 to dw_1.rowcount()
  299. dw_1.object.isselected[i] = 0
  300. next
  301. end event
  302. type cb_5 from uo_imflatbutton within w_rp_associat_sptcust
  303. integer x = 480
  304. integer width = 293
  305. integer height = 164
  306. integer taborder = 90
  307. string dragicon = "ServerProfile!"
  308. boolean bringtotop = true
  309. string text = "往来对冲"
  310. string normalpicname = "audit.BMP"
  311. integer picsize = 16
  312. toolbaralignment pic_align = alignattop!
  313. boolean border = false
  314. end type
  315. event clicked;call super::clicked;Long i ,j = 0
  316. dw_1.AcceptText( )
  317. Dec{5} ldec_pay = 0 ,ldec_take = 0 ,ldec_retult = 0
  318. String arg_msg , ls_spt_mtrname,ls_cus_mtrname
  319. Long spt_itemid1,cus_itemid1,spt_mtrlid1,cus_mtrlid1,spt_relid1,cus_relid1
  320. IF Not f_power_ind(1852,sys_msg_pow) THEN
  321. MessageBox(publ_operator,sys_msg_pow)
  322. RETURN
  323. END IF
  324. If Not DateTime( em_2.Text) > DateTime(2000-01-01,Now()) Then
  325. MessageBox('提示','不合理发生时间', Information!, OK! )
  326. Return
  327. End If
  328. spt_itemid1 = Long(f_ProfileString(0,spt_itemid, "spt_itemid", '0'))
  329. cus_itemid1 = Long( f_ProfileString (0,cus_itemid, "cus_itemid", '0'))
  330. spt_mtrlid1 = Long(f_ProfileString(0,spt_mtrlid, "spt_mtrlid", '0'))
  331. cus_mtrlid1 = Long( f_ProfileString (0,cus_mtrlid, "cus_mtrlid", '0'))
  332. spt_relid1 = Long( f_ProfileString (0,spt_relid, "spt_relid", '0') )
  333. cus_relid1 = Long( f_ProfileString (0,cus_relid, "cus_relid", '0') )
  334. //publ_operator //请输入经手人
  335. //relid = //请选择结算方式
  336. //请选择币种 ins_moneyid
  337. //u_reissue_itemid //请选择项目
  338. // uo_sptcust
  339. If spt_relid1 = 0 Then
  340. MessageBox('提示','请在相关资料设置,设置供应商结算方式', Information!, OK! )
  341. Return
  342. End If
  343. If cus_relid1 = 0 Then
  344. MessageBox('提示','请在相关资料设置,设置客户结算方式', Information!, OK! )
  345. Return
  346. End If
  347. If spt_itemid1 = 0 Then
  348. MessageBox('提示','请在相关资料设置,设置供应商项目', Information!, OK! )
  349. Return
  350. End If
  351. If cus_itemid1 = 0 Then
  352. MessageBox('提示','请在相关资料设置,设置客户项目', Information!, OK! )
  353. Return
  354. End If
  355. If spt_mtrlid1 = 0 Then
  356. MessageBox('提示','请在相关资料设置,设置供应商费用', Information!, OK! )
  357. Return
  358. End If
  359. If cus_mtrlid1 = 0 Then
  360. MessageBox('提示','请在相关资料设置,设置客户费用', Information!, OK! )
  361. Return
  362. End If
  363. ls_spt_mtrname = wf_getname(spt_mtrlid1,1)
  364. ls_cus_mtrname = wf_getname(cus_mtrlid1,0)
  365. For i = 1 To dw_1.RowCount()
  366. If dw_1.Object.IsSelected[i] = 1 Then j++
  367. Next
  368. If j > 0 Then
  369. Else
  370. MessageBox('提示','请选定当前目标行!', Information!, OK! )
  371. Return
  372. End If
  373. j = 0
  374. For i = 1 To dw_1.RowCount()
  375. If dw_1.Object.IsSelected[i] = 1 Then
  376. ldec_pay = Dec(dw_1.Object.v_mustpaybalc_balcamt_balcamt[i])
  377. ldec_take = Dec( dw_1.Object.balcamt2[i])
  378. If IsNull(ldec_pay) Or ldec_pay = 0 Then Return
  379. If IsNull(ldec_take) Or ldec_take = 0 Then Return
  380. If ldec_take > ldec_pay Then
  381. ldec_retult = ldec_pay
  382. Else
  383. ldec_retult = ldec_take
  384. End If
  385. //
  386. uo_sptcust.if_getid_ture = false
  387. If uo_sptcust.newbegin(uo_sptcust.scid,arg_msg) = 0 Then
  388. MessageBox('错误',arg_msg,stopsign!,OK!)
  389. Return
  390. End If
  391. // uo_sptcust.it_newbegin = true
  392. uo_sptcust.reissuedate = DateTime( em_2.Text)
  393. uo_sptcust.dscrp = '往来对冲自动生成'
  394. uo_sptcust.cusid = dw_1.Object.sptid[i]
  395. uo_sptcust.relcode = ''
  396. uo_sptcust.r_type = 2
  397. uo_sptcust.relid = spt_relid1
  398. uo_sptcust.moneyid = ins_moneyid
  399. uo_sptcust.reissueemp = publ_operator
  400. uo_sptcust.itemid = spt_itemid1
  401. If uo_sptcust.acceptmx( 1,&
  402. -ldec_retult,&
  403. -ldec_retult,&
  404. '往来对冲自动生成',&
  405. 1,&
  406. arg_msg,&
  407. spt_mtrlid1,ls_spt_mtrname) = 0 Then
  408. MessageBox('错误',arg_msg, stopsign!, OK! )
  409. Return
  410. End If
  411. If uo_sptcust.Save(false,arg_msg) = 0 Then
  412. MessageBox('错误',arg_msg, stopsign!, OK! )
  413. Return
  414. End If
  415. If uo_sptcust.getinfo(uo_sptcust.scid,uo_sptcust.reissueid ,arg_msg) = 0 Then
  416. MessageBox('错误',arg_msg, stopsign!, OK! )
  417. Return
  418. End If
  419. If uo_sptcust.auditing(false,arg_msg) = 0 Then
  420. MessageBox('错误',arg_msg, stopsign!, OK! )
  421. return
  422. Else
  423. // uo_sptcust('提示','审核成功!', Information!, OK! )
  424. End If
  425. uo_sptcust.if_getid_ture = false
  426. If uo_sptcust.newbegin(uo_sptcust.scid,arg_msg) = 0 Then
  427. MessageBox('错误',arg_msg,stopsign!,OK!)
  428. Return
  429. End If
  430. uo_sptcust.reissuedate = DateTime( em_2.Text)
  431. uo_sptcust.dscrp = '往来对冲自动生成'
  432. uo_sptcust.cusid = dw_1.Object.u_cust_cusid[i]
  433. uo_sptcust.relcode = ''
  434. uo_sptcust.r_type = 1
  435. uo_sptcust.relid = cus_relid1
  436. uo_sptcust.moneyid = ins_moneyid
  437. uo_sptcust.reissueemp = publ_operator
  438. uo_sptcust.itemid = cus_itemid1
  439. If uo_sptcust.acceptmx( 1,&
  440. ldec_retult,&
  441. ldec_retult,&
  442. '往来对冲自动生成',&
  443. 1,&
  444. arg_msg,&
  445. cus_mtrlid1,ls_cus_mtrname) = 0 Then
  446. MessageBox('错误',arg_msg, stopsign!, OK! )
  447. Return
  448. End If
  449. If uo_sptcust.Save(false,arg_msg) = 0 Then
  450. MessageBox('错误',arg_msg, stopsign!, OK! )
  451. Return
  452. End If
  453. If uo_sptcust.getinfo(uo_sptcust.scid,uo_sptcust.reissueid ,arg_msg) = 0 Then
  454. MessageBox('错误',arg_msg, stopsign!, OK! )
  455. Return
  456. End If
  457. If uo_sptcust.auditing(True,arg_msg) = 0 Then
  458. MessageBox('错误',arg_msg, stopsign!, OK! )
  459. return
  460. Else
  461. // uo_sptcust('提示','审核成功!', Information!, OK! )
  462. End If
  463. j++
  464. Else
  465. End If
  466. Next
  467. If j > 0 Then MessageBox('提示','对冲成功!', Information!, OK! )
  468. cb_1.triggerevent(clicked!)
  469. end event
  470. type cb_6 from uo_imflatbutton within w_rp_associat_sptcust
  471. integer x = 782
  472. integer width = 384
  473. integer height = 164
  474. integer taborder = 100
  475. string dragicon = "Information!"
  476. boolean bringtotop = true
  477. string text = "关联往来单位"
  478. string normalpicname = "p7.BMP"
  479. integer picsize = 16
  480. toolbaralignment pic_align = alignattop!
  481. boolean border = false
  482. end type
  483. event clicked;call super::clicked;IF Not f_power_ind(1853,sys_msg_pow) THEN
  484. MessageBox(publ_operator,sys_msg_pow)
  485. RETURN
  486. END IF
  487. s_edit_index_tran s_rpinfo
  488. s_rpinfo.if_sendout = if_power_sendout
  489. s_rpinfo.if_print = if_power_print
  490. OpenWithParm(w_associat_sptcust,s_rpinfo)
  491. end event
  492. type cb_7 from uo_imflatbutton within w_rp_associat_sptcust
  493. integer x = 1175
  494. integer width = 384
  495. integer height = 164
  496. integer taborder = 100
  497. string dragicon = "OleGenReg!"
  498. boolean bringtotop = true
  499. string text = "相关资料设置"
  500. string normalpicname = "p2.BMP"
  501. integer picsize = 16
  502. toolbaralignment pic_align = alignattop!
  503. boolean border = false
  504. end type
  505. event clicked;call super::clicked;IF Not f_power_ind(1851,sys_msg_pow) THEN
  506. MessageBox(publ_operator,sys_msg_pow)
  507. RETURN
  508. END IF
  509. open(w_associat_sptcust_set)
  510. end event
  511. type st_1 from statictext within w_rp_associat_sptcust
  512. integer x = 87
  513. integer y = 312
  514. integer width = 151
  515. integer height = 48
  516. boolean bringtotop = true
  517. integer textsize = -9
  518. integer weight = 400
  519. fontcharset fontcharset = gb2312charset!
  520. fontpitch fontpitch = variable!
  521. string facename = "宋体"
  522. long textcolor = 33554432
  523. long backcolor = 134217739
  524. string text = "分部"
  525. boolean focusrectangle = false
  526. end type
  527. type st_2 from statictext within w_rp_associat_sptcust
  528. integer x = 750
  529. integer y = 312
  530. integer width = 151
  531. integer height = 48
  532. boolean bringtotop = true
  533. integer textsize = -9
  534. integer weight = 400
  535. fontcharset fontcharset = gb2312charset!
  536. fontpitch fontpitch = variable!
  537. string facename = "宋体"
  538. long textcolor = 33554432
  539. long backcolor = 134217739
  540. string text = "币种"
  541. boolean focusrectangle = false
  542. end type
  543. type ddlb_3 from uo_ddlb_scid within w_rp_associat_sptcust
  544. integer x = 215
  545. integer y = 296
  546. integer width = 526
  547. integer height = 768
  548. integer taborder = 40
  549. boolean bringtotop = true
  550. end type
  551. event constructor;call super::constructor;THIS.Enabled = (sys_option_scid_msttake_mstpay = 1)
  552. cur_scid_arr = THIS.uo_scid_arr
  553. end event
  554. event selectionchanged;call super::selectionchanged;cur_scid_arr = THIS.uo_scid_arr
  555. cb_1.TriggerEvent(Clicked!)
  556. end event
  557. type ddlb_money from uo_ddlb_moneyid within w_rp_associat_sptcust
  558. integer x = 901
  559. integer y = 296
  560. integer taborder = 40
  561. boolean bringtotop = true
  562. end type
  563. event constructor;call super::constructor;ins_moneyid = THIS.uo_moneyid
  564. end event
  565. event selectionchanged;call super::selectionchanged;ins_moneyid = THIS.uo_moneyid
  566. cb_1.TriggerEvent(Clicked!)
  567. end event
  568. type cbx_ifacc from checkbox within w_rp_associat_sptcust
  569. integer x = 1472
  570. integer y = 312
  571. integer width = 896
  572. integer height = 60
  573. boolean bringtotop = true
  574. integer textsize = -9
  575. integer weight = 400
  576. fontcharset fontcharset = gb2312charset!
  577. fontpitch fontpitch = variable!
  578. string facename = "宋体"
  579. long textcolor = 33554432
  580. long backcolor = 134217739
  581. string text = "只显示有可对冲金额的数据"
  582. end type
  583. event clicked;int li_ifacc
  584. IF THIS.Checked THEN
  585. this.weight = 700
  586. this.textcolor = 255
  587. li_ifacc = 1
  588. ELSE
  589. this.weight = 400
  590. this.textcolor = 0
  591. li_ifacc = 0
  592. END IF
  593. f_SetProfileString (sys_empid,publ_userid+'_'+dw_1.DataObject, "ifacc",String(li_ifacc))
  594. cb_1.TriggerEvent(Clicked!)
  595. end event
  596. event constructor;int li_ifacc
  597. li_ifacc = Long(f_ProfileString (sys_empid,publ_userid+'_'+dw_1.DataObject, "ifacc",'0'))
  598. IF li_ifacc = 1 THEN
  599. THIS.Checked = TRUE
  600. this.weight = 700
  601. this.textcolor = 255
  602. ELSE
  603. THIS.Checked = FALSE
  604. this.weight = 400
  605. this.textcolor = 0
  606. END IF
  607. end event