w_main_scware.srw 129 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002
  1. $PBExportHeader$w_main_scware.srw
  2. forward
  3. global type w_main_scware from w_mface_base
  4. end type
  5. type mdi_1 from mdiclient within w_main_scware
  6. end type
  7. type cb_1 from commandbutton within w_main_scware
  8. end type
  9. type lb_1 from uo_ljnc_listbox within w_main_scware
  10. end type
  11. type p_lsgl from uo_picture_m within w_main_scware
  12. end type
  13. type tab_ljfieb from tab within w_main_scware
  14. end type
  15. type tabpage_msg from userobject within tab_ljfieb
  16. end type
  17. type r_2 from rectangle within tabpage_msg
  18. end type
  19. type dw_msg from datawindow within tabpage_msg
  20. end type
  21. type st_mana_msg from uo_text_m within tabpage_msg
  22. end type
  23. type p_mana_msg from picture within tabpage_msg
  24. end type
  25. type st_msg_new from uo_text_m within tabpage_msg
  26. end type
  27. type p_msg_new from picture within tabpage_msg
  28. end type
  29. type st_7 from uo_text_m within tabpage_msg
  30. end type
  31. type tabpage_msg from userobject within tab_ljfieb
  32. r_2 r_2
  33. dw_msg dw_msg
  34. st_mana_msg st_mana_msg
  35. p_mana_msg p_mana_msg
  36. st_msg_new st_msg_new
  37. p_msg_new p_msg_new
  38. st_7 st_7
  39. end type
  40. type tabpage_sale from userobject within tab_ljfieb
  41. end type
  42. type r_6 from rectangle within tabpage_sale
  43. end type
  44. type r_8 from rectangle within tabpage_sale
  45. end type
  46. type r_4 from rectangle within tabpage_sale
  47. end type
  48. type dw_sale_rece from u_dw_rbtnfilter within tabpage_sale
  49. end type
  50. type st_15 from uo_text_m within tabpage_sale
  51. end type
  52. type st_retrieve_sale_re from uo_text_m_main within tabpage_sale
  53. end type
  54. type p_7 from picture within tabpage_sale
  55. end type
  56. type st_mtrl_propel from uo_text_m_main within tabpage_sale
  57. end type
  58. type p_6 from picture within tabpage_sale
  59. end type
  60. type st_more_sale from uo_text_m_main within tabpage_sale
  61. end type
  62. type p_9 from picture within tabpage_sale
  63. end type
  64. type st_14 from uo_text_m within tabpage_sale
  65. end type
  66. type dw_sale_msg from datawindow within tabpage_sale
  67. end type
  68. type st_salemsg from uo_text_m_main within tabpage_sale
  69. end type
  70. type p_salemsg from picture within tabpage_sale
  71. end type
  72. type st_mng_sale from uo_text_m_main within tabpage_sale
  73. end type
  74. type p_mng_sale from picture within tabpage_sale
  75. end type
  76. type st_salemsg_retrieve from uo_text_m_main within tabpage_sale
  77. end type
  78. type p_salemsg_retrieve from picture within tabpage_sale
  79. end type
  80. type dw_sale_send from u_dw_rbtnfilter within tabpage_sale
  81. end type
  82. type st_13 from uo_text_m within tabpage_sale
  83. end type
  84. type st_12 from uo_text_m_main within tabpage_sale
  85. end type
  86. type p_12 from picture within tabpage_sale
  87. end type
  88. type st_more_sales from uo_text_m_main within tabpage_sale
  89. end type
  90. type p_13 from picture within tabpage_sale
  91. end type
  92. type tabpage_sale from userobject within tab_ljfieb
  93. r_6 r_6
  94. r_8 r_8
  95. r_4 r_4
  96. dw_sale_rece dw_sale_rece
  97. st_15 st_15
  98. st_retrieve_sale_re st_retrieve_sale_re
  99. p_7 p_7
  100. st_mtrl_propel st_mtrl_propel
  101. p_6 p_6
  102. st_more_sale st_more_sale
  103. p_9 p_9
  104. st_14 st_14
  105. dw_sale_msg dw_sale_msg
  106. st_salemsg st_salemsg
  107. p_salemsg p_salemsg
  108. st_mng_sale st_mng_sale
  109. p_mng_sale p_mng_sale
  110. st_salemsg_retrieve st_salemsg_retrieve
  111. p_salemsg_retrieve p_salemsg_retrieve
  112. dw_sale_send dw_sale_send
  113. st_13 st_13
  114. st_12 st_12
  115. p_12 p_12
  116. st_more_sales st_more_sales
  117. p_13 p_13
  118. end type
  119. type tabpage_buy from userobject within tab_ljfieb
  120. end type
  121. type r_5 from rectangle within tabpage_buy
  122. end type
  123. type r_7 from rectangle within tabpage_buy
  124. end type
  125. type r_9 from rectangle within tabpage_buy
  126. end type
  127. type dw_buy_msg from datawindow within tabpage_buy
  128. end type
  129. type dw_buy_send from u_dw_rbtnfilter within tabpage_buy
  130. end type
  131. type st_16 from uo_text_m within tabpage_buy
  132. end type
  133. type st_retrieve_buy from uo_text_m_main within tabpage_buy
  134. end type
  135. type p_15 from picture within tabpage_buy
  136. end type
  137. type st_mtrl_receive from uo_text_m_main within tabpage_buy
  138. end type
  139. type p_14 from picture within tabpage_buy
  140. end type
  141. type dw_buy_feedback from u_dw_rbtnfilter within tabpage_buy
  142. end type
  143. type st_18 from uo_text_m within tabpage_buy
  144. end type
  145. type st_retrieve_buy_re from uo_text_m_main within tabpage_buy
  146. end type
  147. type p_8 from picture within tabpage_buy
  148. end type
  149. type st_more_buyfb from uo_text_m_main within tabpage_buy
  150. end type
  151. type p_10 from picture within tabpage_buy
  152. end type
  153. type st_more_buys from uo_text_m_main within tabpage_buy
  154. end type
  155. type p_11 from picture within tabpage_buy
  156. end type
  157. type st_17 from uo_text_m within tabpage_buy
  158. end type
  159. type st_buymsg from uo_text_m_main within tabpage_buy
  160. end type
  161. type p_buymsg from picture within tabpage_buy
  162. end type
  163. type st_mng_buy from uo_text_m_main within tabpage_buy
  164. end type
  165. type p_mng_buy from picture within tabpage_buy
  166. end type
  167. type st_buymsg_retrieve from uo_text_m_main within tabpage_buy
  168. end type
  169. type p_buymsg_retrieve from picture within tabpage_buy
  170. end type
  171. type tabpage_buy from userobject within tab_ljfieb
  172. r_5 r_5
  173. r_7 r_7
  174. r_9 r_9
  175. dw_buy_msg dw_buy_msg
  176. dw_buy_send dw_buy_send
  177. st_16 st_16
  178. st_retrieve_buy st_retrieve_buy
  179. p_15 p_15
  180. st_mtrl_receive st_mtrl_receive
  181. p_14 p_14
  182. dw_buy_feedback dw_buy_feedback
  183. st_18 st_18
  184. st_retrieve_buy_re st_retrieve_buy_re
  185. p_8 p_8
  186. st_more_buyfb st_more_buyfb
  187. p_10 p_10
  188. st_more_buys st_more_buys
  189. p_11 p_11
  190. st_17 st_17
  191. st_buymsg st_buymsg
  192. p_buymsg p_buymsg
  193. st_mng_buy st_mng_buy
  194. p_mng_buy p_mng_buy
  195. st_buymsg_retrieve st_buymsg_retrieve
  196. p_buymsg_retrieve p_buymsg_retrieve
  197. end type
  198. type tab_ljfieb from tab within w_main_scware
  199. tabpage_msg tabpage_msg
  200. tabpage_sale tabpage_sale
  201. tabpage_buy tabpage_buy
  202. end type
  203. type st_9 from uo_text_m within w_main_scware
  204. end type
  205. type p_shortcut from picture within w_main_scware
  206. end type
  207. type st_shortcut from uo_text_m within w_main_scware
  208. end type
  209. type sp_v1 from u_lbs_stsplitbar within w_main_scware
  210. end type
  211. type st_about from uo_text_m within w_main_scware
  212. end type
  213. type st_upload from uo_text_m within w_main_scware
  214. end type
  215. type st_user from uo_text_m within w_main_scware
  216. end type
  217. type st_longjoe from uo_text_m within w_main_scware
  218. end type
  219. type p_bar from picture within w_main_scware
  220. end type
  221. type p_scgl from uo_picture_m within w_main_scware
  222. end type
  223. type p_zlgl from uo_picture_m within w_main_scware
  224. end type
  225. type p_xtwh from uo_picture_m within w_main_scware
  226. end type
  227. type p_ckgl from uo_picture_m within w_main_scware
  228. end type
  229. type p_cggl from uo_picture_m within w_main_scware
  230. end type
  231. type p_xsgl from uo_picture_m within w_main_scware
  232. end type
  233. type p_rsgz from uo_picture_m within w_main_scware
  234. end type
  235. type p_wxgl from uo_picture_m within w_main_scware
  236. end type
  237. type p_cwgl from uo_picture_m within w_main_scware
  238. end type
  239. type p_bom from picture within w_main_scware
  240. end type
  241. type p_left from picture within w_main_scware
  242. end type
  243. type r_shortcut from rectangle within w_main_scware
  244. end type
  245. type lv_shortcut from listview within w_main_scware
  246. end type
  247. type cb_2 from uo_imflatbutton within w_main_scware
  248. end type
  249. end forward
  250. global type w_main_scware from w_mface_base
  251. integer x = 0
  252. integer y = 4
  253. integer width = 4635
  254. integer height = 3360
  255. string title = "龙嘉企精灵V5.0"
  256. string menuname = "m_x_genapp_frame_sp1"
  257. windowtype windowtype = mdihelp!
  258. windowstate windowstate = maximized!
  259. boolean center = true
  260. event ue_main_menu_commnd ( long arg_funcid )
  261. event ue_add_shortcut ( )
  262. event ue_del_shortcut ( )
  263. event ue_set_small ( )
  264. event ue_set_large ( )
  265. event ue_buytask_feedback_ljfieb ( )
  266. event ue_buy_msg_view_ljfieb ( )
  267. event ue_buytask_rece_ljfieb ( )
  268. event ue_sale_msg_view_ljfieb ( )
  269. event ue_main_meun_plugins ( long arg_mainid )
  270. mdi_1 mdi_1
  271. cb_1 cb_1
  272. lb_1 lb_1
  273. p_lsgl p_lsgl
  274. tab_ljfieb tab_ljfieb
  275. st_9 st_9
  276. p_shortcut p_shortcut
  277. st_shortcut st_shortcut
  278. sp_v1 sp_v1
  279. st_about st_about
  280. st_upload st_upload
  281. st_user st_user
  282. st_longjoe st_longjoe
  283. p_bar p_bar
  284. p_scgl p_scgl
  285. p_zlgl p_zlgl
  286. p_xtwh p_xtwh
  287. p_ckgl p_ckgl
  288. p_cggl p_cggl
  289. p_xsgl p_xsgl
  290. p_rsgz p_rsgz
  291. p_wxgl p_wxgl
  292. p_cwgl p_cwgl
  293. p_bom p_bom
  294. p_left p_left
  295. r_shortcut r_shortcut
  296. lv_shortcut lv_shortcut
  297. cb_2 cb_2
  298. end type
  299. global w_main_scware w_main_scware
  300. type variables
  301. Int cur_group = 1 //当前的功能组ID
  302. Long deep = 0
  303. //Long ins_x,ins_y
  304. Int retrieve_mm = 10
  305. String Is_Show
  306. Boolean viewhis = TRUE
  307. Boolean ShowTab = False
  308. Int lv_shortcut_type
  309. long lv_Shortcut_funcid_arr[]
  310. long lv_Shortcut_funcid_cnt
  311. long lv_Shortcut_oldindex
  312. long sp_v1_x
  313. uo_transmsg uo_msg
  314. Int ls_dealflag
  315. string cur_ActiveWin = "OP"
  316. //tabpage_1
  317. datawindow dw_sale_rece, dw_sale_msg, dw_sale_send
  318. //tabpage_2
  319. datawindow dw_buy_feedback, dw_buy_msg, dw_buy_send
  320. // tabpage_msg
  321. datawindow dw_msg
  322. end variables
  323. forward prototypes
  324. public function integer wf_mbtface (integer arg_btno)
  325. public function integer wf_resetelsebtface ()
  326. public function integer wf_build_menutree ()
  327. public function integer pf_menutreegrowth (long arg_handl, menu arg_prn_menu, long arg_funcid)
  328. public function integer wf_refresh_shortcut ()
  329. public subroutine wf_ware_alter ()
  330. public subroutine wf_refresh_msg ()
  331. public function integer wf_retrieve (integer arg_page)
  332. public function integer days_in_month (integer month, integer year)
  333. public subroutine wf_resizetablepage ()
  334. public subroutine wf_init_sp_v ()
  335. public function integer wf_set_shortcut ()
  336. public function integer wf_build_menu_shortcut (ref s_sys_func arg_s_func[])
  337. public subroutine wf_retrieve_buy_feedback ()
  338. public subroutine wf_retrieve_buy_msg ()
  339. public subroutine wf_retrieve_buy_send ()
  340. public subroutine wf_retrieve_sale_msg ()
  341. public subroutine wf_retrieve_sale_rece ()
  342. public subroutine wf_retrieve_sale_send ()
  343. public subroutine wf_resizetab ()
  344. public function integer wf_mbtface ()
  345. public subroutine wf_init_dw ()
  346. public subroutine wf_showtab ()
  347. public subroutine wf_init_pic ()
  348. public subroutine wf_init ()
  349. public function integer pf_menutreegrowth_plugins (ref s_sys_func arg_s_func[], long arg_parentid)
  350. public function integer wf_set_shortcut (integer oldindex, integer newindex)
  351. end prototypes
  352. event ue_main_menu_commnd(long arg_funcid);arg_funcid = Message.LongParm
  353. IF arg_funcid > 0 THEN
  354. f_sys_main(arg_funcid)
  355. END IF
  356. end event
  357. event ue_add_shortcut();IF NOT IsValid(w_shortcut_add) THEN
  358. Open(w_shortcut_add)
  359. END IF
  360. wf_refresh_shortcut()
  361. end event
  362. event ue_del_shortcut();Long ll_hand,funcid
  363. listviewitem l_lvi
  364. String ls_tv_label,arg_msg
  365. s_sys_func s_lss
  366. IF lv_shortcut.SelectedIndex() <= 0 THEN RETURN
  367. uo_userpwr uo_user
  368. uo_user = CREATE uo_userpwr
  369. lv_shortcut.GetItem(lv_shortcut.SelectedIndex(),l_lvi)
  370. s_lss = l_lvi.Data
  371. funcid = s_lss.funcid
  372. IF funcid > 0 THEN
  373. IF uo_user.del_shortcut(sys_scid,sys_empid,funcid,arg_msg,TRUE) = 0 THEN
  374. MessageBox('错误',arg_msg, StopSign!, OK! )
  375. ELSE
  376. wf_refresh_shortcut()
  377. END IF
  378. END IF
  379. DESTROY uo_userpwr
  380. end event
  381. event ue_set_small();f_setProfileString(sys_empid, "lv_shortcut", "type", '0')
  382. lv_shortcut_type = 0
  383. lv_shortcut.View = ListViewsmallIcon!
  384. end event
  385. event ue_set_large();f_setProfileString(sys_empid, "lv_shortcut", "type", '1')
  386. lv_shortcut_type = 1
  387. lv_shortcut.View = ListViewlargeIcon!
  388. end event
  389. event ue_buytask_feedback_ljfieb();Long ll_row
  390. String ls_sn
  391. String ls_sccode
  392. Long ll_scid
  393. String ls_returncode
  394. ll_row = tab_ljfieb.tabpage_buy.dw_buy_feedback.GetRow()
  395. If ll_row <= 0 Then Return
  396. s_packet_ljfieb s_inscust
  397. s_inscust.sendcuscommid = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_sendcuscommid[ll_row]
  398. s_inscust.receivecuscommid = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_receivecuscommid[ll_row]
  399. s_inscust.sendsccode = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_sendsccode[ll_row]
  400. s_inscust.receivesccode = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_receivesccode[ll_row]
  401. s_inscust.RelatedCode = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_relatedcode[ll_row]
  402. s_inscust.remark = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_remark[ll_row]
  403. s_inscust.postscript = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_postscript[ll_row]
  404. s_inscust.serialnum = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_serialnum[ll_row]
  405. ls_sccode = s_inscust.receivesccode
  406. Select scid
  407. Into :ll_scid
  408. From u_scdef
  409. Where sccode = :ls_sccode;
  410. If sqlca.SQLCode <> 0 Then
  411. ll_scid = 0
  412. End If
  413. If tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype[ll_row] = 3 Then
  414. OpenWithParm(w_buytask_feedback_ljfieb,s_inscust)
  415. ElseIf tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype[ll_row] = 12 Then
  416. OpenWithParm(w_buytask_redate_ljfieb,s_inscust)
  417. ElseIf tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype[ll_row] = 4 Then
  418. OpenWithParm(w_outware_receive_ljfieb,s_inscust)
  419. ElseIf tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype[ll_row] = 1 Then
  420. OpenWithParm(w_quote_receive_ljfieb,s_inscust)
  421. ElseIf tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype[ll_row] = 9 Then
  422. Select top 1 SerialNum
  423. Into :ls_sn
  424. From LJFIEB_packet
  425. Where BillType = 9
  426. And status = 5
  427. And Complete = 0
  428. And sendcuscommid = :s_inscust.sendcuscommid
  429. Order By AddTime Using sys_email_sqlca;
  430. If sys_email_sqlca.SQLCode <> 0 Then
  431. MessageBox('Error','查询最早待处理的同步数据失败,'+sys_email_sqlca.SQLErrText)
  432. Return
  433. End If
  434. If ls_sn <> s_inscust.serialnum Then
  435. MessageBox('系统提示','同一供应商资料同步严格按照推送时间顺序,当前选中的资料不是最早,将自动转到最早的资料作同步')
  436. Else
  437. ls_sn = s_inscust.serialnum
  438. End If
  439. OpenWithParm(w_mtrl_receive_ljfieb,ls_sn)
  440. ElseIf tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype[ll_row] = 18 Then
  441. // OpenWithParm(w_mtrlware_download_ljfieb,s_inscust)
  442. ElseIf tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype[ll_row] = 16 Then
  443. // OpenWithParm(w_reissue_spt_ljfieb,s_inscust)
  444. ElseIf tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype[ll_row] = 23 Then
  445. If MessageBox('询问','订单:'+s_inscust.RelatedCode+'有新进度,是否获取?',question!,yesno!) = 2 Then Return
  446. If sys_email_sqlca.DBHandle() = 0 Then
  447. MessageBox('Error','电子商务数据库连接失败,请检查')
  448. Return
  449. End If
  450. uo_ljfieb uo_fieb
  451. uo_fieb = Create uo_ljfieb
  452. uo_fieb.commit_transaction = sys_email_sqlca
  453. String arg_msg
  454. If uo_fieb.update_buytask_jd(s_inscust.RelatedCode,arg_msg,True) = 0 Then
  455. MessageBox('Erorr',arg_msg)
  456. Return
  457. End If
  458. Destroy uo_fieb
  459. MessageBox('系统提示','获取最新进度成功!')
  460. wf_retrieve_buy_feedback()
  461. Return
  462. End If
  463. ls_returncode = Message.StringParm
  464. f_open_win(ll_scid,ls_returncode)
  465. wf_retrieve_buy_feedback()
  466. end event
  467. event ue_buy_msg_view_ljfieb();Long ll_row
  468. ll_row = tab_ljfieb.tabpage_buy.dw_buy_msg.GetRow()
  469. IF ll_row <= 0 THEN RETURN
  470. s_packet_ljfieb s_inscust
  471. s_inscust.serialnum = tab_ljfieb.tabpage_buy.dw_buy_msg.Object.ljfieb_packet_serialnum[ll_row]
  472. s_inscust.sendcuscommid = tab_ljfieb.tabpage_buy.dw_buy_msg.Object.ljfieb_packet_sendcuscommid[ll_row]
  473. s_inscust.receivecuscommid = tab_ljfieb.tabpage_buy.dw_buy_msg.Object.ljfieb_packet_receivecuscommid[ll_row]
  474. s_inscust.sendsccode = tab_ljfieb.tabpage_buy.dw_buy_msg.Object.ljfieb_packet_sendsccode[ll_row]
  475. s_inscust.receivesccode = tab_ljfieb.tabpage_buy.dw_buy_msg.Object.ljfieb_packet_receivesccode[ll_row]
  476. s_inscust.billtype = 1
  477. OpenWithParm(w_sale_msg_view_ljfieb,s_inscust)
  478. wf_retrieve_buy_msg()
  479. end event
  480. event ue_buytask_rece_ljfieb();Long ll_row
  481. ll_row = tab_ljfieb.tabpage_sale.dw_sale_rece.GetRow()
  482. If ll_row <= 0 Then Return
  483. s_packet_ljfieb s_inscust
  484. s_inscust.sendcuscommid = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_sendcuscommid[ll_row]
  485. s_inscust.receivecuscommid = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_receivecuscommid[ll_row]
  486. s_inscust.sendsccode = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_sendsccode[ll_row]
  487. s_inscust.receivesccode = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_receivesccode[ll_row]
  488. s_inscust.RelatedCode = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_relatedcode[ll_row]
  489. s_inscust.remark = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_remark[ll_row]
  490. s_inscust.postscript = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_postscript[ll_row]
  491. s_inscust.serialnum = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_serialnum[ll_row]
  492. s_inscust.adduser = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_adduser[ll_row]
  493. s_inscust.addtime = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_addtime[ll_row]
  494. String ls_sccode
  495. Long ll_scid
  496. String ls_returncode
  497. ls_sccode = s_inscust.receivesccode
  498. Select scid
  499. Into :ll_scid
  500. From u_scdef
  501. Where sccode = :ls_sccode;
  502. If sqlca.SQLCode <> 0 Then
  503. ll_scid = 0
  504. End If
  505. If tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_billtype[ll_row] = 0 Then
  506. OpenWithParm(w_spt_price_receive_ljfieb,s_inscust)
  507. ElseIf tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_billtype[ll_row] = 2 Then
  508. OpenWithParm(w_buytask_receive_ljfieb,s_inscust)
  509. ElseIf tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_billtype[ll_row] = 19 Then
  510. OpenWithParm(w_mtrl_match_ljfieb,s_inscust)
  511. ElseIf tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_billtype[ll_row] = 21 Then
  512. // OpenWithParm(w_reissue_cus_ljfieb,s_inscust)
  513. End If
  514. ls_returncode = Message.StringParm
  515. f_open_win(ll_scid,ls_returncode)
  516. wf_retrieve_sale_rece()
  517. end event
  518. event ue_sale_msg_view_ljfieb();Long ll_row
  519. ll_row = tab_ljfieb.tabpage_sale.dw_sale_msg.GetRow()
  520. IF ll_row <= 0 THEN RETURN
  521. s_packet_ljfieb s_inscust
  522. s_inscust.serialnum = tab_ljfieb.tabpage_sale.dw_sale_msg.Object.ljfieb_packet_serialnum[ll_row]
  523. s_inscust.sendcuscommid = tab_ljfieb.tabpage_sale.dw_sale_msg.Object.ljfieb_packet_sendcuscommid[ll_row]
  524. s_inscust.receivecuscommid = tab_ljfieb.tabpage_sale.dw_sale_msg.Object.ljfieb_packet_receivecuscommid[ll_row]
  525. s_inscust.sendsccode = tab_ljfieb.tabpage_sale.dw_sale_msg.Object.ljfieb_packet_sendsccode[ll_row]
  526. s_inscust.receivesccode = tab_ljfieb.tabpage_sale.dw_sale_msg.Object.ljfieb_packet_receivesccode[ll_row]
  527. s_inscust.billtype = 2
  528. OpenWithParm(w_sale_msg_view_ljfieb,s_inscust)
  529. wf_retrieve_sale_msg()
  530. end event
  531. event ue_main_meun_plugins(long arg_mainid);arg_mainid = Message.LongParm
  532. String ls_filepath
  533. String ls_psw
  534. Long ll_dftWinState
  535. Long ll_fileid
  536. ll_fileid = arg_mainid - 41000
  537. SELECT filepath,
  538. psw,
  539. dftWinState
  540. INTO :ls_filepath,
  541. :ls_psw,
  542. :ll_dftWinState
  543. FROM u_plugins
  544. Where fileid = :ll_fileid;
  545. IF sqlca.SQLCode <> 0 THEN
  546. MessageBox('Error','打开外挂程序失败')
  547. RETURN
  548. END IF
  549. IF Pos(lower(ls_filepath), '.exe') > 0 THEN
  550. WindowState lwstmp
  551. IF ll_dftWinState = -1 THEN
  552. lwstmp = Minimized!
  553. ELSEIF ll_dftWinState = 0 THEN
  554. lwstmp = Normal!
  555. ELSE
  556. lwstmp = Maximized!
  557. END IF
  558. String ls_run
  559. ls_run = ls_psw + '&'
  560. ls_run += publ_userid + '&'
  561. ls_run += sqlca.Database + '&'
  562. ls_run += sqlca.UserID + '&'
  563. ls_run += f_psw_bczh(sqlca.DBPass,0,sys_power_key) + '&'
  564. ls_run += sqlca.LogID + '&'
  565. ls_run += sqlca.LogPass + '&'
  566. ls_run += sqlca.ServerName + '&'
  567. IF Run(sys_cur_path + ls_filepath + ' - ' +ls_run) = -1 THEN
  568. MessageBox('错误','运行程序失败!',stopsign!,ok!)
  569. RETURN
  570. END IF
  571. ELSE
  572. window lw_win
  573. s_edit_index_tran s_tran //翻页功能窗口 传递参数使用
  574. s_tran.if_retrieve_all = True //是否一次RETRIEVE所有行
  575. s_tran.work_mode = 0 //0-单纯编辑模式, 1-选择模式
  576. s_tran.arg_pkid = 0 //目标定位PKID (备用)
  577. s_tran.arg_string_code = '' //查询列部分内容,用于初步筛选
  578. s_tran.mainid = arg_mainid
  579. TRY
  580. s_sys_win_open[arg_mainid].Name = ls_filepath
  581. IF IsValid(s_sys_win_open[arg_mainid].win) THEN
  582. s_sys_win_open[arg_mainid].win.WindowState = Normal!
  583. s_sys_win_open[arg_mainid].win.BringToTop = True
  584. ELSE
  585. IF s_sys_win_open[arg_mainid].ifarg THEN
  586. s_tran.if_retrieve_all = local_retrieve_all //True
  587. OpenWithParm(lw_win,s_tran,s_sys_win_open[arg_mainid].Name)
  588. ELSE
  589. Open(lw_win,s_sys_win_open[arg_mainid].Name)
  590. END IF
  591. s_sys_win_open[arg_mainid].win = lw_win
  592. s_sys_win_open[arg_mainid].mainid = arg_mainid
  593. s_sys_win_open[arg_mainid].Title = lw_win.Title
  594. s_sys_win_open[arg_mainid].Handle = Handle(lw_win)
  595. END IF
  596. Catch(runtimeerror e)
  597. //Unknown object type: w_dismantle_install_tl3 at line 64 in ue_main_meun_plugins event of object w_main_scware.
  598. String ls_msg
  599. ls_msg = "Unknown object type: "+s_sys_win_open[arg_mainid].Name //+" at line 64 in ue_main_meun_plugins event of object w_main_scware."
  600. IF Pos(e.Text, ls_msg ) > 0 THEN
  601. MessageBox('外挂运行错误', '窗口:'+s_sys_win_open[arg_mainid].Title+'不存在')
  602. ELSE
  603. MessageBox('', e.Text)
  604. END IF
  605. END TRY
  606. END IF
  607. RETURN
  608. end event
  609. public function integer wf_mbtface (integer arg_btno);// //wf_mbtface
  610. //cur_group=arg_btno
  611. p_lsgl.is_picture = p_lsgl.b_is_picture
  612. p_lsgl.on_picture = p_lsgl.b_on_picture
  613. p_cwgl.is_picture = p_cwgl.b_is_picture
  614. p_cwgl.on_picture = p_cwgl.b_on_picture
  615. p_xsgl.is_picture = p_xsgl.b_is_picture
  616. p_xsgl.on_picture = p_xsgl.b_on_picture
  617. p_ckgl.is_picture = p_ckgl.b_is_picture
  618. p_ckgl.on_picture = p_ckgl.b_on_picture
  619. p_cggl.is_picture = p_cggl.b_is_picture
  620. p_cggl.on_picture = p_cggl.b_on_picture
  621. p_rsgz.is_picture = p_rsgz.b_is_picture
  622. p_rsgz.on_picture = p_rsgz.b_on_picture
  623. p_wxgl.is_picture = p_wxgl.b_is_picture
  624. p_wxgl.on_picture = p_wxgl.b_on_picture
  625. p_xtwh.is_picture = p_xtwh.b_is_picture
  626. p_xtwh.on_picture = p_xtwh.b_on_picture
  627. p_zlgl.is_picture = p_zlgl.b_is_picture
  628. p_zlgl.on_picture = p_zlgl.b_on_picture
  629. p_scgl.is_picture = p_scgl.b_is_picture
  630. p_scgl.on_picture = p_scgl.b_on_picture
  631. //this.setredraw( false)
  632. CHOOSE CASE arg_btno
  633. CASE 0 //介绍页
  634. //Open(w_main_child_in)
  635. IF IsValid(w_main_child_in) THEN
  636. w_main_child_in.BringToTop = True
  637. ELSE
  638. Open(w_main_child_in)
  639. END IF
  640. CASE 1 //销售
  641. p_xsgl.is_picture = p_xsgl.cl_picture
  642. p_xsgl.on_picture = p_xsgl.cl_picture
  643. IF IsValid(w_main_child_xs) THEN
  644. w_main_child_xs.BringToTop = True
  645. ELSE
  646. Open(w_main_child_xs)
  647. END IF
  648. tab_ljfieb.SelectedTab = 1
  649. CASE 3 //仓库
  650. p_ckgl.is_picture = p_ckgl.cl_picture
  651. p_ckgl.on_picture = p_ckgl.cl_picture
  652. IF sys_version = 802001 THEN
  653. IF IsValid(w_main_child_ck_biz) THEN
  654. w_main_child_ck_biz.BringToTop = True
  655. ELSE
  656. Open(w_main_child_ck_biz)
  657. END IF
  658. ELSE
  659. IF IsValid(w_main_child_ck) THEN
  660. w_main_child_ck.BringToTop = True
  661. ELSE
  662. Open(w_main_child_ck)
  663. END IF
  664. END IF
  665. CASE 4 //采购
  666. p_cggl.is_picture = p_cggl.cl_picture
  667. p_cggl.on_picture = p_cggl.cl_picture
  668. IF IsValid(w_main_child_cg) THEN
  669. w_main_child_cg.BringToTop = True
  670. ELSE
  671. Open(w_main_child_cg)
  672. END IF
  673. tab_ljfieb.SelectedTab = 2
  674. CASE 5 //财务
  675. p_cwgl.is_picture = p_cwgl.cl_picture
  676. p_cwgl.on_picture = p_cwgl.cl_picture
  677. IF IsValid(w_main_child_cw) THEN
  678. w_main_child_cw.BringToTop = True
  679. ELSE
  680. Open(w_main_child_cw)
  681. END IF
  682. CASE 7 //系统维护
  683. p_xtwh.is_picture = p_xtwh.cl_picture
  684. p_xtwh.on_picture = p_xtwh.cl_picture
  685. IF sys_if_network = 1 THEN
  686. IF IsValid(w_main_child_xtwh_net) THEN
  687. w_main_child_xtwh_net.BringToTop = True
  688. ELSE
  689. Open(w_main_child_xtwh_net)
  690. END IF
  691. ELSE
  692. IF IsValid(w_main_child_xtwh) THEN
  693. w_main_child_xtwh.BringToTop = True
  694. ELSE
  695. Open(w_main_child_xtwh)
  696. END IF
  697. END IF
  698. CASE 8 //人事管理
  699. p_rsgz.is_picture = p_rsgz.cl_picture
  700. p_rsgz.on_picture = p_rsgz.cl_picture
  701. IF IsValid(w_main_child_rsgz) THEN
  702. w_main_child_rsgz.BringToTop = True
  703. ELSE
  704. Open(w_main_child_rsgz)
  705. END IF
  706. CASE 9 //外协
  707. p_wxgl.is_picture = p_wxgl.cl_picture
  708. p_wxgl.on_picture = p_wxgl.cl_picture
  709. IF IsValid(w_main_child_jg) THEN
  710. w_main_child_jg.BringToTop = True
  711. ELSE
  712. Open(w_main_child_jg)
  713. END IF
  714. // Open(w_main_child_jg)
  715. // w_main_child_jg.wf_kk()
  716. CASE 10 //资料
  717. p_zlgl.is_picture = p_zlgl.cl_picture
  718. p_zlgl.on_picture = p_zlgl.cl_picture
  719. IF sys_version = 802001 THEN
  720. IF IsValid(w_main_child_define_biz) THEN
  721. w_main_child_define_biz.BringToTop = True
  722. ELSE
  723. Open(w_main_child_define_biz)
  724. END IF
  725. ELSE
  726. IF IsValid(w_main_child_define) THEN
  727. w_main_child_define.BringToTop = True
  728. ELSE
  729. Open(w_main_child_define)
  730. END IF
  731. END IF
  732. CASE 11 //生产管理
  733. p_scgl.is_picture = p_scgl.cl_picture
  734. p_scgl.on_picture = p_scgl.cl_picture
  735. IF IsValid(w_main_child_sc) THEN
  736. w_main_child_sc.BringToTop = True
  737. ELSE
  738. Open(w_main_child_sc)
  739. END IF
  740. CASE 12 //零售管理
  741. p_lsgl.is_picture = p_lsgl.cl_picture
  742. p_lsgl.on_picture = p_lsgl.cl_picture
  743. IF IsValid(w_main_child_biz) THEN
  744. w_main_child_biz.BringToTop = True
  745. ELSE
  746. Open(w_main_child_biz)
  747. END IF
  748. END CHOOSE
  749. //this.triggerevent("mousemove")
  750. //this.setredraw( true)
  751. wf_resetelsebtface()
  752. RETURN 0
  753. end function
  754. public function integer wf_resetelsebtface ();//wf_resetelsebtface
  755. IF IsNull(io_cont) THEN RETURN 1
  756. String cur_pbt_name
  757. cur_pbt_name = io_cont.ClassName()
  758. CHOOSE CASE cur_pbt_name
  759. CASE "p_lsgl"
  760. //if p_lsgl.picturename<>p_lsgl.is_picture then p_lsgl.picturename=p_lsgl.is_picture
  761. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  762. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  763. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  764. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  765. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  766. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  767. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  768. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  769. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  770. CASE "p_xsgl"
  771. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  772. //if p_xsgl.picturename<>p_xsgl.is_picture then p_xsgl.picturename=p_xsgl.is_picture
  773. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  774. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  775. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  776. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  777. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  778. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  779. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  780. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  781. CASE "p_ckgl"
  782. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  783. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  784. //if p_ckgl.picturename<>p_ckgl.is_picture then p_ckgl.picturename=p_ckgl.is_picture
  785. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  786. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  787. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  788. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  789. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  790. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  791. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  792. CASE "p_cggl"
  793. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  794. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  795. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  796. //if p_cggl.picturename<>p_cggl.is_picture then p_cggl.picturename=p_cggl.is_picture
  797. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  798. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  799. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  800. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  801. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  802. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  803. CASE "p_cwgl"
  804. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  805. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  806. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  807. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  808. //if p_cwgl.picturename<>p_cwgl.is_picture then p_cwgl.picturename=p_cwgl.is_picture
  809. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  810. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  811. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  812. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  813. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  814. CASE "p_rsgz"
  815. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  816. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  817. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  818. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  819. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  820. // if p_rsgz.picturename<>p_rsgz.is_picture then p_rsgz.picturename=p_rsgz.is_picture
  821. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  822. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  823. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  824. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  825. CASE "p_xtwh"
  826. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  827. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  828. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  829. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  830. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  831. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  832. // if p_xtwh.picturename<>p_xtwh.is_picture then p_xtwh.picturename=p_xtwh.is_picture
  833. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  834. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  835. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  836. CASE "p_wxgl"
  837. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  838. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  839. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  840. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  841. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  842. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  843. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  844. // if p_wxgl.picturename<>p_wxgl.is_picture then p_wxgl.picturename=p_wxgl.is_picture
  845. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  846. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  847. CASE "p_zlgl"
  848. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  849. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  850. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  851. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  852. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  853. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  854. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  855. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  856. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  857. CASE "p_scgl"
  858. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  859. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  860. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  861. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  862. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  863. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  864. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  865. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  866. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  867. CASE ELSE
  868. IF p_lsgl.PictureName <> p_lsgl.is_picture THEN p_lsgl.PictureName = p_lsgl.is_picture
  869. IF p_xsgl.PictureName <> p_xsgl.is_picture THEN p_xsgl.PictureName = p_xsgl.is_picture
  870. IF p_ckgl.PictureName <> p_ckgl.is_picture THEN p_ckgl.PictureName = p_ckgl.is_picture
  871. IF p_cggl.PictureName <> p_cggl.is_picture THEN p_cggl.PictureName = p_cggl.is_picture
  872. IF p_cwgl.PictureName <> p_cwgl.is_picture THEN p_cwgl.PictureName = p_cwgl.is_picture
  873. IF p_rsgz.PictureName <> p_rsgz.is_picture THEN p_rsgz.PictureName = p_rsgz.is_picture
  874. IF p_xtwh.PictureName <> p_xtwh.is_picture THEN p_xtwh.PictureName = p_xtwh.is_picture
  875. IF p_wxgl.PictureName <> p_wxgl.is_picture THEN p_wxgl.PictureName = p_wxgl.is_picture
  876. IF p_zlgl.PictureName <> p_zlgl.is_picture THEN p_zlgl.PictureName = p_zlgl.is_picture
  877. IF p_scgl.PictureName <> p_scgl.is_picture THEN p_scgl.PictureName = p_scgl.is_picture
  878. END CHOOSE
  879. RETURN 0
  880. end function
  881. public function integer wf_build_menutree ();Long hand
  882. deep = 1
  883. wf_init_sp_v()
  884. //wf_retrieve(-1)
  885. wf_refresh_shortcut()
  886. This.ChangeMenu(m_x_genapp_frame_sp1) //初始化菜单
  887. IF sys_if_network = 1 THEN
  888. Long i
  889. FOR i = 1 To UpperBound(MenuID.Item[1].Item)
  890. IF MenuID.Item[1].Item[i].Text = '帐套管理' THEN
  891. MenuID.Item[1].Item[i].Visible = False
  892. EXIT
  893. END IF
  894. NEXT
  895. //MenuID.Item[1].Item[5].enabled = false //帐套管理
  896. //This.ChangeMenu(m_x_genapp_frame_sp1_net)
  897. ELSE
  898. //This.ChangeMenu(m_x_genapp_frame_sp1)
  899. END IF
  900. pf_menutreegrowth(hand,This.MenuID,0)
  901. MenuID.Item[1].Hide() //should be item[1], whatever the base menuitem is.
  902. MenuID.Item[1].Show()
  903. sys_ds_maininfo.RowsMove(1, sys_ds_maininfo.DeletedCount(), DELETE!, sys_ds_maininfo, 1, Primary!)
  904. RETURN 1
  905. end function
  906. public function integer pf_menutreegrowth (long arg_handl, menu arg_prn_menu, long arg_funcid);Int rslt = 1
  907. s_sys_func ls_s_func[]
  908. Long count = 0,ls_i
  909. Long handl
  910. String ls_power_str
  911. Long ll_hand
  912. String ls_filter
  913. If sys_if_network = 1 Then
  914. ls_filter = 'parentid='+String(arg_funcid)+ ' and worktype <> 1 and if_use <> 0 and functype < 9 '
  915. Else
  916. ls_filter = 'parentid='+String(arg_funcid)+ ' and worktype <> 2 and if_use <> 0 and functype < 9 '
  917. End If
  918. If sys_version_type = 0 Then
  919. ls_filter = ls_filter + 'and ( Versiontype = 0 or Versiontype = -1 )'
  920. ElseIf sys_version_type = 1 Then
  921. ls_filter = ls_filter + 'and ( Versiontype = 1 or Versiontype = -1 )'
  922. ElseIf sys_version_type = 2 Then
  923. ls_filter = ls_filter + 'and ( Versiontype = 0 or Versiontype = -1 or Versiontype = 2 )'
  924. End If
  925. sys_ds_maininfo.SetFilter(ls_filter)
  926. sys_ds_maininfo.Filter()
  927. sys_ds_maininfo.SetSort('sortflag')
  928. sys_ds_maininfo.Sort()
  929. deep++
  930. If deep > 3000 Then //防止死递归
  931. Return 0
  932. End If
  933. For ls_i = 1 To sys_ds_maininfo.RowCount( )
  934. // IF sys_ds_maininfo.Object.funcid[ls_i] = 1766 THEN
  935. // ls_i = ls_i
  936. // END IF
  937. // IF sys_ds_maininfo.Object.if_use[ls_i] = 0 THEN CONTINUE
  938. // IF sys_ds_maininfo.Object.functype[ls_i] < 9 THEN
  939. // IF sys_ds_maininfo.Object.parentid[ls_i] = arg_funcid THEN
  940. if sys_option_hide_cw = 0 then
  941. If sys_accsetbegin Then
  942. //账务初始化
  943. If sys_ds_maininfo.Object.funcid[ls_i] = 1950 Then Continue
  944. Else
  945. //账务
  946. If sys_ds_maininfo.Object.funcid[ls_i] = 1964 Then Continue
  947. End If
  948. else
  949. //隐藏总帐菜单
  950. If sys_ds_maininfo.Object.funcid[ls_i] = 1932 Then Continue
  951. If sys_ds_maininfo.Object.funcid[ls_i] = 1950 Then Continue
  952. If sys_ds_maininfo.Object.funcid[ls_i] = 1964 Then Continue
  953. end if
  954. If sys_ds_maininfo.Object.treename[ls_i] <> '系统解决方案' &
  955. And sys_ds_maininfo.Object.treename[ls_i] <> '解决方案' &
  956. And sys_ds_maininfo.Object.treename[ls_i] <> '系统' Then
  957. If Mid(sys_pwrstr,sys_ds_maininfo.Object.funcid[ls_i],1) <> '1' Then Continue
  958. End If
  959. If Mid(sys_right,sys_ds_maininfo.Object.funcid[ls_i],1) = '1' Then
  960. If sys_ds_maininfo.Object.treename[ls_i] = '仓库' And &
  961. sys_option_hide_ware = 1 Then
  962. Continue
  963. End If
  964. If sys_ds_maininfo.Object.treename[ls_i] = '生产' And &
  965. sys_version = 802001 then continue
  966. If sys_ds_maininfo.Object.treename[ls_i] = '外协' And &
  967. sys_version = 802001 then continue
  968. If sys_ds_maininfo.Object.treename[ls_i] = '生产' And &
  969. sys_option_hide_sc = 1 Then
  970. Continue
  971. End If
  972. If sys_ds_maininfo.Object.treename[ls_i] = '外协' And &
  973. sys_option_hide_wfjg = 1 Then
  974. Continue
  975. End If
  976. If sys_ds_maininfo.Object.treename[ls_i] = '财务' And &
  977. sys_option_hide_money = 1 Then
  978. Continue
  979. End If
  980. If sys_ds_maininfo.Object.treename[ls_i] = '人事工资' And &
  981. sys_option_hide_gz = 1 Then
  982. Continue
  983. End If
  984. count++
  985. ls_s_func[count].funcid = sys_ds_maininfo.Object.funcid[ls_i]
  986. ls_s_func[count].treename = sys_ds_maininfo.Object.treename[ls_i]
  987. ls_s_func[count].MenuName = sys_ds_maininfo.Object.MenuName[ls_i]
  988. ls_s_func[count].parentid = sys_ds_maininfo.Object.parentid[ls_i]
  989. ls_s_func[count].sortflag = sys_ds_maininfo.Object.sortflag[ls_i]
  990. ls_s_func[count].functype = sys_ds_maininfo.Object.functype[ls_i]
  991. ls_s_func[count].mainid = sys_ds_maininfo.Object.mainid[ls_i]
  992. ls_s_func[count].if_use = sys_ds_maininfo.Object.if_use[ls_i]
  993. End If
  994. // END IF
  995. // END IF
  996. Next
  997. //IF arg_funcid = 0 THEN
  998. // //加入插件
  999. // Long ll_pluginscnt
  1000. // datastore ds
  1001. // ds = Create datastore
  1002. // ds.DataObject = 'u_plugins_index'
  1003. // ds.SetTransObject(sqlca)
  1004. // ll_pluginscnt = ds.Retrieve(sys_user_plugins, 0)
  1005. // IF ll_pluginscnt > 0 THEN
  1006. // count++
  1007. // ls_s_func[count].funcid = 40000
  1008. // ls_s_func[count].MenuName = "外挂"
  1009. // ls_s_func[count].treename = "外挂"
  1010. // ls_s_func[count].parentid = 0
  1011. // ls_s_func[count].functype = 0
  1012. // ls_s_func[count].sortflag = count
  1013. // END IF
  1014. // Destroy ds
  1015. //END IF
  1016. //IF arg_funcid = 40000 THEN
  1017. // //pf_menutreegrowth_plugins(ls_s_func)
  1018. // count = UpperBound(ls_s_func)
  1019. //END IF
  1020. Long ll_parentid_plugins[] = {40000,40001,40002,40003,40004,40005,40006,40007,40008,40009,40010,40011}
  1021. Long ll_funcid_plugins[] = {0, 256,258,259,349,1047,260,1541,1542,1543,1046,1557}
  1022. Boolean lb_plugins = False
  1023. Long ll_plugins_parentid
  1024. //检查是否有插件
  1025. For ls_i = 1 To UpperBound(ll_funcid_plugins)
  1026. If ll_funcid_plugins[ls_i] = arg_funcid Then
  1027. ll_plugins_parentid = ll_parentid_plugins[ls_i]
  1028. lb_plugins = True
  1029. Exit
  1030. End If
  1031. Next
  1032. If lb_plugins Then
  1033. //加入插件
  1034. Long ll_pluginscnt
  1035. datastore ds
  1036. ds = Create datastore
  1037. ds.DataObject = 'u_plugins_index'
  1038. ds.SetTransObject(sqlca)
  1039. ll_pluginscnt = ds.Retrieve(sys_user_plugins, ll_plugins_parentid)
  1040. // if ll_plugins_parentid = 0 then ll_plugins_parentid = 40000
  1041. If ll_pluginscnt > 0 Then
  1042. count++
  1043. ls_s_func[count].funcid = ll_plugins_parentid
  1044. ls_s_func[count].MenuName = "外挂"
  1045. ls_s_func[count].treename = "外挂"
  1046. ls_s_func[count].parentid = arg_funcid
  1047. ls_s_func[count].functype = 0
  1048. ls_s_func[count].sortflag = count
  1049. End If
  1050. Destroy ds
  1051. End If
  1052. If arg_funcid >= 40000 Then
  1053. pf_menutreegrowth_plugins(ls_s_func, arg_funcid)
  1054. count = UpperBound(ls_s_func)
  1055. End If
  1056. // //按模块增加插件
  1057. //long ll_parentid_plugins
  1058. //choose case arg_funcid
  1059. // case 0 //全部
  1060. // case 256 //销售
  1061. // case 258 //仓库
  1062. // case 259 //采购
  1063. // case 349 //外协
  1064. // case 1047 //生产
  1065. // case 260 //人事工资
  1066. // //case 261 //财务
  1067. // case 1541 //应收
  1068. // case 1542 //应付
  1069. // case 1543 //出纳
  1070. // case 1046 //零售
  1071. // case 1557 //电子商务
  1072. //end choose
  1073. //if arg_funcid = 0 then
  1074. // count++
  1075. // ls_s_func[count].funcid = -1
  1076. // ls_s_func[count].MenuName = "收藏"
  1077. // ls_s_func[count].treename = "收藏"
  1078. // ls_s_func[count].parentid = 0
  1079. // ls_s_func[count].functype = 0
  1080. // ls_s_func[count].sortflag = count
  1081. //end if
  1082. //
  1083. //if arg_funcid = -1 then
  1084. // wf_build_menu_shortcut(ls_s_func)
  1085. // count = UpperBound(ls_s_func)
  1086. //end if
  1087. String ls_menuname
  1088. For ls_i = 1 To count
  1089. ls_menuname = Trim(ls_s_func[ls_i].MenuName)
  1090. f_add_menuItem(arg_prn_menu,ls_i,ls_menuname,String(ls_s_func[ls_i].mainid))
  1091. // if arg_funcid <> -1 then
  1092. pf_menutreegrowth(handl,arg_prn_menu.Item[UpperBound(arg_prn_menu.Item)],ls_s_func[ls_i].funcid)
  1093. // end if
  1094. Next
  1095. Return rslt
  1096. end function
  1097. public function integer wf_refresh_shortcut ();String str_shortcutstr,str_tmp
  1098. Int rslt = 1
  1099. s_sys_func ls_s_func[]
  1100. Long count = 0,ls_i
  1101. Long handl
  1102. String ls_power_str
  1103. Long ll_hand,ll_funcid
  1104. treeviewitem tvi
  1105. SELECT shortcutstr
  1106. INTO :str_shortcutstr
  1107. FROM u_user
  1108. WHERE scid = :sys_scid
  1109. And empid = :sys_empid;
  1110. IF sqlca.SQLCode <> 0 THEN
  1111. RETURN 0
  1112. END IF
  1113. sys_ds_maininfo.SetFilter('')
  1114. sys_ds_maininfo.Filter()
  1115. Long ll_fileid, ll_parentid
  1116. String ls_filename
  1117. IF str_shortcutstr <> '' THEN
  1118. DO WHILE Pos(str_shortcutstr,',') <> 0
  1119. str_tmp = Trim(Left(str_shortcutstr,Pos(str_shortcutstr,',') - 1 ))
  1120. str_shortcutstr = Right(str_shortcutstr,Len(str_shortcutstr) - Pos(str_shortcutstr,','))
  1121. ll_funcid = Long(str_tmp)
  1122. IF ll_funcid < 40000 THEN
  1123. ls_i = sys_ds_maininfo.Find('funcid = ' + String(ll_funcid), 1, sys_ds_maininfo.RowCount())
  1124. IF ls_i > 0 THEN
  1125. count++
  1126. ls_s_func[count].funcid = sys_ds_maininfo.Object.funcid[ls_i]
  1127. ls_s_func[count].treename = sys_ds_maininfo.Object.treename[ls_i]
  1128. ls_s_func[count].MenuName = sys_ds_maininfo.Object.MenuName[ls_i]
  1129. ls_s_func[count].parentid = sys_ds_maininfo.Object.parentid[ls_i]
  1130. ls_s_func[count].sortflag = sys_ds_maininfo.Object.sortflag[ls_i]
  1131. ls_s_func[count].functype = sys_ds_maininfo.Object.functype[ls_i]
  1132. ls_s_func[count].mainid = sys_ds_maininfo.Object.mainid[ls_i]
  1133. END IF
  1134. ELSE
  1135. ll_fileid = ll_funcid - 41000
  1136. SELECT filename, parentid
  1137. INTO :ls_filename, :ll_parentid
  1138. FROM u_plugins
  1139. Where fileid = :ll_fileid;
  1140. IF sqlca.SQLCode <> 0 THEN
  1141. ls_filename = ''
  1142. END IF
  1143. IF ls_filename <> '' THEN
  1144. count++
  1145. ls_s_func[count].funcid = ll_funcid
  1146. ls_s_func[count].treename = ls_filename+'(外挂)'
  1147. ls_s_func[count].MenuName = ls_filename+'(外挂)'
  1148. ls_s_func[count].parentid = ll_parentid
  1149. ls_s_func[count].sortflag = count
  1150. ls_s_func[count].functype = 8
  1151. ls_s_func[count].mainid = ll_funcid
  1152. ls_s_func[count].if_use = 1
  1153. END IF
  1154. END IF
  1155. LOOP
  1156. END IF
  1157. lv_shortcut.setredraw(false)
  1158. lv_shortcut.DeleteItems()
  1159. listviewitem l_lvi
  1160. FOR ls_i = 1 To count
  1161. l_lvi.Label = ls_s_func[ls_i].treename
  1162. l_lvi.Data = ls_s_func[ls_i]
  1163. IF pos(ls_s_func[ls_i].treename, "(外挂)") > 0 THEN
  1164. l_lvi.PictureIndex = 2
  1165. ELSEIF right(ls_s_func[ls_i].treename,1) = "表" THEN
  1166. l_lvi.PictureIndex = 3
  1167. ELSEIF pos(ls_s_func[ls_i].treename,"销售") > 0 THEN
  1168. l_lvi.PictureIndex = 4
  1169. ELSEIF pos(ls_s_func[ls_i].treename,"采购") > 0 THEN
  1170. l_lvi.PictureIndex = 5
  1171. ELSE
  1172. l_lvi.PictureIndex = 1
  1173. END IF
  1174. lv_shortcut.AddItem(l_lvi)
  1175. NEXT
  1176. lv_shortcut.setredraw(true)
  1177. RETURN 1
  1178. end function
  1179. public subroutine wf_ware_alter ();Long ll_cnt1,ll_cnt2
  1180. IF f_power_ind(858) THEN
  1181. SELECT COUNT(*)
  1182. INTO :ll_cnt1
  1183. FROM (SELECT u_mtrlware.mtrlid, SUM(u_mtrlware.noallocqty) AS noallocqty,
  1184. u_mtrldef.mtrlcode, u_mtrldef.mtrlname, u_mtrldef.mtrlmode, u_mtrldef.unit,
  1185. u_mtrldef_maxminqty.maxqty, SUM(u_mtrlware.noallocqty)
  1186. - u_mtrldef_maxminqty.maxqty AS upqty, u_mtrldef_maxminqty.minqty,
  1187. u_mtrldef.mtrlsectype, u_mtrldef.zxmtrlmode, u_mtrldef_maxminqty.status,
  1188. u_mtrldef_maxminqty.woodcode, u_mtrldef_maxminqty.pcode
  1189. FROM u_mtrlware INNER JOIN
  1190. u_mtrldef_maxminqty ON
  1191. u_mtrlware.mtrlid = u_mtrldef_maxminqty.mtrlid AND
  1192. u_mtrlware.Status = u_mtrldef_maxminqty.status AND
  1193. u_mtrlware.woodcode = u_mtrldef_maxminqty.woodcode AND
  1194. u_mtrlware.pcode = u_mtrldef_maxminqty.pcode INNER JOIN
  1195. u_mtrldef ON u_mtrldef_maxminqty.mtrlid = u_mtrldef.mtrlid
  1196. WHERE (u_mtrlware.noallocqty <> 0)
  1197. GROUP BY u_mtrlware.mtrlid, u_mtrldef.unit, u_mtrldef.mtrlcode,
  1198. u_mtrldef.mtrlmode, u_mtrldef.mtrlname, u_mtrldef_maxminqty.maxqty,
  1199. u_mtrldef_maxminqty.minqty, u_mtrldef.mtrlsectype, u_mtrldef.zxmtrlmode,
  1200. u_mtrldef_maxminqty.status, u_mtrldef_maxminqty.woodcode,
  1201. u_mtrldef_maxminqty.pcode
  1202. Having (SUM(u_mtrlware.noallocqty) > u_mtrldef_maxminqty.maxqty)) DERIVEDTBL;
  1203. SELECT COUNT(*)
  1204. INTO :ll_cnt2
  1205. FROM (SELECT u_mtrlware.mtrlid, SUM(u_mtrlware.noallocqty) AS noallocqty,
  1206. u_mtrldef.mtrlcode, u_mtrldef.mtrlname, u_mtrldef.mtrlmode, u_mtrldef.unit,
  1207. u_mtrldef_maxminqty.minqty - SUM(u_mtrlware.noallocqty) AS downqty,
  1208. u_mtrldef_maxminqty.maxqty, u_mtrldef_maxminqty.minqty,
  1209. u_mtrldef.mtrlsectype, u_mtrldef.zxmtrlmode, u_mtrldef_maxminqty.status,
  1210. u_mtrldef_maxminqty.woodcode, u_mtrldef_maxminqty.pcode
  1211. FROM u_mtrlware INNER JOIN
  1212. u_mtrldef_maxminqty ON
  1213. u_mtrlware.mtrlid = u_mtrldef_maxminqty.mtrlid AND
  1214. u_mtrlware.Status = u_mtrldef_maxminqty.status AND
  1215. u_mtrlware.woodcode = u_mtrldef_maxminqty.woodcode AND
  1216. u_mtrlware.pcode = u_mtrldef_maxminqty.pcode INNER JOIN
  1217. u_mtrldef ON u_mtrldef_maxminqty.mtrlid = u_mtrldef.mtrlid
  1218. WHERE (u_mtrlware.noallocqty <> 0)
  1219. GROUP BY u_mtrlware.mtrlid, u_mtrldef.unit, u_mtrldef.mtrlcode,
  1220. u_mtrldef.mtrlname, u_mtrldef.mtrlmode, u_mtrldef_maxminqty.maxqty,
  1221. u_mtrldef_maxminqty.minqty, u_mtrldef.mtrlsectype, u_mtrldef.zxmtrlmode,
  1222. u_mtrldef_maxminqty.status, u_mtrldef_maxminqty.woodcode,
  1223. u_mtrldef_maxminqty.pcode
  1224. Having (SUM(u_mtrlware.noallocqty) < u_mtrldef_maxminqty.minqty)) DERIVEDTBL;
  1225. IF ll_cnt1 + ll_cnt2 > 0 THEN
  1226. s_edit_index_tran s_tran
  1227. OpenWithParm(w_rp_mtrlware_alter_ts,s_tran)
  1228. END IF
  1229. END IF
  1230. end subroutine
  1231. public subroutine wf_refresh_msg ();
  1232. Long ll_cnt
  1233. //ls_dealflag = Long(f_ProfileString(sys_empid, "dw_revmsg", "dealflag", '0'))
  1234. //
  1235. //
  1236. //ll_cnt = tab_msg.tabpage_3.dw_revmsg.Retrieve(sys_empid,ls_dealflag)
  1237. //
  1238. //IF ll_cnt > 0 THEN
  1239. // tab_msg.tabpage_3.Text = '收件箱('+String(ll_cnt)+')'
  1240. //ELSE
  1241. // tab_msg.tabpage_3.Text = '收件箱 '
  1242. //END IF
  1243. //
  1244. //IF ll_cnt = -1 THEN
  1245. // MessageBox('系统提示','因网络原因导致与服务器断开,系统即将关闭!')
  1246. // HALT
  1247. //END IF
  1248. dw_msg.Retrieve(sys_empid)
  1249. /////打开浮动窗口
  1250. //ll_cnt = 0
  1251. //SELECT count(*)
  1252. // INTO :ll_cnt
  1253. // FROM sys_admsgmx
  1254. // WHERE ( sys_admsgmx.dealflag = 0 ) AND
  1255. // sys_admsgmx.empid = :sys_empid ;
  1256. //IF sqlca.SQLCode <> 0 THEN
  1257. // ll_cnt = 0
  1258. //END IF
  1259. //
  1260. //IF ll_cnt > 0 THEN
  1261. // Open(w_newmsg)
  1262. //END IF
  1263. //
  1264. end subroutine
  1265. public function integer wf_retrieve (integer arg_page);
  1266. CHOOSE CASE arg_page
  1267. CASE 1
  1268. //收件箱
  1269. wf_refresh_msg()
  1270. CASE 2
  1271. //销售
  1272. wf_retrieve_sale_rece()
  1273. wf_retrieve_sale_send()
  1274. wf_retrieve_sale_msg()
  1275. CASE 3
  1276. //采购
  1277. wf_retrieve_buy_send()
  1278. wf_retrieve_buy_feedback()
  1279. wf_retrieve_buy_msg()
  1280. END CHOOSE
  1281. RETURN 1
  1282. end function
  1283. public function integer days_in_month (integer month, integer year);//Most cases are straight forward in that there are a fixed number of
  1284. //days in 11 of the 12 months. February is, of course, the problem.
  1285. //In a leap year February has 29 days, otherwise 28.
  1286. Integer li_DaysInMonth, li_Days[12] = {31,28,31,30,31,30,31,31,30,31,30,31}
  1287. // Get the number of days per month for a non leap year.
  1288. li_DaysInMonth = li_Days[Month]
  1289. // Check for a leap year.
  1290. If Month = 2 Then
  1291. // If the year is a leap year, change the number of days.
  1292. // Leap Year Calculation:
  1293. // Year divisible by 4, but not by 100, unless it is also divisible by 400
  1294. If ( (Mod(Year,4) = 0 And Mod(Year,100) <> 0) Or (Mod(Year,400) = 0) ) Then
  1295. li_DaysInMonth = 29
  1296. End If
  1297. End If
  1298. //Return the number of days in the relevant month
  1299. Return li_DaysInMonth
  1300. end function
  1301. public subroutine wf_resizetablepage ();
  1302. tab_ljfieb.Width = THIS.Width - dw_msg.Width - 50
  1303. //r_2.width = dw_msg.Width
  1304. wf_resizetab()
  1305. //tab_msg.tabpage_3.dw_revmsg.Height = tab_msg.Height - 120
  1306. //tab_msg.tabpage_3.tab_revmsg.Height = tab_msg.Height - 130
  1307. //tab_msg.tabpage_3.tab_revmsg.tabpage_4.mle_revmsg.Height = tab_msg.tabpage_3.tab_revmsg.Height - 110
  1308. //tab_msg.tabpage_3.tab_revmsg.tabpage_5.lv_revfj.Height = tab_msg.tabpage_3.tab_revmsg.Height - 110
  1309. //
  1310. //
  1311. //tab_msg.tabpage_2.dw_draft.Height = tab_msg.Height - 220
  1312. //
  1313. //
  1314. //tab_msg.tabpage_1.dw_msg_his.Height = tab_msg.Height - 220
  1315. //tab_msg.tabpage_1.tab_hismsg.Height = tab_msg.Height - 220
  1316. //
  1317. //tab_msg.tabpage_1.tab_hismsg.tabpage_6.mle_hismsg.Height = tab_msg.tabpage_1.tab_hismsg.Height - 110
  1318. //tab_msg.tabpage_1.tab_hismsg.tabpage_7.lv_hisfj.Height = tab_msg.tabpage_1.tab_hismsg.Height - 110
  1319. //tab_msg.tabpage_1.tab_hismsg.tabpage_8.dw_user.Height = tab_msg.tabpage_1.tab_hismsg.Height - 110
  1320. //
  1321. //
  1322. //
  1323. //tab_msg.tabpage_3.dw_revmsg.Width = (tab_msg.Width - 40) / 2 + 605
  1324. //tab_msg.tabpage_3.tab_revmsg.x = tab_msg.tabpage_3.dw_revmsg.x + tab_msg.tabpage_3.dw_revmsg.Width + 10
  1325. //tab_msg.tabpage_3.tab_revmsg.Width = (tab_msg.Width - 40) / 2 - 610
  1326. //tab_msg.tabpage_3.tab_revmsg.tabpage_4.mle_revmsg.Width = tab_msg.tabpage_3.tab_revmsg.Width - 30
  1327. //tab_msg.tabpage_3.tab_revmsg.tabpage_5.lv_revfj.Width = tab_msg.tabpage_3.tab_revmsg.Width - 30
  1328. //
  1329. //
  1330. //
  1331. //tab_msg.tabpage_1.dw_msg_his.Width = (tab_msg.Width - 40) / 2 + 605
  1332. //tab_msg.tabpage_1.tab_hismsg.x = tab_msg.tabpage_1.dw_msg_his.x + tab_msg.tabpage_1.dw_msg_his.Width + 10
  1333. //tab_msg.tabpage_1.tab_hismsg.Width = (tab_msg.Width - 40) / 2 - 610
  1334. //tab_msg.tabpage_1.tab_hismsg.tabpage_6.mle_hismsg.Width = tab_msg.tabpage_1.tab_hismsg.Width - 30
  1335. //tab_msg.tabpage_1.tab_hismsg.tabpage_7.lv_hisfj.Width = tab_msg.tabpage_1.tab_hismsg.Width - 30
  1336. //tab_msg.tabpage_1.tab_hismsg.tabpage_8.dw_user.Width = tab_msg.tabpage_1.tab_hismsg.Width - 30
  1337. //
  1338. //
  1339. //p_2.x = tab_msg.x + 810
  1340. //st_2.x = p_2.x + p_2.Width + 10
  1341. end subroutine
  1342. public subroutine wf_init_sp_v ();//将所有该分割条的左右的object都进行注册
  1343. sp_v1.of_Reset()
  1344. sp_v1.of_Register(tab_ljfieb, sp_v1.RIGHT)
  1345. sp_v1.of_Register(lb_1, sp_v1.left)
  1346. //定位拖动条--以dw_1为位移基准
  1347. sp_v1.uf_possplitbar(lb_1)
  1348. end subroutine
  1349. public function integer wf_set_shortcut ();Long i, j, k, ll_itemcnt
  1350. Long ll_funcid[]
  1351. Long ls_x[],ls_y[], ls_index[]
  1352. Long tmp
  1353. String str_shortcutstr
  1354. listviewitem l_lvi
  1355. s_sys_func s_lss
  1356. ll_itemcnt = lv_shortcut.TotalItems()
  1357. FOR i = 1 TO ll_itemcnt
  1358. lv_shortcut.GetItem(i,l_lvi)
  1359. s_lss = l_lvi.Data
  1360. ll_funcid[i] = s_lss.funcid
  1361. ls_x[i] = l_lvi.ItemX
  1362. ls_y[i] = l_lvi.ItemY
  1363. NEXT
  1364. IF ll_itemcnt > 1 THEN
  1365. //先按y排序
  1366. FOR i = 1 TO ll_itemcnt
  1367. FOR j = i + 1 TO ll_itemcnt
  1368. IF ls_y[i] > ls_y[j] THEN
  1369. tmp = ls_x[i]
  1370. ls_x[i] = ls_x[j]
  1371. ls_x[j] = tmp
  1372. tmp = ls_y[i]
  1373. ls_y[i] = ls_y[j]
  1374. ls_y[j] = tmp
  1375. tmp = ll_funcid[i]
  1376. ll_funcid[i] = ll_funcid[j]
  1377. ll_funcid[j] = tmp
  1378. END IF
  1379. NEXT
  1380. NEXT
  1381. //再按x排序
  1382. FOR i = 1 TO ll_itemcnt
  1383. FOR j = i + 1 TO ll_itemcnt
  1384. IF ls_y[i] = ls_y[j] THEN
  1385. IF ls_x[i] > ls_x[j] THEN
  1386. tmp = ls_x[i]
  1387. ls_x[i] = ls_x[j]
  1388. ls_x[j] = tmp
  1389. tmp = ls_y[i]
  1390. ls_y[i] = ls_y[j]
  1391. ls_y[j] = tmp
  1392. tmp = ll_funcid[i]
  1393. ll_funcid[i] = ll_funcid[j]
  1394. ll_funcid[j] = tmp
  1395. END IF
  1396. END IF
  1397. NEXT
  1398. NEXT
  1399. END IF
  1400. FOR i = 1 TO ll_itemcnt
  1401. str_shortcutstr += String(ll_funcid[i])+","
  1402. NEXT
  1403. UPDATE u_user
  1404. SET shortcutstr = :str_shortcutstr
  1405. WHERE scid = :sys_scid
  1406. AND empid = :sys_empid;
  1407. IF sqlca.SQLCode <> 0 THEN
  1408. rollback;
  1409. RETURN 0
  1410. END IF
  1411. commit;
  1412. RETURN 1
  1413. end function
  1414. public function integer wf_build_menu_shortcut (ref s_sys_func arg_s_func[]);String str_shortcutstr,str_tmp
  1415. Int rslt = 1
  1416. s_sys_func ls_s_func[]
  1417. Long count = 0,ls_i
  1418. Long handl
  1419. String ls_power_str
  1420. Long ll_hand,ll_funcid
  1421. SELECT shortcutstr
  1422. INTO :str_shortcutstr
  1423. FROM u_user
  1424. WHERE scid = :sys_scid
  1425. AND empid = :sys_empid;
  1426. IF sqlca.SQLCode <> 0 THEN
  1427. RETURN 0
  1428. END IF
  1429. IF str_shortcutstr <> '' THEN
  1430. DO WHILE Pos(str_shortcutstr,',') <> 0
  1431. str_tmp = Trim(Left(str_shortcutstr,Pos(str_shortcutstr,',') - 1 ))
  1432. str_shortcutstr = Right(str_shortcutstr,Len(str_shortcutstr) - Pos(str_shortcutstr,','))
  1433. ll_funcid = Long(str_tmp)
  1434. FOR ls_i = 1 TO sys_ds_shortcutinfo.RowCount( )
  1435. IF sys_ds_shortcutinfo.Object.if_use[ls_i] = 0 THEN CONTINUE
  1436. IF sys_ds_shortcutinfo.Object.functype[ls_i] < 9 THEN
  1437. IF sys_ds_shortcutinfo.Object.funcid[ls_i] = ll_funcid THEN
  1438. count++
  1439. ls_s_func[count].funcid = sys_ds_shortcutinfo.Object.funcid[ls_i]
  1440. ls_s_func[count].treename = sys_ds_shortcutinfo.Object.treename[ls_i]
  1441. ls_s_func[count].MenuName = sys_ds_shortcutinfo.Object.MenuName[ls_i]
  1442. ls_s_func[count].parentid = sys_ds_shortcutinfo.Object.parentid[ls_i]
  1443. ls_s_func[count].sortflag = sys_ds_shortcutinfo.Object.sortflag[ls_i]
  1444. ls_s_func[count].functype = sys_ds_shortcutinfo.Object.functype[ls_i]
  1445. ls_s_func[count].mainid = sys_ds_shortcutinfo.Object.mainid[ls_i]
  1446. ls_s_func[count].if_use = sys_ds_shortcutinfo.Object.if_use[ls_i]
  1447. END IF
  1448. END IF
  1449. NEXT
  1450. LOOP
  1451. END IF
  1452. arg_s_func = ls_s_func
  1453. RETURN 1
  1454. end function
  1455. public subroutine wf_retrieve_buy_feedback ();IF sys_option_if_ljfieb = 0 THEN RETURN
  1456. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  1457. Long ll_i
  1458. String ls_cuscode
  1459. Long ll_sendcuscommid,ll_spttypeid
  1460. String ls_spttype,ls_receivesccode, ls_SendSCcode,ls_scstr
  1461. Long ll_scid
  1462. tab_ljfieb.tabpage_buy.dw_buy_feedback.SetRedraw(False)
  1463. tab_ljfieb.tabpage_buy.dw_buy_feedback.Retrieve()
  1464. IF Not sys_power_issuper THEN
  1465. tab_ljfieb.tabpage_buy.dw_buy_feedback.AcceptText()
  1466. FOR ll_i = tab_ljfieb.tabpage_buy.dw_buy_feedback.RowCount() To 1 Step -1
  1467. IF tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_billtype [ll_i] = 9 THEN CONTINUE
  1468. ll_sendcuscommid = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_sendcuscommid[ll_i]
  1469. ls_receivesccode = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_receivesccode[ll_i]
  1470. ls_SendSCcode = tab_ljfieb.tabpage_buy.dw_buy_feedback.Object.ljfieb_packet_SendSCcode [ll_i]
  1471. IF sys_user_scstr <> '0' THEN
  1472. SELECT scid INTO :ll_scid
  1473. FROM u_scdef
  1474. Where sccode = :ls_receivesccode Using sqlca;
  1475. IF sqlca.SQLCode <> 0 THEN
  1476. ll_scid = 0
  1477. END IF
  1478. ls_scstr = ','+String(ll_scid)+','
  1479. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1480. tab_ljfieb.tabpage_buy.dw_buy_feedback.DeleteRow(ll_i)
  1481. CONTINUE
  1482. END IF
  1483. END IF
  1484. SELECT CusCode
  1485. INTO :ls_cuscode
  1486. FROM LJFIEB_CusComm
  1487. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1488. IF sys_email_sqlca.SQLCode <> 0 THEN
  1489. ls_cuscode = ''
  1490. END IF
  1491. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1492. SELECT spttypeid
  1493. INTO :ll_spttypeid
  1494. FROM u_spt
  1495. WHERE commcode = :ls_cuscode
  1496. And commsccode = :ls_SendSCcode Using sqlca;
  1497. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1498. IF sys_user_spttypestr <> '0' THEN
  1499. ls_spttype = ','+String( ll_spttypeid)+','
  1500. IF Pos(sys_user_spttypestr,ls_spttype) = 0 THEN
  1501. tab_ljfieb.tabpage_buy.dw_buy_feedback.DeleteRow(ll_i)
  1502. CONTINUE
  1503. END IF
  1504. END IF
  1505. NEXT
  1506. END IF
  1507. tab_ljfieb.tabpage_buy.dw_buy_feedback.SetRedraw(True)
  1508. //查询待处理资料推送条数
  1509. Long cnt
  1510. SELECT count(*)
  1511. INTO :cnt
  1512. FROM LJFIEB_packet INNER JOIN
  1513. LJFIEB_CusComm ON
  1514. LJFIEB_packet.ReceiveCusCommID = LJFIEB_CusComm.CusCommID
  1515. WHERE (LJFIEB_packet.BillType = 9)
  1516. AND (LJFIEB_packet.Complete = 0)
  1517. And (LJFIEB_CusComm.CusType = 0) Using sys_email_sqlca;
  1518. IF sys_email_sqlca.SQLCode <> 0 THEN cnt = 0
  1519. IF cnt > 0 THEN
  1520. tab_ljfieb.tabpage_buy.st_mtrl_receive.Text = '资料同步(待同步资料共'+String(cnt)+'条)'
  1521. ELSE
  1522. tab_ljfieb.tabpage_buy.st_mtrl_receive.Text = '资料同步(没有可同步的资料)'
  1523. END IF
  1524. end subroutine
  1525. public subroutine wf_retrieve_buy_msg ();IF sys_option_if_ljfieb = 0 THEN RETURN
  1526. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  1527. Long ll_i
  1528. String ls_cuscode
  1529. Long ll_sendcuscommid,ll_spttypeid
  1530. String ls_spttype,ls_receivesccode, ls_SendSCcode,ls_scstr
  1531. Long ll_scid
  1532. tab_ljfieb.tabpage_buy.dw_buy_msg.SetRedraw(False)
  1533. tab_ljfieb.tabpage_buy.dw_buy_msg.Retrieve()
  1534. IF Not sys_power_issuper THEN
  1535. tab_ljfieb.tabpage_buy.dw_buy_msg.AcceptText()
  1536. FOR ll_i = tab_ljfieb.tabpage_buy.dw_buy_msg.RowCount() To 1 Step -1
  1537. ll_sendcuscommid = tab_ljfieb.tabpage_buy.dw_buy_msg.Object.ljfieb_packet_sendcuscommid[ll_i]
  1538. ls_receivesccode = tab_ljfieb.tabpage_buy.dw_buy_msg.Object.ljfieb_packet_receivesccode[ll_i]
  1539. ls_SendSCcode = tab_ljfieb.tabpage_buy.dw_buy_msg.Object.ljfieb_packet_SendSCcode [ll_i]
  1540. IF sys_user_scstr <> '0' THEN
  1541. SELECT scid INTO :ll_scid
  1542. FROM u_scdef
  1543. Where sccode = :ls_receivesccode Using sqlca;
  1544. IF sqlca.SQLCode <> 0 THEN
  1545. ll_scid = 0
  1546. END IF
  1547. ls_scstr = ','+String(ll_scid)+','
  1548. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1549. tab_ljfieb.tabpage_buy.dw_buy_msg.DeleteRow(ll_i)
  1550. CONTINUE
  1551. END IF
  1552. END IF
  1553. SELECT CusCode
  1554. INTO :ls_cuscode
  1555. FROM LJFIEB_CusComm
  1556. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1557. IF sys_email_sqlca.SQLCode <> 0 THEN
  1558. ls_cuscode = ''
  1559. END IF
  1560. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1561. SELECT spttypeid
  1562. INTO :ll_spttypeid
  1563. FROM u_spt
  1564. WHERE commcode = :ls_cuscode
  1565. And commsccode = :ls_SendSCcode Using sqlca;
  1566. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1567. IF sys_user_spttypestr <> '0' THEN
  1568. ls_spttype = ','+String( ll_spttypeid)+','
  1569. IF Pos(sys_user_spttypestr,ls_spttype) = 0 THEN
  1570. tab_ljfieb.tabpage_buy.dw_buy_msg.DeleteRow(ll_i)
  1571. CONTINUE
  1572. END IF
  1573. END IF
  1574. NEXT
  1575. END IF
  1576. tab_ljfieb.tabpage_buy.dw_buy_msg.SetRedraw(True)
  1577. end subroutine
  1578. public subroutine wf_retrieve_buy_send ();if sys_option_if_ljfieb = 0 then return
  1579. if sys_email_sqlca.DBHandle() = 0 then return
  1580. Long ll_i
  1581. String ls_cuscode
  1582. Long ll_ReceiveCusCommID,ll_spttypeid
  1583. String ls_spttype,ls_receivesccode, ls_SendSCcode,ls_scstr
  1584. Long ll_scid
  1585. tab_ljfieb.tabpage_buy.dw_buy_send.SetRedraw(False)
  1586. tab_ljfieb.tabpage_buy.dw_buy_send.retrieve()
  1587. IF Not sys_power_issuper THEN
  1588. tab_ljfieb.tabpage_buy.dw_buy_send.AcceptText()
  1589. FOR ll_i = tab_ljfieb.tabpage_buy.dw_buy_send.RowCount() To 1 Step -1
  1590. ll_ReceiveCusCommID = tab_ljfieb.tabpage_buy.dw_buy_send.Object.ljfieb_packet_ReceiveCusCommID[ll_i]
  1591. ls_receivesccode = tab_ljfieb.tabpage_buy.dw_buy_send.Object.ljfieb_packet_receivesccode[ll_i]
  1592. ls_SendSCcode = tab_ljfieb.tabpage_buy.dw_buy_send.Object.ljfieb_packet_SendSCcode [ll_i]
  1593. IF sys_user_scstr <> '0' THEN
  1594. SELECT scid INTO :ll_scid
  1595. FROM u_scdef
  1596. Where sccode = :ls_SendSCcode Using sqlca;
  1597. IF sqlca.SQLCode <> 0 THEN
  1598. ll_scid = 0
  1599. END IF
  1600. ls_scstr = ','+String(ll_scid)+','
  1601. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1602. tab_ljfieb.tabpage_buy.dw_buy_send.DeleteRow(ll_i)
  1603. CONTINUE
  1604. END IF
  1605. END IF
  1606. SELECT CusCode
  1607. INTO :ls_cuscode
  1608. FROM LJFIEB_CusComm
  1609. Where CusCommID = :ll_ReceiveCusCommID Using sys_email_sqlca;
  1610. IF sys_email_sqlca.SQLCode <> 0 THEN
  1611. ls_cuscode = ''
  1612. END IF
  1613. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1614. SELECT spttypeid
  1615. INTO :ll_spttypeid
  1616. FROM u_spt
  1617. WHERE commcode = :ls_cuscode
  1618. And commsccode = :ls_receivesccode Using sqlca;
  1619. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1620. IF sys_user_spttypestr <> '0' THEN
  1621. ls_spttype = ','+String( ll_spttypeid)+','
  1622. IF Pos(sys_user_spttypestr,ls_spttype) = 0 THEN
  1623. tab_ljfieb.tabpage_buy.dw_buy_send.DeleteRow(ll_i)
  1624. CONTINUE
  1625. END IF
  1626. END IF
  1627. NEXT
  1628. END IF
  1629. tab_ljfieb.tabpage_buy.dw_buy_send.SetRedraw(True)
  1630. end subroutine
  1631. public subroutine wf_retrieve_sale_msg ();IF sys_option_if_ljfieb = 0 THEN RETURN
  1632. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  1633. Long ll_i
  1634. String ls_cuscode
  1635. Long ll_sendcuscommid,ll_cusareaid
  1636. String ls_custype,ls_receivesccode,ls_scstr,ls_SendSCcode
  1637. String ls_areastr,ls_outrep
  1638. Long ll_scid
  1639. tab_ljfieb.tabpage_sale.dw_sale_msg.SetRedraw(False)
  1640. tab_ljfieb.tabpage_sale.dw_sale_msg.Retrieve()
  1641. IF Not sys_power_issuper THEN
  1642. tab_ljfieb.tabpage_sale.dw_sale_msg.AcceptText()
  1643. FOR ll_i = tab_ljfieb.tabpage_sale.dw_sale_msg.RowCount() To 1 Step -1
  1644. ll_sendcuscommid = tab_ljfieb.tabpage_sale.dw_sale_msg.Object.ljfieb_packet_sendcuscommid[ll_i]
  1645. ls_receivesccode = tab_ljfieb.tabpage_sale.dw_sale_msg.Object.ljfieb_packet_receivesccode[ll_i]
  1646. ls_SendSCcode = tab_ljfieb.tabpage_sale.dw_sale_msg.Object.ljfieb_packet_SendSCcode [ll_i]
  1647. IF sys_user_scstr <> '0' THEN
  1648. SELECT scid INTO :ll_scid
  1649. FROM u_scdef
  1650. Where sccode = :ls_receivesccode Using sqlca;
  1651. IF sqlca.SQLCode <> 0 THEN
  1652. ll_scid = 0
  1653. END IF
  1654. ls_scstr = ','+String(ll_scid)+','
  1655. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1656. tab_ljfieb.tabpage_sale.dw_sale_msg.DeleteRow(ll_i)
  1657. CONTINUE
  1658. END IF
  1659. END IF
  1660. SELECT CusCode
  1661. INTO :ls_cuscode
  1662. FROM LJFIEB_CusComm
  1663. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1664. IF sys_email_sqlca.SQLCode <> 0 THEN
  1665. ls_cuscode = ''
  1666. END IF
  1667. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1668. SELECT cusareaid,
  1669. custype
  1670. INTO
  1671. :ll_cusareaid,
  1672. :ls_custype
  1673. FROM u_cust
  1674. WHERE commcode = :ls_cuscode
  1675. And commsccode = :ls_SendSCcode Using sqlca;
  1676. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1677. IF sys_areastr <> '0' THEN
  1678. ls_areastr = ','+String( ll_cusareaid)+','
  1679. IF Pos(sys_areastr,ls_areastr) = 0 THEN
  1680. tab_ljfieb.tabpage_sale.dw_sale_msg.DeleteRow(ll_i)
  1681. CONTINUE
  1682. END IF
  1683. END IF
  1684. IF sys_user_outrepstr <> '0' THEN
  1685. ls_outrep = ','+String( ls_custype)+','
  1686. IF Pos(sys_user_outrepstr,ls_outrep) = 0 THEN
  1687. tab_ljfieb.tabpage_sale.dw_sale_msg.DeleteRow(ll_i)
  1688. CONTINUE
  1689. END IF
  1690. END IF
  1691. NEXT
  1692. END IF
  1693. tab_ljfieb.tabpage_sale.dw_sale_msg.SetRedraw(true)
  1694. end subroutine
  1695. public subroutine wf_retrieve_sale_rece ();IF sys_option_if_ljfieb = 0 THEN RETURN
  1696. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  1697. Long ll_i
  1698. String ls_cuscode
  1699. Long ll_sendcuscommid,ll_cusareaid
  1700. String ls_custype,ls_receivesccode,ls_scstr,ls_SendSCcode
  1701. String ls_areastr,ls_outrep
  1702. Long ll_scid
  1703. tab_ljfieb.tabpage_sale.dw_sale_rece.SetRedraw(False)
  1704. tab_ljfieb.tabpage_sale.dw_sale_rece.Retrieve()
  1705. IF Not sys_power_issuper THEN
  1706. tab_ljfieb.tabpage_sale.dw_sale_rece.AcceptText()
  1707. FOR ll_i = tab_ljfieb.tabpage_sale.dw_sale_rece.RowCount() To 1 Step -1
  1708. ll_sendcuscommid = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_sendcuscommid[ll_i]
  1709. ls_receivesccode = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_receivesccode[ll_i]
  1710. ls_SendSCcode = tab_ljfieb.tabpage_sale.dw_sale_rece.Object.ljfieb_packet_SendSCcode [ll_i]
  1711. IF sys_user_scstr <> '0' THEN
  1712. SELECT scid INTO :ll_scid
  1713. FROM u_scdef
  1714. Where sccode = :ls_receivesccode Using sqlca;
  1715. IF sqlca.SQLCode <> 0 THEN
  1716. ll_scid = 0
  1717. END IF
  1718. ls_scstr = ','+String(ll_scid)+','
  1719. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1720. tab_ljfieb.tabpage_sale.dw_sale_rece.DeleteRow(ll_i)
  1721. CONTINUE
  1722. END IF
  1723. END IF
  1724. SELECT CusCode
  1725. INTO :ls_cuscode
  1726. FROM LJFIEB_CusComm
  1727. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1728. IF sys_email_sqlca.SQLCode <> 0 THEN
  1729. ls_cuscode = ''
  1730. END IF
  1731. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1732. SELECT cusareaid,
  1733. custype
  1734. INTO
  1735. :ll_cusareaid,
  1736. :ls_custype
  1737. FROM u_cust
  1738. WHERE commcode = :ls_cuscode
  1739. And commsccode = :ls_SendSCcode Using sqlca;
  1740. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1741. IF sys_areastr <> '0' THEN
  1742. ls_areastr = ','+String( ll_cusareaid)+','
  1743. IF Pos(sys_areastr,ls_areastr) = 0 THEN
  1744. tab_ljfieb.tabpage_sale.dw_sale_rece.DeleteRow(ll_i)
  1745. CONTINUE
  1746. END IF
  1747. END IF
  1748. IF sys_user_outrepstr <> '0' THEN
  1749. ls_outrep = ','+String( ls_custype)+','
  1750. IF Pos(sys_user_outrepstr,ls_outrep) = 0 THEN
  1751. tab_ljfieb.tabpage_sale.dw_sale_rece.DeleteRow(ll_i)
  1752. CONTINUE
  1753. END IF
  1754. END IF
  1755. NEXT
  1756. END IF
  1757. tab_ljfieb.tabpage_sale.dw_sale_rece.SetRedraw(True)
  1758. end subroutine
  1759. public subroutine wf_retrieve_sale_send ();IF sys_option_if_ljfieb = 0 THEN RETURN
  1760. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  1761. Long ll_i
  1762. String ls_cuscode
  1763. Long ll_sendcuscommid,ll_cusareaid
  1764. String ls_custype,ls_receivesccode,ls_scstr,ls_SendSCcode
  1765. String ls_areastr,ls_outrep
  1766. Long ll_scid
  1767. tab_ljfieb.tabpage_sale.dw_sale_send.SetRedraw(False)
  1768. tab_ljfieb.tabpage_sale.dw_sale_send.Retrieve()
  1769. IF Not sys_power_issuper THEN
  1770. tab_ljfieb.tabpage_sale.dw_sale_send.AcceptText()
  1771. FOR ll_i = tab_ljfieb.tabpage_sale.dw_sale_send.RowCount() To 1 Step -1
  1772. ll_sendcuscommid = tab_ljfieb.tabpage_sale.dw_sale_send.Object.ljfieb_packet_sendcuscommid[ll_i]
  1773. ls_receivesccode = tab_ljfieb.tabpage_sale.dw_sale_send.Object.ljfieb_packet_receivesccode[ll_i]
  1774. ls_SendSCcode = tab_ljfieb.tabpage_sale.dw_sale_send.Object.ljfieb_packet_SendSCcode [ll_i]
  1775. IF sys_user_scstr <> '0' THEN
  1776. SELECT scid INTO :ll_scid
  1777. FROM u_scdef
  1778. Where sccode = :ls_receivesccode Using sqlca;
  1779. IF sqlca.SQLCode <> 0 THEN
  1780. ll_scid = 0
  1781. END IF
  1782. ls_scstr = ','+String(ll_scid)+','
  1783. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1784. tab_ljfieb.tabpage_sale.dw_sale_send.DeleteRow(ll_i)
  1785. CONTINUE
  1786. END IF
  1787. END IF
  1788. SELECT CusCode
  1789. INTO :ls_cuscode
  1790. FROM LJFIEB_CusComm
  1791. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1792. IF sys_email_sqlca.SQLCode <> 0 THEN
  1793. ls_cuscode = ''
  1794. END IF
  1795. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1796. SELECT cusareaid,
  1797. custype
  1798. INTO
  1799. :ll_cusareaid,
  1800. :ls_custype
  1801. FROM u_cust
  1802. WHERE commcode = :ls_cuscode
  1803. And commsccode = :ls_SendSCcode Using sqlca;
  1804. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1805. IF sys_areastr <> '0' THEN
  1806. ls_areastr = ','+String( ll_cusareaid)+','
  1807. IF Pos(sys_areastr,ls_areastr) = 0 THEN
  1808. tab_ljfieb.tabpage_sale.dw_sale_send.DeleteRow(ll_i)
  1809. CONTINUE
  1810. END IF
  1811. END IF
  1812. IF sys_user_outrepstr <> '0' THEN
  1813. ls_outrep = ','+String( ls_custype)+','
  1814. IF Pos(sys_user_outrepstr,ls_outrep) = 0 THEN
  1815. tab_ljfieb.tabpage_sale.dw_sale_send.DeleteRow(ll_i)
  1816. CONTINUE
  1817. END IF
  1818. END IF
  1819. NEXT
  1820. END IF
  1821. tab_ljfieb.tabpage_sale.dw_sale_send.SetRedraw(True)
  1822. end subroutine
  1823. public subroutine wf_resizetab ();This.SetRedraw(True)
  1824. //sale
  1825. tab_ljfieb.tabpage_sale.dw_sale_msg.width = tab_ljfieb.tabpage_sale.width - tab_ljfieb.tabpage_sale.dw_sale_msg.x //- 40
  1826. tab_ljfieb.tabpage_sale.r_6.width = tab_ljfieb.tabpage_sale.dw_sale_msg.width
  1827. tab_ljfieb.tabpage_sale.dw_sale_send.width = tab_ljfieb.tabpage_sale.width - tab_ljfieb.tabpage_sale.dw_sale_send.x //- 40
  1828. tab_ljfieb.tabpage_sale.r_8.width = tab_ljfieb.tabpage_sale.dw_sale_send.width
  1829. //buy
  1830. tab_ljfieb.tabpage_buy.dw_buy_msg.width = tab_ljfieb.tabpage_buy.width - tab_ljfieb.tabpage_buy.dw_buy_msg.x //- 40
  1831. tab_ljfieb.tabpage_buy.r_7.width = tab_ljfieb.tabpage_buy.dw_buy_msg.width
  1832. tab_ljfieb.tabpage_buy.dw_buy_send.width = tab_ljfieb.tabpage_buy.width - tab_ljfieb.tabpage_buy.dw_buy_send.x //- 40
  1833. tab_ljfieb.tabpage_buy.r_5.width = tab_ljfieb.tabpage_buy.dw_buy_send.width
  1834. // msg
  1835. tab_ljfieb.tabpage_msg.dw_msg.width = tab_ljfieb.tabpage_msg.width - tab_ljfieb.tabpage_msg.dw_msg.x //- 40
  1836. tab_ljfieb.tabpage_msg.r_2.width = tab_ljfieb.tabpage_msg.dw_msg.width
  1837. return
  1838. end subroutine
  1839. public function integer wf_mbtface ();// //wf_mbtface
  1840. //cur_group=arg_btno
  1841. p_lsgl.is_picture = p_lsgl.b_is_picture
  1842. p_lsgl.on_picture = p_lsgl.b_on_picture
  1843. p_cwgl.is_picture = p_cwgl.b_is_picture
  1844. p_cwgl.on_picture = p_cwgl.b_on_picture
  1845. p_xsgl.is_picture = p_xsgl.b_is_picture
  1846. p_xsgl.on_picture = p_xsgl.b_on_picture
  1847. p_ckgl.is_picture = p_ckgl.b_is_picture
  1848. p_ckgl.on_picture = p_ckgl.b_on_picture
  1849. p_cggl.is_picture = p_cggl.b_is_picture
  1850. p_cggl.on_picture = p_cggl.b_on_picture
  1851. p_rsgz.is_picture = p_rsgz.b_is_picture
  1852. p_rsgz.on_picture = p_rsgz.b_on_picture
  1853. p_wxgl.is_picture = p_wxgl.b_is_picture
  1854. p_wxgl.on_picture = p_wxgl.b_on_picture
  1855. p_xtwh.is_picture = p_xtwh.b_is_picture
  1856. p_xtwh.on_picture = p_xtwh.b_on_picture
  1857. p_zlgl.is_picture = p_zlgl.b_is_picture
  1858. p_zlgl.on_picture = p_zlgl.b_on_picture
  1859. p_scgl.is_picture = p_scgl.b_is_picture
  1860. p_scgl.on_picture = p_scgl.b_on_picture
  1861. IF ShowTab THEN
  1862. CHOOSE CASE cur_ActiveWin
  1863. CASE 'XS' //销售
  1864. tab_ljfieb.SelectedTab = 1
  1865. return 0
  1866. CASE 'CG' //采购
  1867. tab_ljfieb.SelectedTab = 2
  1868. return 0
  1869. CASE ELSE
  1870. ShowTab = Not ShowTab
  1871. wf_ShowTab()
  1872. END CHOOSE
  1873. ELSE
  1874. END IF
  1875. //this.setredraw( false)
  1876. CHOOSE CASE cur_ActiveWin
  1877. CASE 'OP' //介绍页
  1878. //Open(w_main_child_in)
  1879. IF IsValid(w_main_child_in) THEN
  1880. w_main_child_in.BringToTop = True
  1881. ELSE
  1882. Open(w_main_child_in)
  1883. END IF
  1884. CASE 'XS' //销售
  1885. p_xsgl.is_picture = p_xsgl.cl_picture
  1886. p_xsgl.on_picture = p_xsgl.cl_picture
  1887. IF IsValid(w_main_child_xs) THEN
  1888. w_main_child_xs.BringToTop = True
  1889. ELSE
  1890. Open(w_main_child_xs)
  1891. END IF
  1892. tab_ljfieb.SelectedTab = 1
  1893. CASE 'CK' //仓库
  1894. p_ckgl.is_picture = p_ckgl.cl_picture
  1895. p_ckgl.on_picture = p_ckgl.cl_picture
  1896. IF sys_version = 802001 THEN
  1897. IF IsValid(w_main_child_ck_biz) THEN
  1898. w_main_child_ck_biz.BringToTop = True
  1899. ELSE
  1900. Open(w_main_child_ck_biz)
  1901. END IF
  1902. ELSE
  1903. IF IsValid(w_main_child_ck) THEN
  1904. w_main_child_ck.BringToTop = True
  1905. ELSE
  1906. Open(w_main_child_ck)
  1907. END IF
  1908. END IF
  1909. CASE 'CG' //采购
  1910. p_cggl.is_picture = p_cggl.cl_picture
  1911. p_cggl.on_picture = p_cggl.cl_picture
  1912. IF IsValid(w_main_child_cg) THEN
  1913. w_main_child_cg.BringToTop = True
  1914. ELSE
  1915. Open(w_main_child_cg)
  1916. END IF
  1917. tab_ljfieb.SelectedTab = 2
  1918. CASE 'CW' //财务
  1919. p_cwgl.is_picture = p_cwgl.cl_picture
  1920. p_cwgl.on_picture = p_cwgl.cl_picture
  1921. IF IsValid(w_main_child_cw) THEN
  1922. w_main_child_cw.BringToTop = True
  1923. ELSE
  1924. Open(w_main_child_cw)
  1925. END IF
  1926. CASE 'XT' //系统维护
  1927. p_xtwh.is_picture = p_xtwh.cl_picture
  1928. p_xtwh.on_picture = p_xtwh.cl_picture
  1929. IF sys_if_network = 1 THEN
  1930. IF IsValid(w_main_child_xtwh_net) THEN
  1931. w_main_child_xtwh_net.BringToTop = True
  1932. ELSE
  1933. Open(w_main_child_xtwh_net)
  1934. END IF
  1935. ELSE
  1936. IF IsValid(w_main_child_xtwh) THEN
  1937. w_main_child_xtwh.BringToTop = True
  1938. ELSE
  1939. Open(w_main_child_xtwh)
  1940. END IF
  1941. END IF
  1942. CASE 'RS' //人事管理
  1943. p_rsgz.is_picture = p_rsgz.cl_picture
  1944. p_rsgz.on_picture = p_rsgz.cl_picture
  1945. IF IsValid(w_main_child_rsgz) THEN
  1946. w_main_child_rsgz.BringToTop = True
  1947. ELSE
  1948. Open(w_main_child_rsgz)
  1949. END IF
  1950. CASE 'WX' //外协
  1951. p_wxgl.is_picture = p_wxgl.cl_picture
  1952. p_wxgl.on_picture = p_wxgl.cl_picture
  1953. IF IsValid(w_main_child_jg) THEN
  1954. w_main_child_jg.BringToTop = True
  1955. ELSE
  1956. Open(w_main_child_jg)
  1957. END IF
  1958. // Open(w_main_child_jg)
  1959. // w_main_child_jg.wf_kk()
  1960. CASE 'ZL' //资料
  1961. p_zlgl.is_picture = p_zlgl.cl_picture
  1962. p_zlgl.on_picture = p_zlgl.cl_picture
  1963. IF sys_version = 802001 THEN
  1964. IF IsValid(w_main_child_define_biz) THEN
  1965. w_main_child_define_biz.BringToTop = True
  1966. ELSE
  1967. Open(w_main_child_define_biz)
  1968. END IF
  1969. ELSE
  1970. IF IsValid(w_main_child_define) THEN
  1971. w_main_child_define.BringToTop = True
  1972. ELSE
  1973. Open(w_main_child_define)
  1974. END IF
  1975. END IF
  1976. CASE 'SC' //生产管理
  1977. p_scgl.is_picture = p_scgl.cl_picture
  1978. p_scgl.on_picture = p_scgl.cl_picture
  1979. IF IsValid(w_main_child_sc) THEN
  1980. w_main_child_sc.BringToTop = True
  1981. ELSE
  1982. Open(w_main_child_sc)
  1983. END IF
  1984. CASE 'LS' //零售管理
  1985. p_lsgl.is_picture = p_lsgl.cl_picture
  1986. p_lsgl.on_picture = p_lsgl.cl_picture
  1987. IF IsValid(w_main_child_biz) THEN
  1988. w_main_child_biz.BringToTop = True
  1989. ELSE
  1990. Open(w_main_child_biz)
  1991. END IF
  1992. END CHOOSE
  1993. //this.triggerevent("mousemove")
  1994. //this.setredraw( true)
  1995. wf_resetelsebtface()
  1996. RETURN 0
  1997. end function
  1998. public subroutine wf_init_dw ();dw_msg.SetTransObject(sqlca)
  1999. dw_sale_rece.SetTransObject(sys_email_sqlca)
  2000. dw_sale_msg.SetTransObject(sys_email_sqlca)
  2001. dw_sale_send.SetTransObject(sys_email_sqlca)
  2002. dw_buy_feedback.SetTransObject(sys_email_sqlca)
  2003. dw_buy_msg.SetTransObject(sys_email_sqlca)
  2004. dw_buy_send.SetTransObject(sys_email_sqlca)
  2005. //return 1
  2006. end subroutine
  2007. public subroutine wf_showtab ();IF ShowTab THEN
  2008. cb_2.Text = "︾"
  2009. tab_ljfieb.BringToTop = True
  2010. cb_2.Y = p_bar.Y + p_bar.Height
  2011. tab_ljfieb.Y = cb_2.Y //+ This.Height
  2012. //ShowTab = True
  2013. ELSE
  2014. cb_2.Text = '︽'
  2015. cb_2.Y = p_bom.Y
  2016. tab_ljfieb.Y = cb_2.Y //+ This.Height
  2017. //ShowTab = False
  2018. END IF
  2019. cb_2.TriggerEvent('ue_textchange')
  2020. This.TriggerEvent("resize")
  2021. end subroutine
  2022. public subroutine wf_init_pic ();//隐藏模块
  2023. picture lp_pic[]
  2024. Long ll_funcid[] //权限数组,没有的对应模块不显示
  2025. Long ll_max = 10,i,j
  2026. lp_pic[1] = p_lsgl //零售
  2027. lp_pic[2] = p_xsgl //销售
  2028. lp_pic[3] = p_ckgl //仓库
  2029. lp_pic[4] = p_cggl //采购
  2030. lp_pic[5] = p_wxgl //外协
  2031. lp_pic[6] = p_scgl //生产
  2032. lp_pic[7] = p_rsgz //人事工资
  2033. lp_pic[8] = p_cwgl //财务
  2034. lp_pic[9] = p_zlgl //资料
  2035. lp_pic[10] = p_xtwh //系统维护
  2036. ll_funcid[1] = 1046
  2037. ll_funcid[2] = 256
  2038. ll_funcid[3] = 258
  2039. ll_funcid[4] = 259
  2040. ll_funcid[5] = 349
  2041. ll_funcid[6] = 1047
  2042. ll_funcid[7] = 260
  2043. ll_funcid[8] = 261
  2044. ll_funcid[9] = 0
  2045. ll_funcid[10] = 0
  2046. //sys_version = 802001
  2047. If sys_version = 802001 Then
  2048. lp_pic[1].X = p_xsgl.X
  2049. lp_pic[5].Visible = False //隐藏外协
  2050. lp_pic[6].Visible = False //隐藏生产
  2051. If sys_option_hide_money = 1 Then //隐藏财务
  2052. lp_pic[8].Visible = False
  2053. End If
  2054. If sys_option_hide_ware = 1 Then //隐藏仓库
  2055. lp_pic[3].Visible = False
  2056. End If
  2057. If sys_option_hide_gz = 1 Then //隐藏工资
  2058. lp_pic[7].Visible = False
  2059. End If
  2060. Else
  2061. lp_pic[1].Visible = False //隐藏零售
  2062. If sys_option_hide_wfjg = 1 Then //隐藏外协
  2063. lp_pic[5].Visible = False
  2064. End If
  2065. If sys_option_hide_sc = 1 Then //隐藏生产
  2066. lp_pic[6].Visible = False
  2067. End If
  2068. If sys_option_hide_gz = 1 Then //隐藏工资
  2069. lp_pic[7].Visible = False
  2070. End If
  2071. If sys_option_hide_money = 1 Then //隐藏财务
  2072. lp_pic[8].Visible = False
  2073. End If
  2074. End If
  2075. //没有权限的,不显示
  2076. For i = 1 To ll_max
  2077. If lp_pic[i].Visible Then
  2078. If ll_funcid[i] <> 0 Then
  2079. If Not f_power_ind(ll_funcid[i]) Then
  2080. lp_pic[i].Visible = False
  2081. End If
  2082. End If
  2083. End If
  2084. Next
  2085. Long ll_y
  2086. ll_y = 88
  2087. For i = 1 To ll_max
  2088. If lp_pic[i].Visible Then
  2089. lp_pic[i].Y = ll_y
  2090. ll_y += 148
  2091. End If
  2092. Next
  2093. //return 1
  2094. end subroutine
  2095. public subroutine wf_init ();//窗口初始化
  2096. //This.SetRedraw(False)
  2097. This.wf_init_pic() //隐藏模块
  2098. This.wf_init_dw()
  2099. This.wf_mbtface(0)
  2100. This.wf_build_menutree()
  2101. This.wf_ware_alter()
  2102. This.wf_retrieve(1)
  2103. This.wf_retrieve(2)
  2104. This.wf_retrieve(3)
  2105. f_refresh_mainwin_title(w_main_scware)
  2106. //设置快捷方式图标
  2107. lv_shortcut_type = Long(f_ProfileString(sys_empid, "lv_shortcut", "type", '1'))
  2108. IF lv_shortcut_type = 1 THEN
  2109. lv_shortcut.View = ListViewlargeIcon!
  2110. ELSE
  2111. lv_shortcut.View = ListViewSmallIcon!
  2112. END IF
  2113. sp_v1_x = Long(f_ProfileString(sys_empid, "sp_v1", "x", '978'))
  2114. sp_v1.X = sp_v1_x
  2115. sp_v1.Width = 5
  2116. lb_1.Width = sp_v1_x - 10
  2117. //r_2.Width = sp_v1_x - 5
  2118. tab_ljfieb.X = sp_v1.X + 8
  2119. tab_ljfieb.Y = p_bom.Y
  2120. //This.SetRedraw(True)
  2121. end subroutine
  2122. public function integer pf_menutreegrowth_plugins (ref s_sys_func arg_s_func[], long arg_parentid);String str_shortcutstr,str_tmp
  2123. Int rslt = 1
  2124. s_sys_func ls_s_func[]
  2125. Long count = 0,ls_i
  2126. Long handl
  2127. String ls_power_str
  2128. Long ll_hand,ll_funcid
  2129. String ls_filepath, ls_filename
  2130. count = UpperBound(arg_s_func)
  2131. //加入插件
  2132. Long ll_pluginscnt
  2133. datastore ds
  2134. ds = Create datastore
  2135. ds.DataObject = 'u_plugins_index'
  2136. ds.SetTransObject(sqlca)
  2137. ll_pluginscnt = ds.Retrieve(sys_user_plugins, arg_parentid)
  2138. //if arg_parentid = 0 then arg_parentid = 40000
  2139. FOR ls_i = 1 To ll_pluginscnt
  2140. ls_filename = Trim(ds.Object.Filename[ls_i])
  2141. ls_filepath = Trim(ds.Object.FilePath[ls_i])
  2142. ll_funcid = 41000 + ds.Object.fileid[ls_i]
  2143. count++
  2144. ls_s_func[count].funcid = ll_funcid
  2145. ls_s_func[count].treename = ls_filename+'(外挂)'
  2146. ls_s_func[count].MenuName = ls_filename+'(外挂)'
  2147. ls_s_func[count].parentid = arg_parentid
  2148. ls_s_func[count].sortflag = ls_i
  2149. ls_s_func[count].functype = 8
  2150. ls_s_func[count].mainid = ll_funcid
  2151. ls_s_func[count].if_use = 1
  2152. IF Not Pos(lower(ls_filepath),'.exe') > 0 THEN
  2153. s_sys_win_open[ll_funcid].funcid = String(ll_funcid)
  2154. s_sys_win_open[ll_funcid].Name = ls_filepath
  2155. s_sys_win_open[ll_funcid].Title = ls_filename
  2156. s_sys_win_open[ll_funcid].ifarg = True
  2157. s_sys_win_open[ll_funcid].if_retrieve_all = True
  2158. END IF
  2159. NEXT
  2160. arg_s_func = ls_s_func
  2161. Destroy ds
  2162. RETURN 1
  2163. end function
  2164. public function integer wf_set_shortcut (integer oldindex, integer newindex);//st_1.text = "[o]:"+string(oldindex)+"[N]:"+string(newindex)
  2165. //
  2166. //IF oldindex = newindex THEN RETURN 1
  2167. //IF oldindex <= 0 THEN RETURN 1
  2168. //IF newindex <= 0 THEN RETURN 1
  2169. //IF oldindex > lv_Shortcut_funcid_cnt THEN RETURN 1
  2170. //IF newindex > lv_Shortcut_funcid_cnt THEN RETURN 1
  2171. //
  2172. //Long i
  2173. //Long ll_funcid[]
  2174. //String str_shortcutstr
  2175. //
  2176. //IF oldindex > newindex THEN // 往前拉
  2177. // FOR i = 1 To newindex - 1
  2178. // ll_funcid[i] = lv_Shortcut_funcid_arr[i]
  2179. // NEXT
  2180. // ll_funcid[newindex] = lv_Shortcut_funcid_arr[oldindex]
  2181. // FOR i = newindex + 1 To oldindex
  2182. // ll_funcid[i] = lv_Shortcut_funcid_arr[i - 1]
  2183. // NEXT
  2184. // FOR i = oldindex + 1 To lv_Shortcut_funcid_cnt
  2185. // ll_funcid[i] = lv_Shortcut_funcid_arr[i]
  2186. // NEXT
  2187. //ELSE //往后拉
  2188. // FOR i = 1 To oldindex - 1
  2189. // ll_funcid[i] = lv_Shortcut_funcid_arr[i]
  2190. // NEXT
  2191. // FOR i = oldindex To newindex - 1
  2192. // ll_funcid[i] = lv_Shortcut_funcid_arr[oldindex + 1]
  2193. // NEXT
  2194. // ll_funcid[newindex] = lv_Shortcut_funcid_arr[oldindex]
  2195. // FOR i = newindex + 1 To lv_Shortcut_funcid_cnt
  2196. // ll_funcid[i] = lv_Shortcut_funcid_arr[i]
  2197. // NEXT
  2198. //
  2199. //END IF
  2200. //
  2201. //FOR i = 1 To lv_Shortcut_funcid_cnt
  2202. // str_shortcutstr += String(ll_funcid[i])+","
  2203. //NEXT
  2204. //
  2205. //str_shortcutstr += "[I]:"+string(newIndex)
  2206. //st_1.text = str_shortcutstr
  2207. //st_1.bringtotop = true
  2208. //
  2209. //UPDATE u_user
  2210. // SET shortcutstr = :str_shortcutstr
  2211. // WHERE scid = :sys_scid
  2212. // And empid = :sys_empid;
  2213. //IF sqlca.SQLCode <> 0 THEN
  2214. // ROLLBACK;
  2215. // RETURN 0
  2216. //END IF
  2217. //
  2218. //COMMIT;
  2219. RETURN 1
  2220. end function
  2221. on w_main_scware.create
  2222. int iCurrent
  2223. call super::create
  2224. if this.MenuName = "m_x_genapp_frame_sp1" then this.MenuID = create m_x_genapp_frame_sp1
  2225. this.mdi_1=create mdi_1
  2226. this.cb_1=create cb_1
  2227. this.lb_1=create lb_1
  2228. this.p_lsgl=create p_lsgl
  2229. this.tab_ljfieb=create tab_ljfieb
  2230. this.st_9=create st_9
  2231. this.p_shortcut=create p_shortcut
  2232. this.st_shortcut=create st_shortcut
  2233. this.sp_v1=create sp_v1
  2234. this.st_about=create st_about
  2235. this.st_upload=create st_upload
  2236. this.st_user=create st_user
  2237. this.st_longjoe=create st_longjoe
  2238. this.p_bar=create p_bar
  2239. this.p_scgl=create p_scgl
  2240. this.p_zlgl=create p_zlgl
  2241. this.p_xtwh=create p_xtwh
  2242. this.p_ckgl=create p_ckgl
  2243. this.p_cggl=create p_cggl
  2244. this.p_xsgl=create p_xsgl
  2245. this.p_rsgz=create p_rsgz
  2246. this.p_wxgl=create p_wxgl
  2247. this.p_cwgl=create p_cwgl
  2248. this.p_bom=create p_bom
  2249. this.p_left=create p_left
  2250. this.r_shortcut=create r_shortcut
  2251. this.lv_shortcut=create lv_shortcut
  2252. this.cb_2=create cb_2
  2253. iCurrent=UpperBound(this.Control)
  2254. this.Control[iCurrent+1]=this.mdi_1
  2255. this.Control[iCurrent+2]=this.cb_1
  2256. this.Control[iCurrent+3]=this.lb_1
  2257. this.Control[iCurrent+4]=this.p_lsgl
  2258. this.Control[iCurrent+5]=this.tab_ljfieb
  2259. this.Control[iCurrent+6]=this.st_9
  2260. this.Control[iCurrent+7]=this.p_shortcut
  2261. this.Control[iCurrent+8]=this.st_shortcut
  2262. this.Control[iCurrent+9]=this.sp_v1
  2263. this.Control[iCurrent+10]=this.st_about
  2264. this.Control[iCurrent+11]=this.st_upload
  2265. this.Control[iCurrent+12]=this.st_user
  2266. this.Control[iCurrent+13]=this.st_longjoe
  2267. this.Control[iCurrent+14]=this.p_bar
  2268. this.Control[iCurrent+15]=this.p_scgl
  2269. this.Control[iCurrent+16]=this.p_zlgl
  2270. this.Control[iCurrent+17]=this.p_xtwh
  2271. this.Control[iCurrent+18]=this.p_ckgl
  2272. this.Control[iCurrent+19]=this.p_cggl
  2273. this.Control[iCurrent+20]=this.p_xsgl
  2274. this.Control[iCurrent+21]=this.p_rsgz
  2275. this.Control[iCurrent+22]=this.p_wxgl
  2276. this.Control[iCurrent+23]=this.p_cwgl
  2277. this.Control[iCurrent+24]=this.p_bom
  2278. this.Control[iCurrent+25]=this.p_left
  2279. this.Control[iCurrent+26]=this.r_shortcut
  2280. this.Control[iCurrent+27]=this.lv_shortcut
  2281. this.Control[iCurrent+28]=this.cb_2
  2282. end on
  2283. on w_main_scware.destroy
  2284. call super::destroy
  2285. if IsValid(MenuID) then destroy(MenuID)
  2286. destroy(this.mdi_1)
  2287. destroy(this.cb_1)
  2288. destroy(this.lb_1)
  2289. destroy(this.p_lsgl)
  2290. destroy(this.tab_ljfieb)
  2291. destroy(this.st_9)
  2292. destroy(this.p_shortcut)
  2293. destroy(this.st_shortcut)
  2294. destroy(this.sp_v1)
  2295. destroy(this.st_about)
  2296. destroy(this.st_upload)
  2297. destroy(this.st_user)
  2298. destroy(this.st_longjoe)
  2299. destroy(this.p_bar)
  2300. destroy(this.p_scgl)
  2301. destroy(this.p_zlgl)
  2302. destroy(this.p_xtwh)
  2303. destroy(this.p_ckgl)
  2304. destroy(this.p_cggl)
  2305. destroy(this.p_xsgl)
  2306. destroy(this.p_rsgz)
  2307. destroy(this.p_wxgl)
  2308. destroy(this.p_cwgl)
  2309. destroy(this.p_bom)
  2310. destroy(this.p_left)
  2311. destroy(this.r_shortcut)
  2312. destroy(this.lv_shortcut)
  2313. destroy(this.cb_2)
  2314. end on
  2315. event open;call super::open;//初始化 dw
  2316. dw_sale_rece = tab_ljfieb.tabpage_sale.dw_sale_rece
  2317. dw_sale_msg = tab_ljfieb.tabpage_sale.dw_sale_msg
  2318. dw_sale_send = tab_ljfieb.tabpage_sale.dw_sale_send
  2319. dw_buy_feedback = tab_ljfieb.tabpage_buy.dw_buy_feedback
  2320. dw_buy_msg = tab_ljfieb.tabpage_buy.dw_buy_msg
  2321. dw_buy_send = tab_ljfieb.tabpage_buy.dw_buy_send
  2322. dw_msg = tab_ljfieb.tabpage_msg.dw_msg
  2323. // 连接电话盒设备
  2324. integer i
  2325. i = uo_cc301_ins.OpenDevice(Handle(w_main_scware)) // 连接电话设备
  2326. //
  2327. wf_init()
  2328. Timer(60)
  2329. end event
  2330. event closequery;
  2331. IF MessageBox("提示", "确定要退出本系统吗?", Question!, OKCancel!, 2) = 1 THEN
  2332. f_setProfileString(sys_empid, "sp_v1", "x", string(sp_v1.x))
  2333. f_terminate_l1()
  2334. f_update_login(0) //0-注销; 1-登录;2-更新
  2335. // 断开设备及清理内存
  2336. uo_cc301_ins.closedevice( );
  2337. destroy uo_cc301_ins;
  2338. HALT
  2339. ELSE
  2340. RETURN 1
  2341. END IF
  2342. end event
  2343. event mousemove;call super::mousemove;wf_resetelsebtface()
  2344. end event
  2345. event activate;f_refresh_mainwin_title(w_main_scware)
  2346. end event
  2347. event key;IF KeyDown(KeyControl!) AND KeyDown(KeyF9!) THEN
  2348. Open(w_system_setting)
  2349. ELSEIF KeyDown(KeyControl!) AND KeyDown(KeyF8!) THEN
  2350. s_edit_index_tran s_tran
  2351. OpenWithParm(w_rp_sale_mx_hc,s_tran)
  2352. END IF
  2353. end event
  2354. event resize;call super::resize;Long w_width,w_height
  2355. w_width = 4600
  2356. w_height = 2750
  2357. p_bar.Width = This.Width
  2358. p_bom.Width = This.Width
  2359. IF newwidth < w_width THEN This.Width = w_width
  2360. IF newheight < w_height THEN This.Height = w_height
  2361. st_user.X = This.Width - 1200
  2362. st_upload.X = st_user.X + st_user.Width + 100
  2363. st_longjoe.X = st_upload.X + st_upload.Width + 100
  2364. st_about.X = st_longjoe.X + st_longjoe.Width + 100
  2365. IF IsValid(w_main_child_in) THEN
  2366. lv_shortcut.Width = This.Width - w_main_child_in.X - w_main_child_in.Width - 60
  2367. END IF
  2368. sp_v1.Y = p_bom.Y //+ p_bom.height
  2369. sp_v1.Height = This.Height - sp_v1.Y - 285
  2370. r_shortcut.X = This.Width - lv_shortcut.Width - 50
  2371. r_shortcut.Y = p_bar.Y + p_bar.Height
  2372. r_shortcut.Width = lv_shortcut.Width
  2373. st_9.X = r_shortcut.X + 20
  2374. p_shortcut.X = r_shortcut.X + 340
  2375. st_shortcut.X = r_shortcut.X + 430
  2376. lv_shortcut.X = r_shortcut.X
  2377. lv_shortcut.Y = r_shortcut.Y + r_shortcut.Height - 4
  2378. lv_shortcut.Height = p_bom.Y - lv_shortcut.Y - 5
  2379. //r_2.x = 0
  2380. lb_1.Y = p_bom.Y + p_bom.Height
  2381. lb_1.Height = This.Height - lb_1.Y - 320
  2382. //
  2383. //r_2.Width = dw_msg.Width
  2384. tab_ljfieb.Width = This.Width - tab_ljfieb.X - 80
  2385. tab_ljfieb.Height = This.Height - tab_ljfieb.Y - 320
  2386. sp_v1.Height = This.Height - sp_v1.Y - 320
  2387. dw_msg.Height = tab_ljfieb.tabpage_msg.Height - 104
  2388. //sale
  2389. tab_ljfieb.tabpage_sale.dw_sale_rece.Height = (tab_ljfieb.tabpage_sale.Height - 200 - 140) / 2
  2390. tab_ljfieb.tabpage_sale.dw_sale_msg.Height = tab_ljfieb.tabpage_sale.dw_sale_rece.Height
  2391. tab_ljfieb.tabpage_sale.r_8.Y = tab_ljfieb.tabpage_sale.dw_sale_rece.Y + tab_ljfieb.tabpage_sale.dw_sale_rece.Height + 5
  2392. tab_ljfieb.tabpage_sale.st_13.Y = tab_ljfieb.tabpage_sale.r_8.Y + 16
  2393. tab_ljfieb.tabpage_sale.p_12.Y = tab_ljfieb.tabpage_sale.r_8.Y + 20
  2394. tab_ljfieb.tabpage_sale.st_12.Y = tab_ljfieb.tabpage_sale.r_8.Y + 28
  2395. tab_ljfieb.tabpage_sale.p_13.Y = tab_ljfieb.tabpage_sale.r_8.Y + 20
  2396. tab_ljfieb.tabpage_sale.st_more_sales.Y = tab_ljfieb.tabpage_sale.r_8.Y + 28
  2397. tab_ljfieb.tabpage_sale.dw_sale_send.Y = tab_ljfieb.tabpage_sale.r_8.Y + tab_ljfieb.tabpage_sale.r_8.Height - 4
  2398. tab_ljfieb.tabpage_sale.dw_sale_send.Height = tab_ljfieb.tabpage_sale.Height - tab_ljfieb.tabpage_sale.dw_sale_send.Y// - 140
  2399. //buy
  2400. tab_ljfieb.tabpage_buy.dw_buy_feedback.Height = (tab_ljfieb.tabpage_buy.Height - 200 - 140) / 2
  2401. tab_ljfieb.tabpage_buy.dw_buy_msg.Height = tab_ljfieb.tabpage_buy.dw_buy_feedback.Height
  2402. tab_ljfieb.tabpage_buy.r_5.Y = tab_ljfieb.tabpage_buy.dw_buy_feedback.Y + tab_ljfieb.tabpage_buy.dw_buy_feedback.Height + 5
  2403. tab_ljfieb.tabpage_buy.st_16.Y = tab_ljfieb.tabpage_buy.r_5.Y + 16
  2404. tab_ljfieb.tabpage_buy.p_15.Y = tab_ljfieb.tabpage_buy.r_5.Y + 20
  2405. tab_ljfieb.tabpage_buy.st_retrieve_buy.Y = tab_ljfieb.tabpage_buy.r_5.Y + 28
  2406. tab_ljfieb.tabpage_buy.p_11.Y = tab_ljfieb.tabpage_buy.r_5.Y + 20
  2407. tab_ljfieb.tabpage_buy.st_more_buys.Y = tab_ljfieb.tabpage_buy.r_5.Y + 28
  2408. tab_ljfieb.tabpage_buy.dw_buy_send.Y = tab_ljfieb.tabpage_buy.r_5.Y + tab_ljfieb.tabpage_buy.r_5.Height - 4
  2409. tab_ljfieb.tabpage_buy.dw_buy_send.Height = tab_ljfieb.tabpage_buy.Height - tab_ljfieb.tabpage_buy.dw_buy_send.Y// - 140
  2410. cb_2.x = this.width - cb_2.width - 50
  2411. cb_2.y = tab_ljfieb.y
  2412. cb_2.BringToTop = true
  2413. wf_resizetab()
  2414. end event
  2415. event timer;if mod(integer(string(now(),'mm')),retrieve_mm)=0 then
  2416. wf_retrieve(1)
  2417. wf_retrieve(2)
  2418. wf_retrieve(3)
  2419. end if
  2420. f_update_login(2) //0-注销; 1-登录;2-更新
  2421. end event
  2422. event other;call super::other;// 如果登陆界面不存在
  2423. IF not IsValid(w_sys_login) and not IsValid(w_sys_login_s) THEN
  2424. String us_commingphone
  2425. CHOOSE CASE message.number
  2426. CASE UO_cc301.BRI_EVENT_MESSAGE
  2427. string ls_tmp2;
  2428. BRIEVENT e;
  2429. // lparam - 2 内存复制时,指针存在偏移;
  2430. CopyMemory(e,lparam - 2 ,652);//sizeof(e)
  2431. CHOOSE CASE e.lEventType
  2432. CASE UO_cc301.BriEvent_PhoneHook
  2433. //MessageBox('电话提示',"本地话机摘机");
  2434. US_COMMINGPHONE = ""
  2435. CASE UO_cc301.BriEvent_PhoneHang
  2436. //MessageBox('电话提示',"本地话机挂机");
  2437. US_COMMINGPHONE = ""
  2438. CASE UO_cc301.BriEvent_CallIn
  2439. //MessageBox('电话提示',"来电响铃");
  2440. CASE UO_cc301.BriEvent_GetCallID
  2441. Blob lb_phone
  2442. lb_phone = Blob(e.szData)
  2443. US_COMMINGPHONE = String(lb_phone ,EncodingUTF8!)
  2444. // 来电弹出客户信息功能入口
  2445. s_edit_index_tran s_tran //翻页功能窗口 传递参数使用
  2446. s_tran.if_retrieve_all = TRUE //是否一次RETRIEVE所有行
  2447. s_tran.work_mode = 0 //0-单纯编辑模式, 1-选择模式
  2448. s_tran.arg_pkid = 0 //目标定位PKID (备用)
  2449. s_tran.arg_string_code = '' //查询列部分内容,用于初步筛选
  2450. s_tran.b_string = ''
  2451. //window main
  2452. string ls_WindowName
  2453. ls_WindowName = "w_cust_crm"
  2454. w_cust_crm crm
  2455. s_tran.b_string = 'PHONE'
  2456. s_tran.d_string = US_COMMINGPHONE
  2457. // 弹出窗口,显示来电信息
  2458. OpenWithParm(crm ,s_tran)
  2459. CASE UO_cc301.BriEvent_PhoneDial
  2460. // AppendStatus("话机拨号");
  2461. // AppendStatus(e.szData);
  2462. CASE UO_cc301.BriEvent_BUSY
  2463. // AppendStatus("线路忙");
  2464. CASE UO_cc301.BriEvent_RemoteHang
  2465. // AppendStatus("对方挂机,线路断开");
  2466. US_COMMINGPHONE = ""
  2467. CASE UO_cc301.BriEvent_StopCallIn
  2468. //AppendStatus("停止呼入,产生未接电话...");
  2469. US_COMMINGPHONE = ""
  2470. CASE ELSE
  2471. //AppendStatus("其它事件,查看事件定义."+String(e.lEventType));
  2472. END CHOOSE
  2473. END CHOOSE
  2474. END IF
  2475. end event
  2476. type mdi_1 from mdiclient within w_main_scware
  2477. long BackColor=268435456
  2478. end type
  2479. type cb_1 from commandbutton within w_main_scware
  2480. boolean visible = false
  2481. integer x = 3653
  2482. integer y = 28
  2483. integer width = 457
  2484. integer height = 128
  2485. integer taborder = 10
  2486. integer textsize = -12
  2487. integer weight = 400
  2488. fontcharset fontcharset = ansi!
  2489. fontpitch fontpitch = variable!
  2490. fontfamily fontfamily = swiss!
  2491. string facename = "Arial"
  2492. string text = "none"
  2493. end type
  2494. event clicked;open(w_q6_main)
  2495. end event
  2496. type lb_1 from uo_ljnc_listbox within w_main_scware
  2497. integer y = 1492
  2498. integer width = 983
  2499. integer height = 624
  2500. integer taborder = 40
  2501. end type
  2502. type p_lsgl from uo_picture_m within w_main_scware
  2503. integer x = 882
  2504. integer y = 88
  2505. integer width = 859
  2506. integer height = 128
  2507. boolean bringtotop = true
  2508. string picturename = "graphics\mf_lsgl_u.bmp"
  2509. end type
  2510. event clicked;call super::clicked;cur_ActiveWin = "LS"
  2511. wf_mbtface()
  2512. //wf_mbtface(12)
  2513. parent.triggerevent("mousemove")
  2514. end event
  2515. event constructor;call super::constructor;on_picture='graphics\mf_lsgl_on.bmp'
  2516. b_on_picture=on_picture
  2517. cl_picture='graphics\mf_lsgl_cl.bmp'
  2518. end event
  2519. event mouse;call super::mouse;io_cont=this
  2520. end event
  2521. type tab_ljfieb from tab within w_main_scware
  2522. event create ( )
  2523. event destroy ( )
  2524. integer x = 1024
  2525. integer y = 1444
  2526. integer width = 3538
  2527. integer height = 2076
  2528. integer taborder = 30
  2529. boolean bringtotop = true
  2530. integer textsize = -9
  2531. integer weight = 400
  2532. fontcharset fontcharset = gb2312charset!
  2533. fontpitch fontpitch = variable!
  2534. string facename = "宋体"
  2535. long backcolor = 16777215
  2536. boolean raggedright = true
  2537. integer selectedtab = 1
  2538. tabpage_msg tabpage_msg
  2539. tabpage_sale tabpage_sale
  2540. tabpage_buy tabpage_buy
  2541. end type
  2542. on tab_ljfieb.create
  2543. this.tabpage_msg=create tabpage_msg
  2544. this.tabpage_sale=create tabpage_sale
  2545. this.tabpage_buy=create tabpage_buy
  2546. this.Control[]={this.tabpage_msg,&
  2547. this.tabpage_sale,&
  2548. this.tabpage_buy}
  2549. end on
  2550. on tab_ljfieb.destroy
  2551. destroy(this.tabpage_msg)
  2552. destroy(this.tabpage_sale)
  2553. destroy(this.tabpage_buy)
  2554. end on
  2555. event selectionchanged;//IF tab_1.SelectedTab = 2 THEN
  2556. // wf_retr_guide(ins_funcid)
  2557. //END IF
  2558. //
  2559. end event
  2560. type tabpage_msg from userobject within tab_ljfieb
  2561. event create ( )
  2562. event destroy ( )
  2563. integer x = 18
  2564. integer y = 112
  2565. integer width = 3502
  2566. integer height = 1948
  2567. long backcolor = 16777215
  2568. string text = "内部邮件"
  2569. long tabtextcolor = 33554432
  2570. long tabbackcolor = 16777215
  2571. string picturename = "ToDoList!"
  2572. long picturemaskcolor = 536870912
  2573. r_2 r_2
  2574. dw_msg dw_msg
  2575. st_mana_msg st_mana_msg
  2576. p_mana_msg p_mana_msg
  2577. st_msg_new st_msg_new
  2578. p_msg_new p_msg_new
  2579. st_7 st_7
  2580. end type
  2581. on tabpage_msg.create
  2582. this.r_2=create r_2
  2583. this.dw_msg=create dw_msg
  2584. this.st_mana_msg=create st_mana_msg
  2585. this.p_mana_msg=create p_mana_msg
  2586. this.st_msg_new=create st_msg_new
  2587. this.p_msg_new=create p_msg_new
  2588. this.st_7=create st_7
  2589. this.Control[]={this.r_2,&
  2590. this.dw_msg,&
  2591. this.st_mana_msg,&
  2592. this.p_mana_msg,&
  2593. this.st_msg_new,&
  2594. this.p_msg_new,&
  2595. this.st_7}
  2596. end on
  2597. on tabpage_msg.destroy
  2598. destroy(this.r_2)
  2599. destroy(this.dw_msg)
  2600. destroy(this.st_mana_msg)
  2601. destroy(this.p_mana_msg)
  2602. destroy(this.st_msg_new)
  2603. destroy(this.p_msg_new)
  2604. destroy(this.st_7)
  2605. end on
  2606. type r_2 from rectangle within tabpage_msg
  2607. long linecolor = 134217734
  2608. integer linethickness = 4
  2609. long fillcolor = 12632256
  2610. integer y = 8
  2611. integer width = 2290
  2612. integer height = 100
  2613. end type
  2614. event constructor;this.fillcolor = rgb(184,202,238)
  2615. end event
  2616. type dw_msg from datawindow within tabpage_msg
  2617. integer y = 104
  2618. integer width = 2368
  2619. integer height = 1076
  2620. integer taborder = 160
  2621. string title = "none"
  2622. string dataobject = "dw_deal_admsg_mainface_new"
  2623. boolean hscrollbar = true
  2624. boolean vscrollbar = true
  2625. boolean livescroll = true
  2626. end type
  2627. event doubleclicked;Long ll_msgid
  2628. IF row > 0 THEN
  2629. ll_msgid = dw_msg.Object.sys_admsgmx_msgid[row]
  2630. OpenWithParm(w_email_view,ll_msgid)
  2631. dw_msg.SetRedraw(False)
  2632. // wf_retr_dw_m1()
  2633. wf_refresh_msg()
  2634. IF row <= dw_msg.RowCount() THEN
  2635. dw_msg.SetRow(row)
  2636. dw_msg.ScrollToRow(row)
  2637. dw_msg.SelectRow(0,False)
  2638. dw_msg.SelectRow(row,True)
  2639. END IF
  2640. dw_msg.SetRedraw(True)
  2641. END IF
  2642. end event
  2643. event rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2644. THIS.SelectRow(0,FALSE)
  2645. THIS.SelectRow(currentrow,TRUE)
  2646. end event
  2647. type st_mana_msg from uo_text_m within tabpage_msg
  2648. integer x = 841
  2649. integer y = 32
  2650. integer width = 242
  2651. integer height = 60
  2652. integer textsize = -9
  2653. long backcolor = 12632256
  2654. string text = "邮件管理"
  2655. alignment alignment = center!
  2656. end type
  2657. event clicked;call super::clicked;f_sys_main(1206)
  2658. //OpenWithParm(w_email_view,0)
  2659. end event
  2660. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2661. end event
  2662. type p_mana_msg from picture within tabpage_msg
  2663. integer x = 763
  2664. integer y = 28
  2665. integer width = 73
  2666. integer height = 64
  2667. boolean originalsize = true
  2668. string picturename = "graphics/open_m.bmp"
  2669. boolean focusrectangle = false
  2670. end type
  2671. event clicked;st_mana_msg.triggerevent(clicked!)
  2672. end event
  2673. type st_msg_new from uo_text_m within tabpage_msg
  2674. integer x = 517
  2675. integer y = 32
  2676. integer width = 242
  2677. integer height = 60
  2678. integer textsize = -9
  2679. long backcolor = 12632256
  2680. string text = "发送邮件"
  2681. alignment alignment = center!
  2682. end type
  2683. event clicked;call super::clicked;s_admsg s_msg
  2684. s_msg.ifback = 0
  2685. openwithparm(w_msg_send,s_msg)
  2686. end event
  2687. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2688. end event
  2689. type p_msg_new from picture within tabpage_msg
  2690. integer x = 439
  2691. integer y = 28
  2692. integer width = 73
  2693. integer height = 64
  2694. boolean originalsize = true
  2695. string picturename = "graphics/new_m.BMP"
  2696. boolean focusrectangle = false
  2697. end type
  2698. event clicked;st_msg_new.triggerevent(clicked!)
  2699. end event
  2700. type st_7 from uo_text_m within tabpage_msg
  2701. integer x = 41
  2702. integer y = 24
  2703. integer width = 293
  2704. integer weight = 700
  2705. long textcolor = 0
  2706. long backcolor = 12632256
  2707. string text = "内部邮件"
  2708. end type
  2709. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2710. end event
  2711. type tabpage_sale from userobject within tab_ljfieb
  2712. event create ( )
  2713. event destroy ( )
  2714. integer x = 18
  2715. integer y = 112
  2716. integer width = 3502
  2717. integer height = 1948
  2718. long backcolor = 16777215
  2719. string text = "销售电子商务"
  2720. long tabtextcolor = 33554432
  2721. long tabbackcolor = 16777215
  2722. string picturename = "UserObject5!"
  2723. long picturemaskcolor = 536870912
  2724. r_6 r_6
  2725. r_8 r_8
  2726. r_4 r_4
  2727. dw_sale_rece dw_sale_rece
  2728. st_15 st_15
  2729. st_retrieve_sale_re st_retrieve_sale_re
  2730. p_7 p_7
  2731. st_mtrl_propel st_mtrl_propel
  2732. p_6 p_6
  2733. st_more_sale st_more_sale
  2734. p_9 p_9
  2735. st_14 st_14
  2736. dw_sale_msg dw_sale_msg
  2737. st_salemsg st_salemsg
  2738. p_salemsg p_salemsg
  2739. st_mng_sale st_mng_sale
  2740. p_mng_sale p_mng_sale
  2741. st_salemsg_retrieve st_salemsg_retrieve
  2742. p_salemsg_retrieve p_salemsg_retrieve
  2743. dw_sale_send dw_sale_send
  2744. st_13 st_13
  2745. st_12 st_12
  2746. p_12 p_12
  2747. st_more_sales st_more_sales
  2748. p_13 p_13
  2749. end type
  2750. on tabpage_sale.create
  2751. this.r_6=create r_6
  2752. this.r_8=create r_8
  2753. this.r_4=create r_4
  2754. this.dw_sale_rece=create dw_sale_rece
  2755. this.st_15=create st_15
  2756. this.st_retrieve_sale_re=create st_retrieve_sale_re
  2757. this.p_7=create p_7
  2758. this.st_mtrl_propel=create st_mtrl_propel
  2759. this.p_6=create p_6
  2760. this.st_more_sale=create st_more_sale
  2761. this.p_9=create p_9
  2762. this.st_14=create st_14
  2763. this.dw_sale_msg=create dw_sale_msg
  2764. this.st_salemsg=create st_salemsg
  2765. this.p_salemsg=create p_salemsg
  2766. this.st_mng_sale=create st_mng_sale
  2767. this.p_mng_sale=create p_mng_sale
  2768. this.st_salemsg_retrieve=create st_salemsg_retrieve
  2769. this.p_salemsg_retrieve=create p_salemsg_retrieve
  2770. this.dw_sale_send=create dw_sale_send
  2771. this.st_13=create st_13
  2772. this.st_12=create st_12
  2773. this.p_12=create p_12
  2774. this.st_more_sales=create st_more_sales
  2775. this.p_13=create p_13
  2776. this.Control[]={this.r_6,&
  2777. this.r_8,&
  2778. this.r_4,&
  2779. this.dw_sale_rece,&
  2780. this.st_15,&
  2781. this.st_retrieve_sale_re,&
  2782. this.p_7,&
  2783. this.st_mtrl_propel,&
  2784. this.p_6,&
  2785. this.st_more_sale,&
  2786. this.p_9,&
  2787. this.st_14,&
  2788. this.dw_sale_msg,&
  2789. this.st_salemsg,&
  2790. this.p_salemsg,&
  2791. this.st_mng_sale,&
  2792. this.p_mng_sale,&
  2793. this.st_salemsg_retrieve,&
  2794. this.p_salemsg_retrieve,&
  2795. this.dw_sale_send,&
  2796. this.st_13,&
  2797. this.st_12,&
  2798. this.p_12,&
  2799. this.st_more_sales,&
  2800. this.p_13}
  2801. end on
  2802. on tabpage_sale.destroy
  2803. destroy(this.r_6)
  2804. destroy(this.r_8)
  2805. destroy(this.r_4)
  2806. destroy(this.dw_sale_rece)
  2807. destroy(this.st_15)
  2808. destroy(this.st_retrieve_sale_re)
  2809. destroy(this.p_7)
  2810. destroy(this.st_mtrl_propel)
  2811. destroy(this.p_6)
  2812. destroy(this.st_more_sale)
  2813. destroy(this.p_9)
  2814. destroy(this.st_14)
  2815. destroy(this.dw_sale_msg)
  2816. destroy(this.st_salemsg)
  2817. destroy(this.p_salemsg)
  2818. destroy(this.st_mng_sale)
  2819. destroy(this.p_mng_sale)
  2820. destroy(this.st_salemsg_retrieve)
  2821. destroy(this.p_salemsg_retrieve)
  2822. destroy(this.dw_sale_send)
  2823. destroy(this.st_13)
  2824. destroy(this.st_12)
  2825. destroy(this.p_12)
  2826. destroy(this.st_more_sales)
  2827. destroy(this.p_13)
  2828. end on
  2829. event constructor;if sys_option_if_ljfieb = 0 then this.visible = false
  2830. end event
  2831. type r_6 from rectangle within tabpage_sale
  2832. long linecolor = 134217734
  2833. integer linethickness = 4
  2834. long fillcolor = 12632256
  2835. integer x = 2299
  2836. integer y = 8
  2837. integer width = 1198
  2838. integer height = 100
  2839. end type
  2840. event constructor;this.fillcolor = rgb(184,202,238)
  2841. end event
  2842. type r_8 from rectangle within tabpage_sale
  2843. long linecolor = 134217734
  2844. integer linethickness = 4
  2845. long fillcolor = 12632256
  2846. integer y = 948
  2847. integer width = 3319
  2848. integer height = 100
  2849. end type
  2850. event constructor;this.fillcolor = rgb(184,202,238)
  2851. end event
  2852. type r_4 from rectangle within tabpage_sale
  2853. long linecolor = 134217734
  2854. integer linethickness = 4
  2855. long fillcolor = 12632256
  2856. integer y = 8
  2857. integer width = 2290
  2858. integer height = 100
  2859. end type
  2860. event constructor;this.fillcolor = rgb(184,202,238)
  2861. end event
  2862. type dw_sale_rece from u_dw_rbtnfilter within tabpage_sale
  2863. integer y = 104
  2864. integer width = 2290
  2865. integer height = 828
  2866. integer taborder = 30
  2867. string dataobject = "dw_ljfieb_sale_rece_mainface"
  2868. boolean hscrollbar = true
  2869. boolean vscrollbar = true
  2870. boolean hsplitscroll = true
  2871. borderstyle borderstyle = stylebox!
  2872. end type
  2873. event doubleclicked;call super::doubleclicked;parent.getparent().getparent().triggerevent('ue_buytask_rece_ljfieb')
  2874. end event
  2875. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2876. THIS.SelectRow(0,FALSE)
  2877. THIS.SelectRow(currentrow,TRUE)
  2878. end event
  2879. type st_15 from uo_text_m within tabpage_sale
  2880. integer x = 41
  2881. integer y = 24
  2882. integer width = 251
  2883. integer weight = 700
  2884. long textcolor = 0
  2885. long backcolor = 12632256
  2886. string text = "待处理"
  2887. end type
  2888. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2889. end event
  2890. type st_retrieve_sale_re from uo_text_m_main within tabpage_sale
  2891. integer x = 553
  2892. integer y = 36
  2893. integer width = 155
  2894. integer height = 48
  2895. integer textsize = -9
  2896. long backcolor = 12632256
  2897. string text = "刷新"
  2898. end type
  2899. event clicked;call super::clicked;wf_retrieve_sale_rece()
  2900. end event
  2901. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2902. end event
  2903. type p_7 from picture within tabpage_sale
  2904. integer x = 475
  2905. integer y = 28
  2906. integer width = 73
  2907. integer height = 64
  2908. string pointer = "HAND.CUR"
  2909. boolean originalsize = true
  2910. string picturename = "graphics/refresh_m.BMP"
  2911. boolean focusrectangle = false
  2912. end type
  2913. event clicked;st_retrieve_sale_re.triggerevent(clicked!)
  2914. end event
  2915. type st_mtrl_propel from uo_text_m_main within tabpage_sale
  2916. integer x = 782
  2917. integer y = 36
  2918. integer width = 251
  2919. integer height = 48
  2920. integer textsize = -9
  2921. long backcolor = 12632256
  2922. string text = "资料推送"
  2923. end type
  2924. event clicked;call super::clicked;IF Not f_power_ind(1575) THEN
  2925. MessageBox(publ_operator,sys_msg_pow)
  2926. RETURN
  2927. END IF
  2928. open(w_mtrl_propel_ljfieb)
  2929. end event
  2930. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2931. end event
  2932. type p_6 from picture within tabpage_sale
  2933. integer x = 704
  2934. integer y = 28
  2935. integer width = 73
  2936. integer height = 64
  2937. string pointer = "HAND.CUR"
  2938. boolean originalsize = true
  2939. string picturename = "graphics/update_m.BMP"
  2940. boolean focusrectangle = false
  2941. end type
  2942. event clicked;st_mtrl_propel.triggerevent(clicked!)
  2943. end event
  2944. type st_more_sale from uo_text_m_main within tabpage_sale
  2945. integer x = 1125
  2946. integer y = 36
  2947. integer width = 370
  2948. integer height = 48
  2949. integer textsize = -9
  2950. long textcolor = 0
  2951. long backcolor = 12632256
  2952. string text = "查看全部记录"
  2953. end type
  2954. event clicked;call super::clicked;//open(w_ljfieb_sale_rece_his)
  2955. end event
  2956. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2957. end event
  2958. type p_9 from picture within tabpage_sale
  2959. integer x = 1047
  2960. integer y = 28
  2961. integer width = 73
  2962. integer height = 64
  2963. boolean originalsize = true
  2964. string picturename = "graphics/open_m.bmp"
  2965. boolean focusrectangle = false
  2966. end type
  2967. event clicked;st_more_sale.triggerevent(clicked!)
  2968. end event
  2969. type st_14 from uo_text_m within tabpage_sale
  2970. integer x = 2345
  2971. integer y = 32
  2972. integer width = 329
  2973. integer weight = 700
  2974. long textcolor = 0
  2975. long backcolor = 12632256
  2976. string text = "客户消息"
  2977. end type
  2978. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2979. end event
  2980. type dw_sale_msg from datawindow within tabpage_sale
  2981. integer x = 2299
  2982. integer y = 104
  2983. integer width = 1198
  2984. integer height = 828
  2985. integer taborder = 60
  2986. string title = "none"
  2987. string dataobject = "dw_ljfieb_sale_msg_mainface"
  2988. boolean vscrollbar = true
  2989. boolean livescroll = true
  2990. end type
  2991. event doubleclicked;parent.getparent().getparent().triggerevent('ue_sale_msg_view_ljfieb')
  2992. end event
  2993. event rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2994. THIS.SelectRow(0,FALSE)
  2995. THIS.SelectRow(currentrow,TRUE)
  2996. end event
  2997. type st_salemsg from uo_text_m_main within tabpage_sale
  2998. integer x = 2784
  2999. integer y = 36
  3000. integer width = 174
  3001. integer height = 48
  3002. integer textsize = -9
  3003. long backcolor = 12632256
  3004. string text = "发消息"
  3005. end type
  3006. event clicked;call super::clicked;IF Not f_power_ind(1595) THEN
  3007. MessageBox(publ_operator,sys_msg_pow)
  3008. RETURN
  3009. END IF
  3010. s_edit_index_tran s_buy_msg
  3011. s_buy_msg.b_long = 2
  3012. s_buy_msg.c_long = 0
  3013. openwithparm(w_msg_send_ljfieb,s_buy_msg)
  3014. end event
  3015. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3016. end event
  3017. type p_salemsg from picture within tabpage_sale
  3018. integer x = 2702
  3019. integer y = 28
  3020. integer width = 73
  3021. integer height = 64
  3022. string pointer = "HAND.CUR"
  3023. boolean originalsize = true
  3024. string picturename = "graphics/new_m.BMP"
  3025. boolean focusrectangle = false
  3026. end type
  3027. event clicked;st_salemsg.triggerevent(clicked!)
  3028. end event
  3029. type st_mng_sale from uo_text_m_main within tabpage_sale
  3030. integer x = 3040
  3031. integer y = 36
  3032. integer width = 242
  3033. integer height = 48
  3034. integer textsize = -9
  3035. long backcolor = 12632256
  3036. string text = "消息管理"
  3037. end type
  3038. event clicked;call super::clicked;openwithparm(w_message_mng_ljfieb,2)
  3039. wf_retrieve_sale_msg()
  3040. end event
  3041. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3042. end event
  3043. type p_mng_sale from picture within tabpage_sale
  3044. integer x = 2962
  3045. integer y = 28
  3046. integer width = 73
  3047. integer height = 64
  3048. string pointer = "HAND.CUR"
  3049. boolean originalsize = true
  3050. string picturename = "graphics/open_m.bmp"
  3051. boolean focusrectangle = false
  3052. end type
  3053. event clicked;st_mng_sale.triggerevent(clicked!)
  3054. end event
  3055. type st_salemsg_retrieve from uo_text_m_main within tabpage_sale
  3056. integer x = 3360
  3057. integer y = 36
  3058. integer width = 137
  3059. integer height = 48
  3060. integer textsize = -9
  3061. long backcolor = 12632256
  3062. string text = "刷新"
  3063. end type
  3064. event clicked;call super::clicked;wf_retrieve_sale_msg()
  3065. end event
  3066. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3067. end event
  3068. type p_salemsg_retrieve from picture within tabpage_sale
  3069. integer x = 3282
  3070. integer y = 28
  3071. integer width = 73
  3072. integer height = 64
  3073. boolean originalsize = true
  3074. string picturename = "graphics/refresh_m.BMP"
  3075. boolean focusrectangle = false
  3076. end type
  3077. type dw_sale_send from u_dw_rbtnfilter within tabpage_sale
  3078. integer y = 1044
  3079. integer width = 3493
  3080. integer height = 868
  3081. integer taborder = 30
  3082. string dataobject = "dw_ljfieb_sale_send_mainface"
  3083. boolean hscrollbar = true
  3084. boolean vscrollbar = true
  3085. boolean hsplitscroll = true
  3086. borderstyle borderstyle = stylebox!
  3087. end type
  3088. event doubleclicked;call super::doubleclicked;IF row <= 0 THEN RETURN
  3089. if this.object.ljfieb_packet_billtype[row] = 3 then return
  3090. String ls_code,ls_sccode
  3091. Long ll_scid
  3092. ls_sccode = This.Object.ljfieb_packet_receivesccode[row]
  3093. SELECT scid
  3094. INTO :ll_scid
  3095. FROM u_scdef
  3096. Where sccode = :ls_sccode;
  3097. IF sqlca.SQLCode <> 0 THEN ll_scid = 0
  3098. ls_code = This.Object.ljfieb_packet_relatedcode[row]
  3099. f_open_win(ll_scid,ls_code)
  3100. end event
  3101. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3102. THIS.SelectRow(0,FALSE)
  3103. THIS.SelectRow(currentrow,TRUE)
  3104. end event
  3105. type st_13 from uo_text_m within tabpage_sale
  3106. integer x = 37
  3107. integer y = 964
  3108. integer width = 384
  3109. integer weight = 700
  3110. long textcolor = 0
  3111. long backcolor = 12632256
  3112. string text = "待客户处理"
  3113. end type
  3114. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3115. end event
  3116. type st_12 from uo_text_m_main within tabpage_sale
  3117. integer x = 553
  3118. integer y = 976
  3119. integer width = 123
  3120. integer height = 48
  3121. integer textsize = -9
  3122. long backcolor = 12632256
  3123. string text = "刷新"
  3124. end type
  3125. event clicked;call super::clicked;wf_retrieve_sale_send()
  3126. end event
  3127. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3128. end event
  3129. type p_12 from picture within tabpage_sale
  3130. integer x = 475
  3131. integer y = 968
  3132. integer width = 73
  3133. integer height = 64
  3134. boolean originalsize = true
  3135. string picturename = "graphics/refresh_m.BMP"
  3136. boolean focusrectangle = false
  3137. end type
  3138. type st_more_sales from uo_text_m_main within tabpage_sale
  3139. integer x = 782
  3140. integer y = 976
  3141. integer width = 347
  3142. integer height = 48
  3143. integer textsize = -9
  3144. long backcolor = 12632256
  3145. string text = "查看全部记录"
  3146. end type
  3147. event clicked;call super::clicked;open(w_ljfieb_sale_send_his)
  3148. end event
  3149. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3150. end event
  3151. type p_13 from picture within tabpage_sale
  3152. integer x = 704
  3153. integer y = 968
  3154. integer width = 73
  3155. integer height = 64
  3156. boolean originalsize = true
  3157. string picturename = "graphics/open_m.bmp"
  3158. boolean focusrectangle = false
  3159. end type
  3160. type tabpage_buy from userobject within tab_ljfieb
  3161. event create ( )
  3162. event destroy ( )
  3163. integer x = 18
  3164. integer y = 112
  3165. integer width = 3502
  3166. integer height = 1948
  3167. long backcolor = 16777215
  3168. string text = "采购电子商务"
  3169. long tabtextcolor = 33554432
  3170. long tabbackcolor = 16777215
  3171. string picturename = "CheckIn5!"
  3172. long picturemaskcolor = 536870912
  3173. r_5 r_5
  3174. r_7 r_7
  3175. r_9 r_9
  3176. dw_buy_msg dw_buy_msg
  3177. dw_buy_send dw_buy_send
  3178. st_16 st_16
  3179. st_retrieve_buy st_retrieve_buy
  3180. p_15 p_15
  3181. st_mtrl_receive st_mtrl_receive
  3182. p_14 p_14
  3183. dw_buy_feedback dw_buy_feedback
  3184. st_18 st_18
  3185. st_retrieve_buy_re st_retrieve_buy_re
  3186. p_8 p_8
  3187. st_more_buyfb st_more_buyfb
  3188. p_10 p_10
  3189. st_more_buys st_more_buys
  3190. p_11 p_11
  3191. st_17 st_17
  3192. st_buymsg st_buymsg
  3193. p_buymsg p_buymsg
  3194. st_mng_buy st_mng_buy
  3195. p_mng_buy p_mng_buy
  3196. st_buymsg_retrieve st_buymsg_retrieve
  3197. p_buymsg_retrieve p_buymsg_retrieve
  3198. end type
  3199. on tabpage_buy.create
  3200. this.r_5=create r_5
  3201. this.r_7=create r_7
  3202. this.r_9=create r_9
  3203. this.dw_buy_msg=create dw_buy_msg
  3204. this.dw_buy_send=create dw_buy_send
  3205. this.st_16=create st_16
  3206. this.st_retrieve_buy=create st_retrieve_buy
  3207. this.p_15=create p_15
  3208. this.st_mtrl_receive=create st_mtrl_receive
  3209. this.p_14=create p_14
  3210. this.dw_buy_feedback=create dw_buy_feedback
  3211. this.st_18=create st_18
  3212. this.st_retrieve_buy_re=create st_retrieve_buy_re
  3213. this.p_8=create p_8
  3214. this.st_more_buyfb=create st_more_buyfb
  3215. this.p_10=create p_10
  3216. this.st_more_buys=create st_more_buys
  3217. this.p_11=create p_11
  3218. this.st_17=create st_17
  3219. this.st_buymsg=create st_buymsg
  3220. this.p_buymsg=create p_buymsg
  3221. this.st_mng_buy=create st_mng_buy
  3222. this.p_mng_buy=create p_mng_buy
  3223. this.st_buymsg_retrieve=create st_buymsg_retrieve
  3224. this.p_buymsg_retrieve=create p_buymsg_retrieve
  3225. this.Control[]={this.r_5,&
  3226. this.r_7,&
  3227. this.r_9,&
  3228. this.dw_buy_msg,&
  3229. this.dw_buy_send,&
  3230. this.st_16,&
  3231. this.st_retrieve_buy,&
  3232. this.p_15,&
  3233. this.st_mtrl_receive,&
  3234. this.p_14,&
  3235. this.dw_buy_feedback,&
  3236. this.st_18,&
  3237. this.st_retrieve_buy_re,&
  3238. this.p_8,&
  3239. this.st_more_buyfb,&
  3240. this.p_10,&
  3241. this.st_more_buys,&
  3242. this.p_11,&
  3243. this.st_17,&
  3244. this.st_buymsg,&
  3245. this.p_buymsg,&
  3246. this.st_mng_buy,&
  3247. this.p_mng_buy,&
  3248. this.st_buymsg_retrieve,&
  3249. this.p_buymsg_retrieve}
  3250. end on
  3251. on tabpage_buy.destroy
  3252. destroy(this.r_5)
  3253. destroy(this.r_7)
  3254. destroy(this.r_9)
  3255. destroy(this.dw_buy_msg)
  3256. destroy(this.dw_buy_send)
  3257. destroy(this.st_16)
  3258. destroy(this.st_retrieve_buy)
  3259. destroy(this.p_15)
  3260. destroy(this.st_mtrl_receive)
  3261. destroy(this.p_14)
  3262. destroy(this.dw_buy_feedback)
  3263. destroy(this.st_18)
  3264. destroy(this.st_retrieve_buy_re)
  3265. destroy(this.p_8)
  3266. destroy(this.st_more_buyfb)
  3267. destroy(this.p_10)
  3268. destroy(this.st_more_buys)
  3269. destroy(this.p_11)
  3270. destroy(this.st_17)
  3271. destroy(this.st_buymsg)
  3272. destroy(this.p_buymsg)
  3273. destroy(this.st_mng_buy)
  3274. destroy(this.p_mng_buy)
  3275. destroy(this.st_buymsg_retrieve)
  3276. destroy(this.p_buymsg_retrieve)
  3277. end on
  3278. event constructor;if sys_option_if_ljfieb = 0 then this.visible = false
  3279. end event
  3280. type r_5 from rectangle within tabpage_buy
  3281. long linecolor = 134217734
  3282. integer linethickness = 4
  3283. long fillcolor = 12632256
  3284. integer y = 948
  3285. integer width = 3493
  3286. integer height = 100
  3287. end type
  3288. event constructor;this.fillcolor = rgb(184,202,238)
  3289. end event
  3290. type r_7 from rectangle within tabpage_buy
  3291. long linecolor = 134217734
  3292. integer linethickness = 4
  3293. long fillcolor = 12632256
  3294. integer x = 2299
  3295. integer y = 8
  3296. integer width = 1198
  3297. integer height = 100
  3298. end type
  3299. event constructor;this.fillcolor = rgb(184,202,238)
  3300. end event
  3301. type r_9 from rectangle within tabpage_buy
  3302. long linecolor = 134217734
  3303. integer linethickness = 4
  3304. long fillcolor = 12632256
  3305. integer y = 8
  3306. integer width = 2290
  3307. integer height = 100
  3308. end type
  3309. event constructor;this.fillcolor = rgb(184,202,238)
  3310. end event
  3311. type dw_buy_msg from datawindow within tabpage_buy
  3312. integer x = 2299
  3313. integer y = 104
  3314. integer width = 1198
  3315. integer height = 828
  3316. integer taborder = 40
  3317. string title = "none"
  3318. string dataobject = "dw_ljfieb_buy_msg_mainface"
  3319. boolean hscrollbar = true
  3320. boolean vscrollbar = true
  3321. boolean hsplitscroll = true
  3322. boolean livescroll = true
  3323. end type
  3324. event doubleclicked;parent.getparent().getparent().triggerevent('ue_buy_msg_view_ljfieb')
  3325. end event
  3326. event rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3327. THIS.SelectRow(0,FALSE)
  3328. THIS.SelectRow(currentrow,TRUE)
  3329. end event
  3330. type dw_buy_send from u_dw_rbtnfilter within tabpage_buy
  3331. integer y = 1044
  3332. integer width = 3493
  3333. integer height = 868
  3334. integer taborder = 40
  3335. string dataobject = "dw_ljfieb_buy_send_mainface"
  3336. boolean hscrollbar = true
  3337. boolean vscrollbar = true
  3338. boolean hsplitscroll = true
  3339. borderstyle borderstyle = stylebox!
  3340. end type
  3341. event doubleclicked;call super::doubleclicked;IF row <= 0 THEN RETURN
  3342. String ls_code,ls_sccode
  3343. Long ll_scid
  3344. ls_sccode = This.Object.ljfieb_packet_receivesccode[row]
  3345. SELECT scid
  3346. INTO :ll_scid
  3347. FROM u_scdef
  3348. Where sccode = :ls_sccode;
  3349. IF sqlca.SQLCode <> 0 THEN ll_scid = 0
  3350. ls_code = This.Object.ljfieb_packet_relatedcode[row]
  3351. f_open_win(ll_scid,ls_code)
  3352. end event
  3353. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3354. THIS.SelectRow(0,FALSE)
  3355. THIS.SelectRow(currentrow,TRUE)
  3356. end event
  3357. type st_16 from uo_text_m within tabpage_buy
  3358. integer x = 27
  3359. integer y = 964
  3360. integer width = 448
  3361. integer weight = 700
  3362. long textcolor = 0
  3363. long backcolor = 12632256
  3364. string text = "待供应商处理"
  3365. end type
  3366. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3367. end event
  3368. type st_retrieve_buy from uo_text_m_main within tabpage_buy
  3369. integer x = 553
  3370. integer y = 972
  3371. integer width = 146
  3372. integer height = 48
  3373. integer textsize = -9
  3374. long backcolor = 12632256
  3375. string text = "刷新"
  3376. end type
  3377. event clicked;call super::clicked;wf_retrieve_buy_send()
  3378. end event
  3379. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3380. end event
  3381. type p_15 from picture within tabpage_buy
  3382. integer x = 475
  3383. integer y = 964
  3384. integer width = 73
  3385. integer height = 64
  3386. boolean originalsize = true
  3387. string picturename = "graphics/refresh_m.BMP"
  3388. boolean focusrectangle = false
  3389. end type
  3390. event clicked;st_retrieve_buy.triggerevent(clicked!)
  3391. end event
  3392. type st_mtrl_receive from uo_text_m_main within tabpage_buy
  3393. integer x = 782
  3394. integer y = 36
  3395. integer width = 923
  3396. integer height = 48
  3397. integer textsize = -9
  3398. long backcolor = 12632256
  3399. string text = "资料同步(没有可同步的资料)"
  3400. end type
  3401. event clicked;call super::clicked;IF Not f_power_ind(1586) THEN
  3402. MessageBox(publ_operator,sys_msg_pow)
  3403. RETURN
  3404. END IF
  3405. open(w_mtrl_receive_ljfieb)
  3406. wf_retrieve_buy_feedback()
  3407. end event
  3408. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3409. end event
  3410. type p_14 from picture within tabpage_buy
  3411. integer x = 704
  3412. integer y = 28
  3413. integer width = 73
  3414. integer height = 64
  3415. string pointer = "HAND.CUR"
  3416. boolean originalsize = true
  3417. string picturename = "graphics/update2_m.BMP"
  3418. boolean focusrectangle = false
  3419. end type
  3420. event clicked;st_mtrl_receive.triggerevent(clicked!)
  3421. end event
  3422. type dw_buy_feedback from u_dw_rbtnfilter within tabpage_buy
  3423. integer y = 104
  3424. integer width = 2290
  3425. integer height = 828
  3426. integer taborder = 40
  3427. string dataobject = "dw_ljfieb_buy_feedback_mainface"
  3428. boolean hscrollbar = true
  3429. boolean vscrollbar = true
  3430. boolean hsplitscroll = true
  3431. borderstyle borderstyle = stylebox!
  3432. end type
  3433. event doubleclicked;call super::doubleclicked;parent.getparent().getparent().triggerevent('ue_buytask_feedback_ljfieb')
  3434. end event
  3435. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3436. THIS.SelectRow(0,FALSE)
  3437. THIS.SelectRow(currentrow,TRUE)
  3438. end event
  3439. type st_18 from uo_text_m within tabpage_buy
  3440. integer x = 41
  3441. integer y = 24
  3442. integer width = 251
  3443. integer weight = 700
  3444. long textcolor = 0
  3445. long backcolor = 12632256
  3446. string text = "待处理"
  3447. end type
  3448. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3449. end event
  3450. type st_retrieve_buy_re from uo_text_m_main within tabpage_buy
  3451. integer x = 553
  3452. integer y = 36
  3453. integer width = 137
  3454. integer height = 48
  3455. integer textsize = -9
  3456. long backcolor = 12632256
  3457. string text = "刷新"
  3458. end type
  3459. event clicked;call super::clicked;wf_retrieve_buy_feedback()
  3460. end event
  3461. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3462. end event
  3463. type p_8 from picture within tabpage_buy
  3464. integer x = 475
  3465. integer y = 28
  3466. integer width = 73
  3467. integer height = 64
  3468. string pointer = "HAND.CUR"
  3469. boolean originalsize = true
  3470. string picturename = "graphics/refresh_m.BMP"
  3471. boolean focusrectangle = false
  3472. end type
  3473. event clicked;st_retrieve_buy_re.triggerevent(clicked!)
  3474. end event
  3475. type st_more_buyfb from uo_text_m_main within tabpage_buy
  3476. integer x = 1787
  3477. integer y = 36
  3478. integer width = 343
  3479. integer height = 48
  3480. integer textsize = -9
  3481. long backcolor = 12632256
  3482. string text = "查看全部记录"
  3483. end type
  3484. event clicked;call super::clicked;//open(w_ljfieb_buy_feedback_his)
  3485. end event
  3486. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3487. end event
  3488. type p_10 from picture within tabpage_buy
  3489. integer x = 1710
  3490. integer y = 28
  3491. integer width = 73
  3492. integer height = 64
  3493. boolean originalsize = true
  3494. string picturename = "graphics/open_m.bmp"
  3495. boolean focusrectangle = false
  3496. end type
  3497. event clicked;st_more_buyfb.triggerevent(clicked!)
  3498. end event
  3499. type st_more_buys from uo_text_m_main within tabpage_buy
  3500. integer x = 782
  3501. integer y = 972
  3502. integer width = 361
  3503. integer height = 48
  3504. integer textsize = -9
  3505. long backcolor = 12632256
  3506. string text = "查看全部记录"
  3507. end type
  3508. event clicked;call super::clicked;open(w_ljfieb_buy_send_his)
  3509. end event
  3510. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3511. end event
  3512. type p_11 from picture within tabpage_buy
  3513. integer x = 704
  3514. integer y = 964
  3515. integer width = 73
  3516. integer height = 64
  3517. boolean originalsize = true
  3518. string picturename = "graphics/open_m.bmp"
  3519. boolean focusrectangle = false
  3520. end type
  3521. event clicked;st_more_buys.triggerevent(clicked!)
  3522. end event
  3523. type st_17 from uo_text_m within tabpage_buy
  3524. integer x = 2318
  3525. integer y = 24
  3526. integer width = 375
  3527. integer weight = 700
  3528. long textcolor = 0
  3529. long backcolor = 12632256
  3530. string text = "供应商消息"
  3531. end type
  3532. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3533. end event
  3534. type st_buymsg from uo_text_m_main within tabpage_buy
  3535. integer x = 2784
  3536. integer y = 36
  3537. integer width = 174
  3538. integer height = 48
  3539. integer textsize = -9
  3540. long backcolor = 12632256
  3541. string text = "发消息"
  3542. end type
  3543. event clicked;call super::clicked;IF Not f_power_ind(1595) THEN
  3544. MessageBox(publ_operator,sys_msg_pow)
  3545. RETURN
  3546. END IF
  3547. s_edit_index_tran s_buy_msg
  3548. s_buy_msg.b_long = 1
  3549. s_buy_msg.c_long = 0
  3550. openwithparm(w_msg_send_ljfieb,s_buy_msg)
  3551. end event
  3552. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3553. end event
  3554. type p_buymsg from picture within tabpage_buy
  3555. integer x = 2702
  3556. integer y = 28
  3557. integer width = 73
  3558. integer height = 64
  3559. string pointer = "HAND.CUR"
  3560. boolean originalsize = true
  3561. string picturename = "graphics/new_m.BMP"
  3562. boolean focusrectangle = false
  3563. end type
  3564. event clicked;st_buymsg.triggerevent(clicked!)
  3565. end event
  3566. type st_mng_buy from uo_text_m_main within tabpage_buy
  3567. integer x = 3040
  3568. integer y = 36
  3569. integer width = 238
  3570. integer height = 48
  3571. integer textsize = -9
  3572. long backcolor = 12632256
  3573. string text = "消息管理"
  3574. end type
  3575. event clicked;call super::clicked;openwithparm(w_message_mng_ljfieb,1)
  3576. wf_retrieve_buy_msg()
  3577. end event
  3578. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3579. end event
  3580. type p_mng_buy from picture within tabpage_buy
  3581. integer x = 2962
  3582. integer y = 28
  3583. integer width = 73
  3584. integer height = 64
  3585. string pointer = "HAND.CUR"
  3586. boolean originalsize = true
  3587. string picturename = "graphics/open_m.bmp"
  3588. boolean focusrectangle = false
  3589. end type
  3590. event clicked;st_mng_buy.triggerevent(clicked!)
  3591. end event
  3592. type st_buymsg_retrieve from uo_text_m_main within tabpage_buy
  3593. integer x = 3360
  3594. integer y = 36
  3595. integer width = 133
  3596. integer height = 48
  3597. integer textsize = -9
  3598. long backcolor = 12632256
  3599. string text = "刷新"
  3600. end type
  3601. event clicked;call super::clicked;wf_retrieve_buy_msg()
  3602. end event
  3603. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3604. end event
  3605. type p_buymsg_retrieve from picture within tabpage_buy
  3606. integer x = 3282
  3607. integer y = 28
  3608. integer width = 73
  3609. integer height = 64
  3610. boolean originalsize = true
  3611. string picturename = "graphics/refresh_m.BMP"
  3612. boolean focusrectangle = false
  3613. end type
  3614. event clicked;st_buymsg_retrieve.triggerevent(clicked!)
  3615. end event
  3616. type st_9 from uo_text_m within w_main_scware
  3617. integer x = 3186
  3618. integer y = 100
  3619. integer width = 293
  3620. integer weight = 700
  3621. long textcolor = 0
  3622. long backcolor = 12632256
  3623. string text = "快捷方式"
  3624. end type
  3625. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3626. end event
  3627. type p_shortcut from picture within w_main_scware
  3628. integer x = 3520
  3629. integer y = 104
  3630. integer width = 73
  3631. integer height = 64
  3632. boolean originalsize = true
  3633. string picturename = "graphics/open_m.bmp"
  3634. boolean focusrectangle = false
  3635. end type
  3636. event clicked;st_shortcut.triggerevent(clicked!)
  3637. end event
  3638. type st_shortcut from uo_text_m within w_main_scware
  3639. integer x = 3598
  3640. integer y = 108
  3641. integer width = 343
  3642. integer height = 60
  3643. integer textsize = -9
  3644. long backcolor = 12632256
  3645. string text = "快捷方式管理"
  3646. alignment alignment = center!
  3647. end type
  3648. event clicked;call super::clicked;parent.triggerevent("ue_add_shortcut")
  3649. end event
  3650. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  3651. end event
  3652. type sp_v1 from u_lbs_stsplitbar within w_main_scware
  3653. integer x = 1006
  3654. integer y = 1504
  3655. integer width = 9
  3656. integer height = 860
  3657. long backcolor = 134217730
  3658. string text = ""
  3659. long il_barcolor = 12426875
  3660. end type
  3661. event constructor;call super::constructor;//控制拖动条左右所能达到的边界距离
  3662. this.of_setminobjectsize(978)
  3663. this.of_setminobjectsize2(3550)
  3664. //78682240
  3665. end event
  3666. event lbuttonup;call super::lbuttonup;wf_resizetablepage( )
  3667. end event
  3668. type st_about from uo_text_m within w_main_scware
  3669. integer x = 3127
  3670. integer y = 16
  3671. integer width = 110
  3672. integer height = 52
  3673. boolean bringtotop = true
  3674. integer textsize = -9
  3675. boolean underline = true
  3676. long textcolor = 0
  3677. string text = "关于"
  3678. alignment alignment = center!
  3679. end type
  3680. event constructor;call super::constructor;this.backcolor = rgb(214,223,239)
  3681. end event
  3682. event clicked;call super::clicked;f_sys_main(805)
  3683. end event
  3684. type st_upload from uo_text_m within w_main_scware
  3685. integer x = 2606
  3686. integer y = 16
  3687. integer width = 110
  3688. integer height = 52
  3689. boolean bringtotop = true
  3690. integer textsize = -9
  3691. boolean underline = true
  3692. long textcolor = 0
  3693. string text = "升级"
  3694. alignment alignment = center!
  3695. end type
  3696. event constructor;call super::constructor;this.backcolor = rgb(214,223,239)
  3697. end event
  3698. event clicked;call super::clicked;m_sys_download om_1
  3699. om_1 = CREATE m_sys_download
  3700. om_1.PopMenu(THIS.X,THIS.Y + this.height)
  3701. DESTROY om_1
  3702. end event
  3703. type st_user from uo_text_m within w_main_scware
  3704. integer x = 2135
  3705. integer y = 16
  3706. integer width = 361
  3707. integer height = 52
  3708. boolean bringtotop = true
  3709. integer textsize = -9
  3710. boolean underline = true
  3711. long textcolor = 0
  3712. string text = "切换用户/帐套"
  3713. alignment alignment = center!
  3714. end type
  3715. event constructor;call super::constructor;this.backcolor = rgb(214,223,239)
  3716. end event
  3717. event clicked;call super::clicked;f_open(1)
  3718. end event
  3719. type st_longjoe from uo_text_m within w_main_scware
  3720. integer x = 2802
  3721. integer y = 16
  3722. integer width = 110
  3723. integer height = 52
  3724. boolean bringtotop = true
  3725. integer textsize = -9
  3726. boolean underline = true
  3727. long textcolor = 0
  3728. string text = "网站"
  3729. alignment alignment = center!
  3730. end type
  3731. event constructor;call super::constructor;this.backcolor = rgb(214,223,239)
  3732. end event
  3733. event clicked;call super::clicked;
  3734. string ls_url
  3735. if sys_ifoem = 1 then
  3736. ls_url = ProfileString (sys_inioem, "oem", "website",'http://www.lxqg.net')
  3737. else
  3738. ls_url = ProfileString ( sys_inifilename, 'cr', 'url', 'http://www.longserve.com' )
  3739. end if
  3740. run('explorer '+ls_url)
  3741. end event
  3742. type p_bar from picture within w_main_scware
  3743. integer width = 3616
  3744. integer height = 80
  3745. string picturename = "graphics\bar.bmp"
  3746. boolean focusrectangle = false
  3747. end type
  3748. event clicked;wf_mbtface()
  3749. //wf_mbtface(0)
  3750. end event
  3751. type p_scgl from uo_picture_m within w_main_scware
  3752. integer x = 50
  3753. integer y = 680
  3754. integer width = 859
  3755. integer height = 128
  3756. boolean bringtotop = true
  3757. string picturename = "graphics\mf_scgl_u.bmp"
  3758. end type
  3759. event clicked;call super::clicked;cur_ActiveWin = "SC"
  3760. wf_mbtface()
  3761. //wf_mbtface(11)
  3762. parent.triggerevent("mousemove")
  3763. end event
  3764. event constructor;call super::constructor;on_picture='graphics\mf_scgl_on.bmp'
  3765. b_on_picture=on_picture
  3766. cl_picture='graphics\mf_scgl_cl.bmp'
  3767. end event
  3768. event mouse;call super::mouse;io_cont=this
  3769. end event
  3770. type p_zlgl from uo_picture_m within w_main_scware
  3771. integer x = 50
  3772. integer y = 1120
  3773. integer width = 859
  3774. integer height = 128
  3775. boolean bringtotop = true
  3776. string picturename = "graphics\mf_zlgl_u.bmp"
  3777. end type
  3778. event clicked;cur_ActiveWin = "ZL"
  3779. wf_mbtface()
  3780. //wf_mbtface(10)
  3781. parent.triggerevent("mousemove")
  3782. end event
  3783. event constructor;call super::constructor;on_picture='graphics\mf_zlgl_on.bmp'
  3784. b_on_picture=on_picture
  3785. cl_picture='graphics\mf_zlgl_cl.bmp'
  3786. end event
  3787. event mouse;call super::mouse;io_cont=this
  3788. end event
  3789. type p_xtwh from uo_picture_m within w_main_scware
  3790. integer x = 50
  3791. integer y = 1268
  3792. integer width = 859
  3793. integer height = 128
  3794. boolean bringtotop = true
  3795. string picturename = "graphics\mf_xtwh_u.bmp"
  3796. end type
  3797. event clicked;cur_ActiveWin = "XT"
  3798. wf_mbtface()
  3799. //wf_mbtface(7)
  3800. end event
  3801. event constructor;call super::constructor;on_picture='graphics\mf_xtwh_on.bmp'
  3802. b_on_picture=on_picture
  3803. cl_picture='graphics\mf_xtwh_cl.bmp'
  3804. end event
  3805. event mouse;call super::mouse;io_cont=this
  3806. end event
  3807. type p_ckgl from uo_picture_m within w_main_scware
  3808. integer x = 50
  3809. integer y = 236
  3810. integer width = 859
  3811. integer height = 128
  3812. boolean bringtotop = true
  3813. string picturename = "graphics\mf_ckgl_u.bmp"
  3814. end type
  3815. event constructor;call super::constructor;on_picture='graphics\mf_ckgl_on.bmp'
  3816. b_on_picture=on_picture
  3817. cl_picture='graphics\mf_ckgl_cl.bmp'
  3818. end event
  3819. event mouse;call super::mouse;io_cont=this
  3820. end event
  3821. event clicked;cur_ActiveWin = "CK"
  3822. wf_mbtface()
  3823. //wf_mbtface(3)
  3824. parent.triggerevent("mousemove")
  3825. end event
  3826. type p_cggl from uo_picture_m within w_main_scware
  3827. integer x = 50
  3828. integer y = 384
  3829. integer width = 859
  3830. integer height = 128
  3831. boolean bringtotop = true
  3832. string picturename = "graphics\mf_cggl_u.bmp"
  3833. end type
  3834. event clicked;cur_ActiveWin = "CG"
  3835. wf_mbtface()
  3836. //wf_mbtface(4)
  3837. parent.triggerevent("mousemove")
  3838. end event
  3839. event constructor;call super::constructor;on_picture='graphics\mf_cggl_on.bmp'
  3840. b_on_picture=on_picture
  3841. cl_picture='graphics\mf_cggl_cl.bmp'
  3842. end event
  3843. event mouse;call super::mouse;io_cont=this
  3844. end event
  3845. type p_xsgl from uo_picture_m within w_main_scware
  3846. integer x = 50
  3847. integer y = 88
  3848. integer width = 859
  3849. integer height = 128
  3850. boolean bringtotop = true
  3851. string picturename = "graphics\mf_xsgl_u.bmp"
  3852. end type
  3853. event clicked;cur_ActiveWin = "XS"
  3854. wf_mbtface()
  3855. //wf_mbtface(1)
  3856. parent.triggerevent("mousemove")
  3857. end event
  3858. event constructor;call super::constructor;on_picture='graphics\mf_xsgl_on.bmp'
  3859. b_on_picture=on_picture
  3860. cl_picture='graphics\mf_xsgl_cl.bmp'
  3861. end event
  3862. event mouse;call super::mouse;io_cont=this
  3863. end event
  3864. type p_rsgz from uo_picture_m within w_main_scware
  3865. integer x = 50
  3866. integer y = 828
  3867. integer width = 859
  3868. integer height = 128
  3869. boolean bringtotop = true
  3870. string picturename = "graphics\mf_rsgz_u.bmp"
  3871. end type
  3872. event clicked;cur_ActiveWin = "RS"
  3873. wf_mbtface()
  3874. //wf_mbtface(8)
  3875. parent.triggerevent("mousemove")
  3876. end event
  3877. event constructor;call super::constructor;on_picture='graphics\mf_rsgz_on.bmp'
  3878. b_on_picture=on_picture
  3879. cl_picture='graphics\mf_rsgz_cl.bmp'
  3880. end event
  3881. event mouse;call super::mouse;io_cont=this
  3882. end event
  3883. type p_wxgl from uo_picture_m within w_main_scware
  3884. integer x = 50
  3885. integer y = 532
  3886. integer width = 859
  3887. integer height = 128
  3888. boolean bringtotop = true
  3889. string picturename = "graphics\mf_wxgl_u.bmp"
  3890. end type
  3891. event clicked;call super::clicked;cur_ActiveWin = "WX"
  3892. wf_mbtface()
  3893. //wf_mbtface(9)
  3894. parent.triggerevent("mousemove")
  3895. end event
  3896. event constructor;call super::constructor;on_picture='graphics\mf_wxgl_on.bmp'
  3897. b_on_picture=on_picture
  3898. cl_picture='graphics\mf_wxgl_cl.bmp'
  3899. end event
  3900. event mouse;call super::mouse;io_cont=this
  3901. end event
  3902. type p_cwgl from uo_picture_m within w_main_scware
  3903. integer x = 50
  3904. integer y = 972
  3905. integer width = 859
  3906. integer height = 128
  3907. string picturename = "graphics\mf_cwgl_u.bmp"
  3908. end type
  3909. event constructor;call super::constructor;on_picture='graphics\mf_cwgl_on.bmp'
  3910. b_on_picture=on_picture
  3911. cl_picture='graphics\mf_cwgl_cl.bmp'
  3912. end event
  3913. event mouse;call super::mouse;io_cont=this
  3914. end event
  3915. event clicked;cur_ActiveWin = "CW"
  3916. wf_mbtface()
  3917. //wf_mbtface(5)
  3918. parent.triggerevent("mousemove")
  3919. end event
  3920. type p_bom from picture within w_main_scware
  3921. integer y = 1444
  3922. integer width = 1509
  3923. integer height = 52
  3924. string picturename = "graphics\main_bom.bmp"
  3925. boolean focusrectangle = false
  3926. end type
  3927. type p_left from picture within w_main_scware
  3928. event mousemove pbm_mousemove
  3929. integer width = 997
  3930. integer height = 1448
  3931. string picturename = "graphics\main_left.bmp"
  3932. boolean focusrectangle = false
  3933. end type
  3934. event mousemove;parent.triggerevent("mousemove")
  3935. end event
  3936. event clicked;cur_ActiveWin = "OP"
  3937. wf_mbtface()
  3938. //wf_mbtface(0)
  3939. end event
  3940. type r_shortcut from rectangle within w_main_scware
  3941. long linecolor = 134217731
  3942. integer linethickness = 4
  3943. long fillcolor = 12632256
  3944. integer x = 3163
  3945. integer y = 80
  3946. integer width = 1120
  3947. integer height = 100
  3948. end type
  3949. event constructor;this.fillcolor = rgb(184,202,238)
  3950. end event
  3951. type lv_shortcut from listview within w_main_scware
  3952. event mousemove pbm_mousemove
  3953. integer x = 3163
  3954. integer y = 172
  3955. integer width = 1120
  3956. integer height = 1104
  3957. integer taborder = 20
  3958. string dragicon = "Debug5!"
  3959. boolean dragauto = true
  3960. integer textsize = -9
  3961. integer weight = 400
  3962. fontcharset fontcharset = gb2312charset!
  3963. fontpitch fontpitch = variable!
  3964. string facename = "宋体"
  3965. long textcolor = 33554432
  3966. boolean autoarrange = true
  3967. boolean buttonheader = false
  3968. boolean fixedlocations = true
  3969. boolean showheader = false
  3970. boolean hideselection = false
  3971. boolean trackselect = true
  3972. boolean oneclickactivate = true
  3973. boolean twoclickactivate = true
  3974. boolean headerdragdrop = true
  3975. boolean underlinehot = true
  3976. string largepicturename[] = {"graphics\shortcut1.bmp","graphics\define.bmp","graphics\report.bmp","graphics\xsd.bmp","graphics\cgd.bmp"}
  3977. long largepicturemaskcolor = 536870912
  3978. string smallpicturename[] = {"graphics\shortcut.bmp","graphics\define.bmp","graphics\report.bmp"}
  3979. long smallpicturemaskcolor = 536870912
  3980. long statepicturemaskcolor = 536870912
  3981. end type
  3982. event mousemove;//ins_x = xpos
  3983. //ins_y = ypos
  3984. end event
  3985. event doubleclicked;Long mainid
  3986. listviewitem l_lvi
  3987. s_sys_func s_lss
  3988. string ls_text, dsEventName
  3989. IF THIS.SelectedIndex() > 0 THEN
  3990. THIS.GetItem(THIS.SelectedIndex(),l_lvi)
  3991. s_lss = l_lvi.Data
  3992. mainid = s_lss.mainid
  3993. ls_text = l_lvi.label
  3994. IF Pos(ls_text,'(嵌入式)') > 0 THEN
  3995. dsEventName = 'ue_main_meun_report'
  3996. ELSEIF Pos(ls_text,'(外挂)') > 0 THEN
  3997. dsEventName = 'ue_main_meun_plugins'
  3998. ELSE
  3999. dsEventName = 'ue_main_menu_commnd'
  4000. END IF
  4001. parent.TriggerEvent(dsEventName,mainid,mainid)
  4002. END IF
  4003. end event
  4004. event rightclicked;
  4005. m_Dfc_Control_PopupMenu dmPopupMenu
  4006. String menustr
  4007. menustr = "Text=添加快捷方式~tEvent=ue_add_shortcut"
  4008. menustr = menustr + "|" + "Text=删除快捷方式~tEvent=ue_del_shortcut"
  4009. menustr = menustr + "|" + "Text=-"
  4010. IF lv_shortcut_type = 1 THEN
  4011. menustr = menustr + "|" + "Text=小图标~tEvent=ue_set_small"
  4012. menustr = menustr + "|" + "Text=大图标√~tEvent=ue_set_large"
  4013. ELSE
  4014. menustr = menustr + "|" + "Text=小图标√~tEvent=ue_set_small"
  4015. menustr = menustr + "|" + "Text=大图标~tEvent=ue_set_large"
  4016. END IF
  4017. IF Len(Trim(menustr)) <> 0 THEN
  4018. dmPopupMenu = CREATE m_Dfc_Control_PopupMenu
  4019. dmPopupMenu.mf_BuildMenu(THIS, menustr)
  4020. dmPopupMenu.mf_PopMenu()
  4021. DESTROY dmPopupMenu
  4022. END IF
  4023. end event
  4024. event dragdrop;//index = index
  4025. wf_set_shortcut()
  4026. //wf_set_shortcut(lv_Shortcut_oldindex, index)
  4027. //wf_refresh_shortcut()
  4028. //return 1
  4029. end event
  4030. event begindrag;////index = index
  4031. //
  4032. //Long ll_itemcnt, i, k
  4033. //listviewitem l_lvi
  4034. //s_sys_func s_lss
  4035. //string str_shortcutstr
  4036. //
  4037. //lv_Shortcut_funcid_cnt = 0
  4038. //ll_itemcnt = This.TotalItems()
  4039. //FOR i = 1 To ll_itemcnt
  4040. // This.GetItem(i,l_lvi)
  4041. // s_lss = l_lvi.Data
  4042. //
  4043. // lv_Shortcut_funcid_cnt++
  4044. // lv_Shortcut_funcid_arr[lv_Shortcut_funcid_cnt] = s_lss.funcid
  4045. // str_shortcutstr += String(s_lss.funcid)+","
  4046. //NEXT
  4047. //
  4048. //lv_Shortcut_oldindex = Index
  4049. //
  4050. //
  4051. //str_shortcutstr += "[I]:"+string(Index)
  4052. //st_1.text = str_shortcutstr
  4053. //st_1.bringtotop = true
  4054. //
  4055. end event
  4056. type cb_2 from uo_imflatbutton within w_main_scware
  4057. integer x = 3685
  4058. integer y = 1448
  4059. integer width = 210
  4060. integer height = 92
  4061. integer taborder = 30
  4062. boolean bringtotop = true
  4063. integer textsize = -11
  4064. string text = "︽"
  4065. integer picsize = 16
  4066. long color_bk_out = 16512494
  4067. long fontcolor = 2324453
  4068. end type
  4069. event clicked;call super::clicked;ShowTab = not ShowTab
  4070. wf_ShowTab()
  4071. //IF This.text = "︾" THEN
  4072. // This.text = '︽'
  4073. // This.Y = p_bom.Y
  4074. // tab_ljfieb.Y = This.Y //+ This.Height
  4075. //
  4076. // ShowTab = false
  4077. //ELSE
  4078. // This.text = "︾"
  4079. // tab_ljfieb.BringToTop = true
  4080. //
  4081. // This.Y = p_bar.Y + p_bar.Height
  4082. // tab_ljfieb.Y = This.Y //+ This.Height
  4083. //
  4084. // ShowTab = true
  4085. //END IF
  4086. //cb_2.TriggerEvent('ue_textchange')
  4087. //
  4088. //parent.triggerevent("resize")
  4089. end event