w_subject.srw 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345
  1. $PBExportHeader$w_subject.srw
  2. forward
  3. global type w_subject from window
  4. end type
  5. type tab_1 from tab within w_subject
  6. end type
  7. type tabpage_2 from userobject within tab_1
  8. end type
  9. type st_10 from statictext within tabpage_2
  10. end type
  11. type tv_1 from uo_tv_cusarea within tabpage_2
  12. end type
  13. type dw_subid_cust from u_dw_rbtnfilter within tabpage_2
  14. end type
  15. type cb_save_subid_cust from commandbutton within tabpage_2
  16. end type
  17. type cb_retr_cust from commandbutton within tabpage_2
  18. end type
  19. type tabpage_2 from userobject within tab_1
  20. st_10 st_10
  21. tv_1 tv_1
  22. dw_subid_cust dw_subid_cust
  23. cb_save_subid_cust cb_save_subid_cust
  24. cb_retr_cust cb_retr_cust
  25. end type
  26. type tabpage_3 from userobject within tab_1
  27. end type
  28. type st_9 from statictext within tabpage_3
  29. end type
  30. type dw_subid_spt from u_dw_rbtnfilter within tabpage_3
  31. end type
  32. type cb_cb_save_subid_spt from commandbutton within tabpage_3
  33. end type
  34. type cb_retr_spt from commandbutton within tabpage_3
  35. end type
  36. type tabpage_3 from userobject within tab_1
  37. st_9 st_9
  38. dw_subid_spt dw_subid_spt
  39. cb_cb_save_subid_spt cb_cb_save_subid_spt
  40. cb_retr_spt cb_retr_spt
  41. end type
  42. type tabpage_8 from userobject within tab_1
  43. end type
  44. type st_8 from statictext within tabpage_8
  45. end type
  46. type cb_8 from commandbutton within tabpage_8
  47. end type
  48. type cb_retr_expensesdef0 from commandbutton within tabpage_8
  49. end type
  50. type dw_expensesdef_sub0 from u_dw_rbtnfilter within tabpage_8
  51. end type
  52. type tabpage_8 from userobject within tab_1
  53. st_8 st_8
  54. cb_8 cb_8
  55. cb_retr_expensesdef0 cb_retr_expensesdef0
  56. dw_expensesdef_sub0 dw_expensesdef_sub0
  57. end type
  58. type tabpage_9 from userobject within tab_1
  59. end type
  60. type st_7 from statictext within tabpage_9
  61. end type
  62. type cb_11 from commandbutton within tabpage_9
  63. end type
  64. type cb_retr_expensesdef1 from commandbutton within tabpage_9
  65. end type
  66. type dw_expensesdef_sub1 from u_dw_rbtnfilter within tabpage_9
  67. end type
  68. type tabpage_9 from userobject within tab_1
  69. st_7 st_7
  70. cb_11 cb_11
  71. cb_retr_expensesdef1 cb_retr_expensesdef1
  72. dw_expensesdef_sub1 dw_expensesdef_sub1
  73. end type
  74. type tabpage_11 from userobject within tab_1
  75. end type
  76. type st_3 from statictext within tabpage_11
  77. end type
  78. type dw_subid_mtrltype from u_dw_rbtnfilter within tabpage_11
  79. end type
  80. type cb_17 from commandbutton within tabpage_11
  81. end type
  82. type cb_retr_mtrltype from commandbutton within tabpage_11
  83. end type
  84. type tabpage_11 from userobject within tab_1
  85. st_3 st_3
  86. dw_subid_mtrltype dw_subid_mtrltype
  87. cb_17 cb_17
  88. cb_retr_mtrltype cb_retr_mtrltype
  89. end type
  90. type tabpage_4 from userobject within tab_1
  91. end type
  92. type st_1 from statictext within tabpage_4
  93. end type
  94. type tv_2 from uo_tv_mtrltype within tabpage_4
  95. end type
  96. type dw_subid_mtrl from u_dw_rbtnfilter within tabpage_4
  97. end type
  98. type cb_cb_save_subid_mtrl from commandbutton within tabpage_4
  99. end type
  100. type cb_retr_mtrl from commandbutton within tabpage_4
  101. end type
  102. type tabpage_4 from userobject within tab_1
  103. st_1 st_1
  104. tv_2 tv_2
  105. dw_subid_mtrl dw_subid_mtrl
  106. cb_cb_save_subid_mtrl cb_cb_save_subid_mtrl
  107. cb_retr_mtrl cb_retr_mtrl
  108. end type
  109. type tabpage_10 from userobject within tab_1
  110. end type
  111. type st_2 from statictext within tabpage_10
  112. end type
  113. type dw_subid_storage from u_dw_rbtnfilter within tabpage_10
  114. end type
  115. type cb_14 from commandbutton within tabpage_10
  116. end type
  117. type cb_retr_storage from commandbutton within tabpage_10
  118. end type
  119. type tabpage_10 from userobject within tab_1
  120. st_2 st_2
  121. dw_subid_storage dw_subid_storage
  122. cb_14 cb_14
  123. cb_retr_storage cb_retr_storage
  124. end type
  125. type tabpage_5 from userobject within tab_1
  126. end type
  127. type st_5 from statictext within tabpage_5
  128. end type
  129. type dw_subid_item from u_dw_rbtnfilter within tabpage_5
  130. end type
  131. type cb_cb_save_subid_item from commandbutton within tabpage_5
  132. end type
  133. type cb_retr_item from commandbutton within tabpage_5
  134. end type
  135. type tabpage_5 from userobject within tab_1
  136. st_5 st_5
  137. dw_subid_item dw_subid_item
  138. cb_cb_save_subid_item cb_cb_save_subid_item
  139. cb_retr_item cb_retr_item
  140. end type
  141. type tabpage_6 from userobject within tab_1
  142. end type
  143. type st_6 from statictext within tabpage_6
  144. end type
  145. type dw_subid_account from u_dw_rbtnfilter within tabpage_6
  146. end type
  147. type cb_cb_save_subid_account from commandbutton within tabpage_6
  148. end type
  149. type cb_retr_account from commandbutton within tabpage_6
  150. end type
  151. type tabpage_6 from userobject within tab_1
  152. st_6 st_6
  153. dw_subid_account dw_subid_account
  154. cb_cb_save_subid_account cb_cb_save_subid_account
  155. cb_retr_account cb_retr_account
  156. end type
  157. type tabpage_12 from userobject within tab_1
  158. end type
  159. type st_4 from statictext within tabpage_12
  160. end type
  161. type dw_subid_static from u_dw_rbtnfilter within tabpage_12
  162. end type
  163. type cb_19 from commandbutton within tabpage_12
  164. end type
  165. type cb_retr_static from commandbutton within tabpage_12
  166. end type
  167. type tabpage_12 from userobject within tab_1
  168. st_4 st_4
  169. dw_subid_static dw_subid_static
  170. cb_19 cb_19
  171. cb_retr_static cb_retr_static
  172. end type
  173. type tabpage_1 from userobject within tab_1
  174. end type
  175. type cb_subid_import from commandbutton within tabpage_1
  176. end type
  177. type cb_retr_subid from commandbutton within tabpage_1
  178. end type
  179. type dw_subid from u_dw_rbtnfilter within tabpage_1
  180. end type
  181. type tabpage_1 from userobject within tab_1
  182. cb_subid_import cb_subid_import
  183. cb_retr_subid cb_retr_subid
  184. dw_subid dw_subid
  185. end type
  186. type tabpage_7 from userobject within tab_1
  187. end type
  188. type dw_sc_accset from u_dw_rbtnfilter within tabpage_7
  189. end type
  190. type cb_7 from commandbutton within tabpage_7
  191. end type
  192. type cb_retr_scid from commandbutton within tabpage_7
  193. end type
  194. type tabpage_7 from userobject within tab_1
  195. dw_sc_accset dw_sc_accset
  196. cb_7 cb_7
  197. cb_retr_scid cb_retr_scid
  198. end type
  199. type tab_1 from tab within w_subject
  200. tabpage_2 tabpage_2
  201. tabpage_3 tabpage_3
  202. tabpage_8 tabpage_8
  203. tabpage_9 tabpage_9
  204. tabpage_11 tabpage_11
  205. tabpage_4 tabpage_4
  206. tabpage_10 tabpage_10
  207. tabpage_5 tabpage_5
  208. tabpage_6 tabpage_6
  209. tabpage_12 tabpage_12
  210. tabpage_1 tabpage_1
  211. tabpage_7 tabpage_7
  212. end type
  213. end forward
  214. global type w_subject from window
  215. integer width = 4571
  216. integer height = 2380
  217. boolean titlebar = true
  218. string title = "基础资料设置会计科目"
  219. boolean controlmenu = true
  220. boolean minbox = true
  221. boolean maxbox = true
  222. windowtype windowtype = popup!
  223. windowstate windowstate = maximized!
  224. long backcolor = 67108864
  225. string icon = "AppIcon!"
  226. boolean center = true
  227. tab_1 tab_1
  228. end type
  229. global w_subject w_subject
  230. type variables
  231. String ls_areaname = ''
  232. String ls_handtype = ''
  233. end variables
  234. forward prototypes
  235. public subroutine wf_retr ()
  236. end prototypes
  237. public subroutine wf_retr ();CHOOSE CASE tab_1.SelectedTab
  238. CASE 1
  239. tab_1.tabpage_2.cb_retr_cust.TriggerEvent(Clicked!)
  240. CASE 2
  241. tab_1.tabpage_3.cb_retr_spt.TriggerEvent(Clicked!)
  242. CASE 3
  243. tab_1.tabpage_8.cb_retr_expensesdef0.TriggerEvent(Clicked!)
  244. CASE 4
  245. tab_1.tabpage_9.cb_retr_expensesdef1.TriggerEvent(Clicked!)
  246. CASE 5
  247. tab_1.tabpage_11.cb_retr_mtrltype.TriggerEvent(Clicked!)
  248. CASE 6
  249. tab_1.tabpage_4.cb_retr_mtrl.TriggerEvent(Clicked!)
  250. CASE 7
  251. tab_1.tabpage_10.cb_retr_storage.TriggerEvent(Clicked!)
  252. CASE 8
  253. tab_1.tabpage_5.cb_retr_item.TriggerEvent(Clicked!)
  254. CASE 9
  255. tab_1.tabpage_6.cb_retr_account.TriggerEvent(Clicked!)
  256. CASE 10
  257. tab_1.tabpage_12.cb_retr_static.TriggerEvent(Clicked!)
  258. CASE 11
  259. tab_1.tabpage_7.cb_retr_scid.TriggerEvent(Clicked!)
  260. CASE 12
  261. tab_1.tabpage_1.cb_retr_subid.TriggerEvent(Clicked!)
  262. END CHOOSE
  263. end subroutine
  264. on w_subject.create
  265. this.tab_1=create tab_1
  266. this.Control[]={this.tab_1}
  267. end on
  268. on w_subject.destroy
  269. destroy(this.tab_1)
  270. end on
  271. event resize;tab_1.Width = THIS.Width - tab_1.X - 40
  272. tab_1.Height = THIS.Height - tab_1.Y - 150
  273. long ll_dft_height = 1948 - 30
  274. tab_1.tabpage_1.dw_subid.width = this.width - (3600 - 3506)
  275. tab_1.tabpage_1.dw_subid.height = this.height - (2300 - ll_dft_height)
  276. tab_1.tabpage_2.dw_subid_cust.width = this.width - (3600 - 2624)
  277. tab_1.tabpage_2.dw_subid_cust.height = this.height - (2300 - ll_dft_height)
  278. tab_1.tabpage_2.tv_1.height = this.height - (2300 - ll_dft_height)
  279. tab_1.tabpage_3.dw_subid_spt.width = this.width - (3600 - 3506)
  280. tab_1.tabpage_3.dw_subid_spt.height = this.height - (2300 - ll_dft_height)
  281. tab_1.tabpage_4.dw_subid_mtrl.width = this.width - (3600 - 2624)
  282. tab_1.tabpage_4.dw_subid_mtrl.height = this.height - (2300 - ll_dft_height)
  283. tab_1.tabpage_4.tv_2.height = this.height - (2300 - ll_dft_height)
  284. tab_1.tabpage_5.dw_subid_item.width = this.width - (3600 - 3506)
  285. tab_1.tabpage_5.dw_subid_item.height = this.height - (2300 - ll_dft_height)
  286. tab_1.tabpage_6.dw_subid_account.width = this.width - (3600 - 3506)
  287. tab_1.tabpage_6.dw_subid_account.height = this.height - (2300 - ll_dft_height)
  288. tab_1.tabpage_7.dw_sc_accset.width = this.width - (3600 - 3506)
  289. tab_1.tabpage_7.dw_sc_accset.height = this.height - (2300 - ll_dft_height)
  290. tab_1.tabpage_8.dw_expensesdef_sub0.width = this.width - (3600 - 3506)
  291. tab_1.tabpage_8.dw_expensesdef_sub0.height = this.height - (2300 - ll_dft_height)
  292. tab_1.tabpage_9.dw_expensesdef_sub1.width = this.width - (3600 - 3506)
  293. tab_1.tabpage_9.dw_expensesdef_sub1.height = this.height - (2300 - ll_dft_height)
  294. tab_1.tabpage_10.dw_subid_storage.width = this.width - (3600 - 3506)
  295. tab_1.tabpage_10.dw_subid_storage.height = this.height - (2300 - ll_dft_height)
  296. tab_1.tabpage_11.dw_subid_mtrltype.width = this.width - (3600 - 3506)
  297. tab_1.tabpage_11.dw_subid_mtrltype.height = this.height - (2300 - ll_dft_height)
  298. tab_1.tabpage_12.dw_subid_static.width = this.width - (3600 - 3506)
  299. tab_1.tabpage_12.dw_subid_static.height = this.height - (2300 - ll_dft_height)
  300. end event
  301. event open;tab_1.tabpage_1.dw_subid.SetTransObject(sqlca)
  302. tab_1.tabpage_2.dw_subid_cust.SetTransObject(sqlca)
  303. tab_1.tabpage_3.dw_subid_spt.SetTransObject(sqlca)
  304. tab_1.tabpage_4.dw_subid_mtrl.SetTransObject(sqlca)
  305. tab_1.tabpage_5.dw_subid_item.SetTransObject(sqlca)
  306. tab_1.tabpage_6.dw_subid_account.SetTransObject(sqlca)
  307. tab_1.tabpage_7.dw_sc_accset.SetTransObject(sqlca)
  308. tab_1.tabpage_8.dw_expensesdef_sub0.SetTransObject(sqlca)
  309. tab_1.tabpage_9.dw_expensesdef_sub1.SetTransObject(sqlca)
  310. tab_1.tabpage_10.dw_subid_storage.SetTransObject(sqlca)
  311. tab_1.tabpage_11.dw_subid_mtrltype.SetTransObject(sqlca)
  312. tab_1.tabpage_12.dw_subid_static.SetTransObject(sqlca)
  313. wf_retr()
  314. end event
  315. type tab_1 from tab within w_subject
  316. integer y = 4
  317. integer width = 4539
  318. integer height = 2168
  319. integer taborder = 10
  320. integer textsize = -9
  321. integer weight = 400
  322. fontcharset fontcharset = gb2312charset!
  323. fontpitch fontpitch = variable!
  324. string facename = "宋体"
  325. long backcolor = 67108864
  326. boolean raggedright = true
  327. boolean focusonbuttondown = true
  328. integer selectedtab = 1
  329. tabpage_2 tabpage_2
  330. tabpage_3 tabpage_3
  331. tabpage_8 tabpage_8
  332. tabpage_9 tabpage_9
  333. tabpage_11 tabpage_11
  334. tabpage_4 tabpage_4
  335. tabpage_10 tabpage_10
  336. tabpage_5 tabpage_5
  337. tabpage_6 tabpage_6
  338. tabpage_12 tabpage_12
  339. tabpage_1 tabpage_1
  340. tabpage_7 tabpage_7
  341. end type
  342. on tab_1.create
  343. this.tabpage_2=create tabpage_2
  344. this.tabpage_3=create tabpage_3
  345. this.tabpage_8=create tabpage_8
  346. this.tabpage_9=create tabpage_9
  347. this.tabpage_11=create tabpage_11
  348. this.tabpage_4=create tabpage_4
  349. this.tabpage_10=create tabpage_10
  350. this.tabpage_5=create tabpage_5
  351. this.tabpage_6=create tabpage_6
  352. this.tabpage_12=create tabpage_12
  353. this.tabpage_1=create tabpage_1
  354. this.tabpage_7=create tabpage_7
  355. this.Control[]={this.tabpage_2,&
  356. this.tabpage_3,&
  357. this.tabpage_8,&
  358. this.tabpage_9,&
  359. this.tabpage_11,&
  360. this.tabpage_4,&
  361. this.tabpage_10,&
  362. this.tabpage_5,&
  363. this.tabpage_6,&
  364. this.tabpage_12,&
  365. this.tabpage_1,&
  366. this.tabpage_7}
  367. end on
  368. on tab_1.destroy
  369. destroy(this.tabpage_2)
  370. destroy(this.tabpage_3)
  371. destroy(this.tabpage_8)
  372. destroy(this.tabpage_9)
  373. destroy(this.tabpage_11)
  374. destroy(this.tabpage_4)
  375. destroy(this.tabpage_10)
  376. destroy(this.tabpage_5)
  377. destroy(this.tabpage_6)
  378. destroy(this.tabpage_12)
  379. destroy(this.tabpage_1)
  380. destroy(this.tabpage_7)
  381. end on
  382. event selectionchanged;wf_retr()
  383. end event
  384. type tabpage_2 from userobject within tab_1
  385. event ue_p_subid ( string arg_col, string arg_coltext )
  386. integer x = 18
  387. integer y = 96
  388. integer width = 4503
  389. integer height = 2056
  390. long backcolor = 67108864
  391. string text = "客户"
  392. long tabtextcolor = 33554432
  393. long picturemaskcolor = 536870912
  394. st_10 st_10
  395. tv_1 tv_1
  396. dw_subid_cust dw_subid_cust
  397. cb_save_subid_cust cb_save_subid_cust
  398. cb_retr_cust cb_retr_cust
  399. end type
  400. event ue_p_subid(string arg_col, string arg_coltext);Long i
  401. String value_str
  402. dw_subid_cust.AcceptText()
  403. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  404. RETURN
  405. END IF
  406. IF dw_subid_cust.RowCount() = 0 THEN
  407. MessageBox('提示','没有可设置的资料',information!,OK!)
  408. RETURN
  409. END IF
  410. value_str = dw_subid_cust.GetitemString(1,arg_col)
  411. IF Trim(value_str) = '' THEN
  412. MessageBox('提示','第一行资料为空',information!,OK!)
  413. RETURN
  414. END IF
  415. dw_subid_cust.setredraw(false)
  416. FOR i = 2 TO dw_subid_cust.RowCount()
  417. dw_subid_cust.setitem(i,arg_col,value_str)
  418. NEXT
  419. dw_subid_cust.setredraw(true)
  420. end event
  421. on tabpage_2.create
  422. this.st_10=create st_10
  423. this.tv_1=create tv_1
  424. this.dw_subid_cust=create dw_subid_cust
  425. this.cb_save_subid_cust=create cb_save_subid_cust
  426. this.cb_retr_cust=create cb_retr_cust
  427. this.Control[]={this.st_10,&
  428. this.tv_1,&
  429. this.dw_subid_cust,&
  430. this.cb_save_subid_cust,&
  431. this.cb_retr_cust}
  432. end on
  433. on tabpage_2.destroy
  434. destroy(this.st_10)
  435. destroy(this.tv_1)
  436. destroy(this.dw_subid_cust)
  437. destroy(this.cb_save_subid_cust)
  438. destroy(this.cb_retr_cust)
  439. end on
  440. type st_10 from statictext within tabpage_2
  441. integer x = 425
  442. integer y = 24
  443. integer width = 1138
  444. integer height = 48
  445. integer textsize = -9
  446. integer weight = 400
  447. fontcharset fontcharset = gb2312charset!
  448. fontpitch fontpitch = variable!
  449. string facename = "宋体"
  450. long textcolor = 16711680
  451. long backcolor = 67108864
  452. string text = "双击列标题按第1行科目批设置所有行会计科目"
  453. boolean focusrectangle = false
  454. end type
  455. type tv_1 from uo_tv_cusarea within tabpage_2
  456. integer y = 112
  457. integer width = 878
  458. integer height = 1948
  459. integer taborder = 30
  460. integer textsize = -9
  461. fontcharset fontcharset = gb2312charset!
  462. fontfamily fontfamily = anyfont!
  463. string facename = "宋体"
  464. end type
  465. event selectionchanged;call super::selectionchanged;ls_areaname = THIS.uo_cur_info.areaname
  466. ls_areaname = ls_areaname + '%'
  467. dw_subid_cust.Retrieve(ls_areaname)
  468. end event
  469. type dw_subid_cust from u_dw_rbtnfilter within tabpage_2
  470. integer x = 882
  471. integer y = 112
  472. integer width = 2624
  473. integer height = 1948
  474. integer taborder = 30
  475. string dataobject = "dw_subid_cust"
  476. boolean hscrollbar = true
  477. boolean vscrollbar = true
  478. boolean hsplitscroll = true
  479. boolean rbutton_filter_use = true
  480. boolean titleclick_sort_use = true
  481. end type
  482. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  483. THIS.SelectRow(0,FALSE)
  484. THIS.SelectRow(currentrow,TRUE)
  485. END IF
  486. end event
  487. event doubleclicked;If Lower(Left(dwo.Type,4)) = 'text' Then
  488. s_inputbox S_SREU
  489. String LS_STR,column_name,coltext
  490. column_name = dwo.Name
  491. column_name = Left(column_name,Len(column_name) - 2)
  492. coltext = dwo.text
  493. IF POS(column_name,'subid') > 0 THEN
  494. Parent.Event ue_p_subid(column_name,coltext)
  495. End IF
  496. End If
  497. end event
  498. type cb_save_subid_cust from commandbutton within tabpage_2
  499. integer x = 210
  500. integer y = 12
  501. integer width = 206
  502. integer height = 84
  503. integer taborder = 30
  504. integer textsize = -9
  505. integer weight = 400
  506. fontcharset fontcharset = gb2312charset!
  507. fontpitch fontpitch = variable!
  508. string facename = "宋体"
  509. string text = "保存"
  510. end type
  511. event clicked;Long i
  512. dw_subid_cust.AcceptText()
  513. FOR i = 1 TO dw_subid_cust.RowCount()
  514. dw_subid_cust.Object.subid[i] = Trim(dw_subid_cust.Object.subid[i])
  515. NEXT
  516. dw_subid_cust.AcceptText()
  517. IF dw_subid_cust.UPDATE() = -1 THEN
  518. ROLLBACK;
  519. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  520. RETURN
  521. ELSE
  522. COMMIT;
  523. MessageBox('提示','保存操作成功',information!,OK!)
  524. RETURN
  525. END IF
  526. end event
  527. type cb_retr_cust from commandbutton within tabpage_2
  528. integer y = 12
  529. integer width = 206
  530. integer height = 84
  531. integer taborder = 20
  532. integer textsize = -9
  533. integer weight = 400
  534. fontcharset fontcharset = gb2312charset!
  535. fontpitch fontpitch = variable!
  536. string facename = "宋体"
  537. string text = "刷新"
  538. end type
  539. event clicked;tv_1.f_maketree()
  540. tv_1.TriggerEvent(SelectionChanged!)
  541. end event
  542. type tabpage_3 from userobject within tab_1
  543. event create ( )
  544. event destroy ( )
  545. event ue_p_subid ( string arg_col, string arg_coltext )
  546. integer x = 18
  547. integer y = 96
  548. integer width = 4503
  549. integer height = 2056
  550. long backcolor = 67108864
  551. string text = "供应商"
  552. long tabtextcolor = 33554432
  553. long picturemaskcolor = 536870912
  554. st_9 st_9
  555. dw_subid_spt dw_subid_spt
  556. cb_cb_save_subid_spt cb_cb_save_subid_spt
  557. cb_retr_spt cb_retr_spt
  558. end type
  559. on tabpage_3.create
  560. this.st_9=create st_9
  561. this.dw_subid_spt=create dw_subid_spt
  562. this.cb_cb_save_subid_spt=create cb_cb_save_subid_spt
  563. this.cb_retr_spt=create cb_retr_spt
  564. this.Control[]={this.st_9,&
  565. this.dw_subid_spt,&
  566. this.cb_cb_save_subid_spt,&
  567. this.cb_retr_spt}
  568. end on
  569. on tabpage_3.destroy
  570. destroy(this.st_9)
  571. destroy(this.dw_subid_spt)
  572. destroy(this.cb_cb_save_subid_spt)
  573. destroy(this.cb_retr_spt)
  574. end on
  575. event ue_p_subid(string arg_col, string arg_coltext);Long i
  576. String value_str
  577. dw_subid_spt.AcceptText()
  578. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  579. RETURN
  580. END IF
  581. IF dw_subid_spt.RowCount() = 0 THEN
  582. MessageBox('提示','没有可设置的资料',information!,OK!)
  583. RETURN
  584. END IF
  585. value_str = dw_subid_spt.GetitemString(1,arg_col)
  586. IF Trim(value_str) = '' THEN
  587. MessageBox('提示','第一行资料为空',information!,OK!)
  588. RETURN
  589. END IF
  590. dw_subid_spt.setredraw(false)
  591. FOR i = 2 TO dw_subid_spt.RowCount()
  592. dw_subid_spt.setitem(i,arg_col,value_str)
  593. NEXT
  594. dw_subid_spt.setredraw(true)
  595. end event
  596. type st_9 from statictext within tabpage_3
  597. integer x = 425
  598. integer y = 24
  599. integer width = 1138
  600. integer height = 48
  601. integer textsize = -9
  602. integer weight = 400
  603. fontcharset fontcharset = gb2312charset!
  604. fontpitch fontpitch = variable!
  605. string facename = "宋体"
  606. long textcolor = 16711680
  607. long backcolor = 67108864
  608. string text = "双击列标题按第1行科目批设置所有行会计科目"
  609. boolean focusrectangle = false
  610. end type
  611. type dw_subid_spt from u_dw_rbtnfilter within tabpage_3
  612. integer y = 112
  613. integer width = 3506
  614. integer height = 1948
  615. integer taborder = 30
  616. string dataobject = "dw_subid_spt"
  617. boolean hscrollbar = true
  618. boolean vscrollbar = true
  619. boolean hsplitscroll = true
  620. boolean rbutton_filter_use = true
  621. boolean titleclick_sort_use = true
  622. end type
  623. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  624. THIS.SelectRow(0,FALSE)
  625. THIS.SelectRow(currentrow,TRUE)
  626. END IF
  627. end event
  628. event doubleclicked;If Lower(Left(dwo.Type,4)) = 'text' Then
  629. s_inputbox S_SREU
  630. String LS_STR,column_name,coltext
  631. column_name = dwo.Name
  632. column_name = Left(column_name,Len(column_name) - 2)
  633. coltext = dwo.text
  634. IF POS(column_name,'subid') > 0 THEN
  635. Parent.Event ue_p_subid(column_name,coltext)
  636. End IF
  637. End If
  638. end event
  639. type cb_cb_save_subid_spt from commandbutton within tabpage_3
  640. integer x = 210
  641. integer y = 12
  642. integer width = 206
  643. integer height = 84
  644. integer taborder = 30
  645. integer textsize = -9
  646. integer weight = 400
  647. fontcharset fontcharset = gb2312charset!
  648. fontpitch fontpitch = variable!
  649. string facename = "宋体"
  650. string text = "保存"
  651. end type
  652. event clicked;Long i
  653. dw_subid_spt.AcceptText()
  654. FOR i = 1 TO dw_subid_spt.RowCount()
  655. dw_subid_spt.Object.subid[i] = Trim(dw_subid_spt.Object.subid[i])
  656. NEXT
  657. dw_subid_spt.AcceptText()
  658. IF dw_subid_spt.UPDATE() = -1 THEN
  659. ROLLBACK;
  660. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  661. RETURN
  662. ELSE
  663. COMMIT;
  664. MessageBox('提示','保存操作成功',information!,OK!)
  665. RETURN
  666. END IF
  667. end event
  668. type cb_retr_spt from commandbutton within tabpage_3
  669. integer y = 12
  670. integer width = 206
  671. integer height = 84
  672. integer taborder = 20
  673. integer textsize = -9
  674. integer weight = 400
  675. fontcharset fontcharset = gb2312charset!
  676. fontpitch fontpitch = variable!
  677. string facename = "宋体"
  678. string text = "刷新"
  679. end type
  680. event clicked;dw_subid_spt.Retrieve()
  681. end event
  682. type tabpage_8 from userobject within tab_1
  683. event create ( )
  684. event destroy ( )
  685. event ue_p_subid ( string arg_col, string arg_coltext )
  686. integer x = 18
  687. integer y = 96
  688. integer width = 4503
  689. integer height = 2056
  690. long backcolor = 67108864
  691. string text = "客户费用单费用项目"
  692. long tabtextcolor = 33554432
  693. long picturemaskcolor = 536870912
  694. st_8 st_8
  695. cb_8 cb_8
  696. cb_retr_expensesdef0 cb_retr_expensesdef0
  697. dw_expensesdef_sub0 dw_expensesdef_sub0
  698. end type
  699. on tabpage_8.create
  700. this.st_8=create st_8
  701. this.cb_8=create cb_8
  702. this.cb_retr_expensesdef0=create cb_retr_expensesdef0
  703. this.dw_expensesdef_sub0=create dw_expensesdef_sub0
  704. this.Control[]={this.st_8,&
  705. this.cb_8,&
  706. this.cb_retr_expensesdef0,&
  707. this.dw_expensesdef_sub0}
  708. end on
  709. on tabpage_8.destroy
  710. destroy(this.st_8)
  711. destroy(this.cb_8)
  712. destroy(this.cb_retr_expensesdef0)
  713. destroy(this.dw_expensesdef_sub0)
  714. end on
  715. event ue_p_subid(string arg_col, string arg_coltext);Long i
  716. String value_str
  717. dw_expensesdef_sub0.AcceptText()
  718. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  719. RETURN
  720. END IF
  721. IF dw_expensesdef_sub0.RowCount() = 0 THEN
  722. MessageBox('提示','没有可设置的资料',information!,OK!)
  723. RETURN
  724. END IF
  725. value_str = dw_expensesdef_sub0.GetitemString(1,arg_col)
  726. IF Trim(value_str) = '' THEN
  727. MessageBox('提示','第一行资料为空',information!,OK!)
  728. RETURN
  729. END IF
  730. dw_expensesdef_sub0.setredraw(false)
  731. FOR i = 2 TO dw_expensesdef_sub0.RowCount()
  732. dw_expensesdef_sub0.setitem(i,arg_col,value_str)
  733. NEXT
  734. dw_expensesdef_sub0.setredraw(true)
  735. end event
  736. type st_8 from statictext within tabpage_8
  737. integer x = 425
  738. integer y = 24
  739. integer width = 1138
  740. integer height = 48
  741. integer textsize = -9
  742. integer weight = 400
  743. fontcharset fontcharset = gb2312charset!
  744. fontpitch fontpitch = variable!
  745. string facename = "宋体"
  746. long textcolor = 16711680
  747. long backcolor = 67108864
  748. string text = "双击列标题按第1行科目批设置所有行会计科目"
  749. boolean focusrectangle = false
  750. end type
  751. type cb_8 from commandbutton within tabpage_8
  752. integer x = 210
  753. integer y = 8
  754. integer width = 206
  755. integer height = 84
  756. integer taborder = 40
  757. integer textsize = -9
  758. integer weight = 400
  759. fontcharset fontcharset = gb2312charset!
  760. fontpitch fontpitch = variable!
  761. string facename = "宋体"
  762. string text = "保存"
  763. end type
  764. event clicked;Long i
  765. dw_expensesdef_sub0.AcceptText()
  766. IF dw_expensesdef_sub0.UPDATE() = -1 THEN
  767. ROLLBACK;
  768. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  769. RETURN
  770. ELSE
  771. COMMIT;
  772. MessageBox('提示','保存操作成功',information!,OK!)
  773. RETURN
  774. END IF
  775. end event
  776. type cb_retr_expensesdef0 from commandbutton within tabpage_8
  777. integer y = 8
  778. integer width = 206
  779. integer height = 84
  780. integer taborder = 30
  781. integer textsize = -9
  782. integer weight = 400
  783. fontcharset fontcharset = gb2312charset!
  784. fontpitch fontpitch = variable!
  785. string facename = "宋体"
  786. string text = "刷新"
  787. end type
  788. event clicked;dw_expensesdef_sub0.Retrieve()
  789. end event
  790. type dw_expensesdef_sub0 from u_dw_rbtnfilter within tabpage_8
  791. integer y = 104
  792. integer width = 3506
  793. integer height = 1948
  794. integer taborder = 40
  795. string dataobject = "dw_expensesdef_sub0"
  796. boolean hscrollbar = true
  797. boolean vscrollbar = true
  798. boolean hsplitscroll = true
  799. boolean rbutton_filter_use = true
  800. boolean titleclick_sort_use = true
  801. end type
  802. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  803. THIS.SelectRow(0,FALSE)
  804. THIS.SelectRow(currentrow,TRUE)
  805. END IF
  806. end event
  807. event doubleclicked;If Lower(Left(dwo.Type,4)) = 'text' Then
  808. s_inputbox S_SREU
  809. String LS_STR,column_name,coltext
  810. column_name = dwo.Name
  811. column_name = Left(column_name,Len(column_name) - 2)
  812. coltext = dwo.text
  813. IF POS(column_name,'subid') > 0 THEN
  814. Parent.Event ue_p_subid(column_name,coltext)
  815. End IF
  816. End If
  817. end event
  818. type tabpage_9 from userobject within tab_1
  819. event ue_p_subid ( string arg_col, string arg_coltext )
  820. integer x = 18
  821. integer y = 96
  822. integer width = 4503
  823. integer height = 2056
  824. long backcolor = 67108864
  825. string text = "供应商费用单费用项目"
  826. long tabtextcolor = 33554432
  827. long picturemaskcolor = 536870912
  828. st_7 st_7
  829. cb_11 cb_11
  830. cb_retr_expensesdef1 cb_retr_expensesdef1
  831. dw_expensesdef_sub1 dw_expensesdef_sub1
  832. end type
  833. event ue_p_subid(string arg_col, string arg_coltext);Long i
  834. String value_str
  835. dw_expensesdef_sub1.AcceptText()
  836. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  837. RETURN
  838. END IF
  839. IF dw_expensesdef_sub1.RowCount() = 0 THEN
  840. MessageBox('提示','没有可设置的资料',information!,OK!)
  841. RETURN
  842. END IF
  843. value_str = dw_expensesdef_sub1.GetitemString(1,arg_col)
  844. IF Trim(value_str) = '' THEN
  845. MessageBox('提示','第一行资料为空',information!,OK!)
  846. RETURN
  847. END IF
  848. dw_expensesdef_sub1.setredraw(false)
  849. FOR i = 2 TO dw_expensesdef_sub1.RowCount()
  850. dw_expensesdef_sub1.setitem(i,arg_col,value_str)
  851. NEXT
  852. dw_expensesdef_sub1.setredraw(true)
  853. end event
  854. on tabpage_9.create
  855. this.st_7=create st_7
  856. this.cb_11=create cb_11
  857. this.cb_retr_expensesdef1=create cb_retr_expensesdef1
  858. this.dw_expensesdef_sub1=create dw_expensesdef_sub1
  859. this.Control[]={this.st_7,&
  860. this.cb_11,&
  861. this.cb_retr_expensesdef1,&
  862. this.dw_expensesdef_sub1}
  863. end on
  864. on tabpage_9.destroy
  865. destroy(this.st_7)
  866. destroy(this.cb_11)
  867. destroy(this.cb_retr_expensesdef1)
  868. destroy(this.dw_expensesdef_sub1)
  869. end on
  870. type st_7 from statictext within tabpage_9
  871. integer x = 425
  872. integer y = 24
  873. integer width = 1138
  874. integer height = 48
  875. integer textsize = -9
  876. integer weight = 400
  877. fontcharset fontcharset = gb2312charset!
  878. fontpitch fontpitch = variable!
  879. string facename = "宋体"
  880. long textcolor = 16711680
  881. long backcolor = 67108864
  882. string text = "双击列标题按第1行科目批设置所有行会计科目"
  883. boolean focusrectangle = false
  884. end type
  885. type cb_11 from commandbutton within tabpage_9
  886. integer x = 210
  887. integer y = 8
  888. integer width = 206
  889. integer height = 84
  890. integer taborder = 50
  891. integer textsize = -9
  892. integer weight = 400
  893. fontcharset fontcharset = gb2312charset!
  894. fontpitch fontpitch = variable!
  895. string facename = "宋体"
  896. string text = "保存"
  897. end type
  898. event clicked;Long i
  899. dw_expensesdef_sub1.AcceptText()
  900. IF dw_expensesdef_sub1.UPDATE() = -1 THEN
  901. ROLLBACK;
  902. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  903. RETURN
  904. ELSE
  905. COMMIT;
  906. MessageBox('提示','保存操作成功',information!,OK!)
  907. RETURN
  908. END IF
  909. end event
  910. type cb_retr_expensesdef1 from commandbutton within tabpage_9
  911. integer y = 8
  912. integer width = 206
  913. integer height = 84
  914. integer taborder = 40
  915. integer textsize = -9
  916. integer weight = 400
  917. fontcharset fontcharset = gb2312charset!
  918. fontpitch fontpitch = variable!
  919. string facename = "宋体"
  920. string text = "刷新"
  921. end type
  922. event clicked;dw_expensesdef_sub1.Retrieve()
  923. end event
  924. type dw_expensesdef_sub1 from u_dw_rbtnfilter within tabpage_9
  925. integer y = 100
  926. integer width = 3506
  927. integer height = 1948
  928. integer taborder = 50
  929. string dataobject = "dw_expensesdef_sub1"
  930. boolean hscrollbar = true
  931. boolean vscrollbar = true
  932. boolean hsplitscroll = true
  933. boolean rbutton_filter_use = true
  934. boolean titleclick_sort_use = true
  935. end type
  936. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  937. THIS.SelectRow(0,FALSE)
  938. THIS.SelectRow(currentrow,TRUE)
  939. END IF
  940. end event
  941. event doubleclicked;If Lower(Left(dwo.Type,4)) = 'text' Then
  942. s_inputbox S_SREU
  943. String LS_STR,column_name,coltext
  944. column_name = dwo.Name
  945. column_name = Left(column_name,Len(column_name) - 2)
  946. coltext = dwo.text
  947. IF POS(column_name,'subid') > 0 THEN
  948. Parent.Event ue_p_subid(column_name,coltext)
  949. End IF
  950. End If
  951. end event
  952. type tabpage_11 from userobject within tab_1
  953. event ue_p_subid ( string arg_col, string arg_coltext )
  954. integer x = 18
  955. integer y = 96
  956. integer width = 4503
  957. integer height = 2056
  958. long backcolor = 67108864
  959. string text = "物料类别"
  960. long tabtextcolor = 33554432
  961. long picturemaskcolor = 536870912
  962. st_3 st_3
  963. dw_subid_mtrltype dw_subid_mtrltype
  964. cb_17 cb_17
  965. cb_retr_mtrltype cb_retr_mtrltype
  966. end type
  967. event ue_p_subid(string arg_col, string arg_coltext);Long i
  968. String value_str
  969. dw_subid_mtrltype.AcceptText()
  970. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  971. RETURN
  972. END IF
  973. IF dw_subid_mtrltype.RowCount() = 0 THEN
  974. MessageBox('提示','没有可设置的资料',information!,OK!)
  975. RETURN
  976. END IF
  977. value_str = dw_subid_mtrltype.GetitemString(1,arg_col)
  978. IF Trim(value_str) = '' THEN
  979. MessageBox('提示','第一行资料为空',information!,OK!)
  980. RETURN
  981. END IF
  982. dw_subid_mtrltype.setredraw(false)
  983. FOR i = 2 TO dw_subid_mtrltype.RowCount()
  984. dw_subid_mtrltype.setitem(i,arg_col,value_str)
  985. NEXT
  986. dw_subid_mtrltype.setredraw(true)
  987. end event
  988. on tabpage_11.create
  989. this.st_3=create st_3
  990. this.dw_subid_mtrltype=create dw_subid_mtrltype
  991. this.cb_17=create cb_17
  992. this.cb_retr_mtrltype=create cb_retr_mtrltype
  993. this.Control[]={this.st_3,&
  994. this.dw_subid_mtrltype,&
  995. this.cb_17,&
  996. this.cb_retr_mtrltype}
  997. end on
  998. on tabpage_11.destroy
  999. destroy(this.st_3)
  1000. destroy(this.dw_subid_mtrltype)
  1001. destroy(this.cb_17)
  1002. destroy(this.cb_retr_mtrltype)
  1003. end on
  1004. type st_3 from statictext within tabpage_11
  1005. integer x = 425
  1006. integer y = 16
  1007. integer width = 1138
  1008. integer height = 48
  1009. integer textsize = -9
  1010. integer weight = 400
  1011. fontcharset fontcharset = gb2312charset!
  1012. fontpitch fontpitch = variable!
  1013. string facename = "宋体"
  1014. long textcolor = 16711680
  1015. long backcolor = 67108864
  1016. string text = "双击列标题按第1行科目批设置所有行会计科目"
  1017. boolean focusrectangle = false
  1018. end type
  1019. type dw_subid_mtrltype from u_dw_rbtnfilter within tabpage_11
  1020. integer y = 92
  1021. integer width = 3506
  1022. integer height = 1948
  1023. integer taborder = 70
  1024. string dataobject = "dw_subid_mtrltype"
  1025. boolean hscrollbar = true
  1026. boolean vscrollbar = true
  1027. boolean hsplitscroll = true
  1028. boolean rbutton_filter_use = true
  1029. boolean titleclick_sort_use = true
  1030. end type
  1031. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1032. THIS.SelectRow(0,FALSE)
  1033. THIS.SelectRow(currentrow,TRUE)
  1034. END IF
  1035. end event
  1036. event doubleclicked;If Lower(Left(dwo.Type,4)) = 'text' Then
  1037. s_inputbox S_SREU
  1038. String LS_STR,column_name,coltext
  1039. column_name = dwo.Name
  1040. column_name = Left(column_name,Len(column_name) - 2)
  1041. coltext = dwo.text
  1042. IF POS(column_name,'subid') > 0 THEN
  1043. Parent.Event ue_p_subid(column_name,coltext)
  1044. End IF
  1045. End If
  1046. end event
  1047. type cb_17 from commandbutton within tabpage_11
  1048. integer x = 210
  1049. integer width = 206
  1050. integer height = 84
  1051. integer taborder = 70
  1052. integer textsize = -9
  1053. integer weight = 400
  1054. fontcharset fontcharset = gb2312charset!
  1055. fontpitch fontpitch = variable!
  1056. string facename = "宋体"
  1057. string text = "保存"
  1058. end type
  1059. event clicked;Long i
  1060. dw_subid_mtrltype.AcceptText()
  1061. IF dw_subid_mtrltype.UPDATE() = -1 THEN
  1062. ROLLBACK;
  1063. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  1064. RETURN
  1065. ELSE
  1066. COMMIT;
  1067. MessageBox('提示','保存操作成功',information!,OK!)
  1068. RETURN
  1069. END IF
  1070. end event
  1071. type cb_retr_mtrltype from commandbutton within tabpage_11
  1072. integer width = 206
  1073. integer height = 84
  1074. integer taborder = 60
  1075. integer textsize = -9
  1076. integer weight = 400
  1077. fontcharset fontcharset = gb2312charset!
  1078. fontpitch fontpitch = variable!
  1079. string facename = "宋体"
  1080. string text = "刷新"
  1081. end type
  1082. event clicked;dw_subid_mtrltype.Retrieve()
  1083. end event
  1084. type tabpage_4 from userobject within tab_1
  1085. event ue_p_subid ( string arg_col, string arg_coltext )
  1086. integer x = 18
  1087. integer y = 96
  1088. integer width = 4503
  1089. integer height = 2056
  1090. long backcolor = 67108864
  1091. string text = "物料"
  1092. long tabtextcolor = 33554432
  1093. long picturemaskcolor = 536870912
  1094. st_1 st_1
  1095. tv_2 tv_2
  1096. dw_subid_mtrl dw_subid_mtrl
  1097. cb_cb_save_subid_mtrl cb_cb_save_subid_mtrl
  1098. cb_retr_mtrl cb_retr_mtrl
  1099. end type
  1100. event ue_p_subid(string arg_col, string arg_coltext);Long i
  1101. String value_str
  1102. dw_subid_mtrl.AcceptText()
  1103. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  1104. RETURN
  1105. END IF
  1106. IF dw_subid_mtrl.RowCount() = 0 THEN
  1107. MessageBox('提示','没有可设置的资料',information!,OK!)
  1108. RETURN
  1109. END IF
  1110. value_str = dw_subid_mtrl.GetitemString(1,arg_col)
  1111. IF Trim(value_str) = '' THEN
  1112. MessageBox('提示','第一行资料为空',information!,OK!)
  1113. RETURN
  1114. END IF
  1115. dw_subid_mtrl.setredraw(false)
  1116. FOR i = 2 TO dw_subid_mtrl.RowCount()
  1117. dw_subid_mtrl.setitem(i,arg_col,value_str)
  1118. NEXT
  1119. dw_subid_mtrl.setredraw(true)
  1120. end event
  1121. on tabpage_4.create
  1122. this.st_1=create st_1
  1123. this.tv_2=create tv_2
  1124. this.dw_subid_mtrl=create dw_subid_mtrl
  1125. this.cb_cb_save_subid_mtrl=create cb_cb_save_subid_mtrl
  1126. this.cb_retr_mtrl=create cb_retr_mtrl
  1127. this.Control[]={this.st_1,&
  1128. this.tv_2,&
  1129. this.dw_subid_mtrl,&
  1130. this.cb_cb_save_subid_mtrl,&
  1131. this.cb_retr_mtrl}
  1132. end on
  1133. on tabpage_4.destroy
  1134. destroy(this.st_1)
  1135. destroy(this.tv_2)
  1136. destroy(this.dw_subid_mtrl)
  1137. destroy(this.cb_cb_save_subid_mtrl)
  1138. destroy(this.cb_retr_mtrl)
  1139. end on
  1140. type st_1 from statictext within tabpage_4
  1141. integer x = 425
  1142. integer y = 28
  1143. integer width = 1138
  1144. integer height = 48
  1145. integer textsize = -9
  1146. integer weight = 400
  1147. fontcharset fontcharset = gb2312charset!
  1148. fontpitch fontpitch = variable!
  1149. string facename = "宋体"
  1150. long textcolor = 16711680
  1151. long backcolor = 67108864
  1152. string text = "双击列标题按第1行科目批设置所有行会计科目"
  1153. boolean focusrectangle = false
  1154. end type
  1155. type tv_2 from uo_tv_mtrltype within tabpage_4
  1156. integer y = 112
  1157. integer width = 878
  1158. integer height = 1948
  1159. integer taborder = 30
  1160. integer textsize = -9
  1161. fontcharset fontcharset = gb2312charset!
  1162. fontfamily fontfamily = anyfont!
  1163. string facename = "宋体"
  1164. end type
  1165. event selectionchanged;call super::selectionchanged;ls_handtype = THIS.uo_cur_info.handtype
  1166. ls_handtype = ls_handtype + '%'
  1167. dw_subid_mtrl.Retrieve(ls_handtype)
  1168. end event
  1169. type dw_subid_mtrl from u_dw_rbtnfilter within tabpage_4
  1170. integer x = 882
  1171. integer y = 112
  1172. integer width = 2624
  1173. integer height = 1948
  1174. integer taborder = 30
  1175. string dataobject = "dw_subid_mtrl"
  1176. boolean hscrollbar = true
  1177. boolean vscrollbar = true
  1178. boolean hsplitscroll = true
  1179. boolean rbutton_filter_use = true
  1180. boolean titleclick_sort_use = true
  1181. end type
  1182. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1183. THIS.SelectRow(0,FALSE)
  1184. THIS.SelectRow(currentrow,TRUE)
  1185. END IF
  1186. end event
  1187. event doubleclicked;call super::doubleclicked;If Lower(Left(dwo.Type,4)) = 'text' Then
  1188. s_inputbox S_SREU
  1189. String LS_STR,column_name,coltext
  1190. column_name = dwo.Name
  1191. column_name = Left(column_name,Len(column_name) - 2)
  1192. coltext = dwo.text
  1193. IF POS(column_name,'subid') > 0 THEN
  1194. Parent.Event ue_p_subid(column_name,coltext)
  1195. End IF
  1196. End If
  1197. end event
  1198. type cb_cb_save_subid_mtrl from commandbutton within tabpage_4
  1199. integer x = 210
  1200. integer y = 12
  1201. integer width = 206
  1202. integer height = 84
  1203. integer taborder = 30
  1204. integer textsize = -9
  1205. integer weight = 400
  1206. fontcharset fontcharset = gb2312charset!
  1207. fontpitch fontpitch = variable!
  1208. string facename = "宋体"
  1209. string text = "保存"
  1210. end type
  1211. event clicked;Long i
  1212. dw_subid_mtrl.AcceptText()
  1213. FOR i = 1 TO dw_subid_mtrl.RowCount()
  1214. dw_subid_mtrl.Object.subid[i] = Trim(dw_subid_mtrl.Object.subid[i])
  1215. NEXT
  1216. dw_subid_mtrl.AcceptText()
  1217. IF dw_subid_mtrl.UPDATE() = -1 THEN
  1218. ROLLBACK;
  1219. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  1220. RETURN
  1221. ELSE
  1222. COMMIT;
  1223. MessageBox('提示','保存操作成功',information!,OK!)
  1224. RETURN
  1225. END IF
  1226. end event
  1227. type cb_retr_mtrl from commandbutton within tabpage_4
  1228. integer y = 12
  1229. integer width = 206
  1230. integer height = 84
  1231. integer taborder = 20
  1232. integer textsize = -9
  1233. integer weight = 400
  1234. fontcharset fontcharset = gb2312charset!
  1235. fontpitch fontpitch = variable!
  1236. string facename = "宋体"
  1237. string text = "刷新"
  1238. end type
  1239. event clicked;tv_2.f_maketree(-1)
  1240. tv_2.TriggerEvent(SelectionChanged!)
  1241. end event
  1242. type tabpage_10 from userobject within tab_1
  1243. event ue_p_subid ( string arg_col, string arg_coltext )
  1244. integer x = 18
  1245. integer y = 96
  1246. integer width = 4503
  1247. integer height = 2056
  1248. long backcolor = 67108864
  1249. string text = "仓库"
  1250. long tabtextcolor = 33554432
  1251. long picturemaskcolor = 536870912
  1252. st_2 st_2
  1253. dw_subid_storage dw_subid_storage
  1254. cb_14 cb_14
  1255. cb_retr_storage cb_retr_storage
  1256. end type
  1257. event ue_p_subid(string arg_col, string arg_coltext);Long i
  1258. String value_str
  1259. dw_subid_storage.AcceptText()
  1260. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  1261. RETURN
  1262. END IF
  1263. IF dw_subid_storage.RowCount() = 0 THEN
  1264. MessageBox('提示','没有可设置的资料',information!,OK!)
  1265. RETURN
  1266. END IF
  1267. value_str = dw_subid_storage.GetitemString(1,arg_col)
  1268. IF Trim(value_str) = '' THEN
  1269. MessageBox('提示','第一行资料为空',information!,OK!)
  1270. RETURN
  1271. END IF
  1272. dw_subid_storage.setredraw(false)
  1273. FOR i = 2 TO dw_subid_storage.RowCount()
  1274. dw_subid_storage.setitem(i,arg_col,value_str)
  1275. NEXT
  1276. dw_subid_storage.setredraw(true)
  1277. end event
  1278. on tabpage_10.create
  1279. this.st_2=create st_2
  1280. this.dw_subid_storage=create dw_subid_storage
  1281. this.cb_14=create cb_14
  1282. this.cb_retr_storage=create cb_retr_storage
  1283. this.Control[]={this.st_2,&
  1284. this.dw_subid_storage,&
  1285. this.cb_14,&
  1286. this.cb_retr_storage}
  1287. end on
  1288. on tabpage_10.destroy
  1289. destroy(this.st_2)
  1290. destroy(this.dw_subid_storage)
  1291. destroy(this.cb_14)
  1292. destroy(this.cb_retr_storage)
  1293. end on
  1294. type st_2 from statictext within tabpage_10
  1295. integer x = 425
  1296. integer y = 16
  1297. integer width = 1138
  1298. integer height = 48
  1299. integer textsize = -9
  1300. integer weight = 400
  1301. fontcharset fontcharset = gb2312charset!
  1302. fontpitch fontpitch = variable!
  1303. string facename = "宋体"
  1304. long textcolor = 16711680
  1305. long backcolor = 67108864
  1306. string text = "双击列标题按第1行科目批设置所有行会计科目"
  1307. boolean focusrectangle = false
  1308. end type
  1309. type dw_subid_storage from u_dw_rbtnfilter within tabpage_10
  1310. integer y = 92
  1311. integer width = 3506
  1312. integer height = 1948
  1313. integer taborder = 60
  1314. string dataobject = "dw_subid_storage"
  1315. boolean hscrollbar = true
  1316. boolean vscrollbar = true
  1317. boolean hsplitscroll = true
  1318. boolean rbutton_filter_use = true
  1319. boolean titleclick_sort_use = true
  1320. end type
  1321. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1322. THIS.SelectRow(0,FALSE)
  1323. THIS.SelectRow(currentrow,TRUE)
  1324. END IF
  1325. end event
  1326. event doubleclicked;If Lower(Left(dwo.Type,4)) = 'text' Then
  1327. s_inputbox S_SREU
  1328. String LS_STR,column_name,coltext
  1329. column_name = dwo.Name
  1330. column_name = Left(column_name,Len(column_name) - 2)
  1331. coltext = dwo.text
  1332. IF POS(column_name,'subid') > 0 THEN
  1333. Parent.Event ue_p_subid(column_name,coltext)
  1334. End IF
  1335. End If
  1336. end event
  1337. type cb_14 from commandbutton within tabpage_10
  1338. integer x = 210
  1339. integer width = 206
  1340. integer height = 84
  1341. integer taborder = 60
  1342. integer textsize = -9
  1343. integer weight = 400
  1344. fontcharset fontcharset = gb2312charset!
  1345. fontpitch fontpitch = variable!
  1346. string facename = "宋体"
  1347. string text = "保存"
  1348. end type
  1349. event clicked;Long i
  1350. dw_subid_storage.AcceptText()
  1351. IF dw_subid_storage.UPDATE() = -1 THEN
  1352. ROLLBACK;
  1353. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  1354. RETURN
  1355. ELSE
  1356. COMMIT;
  1357. MessageBox('提示','保存操作成功',information!,OK!)
  1358. RETURN
  1359. END IF
  1360. end event
  1361. type cb_retr_storage from commandbutton within tabpage_10
  1362. integer width = 206
  1363. integer height = 84
  1364. integer taborder = 50
  1365. integer textsize = -9
  1366. integer weight = 400
  1367. fontcharset fontcharset = gb2312charset!
  1368. fontpitch fontpitch = variable!
  1369. string facename = "宋体"
  1370. string text = "刷新"
  1371. end type
  1372. event clicked;dw_subid_storage.Retrieve()
  1373. end event
  1374. type tabpage_5 from userobject within tab_1
  1375. event create ( )
  1376. event destroy ( )
  1377. event ue_p_subid ( string arg_col, string arg_coltext )
  1378. integer x = 18
  1379. integer y = 96
  1380. integer width = 4503
  1381. integer height = 2056
  1382. long backcolor = 67108864
  1383. string text = "费用项目"
  1384. long tabtextcolor = 33554432
  1385. long picturemaskcolor = 536870912
  1386. st_5 st_5
  1387. dw_subid_item dw_subid_item
  1388. cb_cb_save_subid_item cb_cb_save_subid_item
  1389. cb_retr_item cb_retr_item
  1390. end type
  1391. on tabpage_5.create
  1392. this.st_5=create st_5
  1393. this.dw_subid_item=create dw_subid_item
  1394. this.cb_cb_save_subid_item=create cb_cb_save_subid_item
  1395. this.cb_retr_item=create cb_retr_item
  1396. this.Control[]={this.st_5,&
  1397. this.dw_subid_item,&
  1398. this.cb_cb_save_subid_item,&
  1399. this.cb_retr_item}
  1400. end on
  1401. on tabpage_5.destroy
  1402. destroy(this.st_5)
  1403. destroy(this.dw_subid_item)
  1404. destroy(this.cb_cb_save_subid_item)
  1405. destroy(this.cb_retr_item)
  1406. end on
  1407. event ue_p_subid(string arg_col, string arg_coltext);Long i
  1408. String value_str
  1409. dw_subid_item.AcceptText()
  1410. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  1411. RETURN
  1412. END IF
  1413. IF dw_subid_item.RowCount() = 0 THEN
  1414. MessageBox('提示','没有可设置的资料',information!,OK!)
  1415. RETURN
  1416. END IF
  1417. value_str = dw_subid_item.GetitemString(1,arg_col)
  1418. IF Trim(value_str) = '' THEN
  1419. MessageBox('提示','第一行资料为空',information!,OK!)
  1420. RETURN
  1421. END IF
  1422. dw_subid_item.setredraw(false)
  1423. FOR i = 2 TO dw_subid_item.RowCount()
  1424. dw_subid_item.setitem(i,arg_col,value_str)
  1425. NEXT
  1426. dw_subid_item.setredraw(true)
  1427. end event
  1428. type st_5 from statictext within tabpage_5
  1429. integer x = 425
  1430. integer y = 28
  1431. integer width = 1138
  1432. integer height = 48
  1433. integer textsize = -9
  1434. integer weight = 400
  1435. fontcharset fontcharset = gb2312charset!
  1436. fontpitch fontpitch = variable!
  1437. string facename = "宋体"
  1438. long textcolor = 16711680
  1439. long backcolor = 67108864
  1440. string text = "双击列标题按第1行科目批设置所有行会计科目"
  1441. boolean focusrectangle = false
  1442. end type
  1443. type dw_subid_item from u_dw_rbtnfilter within tabpage_5
  1444. integer y = 112
  1445. integer width = 3506
  1446. integer height = 1948
  1447. integer taborder = 30
  1448. string dataobject = "dw_subid_item"
  1449. boolean hscrollbar = true
  1450. boolean vscrollbar = true
  1451. boolean hsplitscroll = true
  1452. boolean rbutton_filter_use = true
  1453. boolean titleclick_sort_use = true
  1454. end type
  1455. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1456. THIS.SelectRow(0,FALSE)
  1457. THIS.SelectRow(currentrow,TRUE)
  1458. END IF
  1459. end event
  1460. event doubleclicked;IF Lower(Left(dwo.Type,4)) = 'text' THEN
  1461. s_inputbox S_SREU
  1462. String LS_STR,column_name,coltext
  1463. column_name = dwo.Name
  1464. column_name = Left(column_name,Len(column_name) - 2)
  1465. coltext = dwo.Text
  1466. IF Pos(column_name,'subid') > 0 THEN
  1467. Parent.Event ue_p_subid(column_name,coltext)
  1468. END IF
  1469. END IF
  1470. end event
  1471. type cb_cb_save_subid_item from commandbutton within tabpage_5
  1472. integer x = 210
  1473. integer y = 12
  1474. integer width = 206
  1475. integer height = 84
  1476. integer taborder = 30
  1477. integer textsize = -9
  1478. integer weight = 400
  1479. fontcharset fontcharset = gb2312charset!
  1480. fontpitch fontpitch = variable!
  1481. string facename = "宋体"
  1482. string text = "保存"
  1483. end type
  1484. event clicked;Long i
  1485. dw_subid_item.AcceptText()
  1486. FOR i = 1 TO dw_subid_item.RowCount()
  1487. dw_subid_item.Object.subid[i] = Trim(dw_subid_item.Object.subid[i])
  1488. NEXT
  1489. dw_subid_item.AcceptText()
  1490. IF dw_subid_item.UPDATE() = -1 THEN
  1491. ROLLBACK;
  1492. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  1493. RETURN
  1494. ELSE
  1495. COMMIT;
  1496. MessageBox('提示','保存操作成功',information!,OK!)
  1497. RETURN
  1498. END IF
  1499. end event
  1500. type cb_retr_item from commandbutton within tabpage_5
  1501. integer y = 12
  1502. integer width = 206
  1503. integer height = 84
  1504. integer taborder = 20
  1505. integer textsize = -9
  1506. integer weight = 400
  1507. fontcharset fontcharset = gb2312charset!
  1508. fontpitch fontpitch = variable!
  1509. string facename = "宋体"
  1510. string text = "刷新"
  1511. end type
  1512. event clicked;dw_subid_item.Retrieve()
  1513. end event
  1514. type tabpage_6 from userobject within tab_1
  1515. event create ( )
  1516. event destroy ( )
  1517. event ue_p_subid ( string arg_col, string arg_coltext )
  1518. integer x = 18
  1519. integer y = 96
  1520. integer width = 4503
  1521. integer height = 2056
  1522. long backcolor = 67108864
  1523. string text = "出纳帐号"
  1524. long tabtextcolor = 33554432
  1525. long picturemaskcolor = 536870912
  1526. st_6 st_6
  1527. dw_subid_account dw_subid_account
  1528. cb_cb_save_subid_account cb_cb_save_subid_account
  1529. cb_retr_account cb_retr_account
  1530. end type
  1531. on tabpage_6.create
  1532. this.st_6=create st_6
  1533. this.dw_subid_account=create dw_subid_account
  1534. this.cb_cb_save_subid_account=create cb_cb_save_subid_account
  1535. this.cb_retr_account=create cb_retr_account
  1536. this.Control[]={this.st_6,&
  1537. this.dw_subid_account,&
  1538. this.cb_cb_save_subid_account,&
  1539. this.cb_retr_account}
  1540. end on
  1541. on tabpage_6.destroy
  1542. destroy(this.st_6)
  1543. destroy(this.dw_subid_account)
  1544. destroy(this.cb_cb_save_subid_account)
  1545. destroy(this.cb_retr_account)
  1546. end on
  1547. event ue_p_subid(string arg_col, string arg_coltext);Long i
  1548. String value_str
  1549. dw_subid_account.AcceptText()
  1550. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  1551. RETURN
  1552. END IF
  1553. IF dw_subid_account.RowCount() = 0 THEN
  1554. MessageBox('提示','没有可设置的资料',information!,OK!)
  1555. RETURN
  1556. END IF
  1557. value_str = dw_subid_account.GetitemString(1,arg_col)
  1558. IF Trim(value_str) = '' THEN
  1559. MessageBox('提示','第一行资料为空',information!,OK!)
  1560. RETURN
  1561. END IF
  1562. dw_subid_account.setredraw(false)
  1563. FOR i = 2 TO dw_subid_account.RowCount()
  1564. dw_subid_account.setitem(i,arg_col,value_str)
  1565. NEXT
  1566. dw_subid_account.setredraw(true)
  1567. end event
  1568. type st_6 from statictext within tabpage_6
  1569. integer x = 425
  1570. integer y = 28
  1571. integer width = 1138
  1572. integer height = 48
  1573. integer textsize = -9
  1574. integer weight = 400
  1575. fontcharset fontcharset = gb2312charset!
  1576. fontpitch fontpitch = variable!
  1577. string facename = "宋体"
  1578. long textcolor = 16711680
  1579. long backcolor = 67108864
  1580. string text = "双击列标题按第1行科目批设置所有行会计科目"
  1581. boolean focusrectangle = false
  1582. end type
  1583. type dw_subid_account from u_dw_rbtnfilter within tabpage_6
  1584. integer y = 112
  1585. integer width = 3506
  1586. integer height = 1948
  1587. integer taborder = 30
  1588. string dataobject = "dw_subid_account"
  1589. boolean hscrollbar = true
  1590. boolean vscrollbar = true
  1591. boolean hsplitscroll = true
  1592. boolean rbutton_filter_use = true
  1593. boolean titleclick_sort_use = true
  1594. end type
  1595. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1596. THIS.SelectRow(0,FALSE)
  1597. THIS.SelectRow(currentrow,TRUE)
  1598. END IF
  1599. end event
  1600. event doubleclicked;//IF Lower(Left(dwo.Type,4)) = 'text' THEN
  1601. // s_inputbox S_SREU
  1602. // String LS_STR,column_name,coltext
  1603. //
  1604. // column_name = dwo.Name
  1605. // column_name = Left(column_name,Len(column_name) - 2)
  1606. // coltext = dwo.Text
  1607. //
  1608. // IF Pos(column_name,'subid') > 0 THEN
  1609. // Parent.Event ue_p_subid(column_name,coltext)
  1610. // END IF
  1611. //END IF
  1612. //
  1613. end event
  1614. type cb_cb_save_subid_account from commandbutton within tabpage_6
  1615. integer x = 210
  1616. integer y = 12
  1617. integer width = 206
  1618. integer height = 84
  1619. integer taborder = 30
  1620. integer textsize = -9
  1621. integer weight = 400
  1622. fontcharset fontcharset = gb2312charset!
  1623. fontpitch fontpitch = variable!
  1624. string facename = "宋体"
  1625. string text = "保存"
  1626. end type
  1627. event clicked;Long i
  1628. dw_subid_account.AcceptText()
  1629. FOR i = 1 TO dw_subid_account.RowCount()
  1630. dw_subid_account.Object.subid[i] = Trim(dw_subid_account.Object.subid[i])
  1631. NEXT
  1632. dw_subid_account.AcceptText()
  1633. IF dw_subid_account.UPDATE() = -1 THEN
  1634. ROLLBACK;
  1635. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  1636. RETURN
  1637. ELSE
  1638. COMMIT;
  1639. MessageBox('提示','保存操作成功',information!,OK!)
  1640. RETURN
  1641. END IF
  1642. end event
  1643. type cb_retr_account from commandbutton within tabpage_6
  1644. integer y = 12
  1645. integer width = 206
  1646. integer height = 84
  1647. integer taborder = 20
  1648. integer textsize = -9
  1649. integer weight = 400
  1650. fontcharset fontcharset = gb2312charset!
  1651. fontpitch fontpitch = variable!
  1652. string facename = "宋体"
  1653. string text = "刷新"
  1654. end type
  1655. event clicked;dw_subid_account.Retrieve()
  1656. end event
  1657. type tabpage_12 from userobject within tab_1
  1658. event ue_p_subid ( string arg_col, string arg_coltext )
  1659. integer x = 18
  1660. integer y = 96
  1661. integer width = 4503
  1662. integer height = 2056
  1663. long backcolor = 67108864
  1664. string text = "其它进出原因"
  1665. long tabtextcolor = 33554432
  1666. long picturemaskcolor = 536870912
  1667. st_4 st_4
  1668. dw_subid_static dw_subid_static
  1669. cb_19 cb_19
  1670. cb_retr_static cb_retr_static
  1671. end type
  1672. event ue_p_subid(string arg_col, string arg_coltext);Long i
  1673. String value_str
  1674. dw_subid_static.AcceptText()
  1675. IF MessageBox(publ_operator,'是否要确定要批设置 '+arg_coltext, Exclamation!, YesNo!, 2) = 2 THEN
  1676. RETURN
  1677. END IF
  1678. IF dw_subid_static.RowCount() = 0 THEN
  1679. MessageBox('提示','没有可设置的资料',information!,OK!)
  1680. RETURN
  1681. END IF
  1682. value_str = dw_subid_static.GetitemString(1,arg_col)
  1683. IF Trim(value_str) = '' THEN
  1684. MessageBox('提示','第一行资料为空',information!,OK!)
  1685. RETURN
  1686. END IF
  1687. dw_subid_static.setredraw(false)
  1688. FOR i = 2 TO dw_subid_static.RowCount()
  1689. dw_subid_static.setitem(i,arg_col,value_str)
  1690. NEXT
  1691. dw_subid_static.setredraw(true)
  1692. end event
  1693. on tabpage_12.create
  1694. this.st_4=create st_4
  1695. this.dw_subid_static=create dw_subid_static
  1696. this.cb_19=create cb_19
  1697. this.cb_retr_static=create cb_retr_static
  1698. this.Control[]={this.st_4,&
  1699. this.dw_subid_static,&
  1700. this.cb_19,&
  1701. this.cb_retr_static}
  1702. end on
  1703. on tabpage_12.destroy
  1704. destroy(this.st_4)
  1705. destroy(this.dw_subid_static)
  1706. destroy(this.cb_19)
  1707. destroy(this.cb_retr_static)
  1708. end on
  1709. type st_4 from statictext within tabpage_12
  1710. integer x = 425
  1711. integer y = 16
  1712. integer width = 1138
  1713. integer height = 48
  1714. integer textsize = -9
  1715. integer weight = 400
  1716. fontcharset fontcharset = gb2312charset!
  1717. fontpitch fontpitch = variable!
  1718. string facename = "宋体"
  1719. long textcolor = 16711680
  1720. long backcolor = 67108864
  1721. string text = "双击列标题按第1行科目批设置所有行会计科目"
  1722. boolean focusrectangle = false
  1723. end type
  1724. type dw_subid_static from u_dw_rbtnfilter within tabpage_12
  1725. integer y = 92
  1726. integer width = 3506
  1727. integer height = 1948
  1728. integer taborder = 80
  1729. string dataobject = "dw_subid_static"
  1730. boolean hscrollbar = true
  1731. boolean vscrollbar = true
  1732. boolean hsplitscroll = true
  1733. boolean rbutton_filter_use = true
  1734. boolean titleclick_sort_use = true
  1735. end type
  1736. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1737. THIS.SelectRow(0,FALSE)
  1738. THIS.SelectRow(currentrow,TRUE)
  1739. END IF
  1740. end event
  1741. event doubleclicked;IF Lower(Left(dwo.Type,4)) = 'text' THEN
  1742. s_inputbox S_SREU
  1743. String LS_STR,column_name,coltext
  1744. column_name = dwo.Name
  1745. column_name = Left(column_name,Len(column_name) - 2)
  1746. coltext = dwo.Text
  1747. IF Pos(column_name,'subid') > 0 THEN
  1748. Parent.Event ue_p_subid(column_name,coltext)
  1749. END IF
  1750. END IF
  1751. end event
  1752. type cb_19 from commandbutton within tabpage_12
  1753. integer x = 210
  1754. integer width = 206
  1755. integer height = 84
  1756. integer taborder = 80
  1757. integer textsize = -9
  1758. integer weight = 400
  1759. fontcharset fontcharset = gb2312charset!
  1760. fontpitch fontpitch = variable!
  1761. string facename = "宋体"
  1762. string text = "保存"
  1763. end type
  1764. event clicked;Long i
  1765. dw_subid_static.AcceptText()
  1766. IF dw_subid_static.UPDATE() = -1 THEN
  1767. ROLLBACK;
  1768. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  1769. RETURN
  1770. ELSE
  1771. COMMIT;
  1772. MessageBox('提示','保存操作成功',information!,OK!)
  1773. RETURN
  1774. END IF
  1775. end event
  1776. type cb_retr_static from commandbutton within tabpage_12
  1777. integer width = 206
  1778. integer height = 84
  1779. integer taborder = 70
  1780. integer textsize = -9
  1781. integer weight = 400
  1782. fontcharset fontcharset = gb2312charset!
  1783. fontpitch fontpitch = variable!
  1784. string facename = "宋体"
  1785. string text = "刷新"
  1786. end type
  1787. event clicked;dw_subid_static.Retrieve()
  1788. end event
  1789. type tabpage_1 from userobject within tab_1
  1790. boolean visible = false
  1791. integer x = 18
  1792. integer y = 96
  1793. integer width = 4503
  1794. integer height = 2056
  1795. long backcolor = 67108864
  1796. string text = "会计科目"
  1797. long tabtextcolor = 33554432
  1798. long picturemaskcolor = 536870912
  1799. cb_subid_import cb_subid_import
  1800. cb_retr_subid cb_retr_subid
  1801. dw_subid dw_subid
  1802. end type
  1803. on tabpage_1.create
  1804. this.cb_subid_import=create cb_subid_import
  1805. this.cb_retr_subid=create cb_retr_subid
  1806. this.dw_subid=create dw_subid
  1807. this.Control[]={this.cb_subid_import,&
  1808. this.cb_retr_subid,&
  1809. this.dw_subid}
  1810. end on
  1811. on tabpage_1.destroy
  1812. destroy(this.cb_subid_import)
  1813. destroy(this.cb_retr_subid)
  1814. destroy(this.dw_subid)
  1815. end on
  1816. type cb_subid_import from commandbutton within tabpage_1
  1817. integer x = 210
  1818. integer y = 12
  1819. integer width = 306
  1820. integer height = 84
  1821. integer taborder = 30
  1822. integer textsize = -9
  1823. integer weight = 400
  1824. fontcharset fontcharset = gb2312charset!
  1825. fontpitch fontpitch = variable!
  1826. string facename = "宋体"
  1827. string text = "导入科目"
  1828. end type
  1829. event clicked;OPEN(w_subject_import)
  1830. datawindowchild childdw_cust
  1831. datawindowchild childdw_spt
  1832. datawindowchild childdw_mtrl
  1833. datawindowchild childdw_item
  1834. datawindowchild childdw_account
  1835. tab_1.tabpage_2.dw_subid_cust.GetChild("subid",childdw_cust)
  1836. childdw_cust.SetTransObject(sqlca)
  1837. childdw_cust.Retrieve()
  1838. IF childdw_cust.RowCount() <= 0 THEN
  1839. childdw_cust.InsertRow(0)
  1840. END IF
  1841. tab_1.tabpage_3.dw_subid_spt.GetChild("subid",childdw_spt)
  1842. childdw_spt.SetTransObject(sqlca)
  1843. childdw_spt.Retrieve()
  1844. IF childdw_spt.RowCount() <= 0 THEN
  1845. childdw_spt.InsertRow(0)
  1846. END IF
  1847. tab_1.tabpage_4.dw_subid_mtrl.GetChild("subid",childdw_mtrl)
  1848. childdw_mtrl.SetTransObject(sqlca)
  1849. childdw_mtrl.Retrieve()
  1850. IF childdw_mtrl.RowCount() <= 0 THEN
  1851. childdw_mtrl.InsertRow(0)
  1852. END IF
  1853. tab_1.tabpage_5.dw_subid_item.GetChild("subid",childdw_item)
  1854. childdw_item.SetTransObject(sqlca)
  1855. childdw_item.Retrieve()
  1856. IF childdw_item.RowCount() <= 0 THEN
  1857. childdw_item.InsertRow(0)
  1858. END IF
  1859. tab_1.tabpage_6.dw_subid_account.GetChild("subid",childdw_account)
  1860. childdw_account.SetTransObject(sqlca)
  1861. childdw_account.Retrieve()
  1862. IF childdw_account.RowCount() <= 0 THEN
  1863. childdw_account.InsertRow(0)
  1864. END IF
  1865. cb_retr_subid.TriggerEvent(Clicked!)
  1866. end event
  1867. type cb_retr_subid from commandbutton within tabpage_1
  1868. integer y = 12
  1869. integer width = 206
  1870. integer height = 84
  1871. integer taborder = 20
  1872. integer textsize = -9
  1873. integer weight = 400
  1874. fontcharset fontcharset = gb2312charset!
  1875. fontpitch fontpitch = variable!
  1876. string facename = "宋体"
  1877. string text = "刷新"
  1878. end type
  1879. event clicked;dw_subid.Retrieve()
  1880. end event
  1881. type dw_subid from u_dw_rbtnfilter within tabpage_1
  1882. integer y = 112
  1883. integer width = 3506
  1884. integer height = 1948
  1885. integer taborder = 20
  1886. string dataobject = "dw_subject"
  1887. boolean hscrollbar = true
  1888. boolean vscrollbar = true
  1889. boolean hsplitscroll = true
  1890. boolean rbutton_filter_use = true
  1891. boolean titleclick_sort_use = true
  1892. end type
  1893. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1894. THIS.SelectRow(0,FALSE)
  1895. THIS.SelectRow(currentrow,TRUE)
  1896. END IF
  1897. end event
  1898. type tabpage_7 from userobject within tab_1
  1899. event create ( )
  1900. event destroy ( )
  1901. boolean visible = false
  1902. integer x = 18
  1903. integer y = 96
  1904. integer width = 4503
  1905. integer height = 2056
  1906. long backcolor = 67108864
  1907. string text = "事业部"
  1908. long tabtextcolor = 33554432
  1909. long picturemaskcolor = 536870912
  1910. dw_sc_accset dw_sc_accset
  1911. cb_7 cb_7
  1912. cb_retr_scid cb_retr_scid
  1913. end type
  1914. on tabpage_7.create
  1915. this.dw_sc_accset=create dw_sc_accset
  1916. this.cb_7=create cb_7
  1917. this.cb_retr_scid=create cb_retr_scid
  1918. this.Control[]={this.dw_sc_accset,&
  1919. this.cb_7,&
  1920. this.cb_retr_scid}
  1921. end on
  1922. on tabpage_7.destroy
  1923. destroy(this.dw_sc_accset)
  1924. destroy(this.cb_7)
  1925. destroy(this.cb_retr_scid)
  1926. end on
  1927. type dw_sc_accset from u_dw_rbtnfilter within tabpage_7
  1928. integer y = 112
  1929. integer width = 3506
  1930. integer height = 1948
  1931. integer taborder = 30
  1932. string dataobject = "dw_sc_accset"
  1933. boolean hscrollbar = true
  1934. boolean vscrollbar = true
  1935. boolean hsplitscroll = true
  1936. boolean rbutton_filter_use = true
  1937. boolean titleclick_sort_use = true
  1938. end type
  1939. event rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1940. THIS.SelectRow(0,FALSE)
  1941. THIS.SelectRow(currentrow,TRUE)
  1942. END IF
  1943. end event
  1944. type cb_7 from commandbutton within tabpage_7
  1945. integer x = 210
  1946. integer y = 12
  1947. integer width = 206
  1948. integer height = 84
  1949. integer taborder = 30
  1950. integer textsize = -9
  1951. integer weight = 400
  1952. fontcharset fontcharset = gb2312charset!
  1953. fontpitch fontpitch = variable!
  1954. string facename = "宋体"
  1955. string text = "保存"
  1956. end type
  1957. event clicked;Long i
  1958. dw_sc_accset.AcceptText()
  1959. IF dw_sc_accset.UPDATE() = -1 THEN
  1960. ROLLBACK;
  1961. MessageBox ("错误","保存操作失败!",stopsign!,ok!)
  1962. RETURN
  1963. ELSE
  1964. COMMIT;
  1965. MessageBox('提示','保存操作成功',information!,OK!)
  1966. RETURN
  1967. END IF
  1968. end event
  1969. type cb_retr_scid from commandbutton within tabpage_7
  1970. integer y = 12
  1971. integer width = 206
  1972. integer height = 84
  1973. integer taborder = 20
  1974. integer textsize = -9
  1975. integer weight = 400
  1976. fontcharset fontcharset = gb2312charset!
  1977. fontpitch fontpitch = variable!
  1978. string facename = "宋体"
  1979. string text = "刷新"
  1980. end type
  1981. event clicked;dw_sc_accset.Retrieve()
  1982. end event