w_create_accset.srw 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467
  1. $PBExportHeader$w_create_accset.srw
  2. forward
  3. global type w_create_accset from w_publ_base
  4. end type
  5. type tab_step from tab within w_create_accset
  6. end type
  7. type tabpage_step1 from userobject within tab_step
  8. end type
  9. type st_2 from statictext within tabpage_step1
  10. end type
  11. type sle_cropname from singlelineedit within tabpage_step1
  12. end type
  13. type st_20 from statictext within tabpage_step1
  14. end type
  15. type st_21 from statictext within tabpage_step1
  16. end type
  17. type st_22 from statictext within tabpage_step1
  18. end type
  19. type st_23 from statictext within tabpage_step1
  20. end type
  21. type st_24 from statictext within tabpage_step1
  22. end type
  23. type st_25 from statictext within tabpage_step1
  24. end type
  25. type sle_lawperson from singlelineedit within tabpage_step1
  26. end type
  27. type sle_bank from singlelineedit within tabpage_step1
  28. end type
  29. type ddlb_cropid from dropdownlistbox within tabpage_step1
  30. end type
  31. type sle_accounts from singlelineedit within tabpage_step1
  32. end type
  33. type sle_taxnumber from singlelineedit within tabpage_step1
  34. end type
  35. type sle_telephone from singlelineedit within tabpage_step1
  36. end type
  37. type sle_address from singlelineedit within tabpage_step1
  38. end type
  39. type st_4 from statictext within tabpage_step1
  40. end type
  41. type cbx_ifnewsubid from checkbox within tabpage_step1
  42. end type
  43. type tabpage_step1 from userobject within tab_step
  44. st_2 st_2
  45. sle_cropname sle_cropname
  46. st_20 st_20
  47. st_21 st_21
  48. st_22 st_22
  49. st_23 st_23
  50. st_24 st_24
  51. st_25 st_25
  52. sle_lawperson sle_lawperson
  53. sle_bank sle_bank
  54. ddlb_cropid ddlb_cropid
  55. sle_accounts sle_accounts
  56. sle_taxnumber sle_taxnumber
  57. sle_telephone sle_telephone
  58. sle_address sle_address
  59. st_4 st_4
  60. cbx_ifnewsubid cbx_ifnewsubid
  61. end type
  62. type tabpage_step2 from userobject within tab_step
  63. end type
  64. type st_100 from statictext within tabpage_step2
  65. end type
  66. type sle_accsetname from singlelineedit within tabpage_step2
  67. end type
  68. type st_3 from statictext within tabpage_step2
  69. end type
  70. type sle_empid from singlelineedit within tabpage_step2
  71. end type
  72. type sle_accsetid from singlelineedit within tabpage_step2
  73. end type
  74. type st_26 from statictext within tabpage_step2
  75. end type
  76. type cb_addcredenceword from commandbutton within tabpage_step2
  77. end type
  78. type cb_delcredenceword from commandbutton within tabpage_step2
  79. end type
  80. type dw_credenceword_index from datawindow within tabpage_step2
  81. end type
  82. type st_27 from statictext within tabpage_step2
  83. end type
  84. type sle_empname from singlelineedit within tabpage_step2
  85. end type
  86. type sle_pwd from singlelineedit within tabpage_step2
  87. end type
  88. type st_34 from statictext within tabpage_step2
  89. end type
  90. type tabpage_step2 from userobject within tab_step
  91. st_100 st_100
  92. sle_accsetname sle_accsetname
  93. st_3 st_3
  94. sle_empid sle_empid
  95. sle_accsetid sle_accsetid
  96. st_26 st_26
  97. cb_addcredenceword cb_addcredenceword
  98. cb_delcredenceword cb_delcredenceword
  99. dw_credenceword_index dw_credenceword_index
  100. st_27 st_27
  101. sle_empname sle_empname
  102. sle_pwd sle_pwd
  103. st_34 st_34
  104. end type
  105. type tabpage_step3 from userobject within tab_step
  106. end type
  107. type gb_2 from groupbox within tabpage_step3
  108. end type
  109. type st_5 from statictext within tabpage_step3
  110. end type
  111. type st_6 from statictext within tabpage_step3
  112. end type
  113. type sle_code from singlelineedit within tabpage_step3
  114. end type
  115. type sle_name from singlelineedit within tabpage_step3
  116. end type
  117. type st_7 from statictext within tabpage_step3
  118. end type
  119. type st_8 from statictext within tabpage_step3
  120. end type
  121. type st_9 from statictext within tabpage_step3
  122. end type
  123. type st_10 from statictext within tabpage_step3
  124. end type
  125. type st_11 from statictext within tabpage_step3
  126. end type
  127. type tabpage_step3 from userobject within tab_step
  128. gb_2 gb_2
  129. st_5 st_5
  130. st_6 st_6
  131. sle_code sle_code
  132. sle_name sle_name
  133. st_7 st_7
  134. st_8 st_8
  135. st_9 st_9
  136. st_10 st_10
  137. st_11 st_11
  138. end type
  139. type tabpage_step4 from userobject within tab_step
  140. end type
  141. type gb_4 from groupbox within tabpage_step4
  142. end type
  143. type em_step1 from editmask within tabpage_step4
  144. end type
  145. type em_step2 from editmask within tabpage_step4
  146. end type
  147. type em_step3 from editmask within tabpage_step4
  148. end type
  149. type em_step4 from editmask within tabpage_step4
  150. end type
  151. type em_step5 from editmask within tabpage_step4
  152. end type
  153. type em_step6 from editmask within tabpage_step4
  154. end type
  155. type st_12 from statictext within tabpage_step4
  156. end type
  157. type st_13 from statictext within tabpage_step4
  158. end type
  159. type st_14 from statictext within tabpage_step4
  160. end type
  161. type st_15 from statictext within tabpage_step4
  162. end type
  163. type st_16 from statictext within tabpage_step4
  164. end type
  165. type st_17 from statictext within tabpage_step4
  166. end type
  167. type st_28 from statictext within tabpage_step4
  168. end type
  169. type st_29 from statictext within tabpage_step4
  170. end type
  171. type st_30 from statictext within tabpage_step4
  172. end type
  173. type st_31 from statictext within tabpage_step4
  174. end type
  175. type st_32 from statictext within tabpage_step4
  176. end type
  177. type st_33 from statictext within tabpage_step4
  178. end type
  179. type tabpage_step4 from userobject within tab_step
  180. gb_4 gb_4
  181. em_step1 em_step1
  182. em_step2 em_step2
  183. em_step3 em_step3
  184. em_step4 em_step4
  185. em_step5 em_step5
  186. em_step6 em_step6
  187. st_12 st_12
  188. st_13 st_13
  189. st_14 st_14
  190. st_15 st_15
  191. st_16 st_16
  192. st_17 st_17
  193. st_28 st_28
  194. st_29 st_29
  195. st_30 st_30
  196. st_31 st_31
  197. st_32 st_32
  198. st_33 st_33
  199. end type
  200. type tabpage_step5 from userobject within tab_step
  201. end type
  202. type rb_auto_calendar from radiobutton within tabpage_step5
  203. end type
  204. type rb_manu_calendar from radiobutton within tabpage_step5
  205. end type
  206. type dw_calendar from datawindow within tabpage_step5
  207. end type
  208. type st_18 from statictext within tabpage_step5
  209. end type
  210. type em_startyear from editmask within tabpage_step5
  211. end type
  212. type st_19 from statictext within tabpage_step5
  213. end type
  214. type ddlb_startyearmon from dropdownlistbox within tabpage_step5
  215. end type
  216. type cb_1 from commandbutton within tabpage_step5
  217. end type
  218. type tabpage_step5 from userobject within tab_step
  219. rb_auto_calendar rb_auto_calendar
  220. rb_manu_calendar rb_manu_calendar
  221. dw_calendar dw_calendar
  222. st_18 st_18
  223. em_startyear em_startyear
  224. st_19 st_19
  225. ddlb_startyearmon ddlb_startyearmon
  226. cb_1 cb_1
  227. end type
  228. type tab_step from tab within w_create_accset
  229. tabpage_step1 tabpage_step1
  230. tabpage_step2 tabpage_step2
  231. tabpage_step3 tabpage_step3
  232. tabpage_step4 tabpage_step4
  233. tabpage_step5 tabpage_step5
  234. end type
  235. type cb_create_accset from commandbutton within w_create_accset
  236. end type
  237. type st_1 from statictext within w_create_accset
  238. end type
  239. end forward
  240. global type w_create_accset from w_publ_base
  241. integer width = 2149
  242. integer height = 1348
  243. string title = "建帐向导"
  244. boolean minbox = false
  245. windowtype windowtype = response!
  246. long backcolor = 80269524
  247. tab_step tab_step
  248. cb_create_accset cb_create_accset
  249. st_1 st_1
  250. end type
  251. global w_create_accset w_create_accset
  252. type variables
  253. s_croptype s_sys_croptype[2]
  254. s_calendar s_sys_calendar[]
  255. s_subject_array ins_s_subject
  256. uo_accset uo_newaccset
  257. datastore ds_initsubject
  258. end variables
  259. forward prototypes
  260. public function integer wf_init_croptype ()
  261. public function integer wf_init_croptype_array ()
  262. public function integer wf_init_calendar ()
  263. public function integer wf_lock_calendar ()
  264. public function integer wf_get_subject (long arg_cropid, ref string arg_msg)
  265. public function integer wf_import_subject (ref string arg_msg)
  266. end prototypes
  267. public function integer wf_init_croptype ();//初始化企业类型
  268. Long i,array_int
  269. array_int = UpperBound(s_sys_croptype[])
  270. FOR i = 1 TO array_int
  271. tab_step.tabpage_step1.ddlb_cropid.AddItem('['+String(s_sys_croptype[i].croptypeid)+']'+s_sys_croptype[i].croptypename)
  272. NEXT
  273. tab_step.tabpage_step1.ddlb_cropid.AddItem('')
  274. tab_step.tabpage_step1.ddlb_cropid.Text = '['+String(s_sys_croptype[1].croptypeid)+']'+s_sys_croptype[1].croptypename
  275. RETURN 1
  276. //croptypeid
  277. //croptypename
  278. //waiziflag
  279. //deprflag
  280. //carrypl
  281. end function
  282. public function integer wf_init_croptype_array ();//初始化企业类型
  283. s_sys_croptype[1].croptypeid=1
  284. s_sys_croptype[1].croptypename='商品流通企业'
  285. s_sys_croptype[1].waiziflag=0
  286. s_sys_croptype[1].deprflag=1
  287. s_sys_croptype[1].carrypl=1
  288. s_sys_croptype[2].croptypeid=2
  289. s_sys_croptype[2].croptypename='工业企业'
  290. s_sys_croptype[2].waiziflag=0
  291. s_sys_croptype[2].deprflag=1
  292. s_sys_croptype[2].carrypl=1
  293. //s_sys_croptype[3].croptypeid=3
  294. //s_sys_croptype[3].croptypename='旅游饮食服务企业'
  295. //s_sys_croptype[3].waiziflag=0
  296. //s_sys_croptype[3].deprflag=1
  297. //s_sys_croptype[3].carrypl=1
  298. //
  299. //s_sys_croptype[4].croptypeid=4
  300. //s_sys_croptype[4].croptypename='交通运输企业'
  301. //s_sys_croptype[4].waiziflag=0
  302. //s_sys_croptype[4].deprflag=1
  303. //s_sys_croptype[4].carrypl=1
  304. //
  305. //s_sys_croptype[5].croptypeid=5
  306. //s_sys_croptype[5].croptypename='房地产开发企业'
  307. //s_sys_croptype[5].waiziflag=0
  308. //s_sys_croptype[5].deprflag=1
  309. //s_sys_croptype[5].carrypl=1
  310. //
  311. //s_sys_croptype[6].croptypeid=6
  312. //s_sys_croptype[6].croptypename='施工企业'
  313. //s_sys_croptype[6].waiziflag=0
  314. //s_sys_croptype[6].deprflag=1
  315. //s_sys_croptype[6].carrypl=1
  316. //
  317. //s_sys_croptype[7].croptypeid=7
  318. //s_sys_croptype[7].croptypename='农业企业'
  319. //s_sys_croptype[7].waiziflag=0
  320. //s_sys_croptype[7].deprflag=1
  321. //s_sys_croptype[7].carrypl=1
  322. //
  323. //s_sys_croptype[8].croptypeid=8
  324. //s_sys_croptype[8].croptypename='行政单位'
  325. //s_sys_croptype[8].waiziflag=0
  326. //s_sys_croptype[8].deprflag=0
  327. //s_sys_croptype[8].carrypl=0
  328. //
  329. //s_sys_croptype[9].croptypeid=9
  330. //s_sys_croptype[9].croptypename='事业单位'
  331. //s_sys_croptype[9].waiziflag=0
  332. //s_sys_croptype[9].deprflag=0
  333. //s_sys_croptype[9].carrypl=0
  334. //
  335. //s_sys_croptype[10].croptypeid=10
  336. //s_sys_croptype[10].croptypename='外商投资企业'
  337. //s_sys_croptype[10].waiziflag=1
  338. //s_sys_croptype[10].deprflag=1
  339. //s_sys_croptype[10].carrypl=1
  340. return 1
  341. //croptypeid
  342. //croptypename
  343. //waiziflag
  344. //deprflag
  345. //carrypl
  346. end function
  347. public function integer wf_init_calendar ();//初始化月份
  348. long i,array_int,li_row
  349. array_int=upperbound(s_sys_calendar[])
  350. tab_step.tabpage_step5.dw_calendar.reset()
  351. for i=1 to array_int
  352. li_row=tab_step.tabpage_step5.dw_calendar.insertrow(0)
  353. tab_step.tabpage_step5.dw_calendar.object.cmonth[li_row]=s_sys_calendar[i].cmonth
  354. tab_step.tabpage_step5.dw_calendar.object.sdate[li_row]=s_sys_calendar[i].sdate
  355. tab_step.tabpage_step5.dw_calendar.object.edate[li_row]=s_sys_calendar[i].edate
  356. next
  357. return 1
  358. //cmonth
  359. //sdate
  360. //edate
  361. end function
  362. public function integer wf_lock_calendar ();if tab_step.tabpage_step5.rb_auto_calendar.checked then
  363. tab_step.tabpage_step5.dw_calendar.enabled=false
  364. elseif tab_step.tabpage_step5.rb_manu_calendar.checked then
  365. tab_step.tabpage_step5.dw_calendar.enabled=true
  366. end if
  367. return 1
  368. end function
  369. public function integer wf_get_subject (long arg_cropid, ref string arg_msg);Long rslt = 1,itmxt = 0,i
  370. IF NOT tab_step.tabpage_step1.cbx_ifnewsubid.Checked THEN
  371. IF arg_cropid <= 0 THEN
  372. arg_msg = '企来所属行业错误'
  373. rslt = 0
  374. GOTO ext
  375. END IF
  376. END IF
  377. ds_initsubject.SetFilter('croptypeid = '+ String(arg_cropid))
  378. ds_initsubject.Filter( )
  379. IF ds_initsubject.RowCount() > 0 THEN
  380. FOR i = 1 TO ds_initsubject.RowCount()
  381. itmxt++
  382. ins_s_subject.croptypeid[itmxt] = ds_initsubject.Object.croptypeid[i]
  383. ins_s_subject.subid[itmxt] = ds_initsubject.Object.subid[i]
  384. ins_s_subject.Name[itmxt] = ds_initsubject.Object.Name[i]
  385. ins_s_subject.dcflag[itmxt] = ds_initsubject.Object.dcflag[i]
  386. ins_s_subject.detailflag[itmxt] = ds_initsubject.Object.detailflag[i]
  387. ins_s_subject.hswb[itmxt] = ds_initsubject.Object.hswb[i]
  388. ins_s_subject.moneyid[itmxt] = ds_initsubject.Object.moneyid[i]
  389. ins_s_subject.hsqty[itmxt] = ds_initsubject.Object.hsqty[i]
  390. ins_s_subject.unit[itmxt] = ds_initsubject.Object.unit[i]
  391. ins_s_subject.hsdept[itmxt] = ds_initsubject.Object.hsdept[i]
  392. ins_s_subject.hsemp[itmxt] = ds_initsubject.Object.hsemp[i]
  393. ins_s_subject.hsitem[itmxt] = ds_initsubject.Object.hsitem[i]
  394. ins_s_subject.hstrader[itmxt] = ds_initsubject.Object.hstrader[i]
  395. ins_s_subject.attrflag[itmxt] = ds_initsubject.Object.attrflag[i]
  396. ins_s_subject.specialcode[itmxt] = ds_initsubject.Object.specialcode[i]
  397. ins_s_subject.relevantid[itmxt] = ds_initsubject.Object.relevantid[i]
  398. IF IsNull(ds_initsubject.Object.relevantid[i] )THEN
  399. MessageBox("","")
  400. END IF
  401. NEXT
  402. END IF
  403. ext:
  404. RETURN rslt
  405. end function
  406. public function integer wf_import_subject (ref string arg_msg);String ls_filename
  407. ds_initsubject = CREATE datastore
  408. ds_initsubject.DataObject = "d_subjectdata_import"
  409. ds_initsubject.SetTransObject(sqlca)
  410. ls_filename = sys_cur_path +'initdata.dbf'
  411. IF NOT FileExists ( ls_filename ) THEN
  412. arg_msg = '初始化科目失败,没有找到科目文件'
  413. RETURN 0
  414. END IF
  415. IF ds_initsubject.ImportFile ( ls_filename ) <= 0 THEN
  416. arg_msg = '初始化科目失败,导入科目数据失败或文件中没有相应企业的科目'
  417. RETURN 0
  418. END IF
  419. RETURN 1
  420. end function
  421. on w_create_accset.create
  422. int iCurrent
  423. call super::create
  424. this.tab_step=create tab_step
  425. this.cb_create_accset=create cb_create_accset
  426. this.st_1=create st_1
  427. iCurrent=UpperBound(this.Control)
  428. this.Control[iCurrent+1]=this.tab_step
  429. this.Control[iCurrent+2]=this.cb_create_accset
  430. this.Control[iCurrent+3]=this.st_1
  431. end on
  432. on w_create_accset.destroy
  433. call super::destroy
  434. destroy(this.tab_step)
  435. destroy(this.cb_create_accset)
  436. destroy(this.st_1)
  437. end on
  438. event open;call super::open;String arg_msg = ''
  439. Long ins_accsetid
  440. ins_accsetid = f_sys_scidentity(0,"cw_accset","accsetid",arg_msg,TRUE,id_sqlca)
  441. IF ins_accsetid <= 0 THEN
  442. ROLLBACK;
  443. MessageBox(publ_operator, arg_msg)
  444. CLOSE(THIS)
  445. END IF
  446. IF wf_import_subject(arg_msg) = 0 THEN
  447. MessageBox(publ_operator, arg_msg)
  448. CLOSE(THIS)
  449. END IF
  450. //tabpage_step1
  451. wf_init_croptype_array()
  452. wf_init_croptype()
  453. //tabpage_step2
  454. Long li_row
  455. tab_step.tabpage_step2.sle_accsetid.Text = String(ins_accsetid)
  456. tab_step.tabpage_step2.dw_credenceword_index.SetTransObject(sqlca)
  457. //tabpage_step5
  458. Long arg_year
  459. arg_year = Long(tab_step.tabpage_step5.em_startyear.Text)
  460. f_init_calendar_array(arg_year,s_sys_calendar[])
  461. wf_init_calendar()
  462. wf_lock_calendar()
  463. //
  464. uo_newaccset = CREATE uo_accset
  465. end event
  466. event close;destroy uo_accset
  467. end event
  468. type cb_func from w_publ_base`cb_func within w_create_accset
  469. boolean visible = false
  470. integer x = 987
  471. integer y = 1108
  472. boolean enabled = false
  473. end type
  474. type cb_exit from w_publ_base`cb_exit within w_create_accset
  475. integer x = 1728
  476. integer y = 1104
  477. end type
  478. event cb_exit::clicked;closewithreturn(parent,0)
  479. end event
  480. type tab_step from tab within w_create_accset
  481. integer x = 41
  482. integer y = 24
  483. integer width = 2043
  484. integer height = 1052
  485. integer textsize = -9
  486. integer weight = 400
  487. fontcharset fontcharset = gb2312charset!
  488. fontpitch fontpitch = variable!
  489. string facename = "宋体"
  490. long backcolor = 80269524
  491. boolean raggedright = true
  492. integer selectedtab = 1
  493. tabpage_step1 tabpage_step1
  494. tabpage_step2 tabpage_step2
  495. tabpage_step3 tabpage_step3
  496. tabpage_step4 tabpage_step4
  497. tabpage_step5 tabpage_step5
  498. end type
  499. on tab_step.create
  500. this.tabpage_step1=create tabpage_step1
  501. this.tabpage_step2=create tabpage_step2
  502. this.tabpage_step3=create tabpage_step3
  503. this.tabpage_step4=create tabpage_step4
  504. this.tabpage_step5=create tabpage_step5
  505. this.Control[]={this.tabpage_step1,&
  506. this.tabpage_step2,&
  507. this.tabpage_step3,&
  508. this.tabpage_step4,&
  509. this.tabpage_step5}
  510. end on
  511. on tab_step.destroy
  512. destroy(this.tabpage_step1)
  513. destroy(this.tabpage_step2)
  514. destroy(this.tabpage_step3)
  515. destroy(this.tabpage_step4)
  516. destroy(this.tabpage_step5)
  517. end on
  518. type tabpage_step1 from userobject within tab_step
  519. integer x = 18
  520. integer y = 96
  521. integer width = 2007
  522. integer height = 940
  523. long backcolor = 80269524
  524. string text = "1:企业信息"
  525. long tabtextcolor = 33554432
  526. long tabbackcolor = 80269524
  527. long picturemaskcolor = 536870912
  528. st_2 st_2
  529. sle_cropname sle_cropname
  530. st_20 st_20
  531. st_21 st_21
  532. st_22 st_22
  533. st_23 st_23
  534. st_24 st_24
  535. st_25 st_25
  536. sle_lawperson sle_lawperson
  537. sle_bank sle_bank
  538. ddlb_cropid ddlb_cropid
  539. sle_accounts sle_accounts
  540. sle_taxnumber sle_taxnumber
  541. sle_telephone sle_telephone
  542. sle_address sle_address
  543. st_4 st_4
  544. cbx_ifnewsubid cbx_ifnewsubid
  545. end type
  546. on tabpage_step1.create
  547. this.st_2=create st_2
  548. this.sle_cropname=create sle_cropname
  549. this.st_20=create st_20
  550. this.st_21=create st_21
  551. this.st_22=create st_22
  552. this.st_23=create st_23
  553. this.st_24=create st_24
  554. this.st_25=create st_25
  555. this.sle_lawperson=create sle_lawperson
  556. this.sle_bank=create sle_bank
  557. this.ddlb_cropid=create ddlb_cropid
  558. this.sle_accounts=create sle_accounts
  559. this.sle_taxnumber=create sle_taxnumber
  560. this.sle_telephone=create sle_telephone
  561. this.sle_address=create sle_address
  562. this.st_4=create st_4
  563. this.cbx_ifnewsubid=create cbx_ifnewsubid
  564. this.Control[]={this.st_2,&
  565. this.sle_cropname,&
  566. this.st_20,&
  567. this.st_21,&
  568. this.st_22,&
  569. this.st_23,&
  570. this.st_24,&
  571. this.st_25,&
  572. this.sle_lawperson,&
  573. this.sle_bank,&
  574. this.ddlb_cropid,&
  575. this.sle_accounts,&
  576. this.sle_taxnumber,&
  577. this.sle_telephone,&
  578. this.sle_address,&
  579. this.st_4,&
  580. this.cbx_ifnewsubid}
  581. end on
  582. on tabpage_step1.destroy
  583. destroy(this.st_2)
  584. destroy(this.sle_cropname)
  585. destroy(this.st_20)
  586. destroy(this.st_21)
  587. destroy(this.st_22)
  588. destroy(this.st_23)
  589. destroy(this.st_24)
  590. destroy(this.st_25)
  591. destroy(this.sle_lawperson)
  592. destroy(this.sle_bank)
  593. destroy(this.ddlb_cropid)
  594. destroy(this.sle_accounts)
  595. destroy(this.sle_taxnumber)
  596. destroy(this.sle_telephone)
  597. destroy(this.sle_address)
  598. destroy(this.st_4)
  599. destroy(this.cbx_ifnewsubid)
  600. end on
  601. type st_2 from statictext within tabpage_step1
  602. integer x = 18
  603. integer y = 40
  604. integer width = 329
  605. integer height = 60
  606. boolean bringtotop = true
  607. integer textsize = -9
  608. integer weight = 400
  609. fontcharset fontcharset = gb2312charset!
  610. fontpitch fontpitch = variable!
  611. string facename = "宋体"
  612. long textcolor = 16711680
  613. long backcolor = 67108864
  614. boolean enabled = false
  615. string text = "企业名称:"
  616. alignment alignment = right!
  617. boolean focusrectangle = false
  618. end type
  619. type sle_cropname from singlelineedit within tabpage_step1
  620. integer x = 352
  621. integer y = 16
  622. integer width = 1586
  623. integer height = 92
  624. integer taborder = 40
  625. boolean bringtotop = true
  626. integer textsize = -9
  627. integer weight = 400
  628. fontcharset fontcharset = gb2312charset!
  629. fontpitch fontpitch = variable!
  630. string facename = "宋体"
  631. long textcolor = 33554432
  632. boolean autohscroll = false
  633. borderstyle borderstyle = stylelowered!
  634. end type
  635. type st_20 from statictext within tabpage_step1
  636. integer x = 18
  637. integer y = 156
  638. integer width = 329
  639. integer height = 60
  640. boolean bringtotop = true
  641. integer textsize = -9
  642. integer weight = 400
  643. fontcharset fontcharset = gb2312charset!
  644. fontpitch fontpitch = variable!
  645. string facename = "宋体"
  646. long textcolor = 33554432
  647. long backcolor = 67108864
  648. boolean enabled = false
  649. string text = "法 人:"
  650. alignment alignment = right!
  651. boolean focusrectangle = false
  652. end type
  653. type st_21 from statictext within tabpage_step1
  654. integer x = 18
  655. integer y = 272
  656. integer width = 329
  657. integer height = 60
  658. boolean bringtotop = true
  659. integer textsize = -9
  660. integer weight = 400
  661. fontcharset fontcharset = gb2312charset!
  662. fontpitch fontpitch = variable!
  663. string facename = "宋体"
  664. long textcolor = 33554432
  665. long backcolor = 67108864
  666. boolean enabled = false
  667. string text = "银 行:"
  668. alignment alignment = right!
  669. boolean focusrectangle = false
  670. end type
  671. type st_22 from statictext within tabpage_step1
  672. integer x = 18
  673. integer y = 388
  674. integer width = 329
  675. integer height = 60
  676. boolean bringtotop = true
  677. integer textsize = -9
  678. integer weight = 400
  679. fontcharset fontcharset = gb2312charset!
  680. fontpitch fontpitch = variable!
  681. string facename = "宋体"
  682. long textcolor = 33554432
  683. long backcolor = 67108864
  684. boolean enabled = false
  685. string text = "银行帐号:"
  686. alignment alignment = right!
  687. boolean focusrectangle = false
  688. end type
  689. type st_23 from statictext within tabpage_step1
  690. integer x = 18
  691. integer y = 504
  692. integer width = 329
  693. integer height = 60
  694. boolean bringtotop = true
  695. integer textsize = -9
  696. integer weight = 400
  697. fontcharset fontcharset = gb2312charset!
  698. fontpitch fontpitch = variable!
  699. string facename = "宋体"
  700. long textcolor = 33554432
  701. long backcolor = 67108864
  702. boolean enabled = false
  703. string text = "税 号:"
  704. alignment alignment = right!
  705. boolean focusrectangle = false
  706. end type
  707. type st_24 from statictext within tabpage_step1
  708. integer x = 18
  709. integer y = 620
  710. integer width = 329
  711. integer height = 60
  712. boolean bringtotop = true
  713. integer textsize = -9
  714. integer weight = 400
  715. fontcharset fontcharset = gb2312charset!
  716. fontpitch fontpitch = variable!
  717. string facename = "宋体"
  718. long textcolor = 33554432
  719. long backcolor = 67108864
  720. boolean enabled = false
  721. string text = "电 话:"
  722. alignment alignment = right!
  723. boolean focusrectangle = false
  724. end type
  725. type st_25 from statictext within tabpage_step1
  726. integer x = 18
  727. integer y = 736
  728. integer width = 329
  729. integer height = 60
  730. boolean bringtotop = true
  731. integer textsize = -9
  732. integer weight = 400
  733. fontcharset fontcharset = gb2312charset!
  734. fontpitch fontpitch = variable!
  735. string facename = "宋体"
  736. long textcolor = 33554432
  737. long backcolor = 67108864
  738. boolean enabled = false
  739. string text = "地 址:"
  740. alignment alignment = right!
  741. boolean focusrectangle = false
  742. end type
  743. type sle_lawperson from singlelineedit within tabpage_step1
  744. integer x = 352
  745. integer y = 132
  746. integer width = 681
  747. integer height = 92
  748. integer taborder = 40
  749. boolean bringtotop = true
  750. integer textsize = -9
  751. integer weight = 400
  752. fontcharset fontcharset = gb2312charset!
  753. fontpitch fontpitch = variable!
  754. string facename = "宋体"
  755. long textcolor = 33554432
  756. boolean autohscroll = false
  757. borderstyle borderstyle = stylelowered!
  758. end type
  759. type sle_bank from singlelineedit within tabpage_step1
  760. integer x = 352
  761. integer y = 248
  762. integer width = 686
  763. integer height = 92
  764. integer taborder = 50
  765. boolean bringtotop = true
  766. integer textsize = -9
  767. integer weight = 400
  768. fontcharset fontcharset = gb2312charset!
  769. fontpitch fontpitch = variable!
  770. string facename = "宋体"
  771. long textcolor = 33554432
  772. boolean autohscroll = false
  773. borderstyle borderstyle = stylelowered!
  774. end type
  775. type ddlb_cropid from dropdownlistbox within tabpage_step1
  776. integer x = 347
  777. integer y = 828
  778. integer width = 1006
  779. integer height = 688
  780. integer taborder = 50
  781. boolean bringtotop = true
  782. integer textsize = -9
  783. integer weight = 400
  784. fontcharset fontcharset = gb2312charset!
  785. fontpitch fontpitch = variable!
  786. string facename = "宋体"
  787. long textcolor = 33554432
  788. boolean sorted = false
  789. boolean vscrollbar = true
  790. borderstyle borderstyle = stylelowered!
  791. end type
  792. type sle_accounts from singlelineedit within tabpage_step1
  793. integer x = 352
  794. integer y = 364
  795. integer width = 1586
  796. integer height = 92
  797. integer taborder = 100
  798. boolean bringtotop = true
  799. integer textsize = -9
  800. integer weight = 400
  801. fontcharset fontcharset = gb2312charset!
  802. fontpitch fontpitch = variable!
  803. string facename = "宋体"
  804. long textcolor = 33554432
  805. boolean autohscroll = false
  806. borderstyle borderstyle = stylelowered!
  807. end type
  808. type sle_taxnumber from singlelineedit within tabpage_step1
  809. integer x = 352
  810. integer y = 480
  811. integer width = 1586
  812. integer height = 92
  813. integer taborder = 110
  814. boolean bringtotop = true
  815. integer textsize = -9
  816. integer weight = 400
  817. fontcharset fontcharset = gb2312charset!
  818. fontpitch fontpitch = variable!
  819. string facename = "宋体"
  820. long textcolor = 33554432
  821. boolean autohscroll = false
  822. borderstyle borderstyle = stylelowered!
  823. end type
  824. type sle_telephone from singlelineedit within tabpage_step1
  825. integer x = 352
  826. integer y = 596
  827. integer width = 1586
  828. integer height = 92
  829. integer taborder = 150
  830. boolean bringtotop = true
  831. integer textsize = -9
  832. integer weight = 400
  833. fontcharset fontcharset = gb2312charset!
  834. fontpitch fontpitch = variable!
  835. string facename = "宋体"
  836. long textcolor = 33554432
  837. boolean autohscroll = false
  838. borderstyle borderstyle = stylelowered!
  839. end type
  840. type sle_address from singlelineedit within tabpage_step1
  841. integer x = 352
  842. integer y = 712
  843. integer width = 1586
  844. integer height = 92
  845. integer taborder = 60
  846. boolean bringtotop = true
  847. integer textsize = -9
  848. integer weight = 400
  849. fontcharset fontcharset = gb2312charset!
  850. fontpitch fontpitch = variable!
  851. string facename = "宋体"
  852. long textcolor = 33554432
  853. boolean autohscroll = false
  854. borderstyle borderstyle = stylelowered!
  855. end type
  856. type st_4 from statictext within tabpage_step1
  857. integer x = 18
  858. integer y = 844
  859. integer width = 329
  860. integer height = 76
  861. boolean bringtotop = true
  862. integer textsize = -9
  863. integer weight = 400
  864. fontcharset fontcharset = gb2312charset!
  865. fontpitch fontpitch = variable!
  866. string facename = "宋体"
  867. long textcolor = 16711680
  868. long backcolor = 67108864
  869. boolean enabled = false
  870. string text = "所属行业:"
  871. alignment alignment = right!
  872. boolean focusrectangle = false
  873. end type
  874. type cbx_ifnewsubid from checkbox within tabpage_step1
  875. integer x = 1371
  876. integer y = 828
  877. integer width = 576
  878. integer height = 80
  879. boolean bringtotop = true
  880. integer textsize = -9
  881. integer weight = 400
  882. fontcharset fontcharset = gb2312charset!
  883. fontpitch fontpitch = variable!
  884. string facename = "宋体"
  885. long textcolor = 16711680
  886. long backcolor = 67108864
  887. string text = "使用新会计准则科目"
  888. end type
  889. event clicked;ddlb_cropid.Enabled = NOT THIS.Checked
  890. IF THIS.Checked THEN
  891. tab_step.tabpage_step1.ddlb_cropid.SelectItem(3)
  892. tab_step.tabpage_step4.em_step1.Text = '4'
  893. tab_step.tabpage_step4.em_step6.Text = '2'
  894. ELSE
  895. tab_step.tabpage_step4.em_step1.Text = '3'
  896. tab_step.tabpage_step4.em_step6.Text = '3'
  897. END IF
  898. end event
  899. type tabpage_step2 from userobject within tab_step
  900. integer x = 18
  901. integer y = 96
  902. integer width = 2007
  903. integer height = 940
  904. long backcolor = 80269524
  905. string text = "2:帐套参数"
  906. long tabtextcolor = 33554432
  907. long tabbackcolor = 80269524
  908. long picturemaskcolor = 536870912
  909. st_100 st_100
  910. sle_accsetname sle_accsetname
  911. st_3 st_3
  912. sle_empid sle_empid
  913. sle_accsetid sle_accsetid
  914. st_26 st_26
  915. cb_addcredenceword cb_addcredenceword
  916. cb_delcredenceword cb_delcredenceword
  917. dw_credenceword_index dw_credenceword_index
  918. st_27 st_27
  919. sle_empname sle_empname
  920. sle_pwd sle_pwd
  921. st_34 st_34
  922. end type
  923. on tabpage_step2.create
  924. this.st_100=create st_100
  925. this.sle_accsetname=create sle_accsetname
  926. this.st_3=create st_3
  927. this.sle_empid=create sle_empid
  928. this.sle_accsetid=create sle_accsetid
  929. this.st_26=create st_26
  930. this.cb_addcredenceword=create cb_addcredenceword
  931. this.cb_delcredenceword=create cb_delcredenceword
  932. this.dw_credenceword_index=create dw_credenceword_index
  933. this.st_27=create st_27
  934. this.sle_empname=create sle_empname
  935. this.sle_pwd=create sle_pwd
  936. this.st_34=create st_34
  937. this.Control[]={this.st_100,&
  938. this.sle_accsetname,&
  939. this.st_3,&
  940. this.sle_empid,&
  941. this.sle_accsetid,&
  942. this.st_26,&
  943. this.cb_addcredenceword,&
  944. this.cb_delcredenceword,&
  945. this.dw_credenceword_index,&
  946. this.st_27,&
  947. this.sle_empname,&
  948. this.sle_pwd,&
  949. this.st_34}
  950. end on
  951. on tabpage_step2.destroy
  952. destroy(this.st_100)
  953. destroy(this.sle_accsetname)
  954. destroy(this.st_3)
  955. destroy(this.sle_empid)
  956. destroy(this.sle_accsetid)
  957. destroy(this.st_26)
  958. destroy(this.cb_addcredenceword)
  959. destroy(this.cb_delcredenceword)
  960. destroy(this.dw_credenceword_index)
  961. destroy(this.st_27)
  962. destroy(this.sle_empname)
  963. destroy(this.sle_pwd)
  964. destroy(this.st_34)
  965. end on
  966. type st_100 from statictext within tabpage_step2
  967. integer x = 59
  968. integer y = 200
  969. integer width = 329
  970. integer height = 60
  971. integer textsize = -9
  972. integer weight = 400
  973. fontcharset fontcharset = gb2312charset!
  974. fontpitch fontpitch = variable!
  975. string facename = "宋体"
  976. long textcolor = 16711680
  977. long backcolor = 67108864
  978. boolean enabled = false
  979. string text = "帐套代号:"
  980. alignment alignment = right!
  981. boolean focusrectangle = false
  982. end type
  983. type sle_accsetname from singlelineedit within tabpage_step2
  984. integer x = 389
  985. integer y = 180
  986. integer width = 466
  987. integer height = 92
  988. integer taborder = 20
  989. boolean bringtotop = true
  990. integer textsize = -9
  991. integer weight = 400
  992. fontcharset fontcharset = gb2312charset!
  993. fontpitch fontpitch = variable!
  994. string facename = "宋体"
  995. long textcolor = 33554432
  996. boolean autohscroll = false
  997. borderstyle borderstyle = stylelowered!
  998. end type
  999. type st_3 from statictext within tabpage_step2
  1000. integer x = 9
  1001. integer y = 328
  1002. integer width = 379
  1003. integer height = 60
  1004. boolean bringtotop = true
  1005. integer textsize = -9
  1006. integer weight = 400
  1007. fontcharset fontcharset = gb2312charset!
  1008. fontpitch fontpitch = variable!
  1009. string facename = "宋体"
  1010. long textcolor = 33554432
  1011. long backcolor = 67108864
  1012. boolean enabled = false
  1013. string text = "管理员代号:"
  1014. alignment alignment = right!
  1015. boolean focusrectangle = false
  1016. end type
  1017. type sle_empid from singlelineedit within tabpage_step2
  1018. integer x = 389
  1019. integer y = 308
  1020. integer width = 466
  1021. integer height = 92
  1022. integer taborder = 40
  1023. boolean bringtotop = true
  1024. integer textsize = -9
  1025. integer weight = 400
  1026. fontcharset fontcharset = gb2312charset!
  1027. fontpitch fontpitch = variable!
  1028. string facename = "宋体"
  1029. long textcolor = 33554432
  1030. string text = "super"
  1031. boolean autohscroll = false
  1032. boolean displayonly = true
  1033. borderstyle borderstyle = stylelowered!
  1034. end type
  1035. type sle_accsetid from singlelineedit within tabpage_step2
  1036. integer x = 389
  1037. integer y = 56
  1038. integer width = 247
  1039. integer height = 92
  1040. integer taborder = 30
  1041. boolean bringtotop = true
  1042. integer textsize = -9
  1043. integer weight = 400
  1044. fontcharset fontcharset = gb2312charset!
  1045. fontpitch fontpitch = variable!
  1046. string facename = "宋体"
  1047. long textcolor = 33554432
  1048. boolean enabled = false
  1049. boolean autohscroll = false
  1050. borderstyle borderstyle = stylelowered!
  1051. end type
  1052. type st_26 from statictext within tabpage_step2
  1053. integer x = 151
  1054. integer y = 68
  1055. integer width = 233
  1056. integer height = 68
  1057. boolean bringtotop = true
  1058. integer textsize = -9
  1059. integer weight = 400
  1060. fontcharset fontcharset = gb2312charset!
  1061. fontpitch fontpitch = variable!
  1062. string facename = "宋体"
  1063. long backcolor = 67108864
  1064. boolean enabled = false
  1065. string text = "帐套ID:"
  1066. alignment alignment = right!
  1067. boolean focusrectangle = false
  1068. end type
  1069. type cb_addcredenceword from commandbutton within tabpage_step2
  1070. integer x = 1595
  1071. integer y = 56
  1072. integer width = 274
  1073. integer height = 96
  1074. integer taborder = 120
  1075. boolean bringtotop = true
  1076. integer textsize = -9
  1077. integer weight = 400
  1078. fontcharset fontcharset = gb2312charset!
  1079. fontpitch fontpitch = variable!
  1080. string facename = "宋体"
  1081. string text = "增加"
  1082. end type
  1083. event clicked;dw_credenceword_index.insertrow(0)
  1084. end event
  1085. type cb_delcredenceword from commandbutton within tabpage_step2
  1086. integer x = 1595
  1087. integer y = 152
  1088. integer width = 274
  1089. integer height = 96
  1090. integer taborder = 110
  1091. boolean bringtotop = true
  1092. integer textsize = -9
  1093. integer weight = 400
  1094. fontcharset fontcharset = gb2312charset!
  1095. fontpitch fontpitch = variable!
  1096. string facename = "宋体"
  1097. string text = "删除"
  1098. end type
  1099. event clicked;long li_row
  1100. li_row=dw_credenceword_index.getrow()
  1101. if li_row=0 then
  1102. messagebox(publ_operator,'没有可删除凭证字')
  1103. return
  1104. end if
  1105. dw_credenceword_index.deleterow(li_row)
  1106. end event
  1107. type dw_credenceword_index from datawindow within tabpage_step2
  1108. integer x = 992
  1109. integer y = 52
  1110. integer width = 594
  1111. integer height = 880
  1112. integer taborder = 130
  1113. boolean bringtotop = true
  1114. string dataobject = "dw_credenceword_index"
  1115. boolean vscrollbar = true
  1116. boolean livescroll = true
  1117. borderstyle borderstyle = stylelowered!
  1118. end type
  1119. event rowfocuschanged;if currentrow<=0 then return
  1120. this.selectrow(0,false)
  1121. this.selectrow(currentrow,true)
  1122. end event
  1123. type st_27 from statictext within tabpage_step2
  1124. integer x = 46
  1125. integer y = 584
  1126. integer width = 343
  1127. integer height = 60
  1128. boolean bringtotop = true
  1129. integer textsize = -9
  1130. integer weight = 400
  1131. fontcharset fontcharset = gb2312charset!
  1132. fontpitch fontpitch = variable!
  1133. string facename = "宋体"
  1134. long textcolor = 33554432
  1135. long backcolor = 67108864
  1136. boolean enabled = false
  1137. string text = "管理员名称:"
  1138. alignment alignment = right!
  1139. boolean focusrectangle = false
  1140. end type
  1141. type sle_empname from singlelineedit within tabpage_step2
  1142. integer x = 389
  1143. integer y = 564
  1144. integer width = 466
  1145. integer height = 92
  1146. integer taborder = 110
  1147. boolean bringtotop = true
  1148. integer textsize = -9
  1149. integer weight = 400
  1150. fontcharset fontcharset = gb2312charset!
  1151. fontpitch fontpitch = variable!
  1152. string facename = "宋体"
  1153. long textcolor = 33554432
  1154. string text = "帐管员"
  1155. boolean autohscroll = false
  1156. borderstyle borderstyle = stylelowered!
  1157. end type
  1158. type sle_pwd from singlelineedit within tabpage_step2
  1159. integer x = 389
  1160. integer y = 436
  1161. integer width = 466
  1162. integer height = 92
  1163. integer taborder = 110
  1164. boolean bringtotop = true
  1165. integer textsize = -9
  1166. integer weight = 400
  1167. fontcharset fontcharset = gb2312charset!
  1168. fontpitch fontpitch = variable!
  1169. string facename = "宋体"
  1170. long textcolor = 33554432
  1171. string text = "super"
  1172. boolean autohscroll = false
  1173. boolean displayonly = true
  1174. borderstyle borderstyle = stylelowered!
  1175. end type
  1176. type st_34 from statictext within tabpage_step2
  1177. integer x = 46
  1178. integer y = 456
  1179. integer width = 343
  1180. integer height = 60
  1181. boolean bringtotop = true
  1182. integer textsize = -9
  1183. integer weight = 400
  1184. fontcharset fontcharset = gb2312charset!
  1185. fontpitch fontpitch = variable!
  1186. string facename = "宋体"
  1187. long textcolor = 33554432
  1188. long backcolor = 67108864
  1189. boolean enabled = false
  1190. string text = "管理员密码:"
  1191. alignment alignment = right!
  1192. boolean focusrectangle = false
  1193. end type
  1194. type tabpage_step3 from userobject within tab_step
  1195. integer x = 18
  1196. integer y = 96
  1197. integer width = 2007
  1198. integer height = 940
  1199. long backcolor = 80269524
  1200. string text = "3:本位币"
  1201. long tabtextcolor = 33554432
  1202. long tabbackcolor = 80269524
  1203. long picturemaskcolor = 536870912
  1204. gb_2 gb_2
  1205. st_5 st_5
  1206. st_6 st_6
  1207. sle_code sle_code
  1208. sle_name sle_name
  1209. st_7 st_7
  1210. st_8 st_8
  1211. st_9 st_9
  1212. st_10 st_10
  1213. st_11 st_11
  1214. end type
  1215. on tabpage_step3.create
  1216. this.gb_2=create gb_2
  1217. this.st_5=create st_5
  1218. this.st_6=create st_6
  1219. this.sle_code=create sle_code
  1220. this.sle_name=create sle_name
  1221. this.st_7=create st_7
  1222. this.st_8=create st_8
  1223. this.st_9=create st_9
  1224. this.st_10=create st_10
  1225. this.st_11=create st_11
  1226. this.Control[]={this.gb_2,&
  1227. this.st_5,&
  1228. this.st_6,&
  1229. this.sle_code,&
  1230. this.sle_name,&
  1231. this.st_7,&
  1232. this.st_8,&
  1233. this.st_9,&
  1234. this.st_10,&
  1235. this.st_11}
  1236. end on
  1237. on tabpage_step3.destroy
  1238. destroy(this.gb_2)
  1239. destroy(this.st_5)
  1240. destroy(this.st_6)
  1241. destroy(this.sle_code)
  1242. destroy(this.sle_name)
  1243. destroy(this.st_7)
  1244. destroy(this.st_8)
  1245. destroy(this.st_9)
  1246. destroy(this.st_10)
  1247. destroy(this.st_11)
  1248. end on
  1249. type gb_2 from groupbox within tabpage_step3
  1250. integer x = 224
  1251. integer y = 284
  1252. integer width = 1349
  1253. integer height = 496
  1254. integer taborder = 20
  1255. integer textsize = -9
  1256. integer weight = 400
  1257. fontcharset fontcharset = gb2312charset!
  1258. fontpitch fontpitch = variable!
  1259. string facename = "宋体"
  1260. long textcolor = 16711680
  1261. long backcolor = 67108864
  1262. end type
  1263. type st_5 from statictext within tabpage_step3
  1264. integer x = 233
  1265. integer y = 160
  1266. integer width = 288
  1267. integer height = 60
  1268. boolean bringtotop = true
  1269. integer textsize = -9
  1270. integer weight = 400
  1271. fontcharset fontcharset = gb2312charset!
  1272. fontpitch fontpitch = variable!
  1273. string facename = "宋体"
  1274. long textcolor = 16711680
  1275. long backcolor = 67108864
  1276. boolean enabled = false
  1277. string text = "货币符号:"
  1278. alignment alignment = right!
  1279. boolean focusrectangle = false
  1280. end type
  1281. type st_6 from statictext within tabpage_step3
  1282. integer x = 846
  1283. integer y = 156
  1284. integer width = 288
  1285. integer height = 64
  1286. boolean bringtotop = true
  1287. integer textsize = -9
  1288. integer weight = 400
  1289. fontcharset fontcharset = gb2312charset!
  1290. fontpitch fontpitch = variable!
  1291. string facename = "宋体"
  1292. long textcolor = 16711680
  1293. long backcolor = 67108864
  1294. boolean enabled = false
  1295. string text = "货币名称:"
  1296. alignment alignment = right!
  1297. boolean focusrectangle = false
  1298. end type
  1299. type sle_code from singlelineedit within tabpage_step3
  1300. integer x = 517
  1301. integer y = 140
  1302. integer width = 306
  1303. integer height = 92
  1304. integer taborder = 20
  1305. boolean bringtotop = true
  1306. integer textsize = -9
  1307. integer weight = 400
  1308. fontcharset fontcharset = gb2312charset!
  1309. fontpitch fontpitch = variable!
  1310. string facename = "宋体"
  1311. long textcolor = 33554432
  1312. string text = "RMB"
  1313. boolean autohscroll = false
  1314. borderstyle borderstyle = stylelowered!
  1315. end type
  1316. type sle_name from singlelineedit within tabpage_step3
  1317. integer x = 1129
  1318. integer y = 140
  1319. integer width = 416
  1320. integer height = 92
  1321. integer taborder = 30
  1322. boolean bringtotop = true
  1323. integer textsize = -9
  1324. integer weight = 400
  1325. fontcharset fontcharset = gb2312charset!
  1326. fontpitch fontpitch = variable!
  1327. string facename = "宋体"
  1328. long textcolor = 33554432
  1329. string text = "人民币"
  1330. boolean autohscroll = false
  1331. borderstyle borderstyle = stylelowered!
  1332. end type
  1333. type st_7 from statictext within tabpage_step3
  1334. integer x = 1623
  1335. integer y = 324
  1336. integer width = 1157
  1337. integer height = 76
  1338. boolean bringtotop = true
  1339. integer textsize = -9
  1340. integer weight = 400
  1341. fontcharset fontcharset = gb2312charset!
  1342. fontpitch fontpitch = variable!
  1343. string facename = "宋体"
  1344. long textcolor = 33554432
  1345. long backcolor = 67108864
  1346. boolean enabled = false
  1347. boolean focusrectangle = false
  1348. end type
  1349. type st_8 from statictext within tabpage_step3
  1350. integer x = 329
  1351. integer y = 424
  1352. integer width = 1157
  1353. integer height = 56
  1354. boolean bringtotop = true
  1355. integer textsize = -9
  1356. integer weight = 400
  1357. fontcharset fontcharset = gb2312charset!
  1358. fontpitch fontpitch = variable!
  1359. string facename = "宋体"
  1360. long textcolor = 33554432
  1361. long backcolor = 67108864
  1362. boolean enabled = false
  1363. string text = "大多数企业一般以人民币为记帐本位币,但"
  1364. alignment alignment = right!
  1365. boolean focusrectangle = false
  1366. end type
  1367. type st_9 from statictext within tabpage_step3
  1368. integer x = 329
  1369. integer y = 500
  1370. integer width = 1157
  1371. integer height = 56
  1372. boolean bringtotop = true
  1373. integer textsize = -9
  1374. integer weight = 400
  1375. fontcharset fontcharset = gb2312charset!
  1376. fontpitch fontpitch = variable!
  1377. string facename = "宋体"
  1378. long textcolor = 33554432
  1379. long backcolor = 67108864
  1380. boolean enabled = false
  1381. string text = "对于外币业务较多的企业,也可以以某一种外币"
  1382. boolean focusrectangle = false
  1383. end type
  1384. type st_10 from statictext within tabpage_step3
  1385. integer x = 329
  1386. integer y = 576
  1387. integer width = 1157
  1388. integer height = 56
  1389. boolean bringtotop = true
  1390. integer textsize = -9
  1391. integer weight = 400
  1392. fontcharset fontcharset = gb2312charset!
  1393. fontpitch fontpitch = variable!
  1394. string facename = "宋体"
  1395. long textcolor = 33554432
  1396. long backcolor = 67108864
  1397. boolean enabled = false
  1398. string text = "作为记帐本位币。企业的记帐本位币一经确定,"
  1399. boolean focusrectangle = false
  1400. end type
  1401. type st_11 from statictext within tabpage_step3
  1402. integer x = 329
  1403. integer y = 652
  1404. integer width = 1157
  1405. integer height = 56
  1406. boolean bringtotop = true
  1407. integer textsize = -9
  1408. integer weight = 400
  1409. fontcharset fontcharset = gb2312charset!
  1410. fontpitch fontpitch = variable!
  1411. string facename = "宋体"
  1412. long textcolor = 33554432
  1413. long backcolor = 67108864
  1414. boolean enabled = false
  1415. string text = "就不可以随意变更。"
  1416. boolean focusrectangle = false
  1417. end type
  1418. type tabpage_step4 from userobject within tab_step
  1419. integer x = 18
  1420. integer y = 96
  1421. integer width = 2007
  1422. integer height = 940
  1423. long backcolor = 80269524
  1424. string text = "4:科目长度"
  1425. long tabtextcolor = 33554432
  1426. long tabbackcolor = 80269524
  1427. long picturemaskcolor = 536870912
  1428. gb_4 gb_4
  1429. em_step1 em_step1
  1430. em_step2 em_step2
  1431. em_step3 em_step3
  1432. em_step4 em_step4
  1433. em_step5 em_step5
  1434. em_step6 em_step6
  1435. st_12 st_12
  1436. st_13 st_13
  1437. st_14 st_14
  1438. st_15 st_15
  1439. st_16 st_16
  1440. st_17 st_17
  1441. st_28 st_28
  1442. st_29 st_29
  1443. st_30 st_30
  1444. st_31 st_31
  1445. st_32 st_32
  1446. st_33 st_33
  1447. end type
  1448. on tabpage_step4.create
  1449. this.gb_4=create gb_4
  1450. this.em_step1=create em_step1
  1451. this.em_step2=create em_step2
  1452. this.em_step3=create em_step3
  1453. this.em_step4=create em_step4
  1454. this.em_step5=create em_step5
  1455. this.em_step6=create em_step6
  1456. this.st_12=create st_12
  1457. this.st_13=create st_13
  1458. this.st_14=create st_14
  1459. this.st_15=create st_15
  1460. this.st_16=create st_16
  1461. this.st_17=create st_17
  1462. this.st_28=create st_28
  1463. this.st_29=create st_29
  1464. this.st_30=create st_30
  1465. this.st_31=create st_31
  1466. this.st_32=create st_32
  1467. this.st_33=create st_33
  1468. this.Control[]={this.gb_4,&
  1469. this.em_step1,&
  1470. this.em_step2,&
  1471. this.em_step3,&
  1472. this.em_step4,&
  1473. this.em_step5,&
  1474. this.em_step6,&
  1475. this.st_12,&
  1476. this.st_13,&
  1477. this.st_14,&
  1478. this.st_15,&
  1479. this.st_16,&
  1480. this.st_17,&
  1481. this.st_28,&
  1482. this.st_29,&
  1483. this.st_30,&
  1484. this.st_31,&
  1485. this.st_32,&
  1486. this.st_33}
  1487. end on
  1488. on tabpage_step4.destroy
  1489. destroy(this.gb_4)
  1490. destroy(this.em_step1)
  1491. destroy(this.em_step2)
  1492. destroy(this.em_step3)
  1493. destroy(this.em_step4)
  1494. destroy(this.em_step5)
  1495. destroy(this.em_step6)
  1496. destroy(this.st_12)
  1497. destroy(this.st_13)
  1498. destroy(this.st_14)
  1499. destroy(this.st_15)
  1500. destroy(this.st_16)
  1501. destroy(this.st_17)
  1502. destroy(this.st_28)
  1503. destroy(this.st_29)
  1504. destroy(this.st_30)
  1505. destroy(this.st_31)
  1506. destroy(this.st_32)
  1507. destroy(this.st_33)
  1508. end on
  1509. type gb_4 from groupbox within tabpage_step4
  1510. integer x = 965
  1511. integer y = 92
  1512. integer width = 773
  1513. integer height = 724
  1514. integer taborder = 60
  1515. integer textsize = -9
  1516. integer weight = 400
  1517. fontcharset fontcharset = gb2312charset!
  1518. fontpitch fontpitch = variable!
  1519. string facename = "宋体"
  1520. long textcolor = 16711680
  1521. long backcolor = 67108864
  1522. end type
  1523. type em_step1 from editmask within tabpage_step4
  1524. integer x = 507
  1525. integer y = 132
  1526. integer width = 224
  1527. integer height = 84
  1528. integer taborder = 70
  1529. boolean bringtotop = true
  1530. integer textsize = -9
  1531. integer weight = 400
  1532. fontcharset fontcharset = gb2312charset!
  1533. fontpitch fontpitch = variable!
  1534. string facename = "宋体"
  1535. long textcolor = 33554432
  1536. boolean enabled = false
  1537. string text = "3"
  1538. alignment alignment = right!
  1539. boolean displayonly = true
  1540. borderstyle borderstyle = stylelowered!
  1541. string mask = "0"
  1542. boolean spin = true
  1543. string minmax = "1~~6"
  1544. end type
  1545. type em_step2 from editmask within tabpage_step4
  1546. integer x = 507
  1547. integer y = 244
  1548. integer width = 224
  1549. integer height = 84
  1550. integer taborder = 80
  1551. boolean bringtotop = true
  1552. integer textsize = -9
  1553. integer weight = 400
  1554. fontcharset fontcharset = gb2312charset!
  1555. fontpitch fontpitch = variable!
  1556. string facename = "宋体"
  1557. long textcolor = 33554432
  1558. string text = "3"
  1559. alignment alignment = right!
  1560. borderstyle borderstyle = stylelowered!
  1561. string mask = "0"
  1562. boolean spin = true
  1563. string minmax = "1~~6"
  1564. end type
  1565. type em_step3 from editmask within tabpage_step4
  1566. integer x = 507
  1567. integer y = 356
  1568. integer width = 224
  1569. integer height = 84
  1570. integer taborder = 90
  1571. boolean bringtotop = true
  1572. integer textsize = -9
  1573. integer weight = 400
  1574. fontcharset fontcharset = gb2312charset!
  1575. fontpitch fontpitch = variable!
  1576. string facename = "宋体"
  1577. long textcolor = 33554432
  1578. string text = "3"
  1579. alignment alignment = right!
  1580. borderstyle borderstyle = stylelowered!
  1581. string mask = "0"
  1582. boolean spin = true
  1583. string minmax = "1~~6"
  1584. end type
  1585. type em_step4 from editmask within tabpage_step4
  1586. integer x = 507
  1587. integer y = 468
  1588. integer width = 224
  1589. integer height = 84
  1590. integer taborder = 100
  1591. boolean bringtotop = true
  1592. integer textsize = -9
  1593. integer weight = 400
  1594. fontcharset fontcharset = gb2312charset!
  1595. fontpitch fontpitch = variable!
  1596. string facename = "宋体"
  1597. long textcolor = 33554432
  1598. string text = "3"
  1599. alignment alignment = right!
  1600. borderstyle borderstyle = stylelowered!
  1601. string mask = "0"
  1602. boolean spin = true
  1603. string minmax = "1~~6"
  1604. end type
  1605. type em_step5 from editmask within tabpage_step4
  1606. integer x = 507
  1607. integer y = 580
  1608. integer width = 224
  1609. integer height = 84
  1610. integer taborder = 110
  1611. boolean bringtotop = true
  1612. integer textsize = -9
  1613. integer weight = 400
  1614. fontcharset fontcharset = gb2312charset!
  1615. fontpitch fontpitch = variable!
  1616. string facename = "宋体"
  1617. long textcolor = 33554432
  1618. string text = "3"
  1619. alignment alignment = right!
  1620. borderstyle borderstyle = stylelowered!
  1621. string mask = "0"
  1622. boolean spin = true
  1623. string minmax = "1~~6"
  1624. end type
  1625. type em_step6 from editmask within tabpage_step4
  1626. integer x = 507
  1627. integer y = 692
  1628. integer width = 224
  1629. integer height = 84
  1630. integer taborder = 120
  1631. boolean bringtotop = true
  1632. integer textsize = -9
  1633. integer weight = 400
  1634. fontcharset fontcharset = gb2312charset!
  1635. fontpitch fontpitch = variable!
  1636. string facename = "宋体"
  1637. long textcolor = 33554432
  1638. string text = "3"
  1639. alignment alignment = right!
  1640. borderstyle borderstyle = stylelowered!
  1641. string mask = "0"
  1642. boolean spin = true
  1643. string minmax = "1~~6"
  1644. end type
  1645. type st_12 from statictext within tabpage_step4
  1646. integer x = 210
  1647. integer y = 144
  1648. integer width = 288
  1649. integer height = 64
  1650. boolean bringtotop = true
  1651. integer textsize = -9
  1652. integer weight = 400
  1653. fontcharset fontcharset = gb2312charset!
  1654. fontpitch fontpitch = variable!
  1655. string facename = "宋体"
  1656. long textcolor = 16711680
  1657. long backcolor = 67108864
  1658. boolean enabled = false
  1659. string text = "一级长度:"
  1660. alignment alignment = right!
  1661. boolean focusrectangle = false
  1662. end type
  1663. type st_13 from statictext within tabpage_step4
  1664. integer x = 210
  1665. integer y = 256
  1666. integer width = 288
  1667. integer height = 64
  1668. boolean bringtotop = true
  1669. integer textsize = -9
  1670. integer weight = 400
  1671. fontcharset fontcharset = gb2312charset!
  1672. fontpitch fontpitch = variable!
  1673. string facename = "宋体"
  1674. long textcolor = 16711680
  1675. long backcolor = 67108864
  1676. boolean enabled = false
  1677. string text = "二级长度:"
  1678. alignment alignment = right!
  1679. boolean focusrectangle = false
  1680. end type
  1681. type st_14 from statictext within tabpage_step4
  1682. integer x = 210
  1683. integer y = 368
  1684. integer width = 288
  1685. integer height = 64
  1686. boolean bringtotop = true
  1687. integer textsize = -9
  1688. integer weight = 400
  1689. fontcharset fontcharset = gb2312charset!
  1690. fontpitch fontpitch = variable!
  1691. string facename = "宋体"
  1692. long textcolor = 16711680
  1693. long backcolor = 67108864
  1694. boolean enabled = false
  1695. string text = "三级长度:"
  1696. alignment alignment = right!
  1697. boolean focusrectangle = false
  1698. end type
  1699. type st_15 from statictext within tabpage_step4
  1700. integer x = 210
  1701. integer y = 480
  1702. integer width = 288
  1703. integer height = 64
  1704. boolean bringtotop = true
  1705. integer textsize = -9
  1706. integer weight = 400
  1707. fontcharset fontcharset = gb2312charset!
  1708. fontpitch fontpitch = variable!
  1709. string facename = "宋体"
  1710. long textcolor = 16711680
  1711. long backcolor = 67108864
  1712. boolean enabled = false
  1713. string text = "四级长度:"
  1714. alignment alignment = right!
  1715. boolean focusrectangle = false
  1716. end type
  1717. type st_16 from statictext within tabpage_step4
  1718. integer x = 210
  1719. integer y = 592
  1720. integer width = 288
  1721. integer height = 64
  1722. boolean bringtotop = true
  1723. integer textsize = -9
  1724. integer weight = 400
  1725. fontcharset fontcharset = gb2312charset!
  1726. fontpitch fontpitch = variable!
  1727. string facename = "宋体"
  1728. long textcolor = 16711680
  1729. long backcolor = 67108864
  1730. boolean enabled = false
  1731. string text = "五级长度:"
  1732. alignment alignment = right!
  1733. boolean focusrectangle = false
  1734. end type
  1735. type st_17 from statictext within tabpage_step4
  1736. integer x = 210
  1737. integer y = 704
  1738. integer width = 288
  1739. integer height = 64
  1740. boolean bringtotop = true
  1741. integer textsize = -9
  1742. integer weight = 400
  1743. fontcharset fontcharset = gb2312charset!
  1744. fontpitch fontpitch = variable!
  1745. string facename = "宋体"
  1746. long textcolor = 16711680
  1747. long backcolor = 67108864
  1748. boolean enabled = false
  1749. string text = "六级长度:"
  1750. alignment alignment = right!
  1751. boolean focusrectangle = false
  1752. end type
  1753. type st_28 from statictext within tabpage_step4
  1754. integer x = 1024
  1755. integer y = 180
  1756. integer width = 658
  1757. integer height = 68
  1758. boolean bringtotop = true
  1759. integer textsize = -9
  1760. integer weight = 400
  1761. fontcharset fontcharset = gb2312charset!
  1762. fontpitch fontpitch = variable!
  1763. string facename = "宋体"
  1764. long textcolor = 33554432
  1765. long backcolor = 67108864
  1766. boolean enabled = false
  1767. string text = "本系统提供最多六级的"
  1768. alignment alignment = right!
  1769. boolean focusrectangle = false
  1770. end type
  1771. type st_29 from statictext within tabpage_step4
  1772. integer x = 1024
  1773. integer y = 276
  1774. integer width = 658
  1775. integer height = 68
  1776. boolean bringtotop = true
  1777. integer textsize = -9
  1778. integer weight = 400
  1779. fontcharset fontcharset = gb2312charset!
  1780. fontpitch fontpitch = variable!
  1781. string facename = "宋体"
  1782. long textcolor = 33554432
  1783. long backcolor = 67108864
  1784. boolean enabled = false
  1785. string text = "会计科目,第一级科目由系"
  1786. alignment alignment = right!
  1787. boolean focusrectangle = false
  1788. end type
  1789. type st_30 from statictext within tabpage_step4
  1790. integer x = 1024
  1791. integer y = 372
  1792. integer width = 658
  1793. integer height = 68
  1794. boolean bringtotop = true
  1795. integer textsize = -9
  1796. integer weight = 400
  1797. fontcharset fontcharset = gb2312charset!
  1798. fontpitch fontpitch = variable!
  1799. string facename = "宋体"
  1800. long textcolor = 33554432
  1801. long backcolor = 67108864
  1802. boolean enabled = false
  1803. string text = "统根据企来类别定义,其它"
  1804. alignment alignment = right!
  1805. boolean focusrectangle = false
  1806. end type
  1807. type st_31 from statictext within tabpage_step4
  1808. integer x = 1024
  1809. integer y = 468
  1810. integer width = 658
  1811. integer height = 68
  1812. boolean bringtotop = true
  1813. integer textsize = -9
  1814. integer weight = 400
  1815. fontcharset fontcharset = gb2312charset!
  1816. fontpitch fontpitch = variable!
  1817. string facename = "宋体"
  1818. long textcolor = 33554432
  1819. long backcolor = 67108864
  1820. boolean enabled = false
  1821. string text = "各级科目由用户根据企业实"
  1822. alignment alignment = right!
  1823. boolean focusrectangle = false
  1824. end type
  1825. type st_32 from statictext within tabpage_step4
  1826. integer x = 1024
  1827. integer y = 564
  1828. integer width = 658
  1829. integer height = 68
  1830. boolean bringtotop = true
  1831. integer textsize = -9
  1832. integer weight = 400
  1833. fontcharset fontcharset = gb2312charset!
  1834. fontpitch fontpitch = variable!
  1835. string facename = "宋体"
  1836. long textcolor = 33554432
  1837. long backcolor = 67108864
  1838. boolean enabled = false
  1839. string text = "际情况来定义长度,科目编"
  1840. alignment alignment = right!
  1841. boolean focusrectangle = false
  1842. end type
  1843. type st_33 from statictext within tabpage_step4
  1844. integer x = 1024
  1845. integer y = 660
  1846. integer width = 658
  1847. integer height = 68
  1848. boolean bringtotop = true
  1849. integer textsize = -9
  1850. integer weight = 400
  1851. fontcharset fontcharset = gb2312charset!
  1852. fontpitch fontpitch = variable!
  1853. string facename = "宋体"
  1854. long textcolor = 33554432
  1855. long backcolor = 67108864
  1856. boolean enabled = false
  1857. string text = "码总长度不能超过18位。"
  1858. boolean focusrectangle = false
  1859. end type
  1860. type tabpage_step5 from userobject within tab_step
  1861. integer x = 18
  1862. integer y = 96
  1863. integer width = 2007
  1864. integer height = 940
  1865. long backcolor = 80269524
  1866. string text = "5:会计月历"
  1867. long tabtextcolor = 33554432
  1868. long tabbackcolor = 80269524
  1869. long picturemaskcolor = 536870912
  1870. rb_auto_calendar rb_auto_calendar
  1871. rb_manu_calendar rb_manu_calendar
  1872. dw_calendar dw_calendar
  1873. st_18 st_18
  1874. em_startyear em_startyear
  1875. st_19 st_19
  1876. ddlb_startyearmon ddlb_startyearmon
  1877. cb_1 cb_1
  1878. end type
  1879. on tabpage_step5.create
  1880. this.rb_auto_calendar=create rb_auto_calendar
  1881. this.rb_manu_calendar=create rb_manu_calendar
  1882. this.dw_calendar=create dw_calendar
  1883. this.st_18=create st_18
  1884. this.em_startyear=create em_startyear
  1885. this.st_19=create st_19
  1886. this.ddlb_startyearmon=create ddlb_startyearmon
  1887. this.cb_1=create cb_1
  1888. this.Control[]={this.rb_auto_calendar,&
  1889. this.rb_manu_calendar,&
  1890. this.dw_calendar,&
  1891. this.st_18,&
  1892. this.em_startyear,&
  1893. this.st_19,&
  1894. this.ddlb_startyearmon,&
  1895. this.cb_1}
  1896. end on
  1897. on tabpage_step5.destroy
  1898. destroy(this.rb_auto_calendar)
  1899. destroy(this.rb_manu_calendar)
  1900. destroy(this.dw_calendar)
  1901. destroy(this.st_18)
  1902. destroy(this.em_startyear)
  1903. destroy(this.st_19)
  1904. destroy(this.ddlb_startyearmon)
  1905. destroy(this.cb_1)
  1906. end on
  1907. type rb_auto_calendar from radiobutton within tabpage_step5
  1908. integer x = 398
  1909. integer y = 108
  1910. integer width = 302
  1911. integer height = 76
  1912. boolean bringtotop = true
  1913. integer textsize = -9
  1914. integer weight = 400
  1915. fontcharset fontcharset = gb2312charset!
  1916. fontpitch fontpitch = variable!
  1917. string facename = "宋体"
  1918. long textcolor = 33554432
  1919. long backcolor = 67108864
  1920. string text = "自然月分"
  1921. boolean checked = true
  1922. end type
  1923. event clicked;wf_lock_calendar()
  1924. end event
  1925. type rb_manu_calendar from radiobutton within tabpage_step5
  1926. integer x = 398
  1927. integer y = 220
  1928. integer width = 302
  1929. integer height = 76
  1930. boolean bringtotop = true
  1931. integer textsize = -9
  1932. integer weight = 400
  1933. fontcharset fontcharset = gb2312charset!
  1934. fontpitch fontpitch = variable!
  1935. string facename = "宋体"
  1936. long textcolor = 33554432
  1937. long backcolor = 67108864
  1938. string text = "用户定义"
  1939. end type
  1940. event clicked;wf_lock_calendar()
  1941. end event
  1942. type dw_calendar from datawindow within tabpage_step5
  1943. integer x = 955
  1944. integer y = 8
  1945. integer width = 1024
  1946. integer height = 924
  1947. integer taborder = 130
  1948. boolean bringtotop = true
  1949. string dataobject = "dw_sys_calendar_index"
  1950. boolean vscrollbar = true
  1951. boolean livescroll = true
  1952. borderstyle borderstyle = stylelowered!
  1953. end type
  1954. event rowfocuschanged;IF currentrow > 0 THEN
  1955. THIS.SelectRow(0,FALSE)
  1956. THIS.SelectRow(currentrow,TRUE)
  1957. END IF
  1958. end event
  1959. type st_18 from statictext within tabpage_step5
  1960. integer x = 411
  1961. integer y = 432
  1962. integer width = 288
  1963. integer height = 76
  1964. boolean bringtotop = true
  1965. integer textsize = -9
  1966. integer weight = 400
  1967. fontcharset fontcharset = gb2312charset!
  1968. fontpitch fontpitch = variable!
  1969. string facename = "宋体"
  1970. long textcolor = 16711680
  1971. long backcolor = 67108864
  1972. boolean enabled = false
  1973. string text = "启用年度:"
  1974. alignment alignment = right!
  1975. boolean focusrectangle = false
  1976. end type
  1977. type em_startyear from editmask within tabpage_step5
  1978. integer x = 421
  1979. integer y = 500
  1980. integer width = 279
  1981. integer height = 84
  1982. integer taborder = 130
  1983. boolean bringtotop = true
  1984. integer textsize = -9
  1985. integer weight = 400
  1986. fontcharset fontcharset = gb2312charset!
  1987. fontpitch fontpitch = variable!
  1988. string facename = "宋体"
  1989. long textcolor = 33554432
  1990. alignment alignment = right!
  1991. borderstyle borderstyle = stylelowered!
  1992. string mask = "0000"
  1993. boolean spin = true
  1994. end type
  1995. event constructor;this.text=string(year(today()))
  1996. end event
  1997. event modified;f_init_calendar_array(long(this.text),s_sys_calendar[])
  1998. wf_init_calendar()
  1999. wf_lock_calendar()
  2000. end event
  2001. type st_19 from statictext within tabpage_step5
  2002. integer x = 411
  2003. integer y = 656
  2004. integer width = 288
  2005. integer height = 76
  2006. boolean bringtotop = true
  2007. integer textsize = -9
  2008. integer weight = 400
  2009. fontcharset fontcharset = gb2312charset!
  2010. fontpitch fontpitch = variable!
  2011. string facename = "宋体"
  2012. long textcolor = 16711680
  2013. long backcolor = 67108864
  2014. boolean enabled = false
  2015. string text = "启用期间:"
  2016. alignment alignment = right!
  2017. boolean focusrectangle = false
  2018. end type
  2019. type ddlb_startyearmon from dropdownlistbox within tabpage_step5
  2020. integer x = 421
  2021. integer y = 720
  2022. integer width = 279
  2023. integer height = 740
  2024. integer taborder = 140
  2025. boolean bringtotop = true
  2026. integer textsize = -9
  2027. integer weight = 400
  2028. fontcharset fontcharset = gb2312charset!
  2029. fontpitch fontpitch = variable!
  2030. string facename = "宋体"
  2031. long textcolor = 33554432
  2032. string text = "1"
  2033. boolean sorted = false
  2034. boolean vscrollbar = true
  2035. string item[] = {"1","2","3","4","5","6","7","8","9","10","11","12"}
  2036. borderstyle borderstyle = stylelowered!
  2037. end type
  2038. type cb_1 from commandbutton within tabpage_step5
  2039. integer x = 704
  2040. integer y = 500
  2041. integer width = 59
  2042. integer height = 84
  2043. integer taborder = 140
  2044. boolean bringtotop = true
  2045. integer textsize = -9
  2046. integer weight = 400
  2047. fontcharset fontcharset = gb2312charset!
  2048. fontpitch fontpitch = variable!
  2049. string facename = "宋体"
  2050. end type
  2051. event clicked;long arg_year
  2052. arg_year = long(tab_step.tabpage_step5.em_startyear.text)
  2053. f_init_calendar_array(arg_year,s_sys_calendar[])
  2054. wf_init_calendar()
  2055. wf_lock_calendar()
  2056. end event
  2057. type cb_create_accset from commandbutton within w_create_accset
  2058. integer x = 1367
  2059. integer y = 1104
  2060. integer width = 325
  2061. integer height = 96
  2062. integer taborder = 20
  2063. boolean bringtotop = true
  2064. integer textsize = -9
  2065. integer weight = 400
  2066. fontcharset fontcharset = gb2312charset!
  2067. fontpitch fontpitch = variable!
  2068. string facename = "宋体"
  2069. string text = "创建帐套"
  2070. end type
  2071. event clicked;//1.校验信息
  2072. //2.建帐套
  2073. //3.根据行业类型建立相应科目
  2074. //4.建子帐
  2075. //5.建凭证字
  2076. //6.建本位币
  2077. //7.建月份
  2078. //8.建超级用户
  2079. Long arg_accsetid,arg_cropid,arg_subaccsetid[],arg_startyear,arg_startyearmon
  2080. String arg_accsetname,arg_cropname,arg_LawPerson,arg_Bank,arg_Accounts,arg_TaxNumber
  2081. String arg_Telephone,arg_Address,arg_Dscrp[],arg_Credenceword[]
  2082. String arg_Empid,arg_empname,arg_code,arg_name,ls_cropid
  2083. Int arg_Step1,arg_Step2,arg_Step3,arg_Step4,arg_Step5,arg_Step6
  2084. DateTime arg_sdate,arg_edate
  2085. s_calendar ls_s_calendar[12]
  2086. Long itmxt_Credenceword,i,cnt_credenceword
  2087. Int arg_ifnewsubid
  2088. String arg_msg = ''
  2089. //tabpage_step1
  2090. arg_cropname = Trim(tab_step.tabpage_step1.sle_cropname.Text)
  2091. arg_LawPerson = Trim(tab_step.tabpage_step1.sle_LawPerson.Text)
  2092. arg_Bank = Trim(tab_step.tabpage_step1.sle_Bank.Text)
  2093. arg_Accounts = Trim(tab_step.tabpage_step1.sle_Accounts.Text)
  2094. arg_TaxNumber = Trim(tab_step.tabpage_step1.sle_TaxNumber.Text)
  2095. arg_Telephone = Trim(tab_step.tabpage_step1.sle_Telephone.Text)
  2096. arg_Address = Trim(tab_step.tabpage_step1.sle_Address.Text)
  2097. ls_cropid = Trim(tab_step.tabpage_step1.ddlb_cropid.Text)
  2098. IF tab_step.tabpage_step1.cbx_ifnewsubid.Checked THEN
  2099. arg_cropid = 0
  2100. arg_ifnewsubid = 1
  2101. ELSE
  2102. arg_cropid = Long( Mid ( ls_cropid,Pos(ls_cropid,'[') + 1,Pos(ls_cropid,']') - Pos(ls_cropid,'[') - 1 ))
  2103. arg_ifnewsubid = 0
  2104. END IF
  2105. //tabpage_step2
  2106. arg_accsetid = Long(Trim(tab_step.tabpage_step2.sle_accsetid.Text))
  2107. arg_accsetname = Trim(tab_step.tabpage_step2.sle_accsetname.Text)
  2108. arg_Empid = Trim(tab_step.tabpage_step2.sle_Empid.Text)
  2109. arg_empname = Trim(tab_step.tabpage_step2.sle_empname.Text)
  2110. tab_step.tabpage_step2.dw_credenceword_index.AcceptText()
  2111. cnt_credenceword = tab_step.tabpage_step2.dw_credenceword_index.RowCount()
  2112. IF cnt_credenceword > 0 THEN
  2113. FOR i = 1 TO cnt_credenceword
  2114. itmxt_Credenceword++
  2115. arg_Credenceword[itmxt_Credenceword] = Trim(tab_step.tabpage_step2.dw_credenceword_index.Object.credenceword[i])
  2116. NEXT
  2117. END IF
  2118. //tabpage_step3
  2119. arg_code = Trim(tab_step.tabpage_step3.sle_code.Text)
  2120. arg_name = Trim(tab_step.tabpage_step3.sle_name.Text)
  2121. //tabpage_step4
  2122. arg_Step1 = Long(Trim(tab_step.tabpage_step4.em_step1.Text))
  2123. arg_Step2 = Long(Trim(tab_step.tabpage_step4.em_step2.Text))
  2124. arg_Step3 = Long(Trim(tab_step.tabpage_step4.em_step3.Text))
  2125. arg_Step4 = Long(Trim(tab_step.tabpage_step4.em_step4.Text))
  2126. arg_Step5 = Long(Trim(tab_step.tabpage_step4.em_step5.Text))
  2127. arg_Step6 = Long(Trim(tab_step.tabpage_step4.em_step6.Text))
  2128. //tabpage_step5
  2129. arg_startyear = Long(Trim(tab_step.tabpage_step5.em_startyear.Text))
  2130. arg_startyearmon = Long(Trim(tab_step.tabpage_step5.ddlb_startyearmon.Text))
  2131. tab_step.tabpage_step5.dw_calendar.AcceptText()
  2132. FOR i = 1 TO tab_step.tabpage_step5.dw_calendar.RowCount()
  2133. ls_s_calendar[i].cmonth = tab_step.tabpage_step5.dw_calendar.Object.cmonth[i]
  2134. ls_s_calendar[i].sdate = tab_step.tabpage_step5.dw_calendar.Object.sdate[i]
  2135. ls_s_calendar[i].edate = tab_step.tabpage_step5.dw_calendar.Object.edate[i]
  2136. NEXT
  2137. //1.校验信息
  2138. //tabpage_step1
  2139. IF arg_cropname = '' THEN
  2140. MessageBox(publ_operator,'请输入企业名称')
  2141. RETURN
  2142. END IF
  2143. IF arg_ifnewsubid = 0 THEN
  2144. IF arg_cropid <= 0 THEN
  2145. MessageBox(publ_operator,'请输入所属行业')
  2146. RETURN
  2147. END IF
  2148. END IF
  2149. //tabpage_step2
  2150. IF arg_accsetid <= 0 THEN
  2151. MessageBox(publ_operator,'请输入帐套ID')
  2152. RETURN
  2153. END IF
  2154. IF arg_accsetname = '' THEN
  2155. MessageBox(publ_operator,'请输入帐套代号')
  2156. RETURN
  2157. END IF
  2158. IF itmxt_Credenceword > 0 THEN
  2159. FOR i = 1 TO itmxt_Credenceword
  2160. IF arg_Credenceword[i] = '' THEN
  2161. MessageBox(publ_operator,'请输入凭证字')
  2162. RETURN
  2163. END IF
  2164. NEXT
  2165. END IF
  2166. //tabpage_step3
  2167. IF arg_code = '' THEN
  2168. MessageBox(publ_operator,'请输入本位币代号')
  2169. RETURN
  2170. END IF
  2171. IF arg_name = '' THEN
  2172. MessageBox(publ_operator,'请输入本位币名称')
  2173. RETURN
  2174. END IF
  2175. IF arg_Step1 + arg_Step2 + arg_Step3 + arg_Step4 + arg_Step5 + arg_Step6 > 18 THEN
  2176. MessageBox(publ_operator,'科目级长超过18位')
  2177. RETURN
  2178. END IF
  2179. //取科目
  2180. IF wf_get_subject(arg_cropid,arg_msg) = 0 THEN
  2181. MessageBox(publ_operator,arg_msg)
  2182. RETURN
  2183. END IF
  2184. ///////////////////////////////////////
  2185. uo_newaccset.accsetid = arg_accsetid
  2186. uo_newaccset.accsetname = arg_accsetname
  2187. uo_newaccset.cropname = arg_cropname
  2188. uo_newaccset.cropid = arg_cropid
  2189. uo_newaccset.startyear = arg_startyear
  2190. uo_newaccset.startyearmon = arg_startyearmon
  2191. uo_newaccset.Step1 = arg_Step1
  2192. uo_newaccset.Step2 = arg_Step2
  2193. uo_newaccset.Step3 = arg_Step3
  2194. uo_newaccset.Step4 = arg_Step4
  2195. uo_newaccset.Step5 = arg_Step5
  2196. uo_newaccset.Step6 = arg_Step6
  2197. uo_newaccset.LawPerson = arg_LawPerson
  2198. uo_newaccset.Bank = arg_Bank
  2199. uo_newaccset.Accounts = arg_Accounts
  2200. uo_newaccset.TaxNumber = arg_TaxNumber
  2201. uo_newaccset.Telephone = arg_Telephone
  2202. uo_newaccset.Address = arg_Address
  2203. uo_newaccset.ifnewsubid = arg_ifnewsubid
  2204. IF uo_newaccset.accset_newbegin(arg_msg) = 0 THEN
  2205. MessageBox(publ_operator,arg_msg)
  2206. RETURN
  2207. END IF
  2208. ////2.建帐套
  2209. IF uo_newaccset.accset(1,arg_msg,FALSE) = 0 THEN
  2210. MessageBox(publ_operator,arg_msg)
  2211. RETURN
  2212. END IF
  2213. ////3.根据行业类型建立相应科目
  2214. IF uo_newaccset.subject_arrray(ins_s_subject,arg_msg,FALSE) = 0 THEN
  2215. MessageBox(publ_operator,arg_msg)
  2216. RETURN
  2217. END IF
  2218. ////5.建凭证字
  2219. IF uo_newaccset.credenceword(itmxt_Credenceword,arg_Credenceword[],arg_msg,FALSE) = 0 THEN
  2220. MessageBox(publ_operator,arg_msg)
  2221. RETURN
  2222. END IF
  2223. ////6.建本位币
  2224. IF uo_newaccset.new_currency(arg_code,arg_name,1,1,arg_msg,FALSE) = 0 THEN
  2225. MessageBox(publ_operator,arg_msg)
  2226. RETURN
  2227. END IF
  2228. //7.建月份
  2229. IF uo_newaccset.new_calendar(ls_s_calendar[],arg_msg,FALSE) = 0 THEN
  2230. MessageBox(publ_operator,arg_msg)
  2231. RETURN
  2232. END IF
  2233. //9.建报表
  2234. IF uo_newaccset.new_reports(arg_msg,FALSE) = 0 THEN
  2235. MessageBox(publ_operator,arg_msg)
  2236. RETURN
  2237. END IF
  2238. //10.建现金流量项目
  2239. uo_flow uo_flow_create
  2240. uo_flow_create = CREATE uo_flow
  2241. IF uo_flow_create.uof_create_flow(arg_accsetid,arg_msg,FALSE) = 0 THEN
  2242. MessageBox(publ_operator,arg_msg)
  2243. RETURN
  2244. END IF
  2245. DESTROY uo_flow_create
  2246. COMMIT;
  2247. sys_accsetid = arg_accsetid
  2248. CloseWithReturn(PARENT,1)
  2249. end event
  2250. type st_1 from statictext within w_create_accset
  2251. integer x = 64
  2252. integer y = 1128
  2253. integer width = 617
  2254. integer height = 48
  2255. boolean bringtotop = true
  2256. integer textsize = -9
  2257. integer weight = 400
  2258. fontcharset fontcharset = gb2312charset!
  2259. fontpitch fontpitch = variable!
  2260. string facename = "宋体"
  2261. long textcolor = 16711680
  2262. long backcolor = 67108864
  2263. string text = "注:蓝色项目为必填项目"
  2264. alignment alignment = right!
  2265. boolean focusrectangle = false
  2266. end type