w_q6_main.srw 92 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806
  1. $PBExportHeader$w_q6_main.srw
  2. forward
  3. global type w_q6_main from w_publ_base
  4. end type
  5. type p_left from picture within w_q6_main
  6. end type
  7. type p_right from picture within w_q6_main
  8. end type
  9. type p_middle from picture within w_q6_main
  10. end type
  11. type tv_func from treeview within w_q6_main
  12. end type
  13. type tab_1 from tab within w_q6_main
  14. end type
  15. type tabpage_1 from userobject within tab_1
  16. end type
  17. type st_4 from statictext within tabpage_1
  18. end type
  19. type st_retr_msg from statictext within tabpage_1
  20. end type
  21. type p_retr_msg from picture within tabpage_1
  22. end type
  23. type st_msg_mng from statictext within tabpage_1
  24. end type
  25. type p_msg_mng from picture within tabpage_1
  26. end type
  27. type st_msg_new from statictext within tabpage_1
  28. end type
  29. type p_msg_new from picture within tabpage_1
  30. end type
  31. type p_1 from picture within tabpage_1
  32. end type
  33. type st_3 from statictext within tabpage_1
  34. end type
  35. type st_no_mess from statictext within tabpage_1
  36. end type
  37. type dw_2 from datawindow within tabpage_1
  38. end type
  39. type dw_1 from datawindow within tabpage_1
  40. end type
  41. type st_msg_title from statictext within tabpage_1
  42. end type
  43. type st_2 from statictext within tabpage_1
  44. end type
  45. type st_1 from statictext within tabpage_1
  46. end type
  47. type lv_shortcut from listview within tabpage_1
  48. end type
  49. type st_no_mess_warp from statictext within tabpage_1
  50. end type
  51. type tabpage_1 from userobject within tab_1
  52. st_4 st_4
  53. st_retr_msg st_retr_msg
  54. p_retr_msg p_retr_msg
  55. st_msg_mng st_msg_mng
  56. p_msg_mng p_msg_mng
  57. st_msg_new st_msg_new
  58. p_msg_new p_msg_new
  59. p_1 p_1
  60. st_3 st_3
  61. st_no_mess st_no_mess
  62. dw_2 dw_2
  63. dw_1 dw_1
  64. st_msg_title st_msg_title
  65. st_2 st_2
  66. st_1 st_1
  67. lv_shortcut lv_shortcut
  68. st_no_mess_warp st_no_mess_warp
  69. end type
  70. type tabpage_2 from userobject within tab_1
  71. end type
  72. type r_8 from rectangle within tabpage_2
  73. end type
  74. type r_6 from rectangle within tabpage_2
  75. end type
  76. type r_4 from rectangle within tabpage_2
  77. end type
  78. type st_salemsg_retrieve from uo_text_m_main within tabpage_2
  79. end type
  80. type p_salemsg_retrieve from picture within tabpage_2
  81. end type
  82. type st_mng_sale from uo_text_m_main within tabpage_2
  83. end type
  84. type p_mng_sale from picture within tabpage_2
  85. end type
  86. type st_salemsg from uo_text_m_main within tabpage_2
  87. end type
  88. type p_salemsg from picture within tabpage_2
  89. end type
  90. type st_14 from uo_text_m within tabpage_2
  91. end type
  92. type dw_sale_msg from datawindow within tabpage_2
  93. end type
  94. type st_more_sale from uo_text_m_main within tabpage_2
  95. end type
  96. type p_9 from picture within tabpage_2
  97. end type
  98. type st_mtrl_propel from uo_text_m_main within tabpage_2
  99. end type
  100. type p_6 from picture within tabpage_2
  101. end type
  102. type st_retrieve_sale_re from uo_text_m_main within tabpage_2
  103. end type
  104. type p_7 from picture within tabpage_2
  105. end type
  106. type st_15 from uo_text_m within tabpage_2
  107. end type
  108. type dw_sale_rece from u_dw_rbtnfilter within tabpage_2
  109. end type
  110. type st_13 from uo_text_m within tabpage_2
  111. end type
  112. type p_12 from picture within tabpage_2
  113. end type
  114. type st_12 from uo_text_m_main within tabpage_2
  115. end type
  116. type p_13 from picture within tabpage_2
  117. end type
  118. type st_more_sales from uo_text_m_main within tabpage_2
  119. end type
  120. type dw_sale_send from u_dw_rbtnfilter within tabpage_2
  121. end type
  122. type tabpage_2 from userobject within tab_1
  123. r_8 r_8
  124. r_6 r_6
  125. r_4 r_4
  126. st_salemsg_retrieve st_salemsg_retrieve
  127. p_salemsg_retrieve p_salemsg_retrieve
  128. st_mng_sale st_mng_sale
  129. p_mng_sale p_mng_sale
  130. st_salemsg st_salemsg
  131. p_salemsg p_salemsg
  132. st_14 st_14
  133. dw_sale_msg dw_sale_msg
  134. st_more_sale st_more_sale
  135. p_9 p_9
  136. st_mtrl_propel st_mtrl_propel
  137. p_6 p_6
  138. st_retrieve_sale_re st_retrieve_sale_re
  139. p_7 p_7
  140. st_15 st_15
  141. dw_sale_rece dw_sale_rece
  142. st_13 st_13
  143. p_12 p_12
  144. st_12 st_12
  145. p_13 p_13
  146. st_more_sales st_more_sales
  147. dw_sale_send dw_sale_send
  148. end type
  149. type tabpage_3 from userobject within tab_1
  150. end type
  151. type r_7 from rectangle within tabpage_3
  152. end type
  153. type st_buymsg_retrieve from uo_text_m_main within tabpage_3
  154. end type
  155. type p_buymsg_retrieve from picture within tabpage_3
  156. end type
  157. type st_mng_buy from uo_text_m_main within tabpage_3
  158. end type
  159. type p_mng_buy from picture within tabpage_3
  160. end type
  161. type st_buymsg from uo_text_m_main within tabpage_3
  162. end type
  163. type p_buymsg from picture within tabpage_3
  164. end type
  165. type st_17 from uo_text_m within tabpage_3
  166. end type
  167. type st_more_buyfb from uo_text_m_main within tabpage_3
  168. end type
  169. type p_10 from picture within tabpage_3
  170. end type
  171. type st_mtrl_receive from uo_text_m_main within tabpage_3
  172. end type
  173. type p_14 from picture within tabpage_3
  174. end type
  175. type st_retrieve_buy_re from uo_text_m_main within tabpage_3
  176. end type
  177. type p_8 from picture within tabpage_3
  178. end type
  179. type st_18 from uo_text_m within tabpage_3
  180. end type
  181. type dw_buy_msg from datawindow within tabpage_3
  182. end type
  183. type dw_buy_feedback from u_dw_rbtnfilter within tabpage_3
  184. end type
  185. type st_more_buys from uo_text_m_main within tabpage_3
  186. end type
  187. type p_11 from picture within tabpage_3
  188. end type
  189. type st_retrieve_buy from uo_text_m_main within tabpage_3
  190. end type
  191. type p_15 from picture within tabpage_3
  192. end type
  193. type st_16 from uo_text_m within tabpage_3
  194. end type
  195. type dw_buy_send from u_dw_rbtnfilter within tabpage_3
  196. end type
  197. type r_5 from rectangle within tabpage_3
  198. end type
  199. type r_9 from rectangle within tabpage_3
  200. end type
  201. type tabpage_3 from userobject within tab_1
  202. r_7 r_7
  203. st_buymsg_retrieve st_buymsg_retrieve
  204. p_buymsg_retrieve p_buymsg_retrieve
  205. st_mng_buy st_mng_buy
  206. p_mng_buy p_mng_buy
  207. st_buymsg st_buymsg
  208. p_buymsg p_buymsg
  209. st_17 st_17
  210. st_more_buyfb st_more_buyfb
  211. p_10 p_10
  212. st_mtrl_receive st_mtrl_receive
  213. p_14 p_14
  214. st_retrieve_buy_re st_retrieve_buy_re
  215. p_8 p_8
  216. st_18 st_18
  217. dw_buy_msg dw_buy_msg
  218. dw_buy_feedback dw_buy_feedback
  219. st_more_buys st_more_buys
  220. p_11 p_11
  221. st_retrieve_buy st_retrieve_buy
  222. p_15 p_15
  223. st_16 st_16
  224. dw_buy_send dw_buy_send
  225. r_5 r_5
  226. r_9 r_9
  227. end type
  228. type tab_1 from tab within w_q6_main
  229. tabpage_1 tabpage_1
  230. tabpage_2 tabpage_2
  231. tabpage_3 tabpage_3
  232. end type
  233. type p_sfqr from picture within w_q6_main
  234. end type
  235. type st_sfqr from statictext within w_q6_main
  236. end type
  237. type p_dysz from picture within w_q6_main
  238. end type
  239. type st_dysz from statictext within w_q6_main
  240. end type
  241. type p_help from picture within w_q6_main
  242. end type
  243. type st_help from statictext within w_q6_main
  244. end type
  245. type p_exit from picture within w_q6_main
  246. end type
  247. type st_exit from statictext within w_q6_main
  248. end type
  249. type p_about from picture within w_q6_main
  250. end type
  251. type st_about from statictext within w_q6_main
  252. end type
  253. type st_new from statictext within w_q6_main
  254. end type
  255. type p_new from picture within w_q6_main
  256. end type
  257. end forward
  258. global type w_q6_main from w_publ_base
  259. integer width = 5152
  260. integer height = 2972
  261. string menuname = "m_x_genapp_frame_sp1"
  262. boolean maxbox = true
  263. boolean resizable = true
  264. windowtype windowtype = main!
  265. windowstate windowstate = maximized!
  266. long backcolor = 16777215
  267. event ue_main_menu_commnd ( long arg_funcid )
  268. event ue_main_meun_plugins ( long arg_mainid )
  269. event ue_del_shortcut ( )
  270. p_left p_left
  271. p_right p_right
  272. p_middle p_middle
  273. tv_func tv_func
  274. tab_1 tab_1
  275. p_sfqr p_sfqr
  276. st_sfqr st_sfqr
  277. p_dysz p_dysz
  278. st_dysz st_dysz
  279. p_help p_help
  280. st_help st_help
  281. p_exit p_exit
  282. st_exit st_exit
  283. p_about p_about
  284. st_about st_about
  285. st_new st_new
  286. p_new p_new
  287. end type
  288. global w_q6_main w_q6_main
  289. type variables
  290. Long deep = 0
  291. Int retrieve_mm = 10
  292. uo_transmsg uo_msg
  293. s_main_menu ins_s_menu_rp[],ins_s_menu_fz[]
  294. m_sale_rp_biz om_biz_rp
  295. m_buy_rp om_buy_rp
  296. m_ware_rp om_ware_rp
  297. m_cw_rp om_cw_rp
  298. m_jg_rp om_jg_rp
  299. m_rsgz_rp om_rsgz_rp
  300. m_sale_rp om_sale_rp
  301. m_buy_fz om_buy_fz
  302. m_ware_fz om_ware_fz
  303. m_cw_fz om_cw_fz
  304. m_jg_fz om_jg_fz
  305. m_sale_fz om_sale_fz
  306. datawindow dw_guide
  307. end variables
  308. forward prototypes
  309. public function integer wf_refresh_shortcut ()
  310. public function integer pf_menutreegrowth_plugins (ref s_sys_func arg_s_func[], long arg_parentid)
  311. public function integer pf_menutreegrowth (long arg_handl, menu arg_prn_menu, long arg_funcid)
  312. public subroutine wf_build_menutree ()
  313. public subroutine wf_init_menu ()
  314. public subroutine wf_handle_click_guide (long arg_mainid, string arg_dwname, long arg_x, long arg_y)
  315. public function string wf_retr_guide (long arg_funcid, long arg_parentid)
  316. public subroutine wf_retr_msg ()
  317. public subroutine wf_retrieve_sale_send ()
  318. public subroutine wf_retrieve_sale_rece ()
  319. public subroutine wf_retrieve_sale_msg ()
  320. public subroutine wf_retrieve_buy_send ()
  321. public subroutine wf_retrieve_buy_feedback ()
  322. public subroutine wf_retrieve_buy_msg ()
  323. end prototypes
  324. event ue_main_menu_commnd(long arg_funcid);arg_funcid = Message.LongParm
  325. IF arg_funcid > 0 THEN
  326. f_sys_main(arg_funcid)
  327. END IF
  328. end event
  329. event ue_main_meun_plugins(long arg_mainid);arg_mainid = Message.LongParm
  330. String ls_filepath
  331. String ls_psw
  332. Long ll_dftWinState
  333. Long ll_fileid
  334. ll_fileid = arg_mainid - 41000
  335. SELECT filepath,
  336. psw,
  337. dftWinState
  338. INTO :ls_filepath,
  339. :ls_psw,
  340. :ll_dftWinState
  341. FROM u_plugins
  342. Where fileid = :ll_fileid;
  343. IF sqlca.SQLCode <> 0 THEN
  344. MessageBox('Error','打开外挂程序失败')
  345. RETURN
  346. END IF
  347. IF Pos(lower(ls_filepath), '.exe') > 0 THEN
  348. WindowState lwstmp
  349. IF ll_dftWinState = -1 THEN
  350. lwstmp = Minimized!
  351. ELSEIF ll_dftWinState = 0 THEN
  352. lwstmp = Normal!
  353. ELSE
  354. lwstmp = Maximized!
  355. END IF
  356. String ls_run
  357. ls_run = ls_psw + '&'
  358. ls_run += publ_userid + '&'
  359. ls_run += sqlca.Database + '&'
  360. ls_run += sqlca.UserID + '&'
  361. ls_run += f_psw_bczh(sqlca.DBPass,0,sys_power_key) + '&'
  362. ls_run += sqlca.LogID + '&'
  363. ls_run += sqlca.LogPass + '&'
  364. ls_run += sqlca.ServerName + '&'
  365. IF Run(sys_cur_path + ls_filepath + ' - ' +ls_run) = -1 THEN
  366. MessageBox('错误','运行程序失败!',stopsign!,ok!)
  367. RETURN
  368. END IF
  369. ELSE
  370. window lw_win
  371. s_edit_index_tran s_tran //翻页功能窗口 传递参数使用
  372. s_tran.if_retrieve_all = True //是否一次RETRIEVE所有行
  373. s_tran.work_mode = 0 //0-单纯编辑模式, 1-选择模式
  374. s_tran.arg_pkid = 0 //目标定位PKID (备用)
  375. s_tran.arg_string_code = '' //查询列部分内容,用于初步筛选
  376. s_tran.mainid = arg_mainid
  377. TRY
  378. s_sys_win_open[arg_mainid].Name = ls_filepath
  379. IF IsValid(s_sys_win_open[arg_mainid].win) THEN
  380. s_sys_win_open[arg_mainid].win.WindowState = Normal!
  381. s_sys_win_open[arg_mainid].win.BringToTop = True
  382. ELSE
  383. IF s_sys_win_open[arg_mainid].ifarg THEN
  384. s_tran.if_retrieve_all = local_retrieve_all //True
  385. OpenWithParm(lw_win,s_tran,s_sys_win_open[arg_mainid].Name)
  386. ELSE
  387. Open(lw_win,s_sys_win_open[arg_mainid].Name)
  388. END IF
  389. s_sys_win_open[arg_mainid].win = lw_win
  390. s_sys_win_open[arg_mainid].mainid = arg_mainid
  391. s_sys_win_open[arg_mainid].Title = lw_win.Title
  392. s_sys_win_open[arg_mainid].Handle = Handle(lw_win)
  393. END IF
  394. Catch(runtimeerror e)
  395. //Unknown object type: w_dismantle_install_tl3 at line 64 in ue_main_meun_plugins event of object w_main_scware.
  396. String ls_msg
  397. 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."
  398. IF Pos(e.Text, ls_msg ) > 0 THEN
  399. MessageBox('外挂运行错误', '窗口:'+s_sys_win_open[arg_mainid].Title+'不存在')
  400. ELSE
  401. MessageBox('', e.Text)
  402. END IF
  403. END TRY
  404. END IF
  405. RETURN
  406. end event
  407. event ue_del_shortcut();Long ll_hand,funcid
  408. listviewitem l_lvi
  409. String ls_tv_label,arg_msg
  410. s_sys_func s_lss
  411. IF tab_1.tabpage_1.lv_shortcut.SelectedIndex() <= 0 THEN RETURN
  412. uo_userpwr uo_user
  413. uo_user = CREATE uo_userpwr
  414. tab_1.tabpage_1.lv_shortcut.GetItem(tab_1.tabpage_1.lv_shortcut.SelectedIndex(),l_lvi)
  415. s_lss = l_lvi.Data
  416. funcid = s_lss.funcid
  417. IF funcid > 0 THEN
  418. IF uo_user.del_shortcut(sys_scid,sys_empid,funcid,arg_msg,TRUE) = 0 THEN
  419. MessageBox('错误',arg_msg, StopSign!, OK! )
  420. ELSE
  421. wf_refresh_shortcut()
  422. END IF
  423. END IF
  424. DESTROY uo_userpwr
  425. end event
  426. public function integer wf_refresh_shortcut ();String str_shortcutstr,str_tmp
  427. Int rslt = 1
  428. s_sys_func ls_s_func[]
  429. Long count = 0,ls_i
  430. Long handl
  431. String ls_power_str
  432. Long ll_hand,ll_funcid
  433. treeviewitem tvi
  434. SELECT shortcutstr
  435. INTO :str_shortcutstr
  436. FROM u_user
  437. WHERE scid = :sys_scid
  438. And empid = :sys_empid;
  439. IF sqlca.SQLCode <> 0 THEN
  440. RETURN 0
  441. END IF
  442. sys_ds_maininfo.SetFilter('')
  443. sys_ds_maininfo.Filter()
  444. Long ll_fileid, ll_parentid
  445. String ls_filename
  446. IF str_shortcutstr <> '' THEN
  447. DO WHILE Pos(str_shortcutstr,',') <> 0
  448. str_tmp = Trim(Left(str_shortcutstr,Pos(str_shortcutstr,',') - 1 ))
  449. str_shortcutstr = Right(str_shortcutstr,Len(str_shortcutstr) - Pos(str_shortcutstr,','))
  450. ll_funcid = Long(str_tmp)
  451. IF ll_funcid < 40000 THEN
  452. ls_i = sys_ds_maininfo.Find('funcid = ' + String(ll_funcid), 1, sys_ds_maininfo.RowCount())
  453. IF ls_i > 0 THEN
  454. count++
  455. ls_s_func[count].funcid = sys_ds_maininfo.Object.funcid[ls_i]
  456. ls_s_func[count].treename = sys_ds_maininfo.Object.treename[ls_i]
  457. ls_s_func[count].MenuName = sys_ds_maininfo.Object.MenuName[ls_i]
  458. ls_s_func[count].parentid = sys_ds_maininfo.Object.parentid[ls_i]
  459. ls_s_func[count].sortflag = sys_ds_maininfo.Object.sortflag[ls_i]
  460. ls_s_func[count].functype = sys_ds_maininfo.Object.functype[ls_i]
  461. ls_s_func[count].mainid = sys_ds_maininfo.Object.mainid[ls_i]
  462. END IF
  463. ELSE
  464. ll_fileid = ll_funcid - 41000
  465. SELECT filename, parentid
  466. INTO :ls_filename, :ll_parentid
  467. FROM u_plugins
  468. Where fileid = :ll_fileid;
  469. IF sqlca.SQLCode <> 0 THEN
  470. ls_filename = ''
  471. END IF
  472. IF ls_filename <> '' THEN
  473. count++
  474. ls_s_func[count].funcid = ll_funcid
  475. ls_s_func[count].treename = ls_filename+'(外挂)'
  476. ls_s_func[count].MenuName = ls_filename+'(外挂)'
  477. ls_s_func[count].parentid = ll_parentid
  478. ls_s_func[count].sortflag = count
  479. ls_s_func[count].functype = 8
  480. ls_s_func[count].mainid = ll_funcid
  481. ls_s_func[count].if_use = 1
  482. END IF
  483. END IF
  484. LOOP
  485. END IF
  486. tab_1.tabpage_1.lv_shortcut.setredraw(false)
  487. tab_1.tabpage_1.lv_shortcut.DeleteItems()
  488. listviewitem l_lvi
  489. string ls_define_ids = '1599,658,1353,662,660,661'
  490. string ls_sys_ids = '312,972,313,317'
  491. FOR ls_i = 1 To count
  492. l_lvi.Label = ls_s_func[ls_i].treename
  493. l_lvi.Data = ls_s_func[ls_i]
  494. IF pos(ls_s_func[ls_i].treename, "(外挂)") > 0 THEN
  495. l_lvi.PictureIndex = 11
  496. ELSEIF right(ls_s_func[ls_i].treename,1) = "表" THEN
  497. l_lvi.PictureIndex = 4
  498. elseif pos(ls_define_ids,string(ls_s_func[ls_i].parentid)) > 0 then
  499. l_lvi.PictureIndex = 3
  500. elseif pos(ls_sys_ids,string(ls_s_func[ls_i].parentid)) > 0 then
  501. l_lvi.PictureIndex = 5
  502. elseif pos(ls_s_func[ls_i].treename,'表') > 0 then
  503. l_lvi.PictureIndex = 4
  504. ELSE
  505. l_lvi.PictureIndex = 1
  506. END IF
  507. tab_1.tabpage_1.lv_shortcut.AddItem(l_lvi)
  508. NEXT
  509. tab_1.tabpage_1.lv_shortcut.setredraw(true)
  510. RETURN 1
  511. end function
  512. public function integer pf_menutreegrowth_plugins (ref s_sys_func arg_s_func[], long arg_parentid);String str_shortcutstr,str_tmp
  513. Int rslt = 1
  514. s_sys_func ls_s_func[]
  515. Long count = 0,ls_i
  516. Long handl
  517. String ls_power_str
  518. Long ll_hand,ll_funcid
  519. String ls_filepath, ls_filename
  520. count = UpperBound(arg_s_func)
  521. //加入插件
  522. Long ll_pluginscnt
  523. datastore ds
  524. ds = Create datastore
  525. ds.DataObject = 'u_plugins_index'
  526. ds.SetTransObject(sqlca)
  527. ll_pluginscnt = ds.Retrieve(sys_user_plugins, arg_parentid)
  528. //if arg_parentid = 0 then arg_parentid = 40000
  529. FOR ls_i = 1 To ll_pluginscnt
  530. ls_filename = Trim(ds.Object.Filename[ls_i])
  531. ls_filepath = Trim(ds.Object.FilePath[ls_i])
  532. ll_funcid = 41000 + ds.Object.fileid[ls_i]
  533. count++
  534. ls_s_func[count].funcid = ll_funcid
  535. ls_s_func[count].treename = ls_filename+'(外挂)'
  536. ls_s_func[count].MenuName = ls_filename+'(外挂)'
  537. ls_s_func[count].parentid = arg_parentid
  538. ls_s_func[count].sortflag = ls_i
  539. ls_s_func[count].functype = 8
  540. ls_s_func[count].mainid = ll_funcid
  541. ls_s_func[count].if_use = 1
  542. IF Not Pos(lower(ls_filepath),'.exe') > 0 THEN
  543. s_sys_win_open[ll_funcid].funcid = String(ll_funcid)
  544. s_sys_win_open[ll_funcid].Name = ls_filepath
  545. s_sys_win_open[ll_funcid].Title = ls_filename
  546. s_sys_win_open[ll_funcid].ifarg = True
  547. s_sys_win_open[ll_funcid].if_retrieve_all = True
  548. END IF
  549. NEXT
  550. arg_s_func = ls_s_func
  551. Destroy ds
  552. RETURN 1
  553. end function
  554. public function integer pf_menutreegrowth (long arg_handl, menu arg_prn_menu, long arg_funcid);Int rslt = 1
  555. s_sys_func ls_s_func[]
  556. Long count = 0,ls_i
  557. Long handl
  558. String ls_power_str
  559. Long ll_hand
  560. String ls_filter
  561. If sys_if_network = 1 Then
  562. ls_filter = 'parentid='+String(arg_funcid)+ ' and worktype <> 1 and if_use <> 0 and functype < 9 '
  563. Else
  564. ls_filter = 'parentid='+String(arg_funcid)+ ' and worktype <> 2 and if_use <> 0 and functype < 9 '
  565. End If
  566. If sys_version_type = 0 Then
  567. ls_filter = ls_filter + 'and ( Versiontype = 0 or Versiontype = -1 )'
  568. ElseIf sys_version_type = 1 Then
  569. ls_filter = ls_filter + 'and ( Versiontype = 1 or Versiontype = -1 )'
  570. ElseIf sys_version_type = 2 Then
  571. ls_filter = ls_filter + 'and ( Versiontype = 0 or Versiontype = -1 or Versiontype = 2 )'
  572. End If
  573. sys_ds_maininfo.SetFilter(ls_filter)
  574. sys_ds_maininfo.Filter()
  575. sys_ds_maininfo.SetSort('sortflag')
  576. sys_ds_maininfo.Sort()
  577. deep++
  578. If deep > 3000 Then //防止死递归
  579. Return 0
  580. End If
  581. For ls_i = 1 To sys_ds_maininfo.RowCount( )
  582. // IF sys_ds_maininfo.Object.funcid[ls_i] = 1766 THEN
  583. // ls_i = ls_i
  584. // END IF
  585. // IF sys_ds_maininfo.Object.if_use[ls_i] = 0 THEN CONTINUE
  586. // IF sys_ds_maininfo.Object.functype[ls_i] < 9 THEN
  587. // IF sys_ds_maininfo.Object.parentid[ls_i] = arg_funcid THEN
  588. If sys_option_hide_cw = 0 Then
  589. If sys_accsetbegin Then
  590. //账务初始化
  591. If sys_ds_maininfo.Object.funcid[ls_i] = 1950 Then Continue
  592. Else
  593. //账务
  594. If sys_ds_maininfo.Object.funcid[ls_i] = 1964 Then Continue
  595. End If
  596. Else
  597. //隐藏总帐菜单
  598. If sys_ds_maininfo.Object.funcid[ls_i] = 1932 Then Continue
  599. If sys_ds_maininfo.Object.funcid[ls_i] = 1950 Then Continue
  600. If sys_ds_maininfo.Object.funcid[ls_i] = 1964 Then Continue
  601. End If
  602. If sys_ds_maininfo.Object.treename[ls_i] <> '系统解决方案' &
  603. And sys_ds_maininfo.Object.treename[ls_i] <> '解决方案' &
  604. And sys_ds_maininfo.Object.treename[ls_i] <> '系统' Then
  605. If Mid(sys_pwrstr,sys_ds_maininfo.Object.funcid[ls_i],1) <> '1' Then Continue
  606. End If
  607. If Mid(sys_right,sys_ds_maininfo.Object.funcid[ls_i],1) = '1' Then
  608. If sys_ds_maininfo.Object.treename[ls_i] = '仓库' And &
  609. sys_option_hide_ware = 1 Then
  610. Continue
  611. End If
  612. If sys_ds_maininfo.Object.treename[ls_i] = '生产' And &
  613. sys_version = 802001 Then Continue
  614. If sys_ds_maininfo.Object.treename[ls_i] = '外协' And &
  615. sys_version = 802001 Then Continue
  616. If sys_ds_maininfo.Object.treename[ls_i] = '生产' And &
  617. sys_option_hide_sc = 1 Then
  618. Continue
  619. End If
  620. If sys_ds_maininfo.Object.treename[ls_i] = '外协' And &
  621. sys_option_hide_wfjg = 1 Then
  622. Continue
  623. End If
  624. If sys_ds_maininfo.Object.treename[ls_i] = '财务' And &
  625. sys_option_hide_money = 1 Then
  626. Continue
  627. End If
  628. If sys_ds_maininfo.Object.treename[ls_i] = '人事工资' And &
  629. sys_option_hide_gz = 1 Then
  630. Continue
  631. End If
  632. count++
  633. ls_s_func[count].funcid = sys_ds_maininfo.Object.funcid[ls_i]
  634. ls_s_func[count].treename = sys_ds_maininfo.Object.treename[ls_i]
  635. ls_s_func[count].MenuName = sys_ds_maininfo.Object.MenuName[ls_i]
  636. ls_s_func[count].parentid = sys_ds_maininfo.Object.parentid[ls_i]
  637. ls_s_func[count].sortflag = sys_ds_maininfo.Object.sortflag[ls_i]
  638. ls_s_func[count].functype = sys_ds_maininfo.Object.functype[ls_i]
  639. ls_s_func[count].mainid = sys_ds_maininfo.Object.mainid[ls_i]
  640. ls_s_func[count].if_use = sys_ds_maininfo.Object.if_use[ls_i]
  641. End If
  642. // END IF
  643. // END IF
  644. Next
  645. //IF arg_funcid = 0 THEN
  646. // //加入插件
  647. // Long ll_pluginscnt
  648. // datastore ds
  649. // ds = Create datastore
  650. // ds.DataObject = 'u_plugins_index'
  651. // ds.SetTransObject(sqlca)
  652. // ll_pluginscnt = ds.Retrieve(sys_user_plugins, 0)
  653. // IF ll_pluginscnt > 0 THEN
  654. // count++
  655. // ls_s_func[count].funcid = 40000
  656. // ls_s_func[count].MenuName = "外挂"
  657. // ls_s_func[count].treename = "外挂"
  658. // ls_s_func[count].parentid = 0
  659. // ls_s_func[count].functype = 0
  660. // ls_s_func[count].sortflag = count
  661. // END IF
  662. // Destroy ds
  663. //END IF
  664. //IF arg_funcid = 40000 THEN
  665. // //pf_menutreegrowth_plugins(ls_s_func)
  666. // count = UpperBound(ls_s_func)
  667. //END IF
  668. Long ll_parentid_plugins[] = {40000,40001,40002,40003,40004,40005,40006,40007,40008,40009,40010,40011}
  669. Long ll_funcid_plugins[] = {0, 256,258,259,349,1047,260,1541,1542,1543,1046,1557}
  670. Boolean lb_plugins = False
  671. Long ll_plugins_parentid
  672. string ls_define_ids = '1599,658,1353,662,660,661'
  673. string ls_sys_ids = '312,972,313,317'
  674. //检查是否有插件
  675. For ls_i = 1 To UpperBound(ll_funcid_plugins)
  676. If ll_funcid_plugins[ls_i] = arg_funcid Then
  677. ll_plugins_parentid = ll_parentid_plugins[ls_i]
  678. lb_plugins = True
  679. Exit
  680. End If
  681. Next
  682. If lb_plugins Then
  683. //加入插件
  684. Long ll_pluginscnt
  685. datastore ds
  686. ds = Create datastore
  687. ds.DataObject = 'u_plugins_index'
  688. ds.SetTransObject(sqlca)
  689. ll_pluginscnt = ds.Retrieve(sys_user_plugins, ll_plugins_parentid)
  690. // if ll_plugins_parentid = 0 then ll_plugins_parentid = 40000
  691. If ll_pluginscnt > 0 Then
  692. count++
  693. ls_s_func[count].funcid = ll_plugins_parentid
  694. ls_s_func[count].MenuName = "外挂"
  695. ls_s_func[count].treename = "外挂"
  696. ls_s_func[count].parentid = arg_funcid
  697. ls_s_func[count].functype = 0
  698. ls_s_func[count].sortflag = count
  699. End If
  700. Destroy ds
  701. End If
  702. If arg_funcid >= 40000 Then
  703. pf_menutreegrowth_plugins(ls_s_func, arg_funcid)
  704. count = UpperBound(ls_s_func)
  705. End If
  706. // //按模块增加插件
  707. //long ll_parentid_plugins
  708. //choose case arg_funcid
  709. // case 0 //全部
  710. // case 256 //销售
  711. // case 258 //仓库
  712. // case 259 //采购
  713. // case 349 //外协
  714. // case 1047 //生产
  715. // case 260 //人事工资
  716. // //case 261 //财务
  717. // case 1541 //应收
  718. // case 1542 //应付
  719. // case 1543 //出纳
  720. // case 1046 //零售
  721. // case 1557 //电子商务
  722. //end choose
  723. //if arg_funcid = 0 then
  724. // count++
  725. // ls_s_func[count].funcid = -1
  726. // ls_s_func[count].MenuName = "收藏"
  727. // ls_s_func[count].treename = "收藏"
  728. // ls_s_func[count].parentid = 0
  729. // ls_s_func[count].functype = 0
  730. // ls_s_func[count].sortflag = count
  731. //end if
  732. //
  733. //if arg_funcid = -1 then
  734. // wf_build_menu_shortcut(ls_s_func)
  735. // count = UpperBound(ls_s_func)
  736. //end if
  737. String ls_menuname,ls_treename
  738. long ll_lp
  739. treeviewitem tvi
  740. For ls_i = 1 To count
  741. ls_menuname = Trim(ls_s_func[ls_i].MenuName)
  742. ls_treename = ls_s_func[ls_i].treename
  743. if ls_s_func[ls_i].functype = 0 then
  744. ll_lp = 2
  745. elseif ls_s_func[ls_i].functype = 8 then
  746. if pos(ls_define_ids,string(ls_s_func[ls_i].parentid)) > 0 then
  747. ll_lp = 7
  748. elseif pos(ls_sys_ids,string(ls_s_func[ls_i].parentid)) > 0 then
  749. ll_lp = 9
  750. elseif pos(ls_s_func[ls_i].treename,'表') > 0 then
  751. ll_lp = 8
  752. else
  753. ll_lp = 5
  754. end if
  755. ELSEIF ls_s_func[ls_i].functype = 9 THEN
  756. ll_lp = 4
  757. else
  758. ll_lp = 6
  759. END IF
  760. handl = tv_func.InsertItemLast(arg_handl,ls_treename,ll_lp) //生成树
  761. tv_func.GetItem(handl,tvi)
  762. tvi.Data = ls_s_func[ls_i]
  763. tv_func.SetItem(handl,tvi)
  764. f_add_menuItem(arg_prn_menu,ls_i,ls_menuname,String(ls_s_func[ls_i].mainid))
  765. // if arg_funcid <> -1 then
  766. pf_menutreegrowth(handl,arg_prn_menu.Item[UpperBound(arg_prn_menu.Item)],ls_s_func[ls_i].funcid)
  767. // end if
  768. Next
  769. Return rslt
  770. end function
  771. public subroutine wf_build_menutree ();Long hand,ll_getitem
  772. If sys_if_network = 1 Then
  773. Long i
  774. For i = 1 To UpperBound(MenuID.Item[1].Item)
  775. If MenuID.Item[1].Item[i].Text = '帐套管理' Then
  776. MenuID.Item[1].Item[i].Visible = False
  777. Exit
  778. End If
  779. Next
  780. //MenuID.Item[1].Item[5].enabled = false //帐套管理
  781. //This.ChangeMenu(m_x_genapp_frame_sp1_net)
  782. Else
  783. //This.ChangeMenu(m_x_genapp_frame_sp1)
  784. End If
  785. s_sys_func s_sf_ls
  786. treeviewitem ltvi_item
  787. Long tvi_hdl = 0
  788. Do Until tv_func.FindItem(roottreeitem!, 0) = -1
  789. tv_func.DeleteItem(tvi_hdl)
  790. Loop
  791. hand = tv_func.InsertItemLast(0,sys_message_title,1)
  792. ll_getitem = tv_func.GetItem(hand, ltvi_item)
  793. If ll_getitem > 0 Then
  794. ltvi_item.Data = s_sf_ls
  795. tv_func.SetItem( hand, ltvi_item)
  796. End If
  797. pf_menutreegrowth(hand,This.MenuID,0)
  798. tv_func.ExpandItem(hand)
  799. MenuID.Item[1].Hide() //should be item[1], whatever the base menuitem is.
  800. MenuID.Item[1].Show()
  801. sys_ds_maininfo.RowsMove(1, sys_ds_maininfo.DeletedCount(), Delete!, sys_ds_maininfo, 1, Primary!)
  802. end subroutine
  803. public subroutine wf_init_menu ();om_biz_rp = Create m_sale_rp_biz
  804. om_buy_rp = Create m_buy_rp
  805. om_ware_rp = Create m_ware_rp
  806. om_cw_rp = Create m_cw_rp
  807. om_jg_rp = Create m_jg_rp
  808. om_rsgz_rp = Create m_rsgz_rp
  809. om_sale_rp = Create m_sale_rp
  810. om_buy_fz = create m_buy_fz
  811. om_ware_fz = create m_ware_fz
  812. om_cw_fz = create m_cw_fz
  813. om_jg_fz = create m_jg_fz
  814. om_sale_fz = create m_sale_fz
  815. Long i
  816. ////更多报表
  817. i++
  818. ins_s_menu_rp[i].dwname = 'dw_main_child_biz'
  819. ins_s_menu_rp[i].menu = om_biz_rp
  820. i++
  821. ins_s_menu_rp[i].dwname = 'dw_main_child_cg'
  822. ins_s_menu_rp[i].menu = om_buy_rp
  823. i++
  824. ins_s_menu_rp[i].dwname = 'dw_main_child_ck'
  825. ins_s_menu_rp[i].menu = om_ware_rp
  826. i++
  827. ins_s_menu_rp[i].dwname = 'dw_main_child_cw'
  828. ins_s_menu_rp[i].menu = om_cw_rp
  829. i++
  830. ins_s_menu_rp[i].dwname = 'dw_main_child_jg'
  831. ins_s_menu_rp[i].menu = om_jg_rp
  832. i++
  833. ins_s_menu_rp[i].dwname = 'dw_main_child_rsgz'
  834. ins_s_menu_rp[i].menu = om_rsgz_rp
  835. i++
  836. ins_s_menu_rp[i].dwname = 'dw_main_child_xs'
  837. ins_s_menu_rp[i].menu = om_sale_rp
  838. long j
  839. ////辅助功能
  840. j++
  841. ins_s_menu_fz[j].dwname = 'dw_main_child_cg'
  842. ins_s_menu_fz[j].menu = om_buy_fz
  843. j++
  844. ins_s_menu_fz[j].dwname = 'dw_main_child_ck'
  845. ins_s_menu_fz[j].menu = om_ware_fz
  846. j++
  847. ins_s_menu_fz[j].dwname = 'dw_main_child_cw'
  848. ins_s_menu_fz[j].menu = om_cw_fz
  849. j++
  850. ins_s_menu_fz[j].dwname = 'dw_main_child_jg'
  851. ins_s_menu_fz[j].menu = om_jg_fz
  852. j++
  853. ins_s_menu_fz[j].dwname = 'dw_main_child_xs'
  854. ins_s_menu_fz[j].menu = om_sale_fz
  855. end subroutine
  856. public subroutine wf_handle_click_guide (long arg_mainid, string arg_dwname, long arg_x, long arg_y);menu arg_m
  857. Long i
  858. If arg_mainid = 99999 Then
  859. For i = 1 To UpperBound(ins_s_menu_rp)
  860. If arg_dwname = ins_s_menu_rp[i].dwname Then
  861. ins_s_menu_rp[i].menu.PopMenu(arg_x,arg_y)
  862. Return
  863. End If
  864. Next
  865. ElseIf arg_mainid = 88888 Then
  866. For i = 1 To UpperBound(ins_s_menu_fz)
  867. If arg_dwname = ins_s_menu_fz[i].dwname Then
  868. ins_s_menu_fz[i].menu.PopMenu(arg_x,arg_y)
  869. Return
  870. End If
  871. Next
  872. ElseIf arg_mainid = 77777 and arg_dwname = 'dw_main_child_ck' Then
  873. m_ware_buy om_ware_buy
  874. om_ware_buy = CREATE m_ware_buy
  875. om_ware_buy.PopMenu(arg_x,arg_y)
  876. DESTROY om_ware_buy
  877. ElseIf arg_mainid = 66666 and arg_dwname = 'dw_main_child_ck' Then
  878. m_ware_sale om_ware_sale
  879. om_ware_sale = CREATE m_ware_sale
  880. om_ware_sale.PopMenu(arg_x,arg_y)
  881. DESTROY om_ware_sale
  882. End If
  883. end subroutine
  884. public function string wf_retr_guide (long arg_funcid, long arg_parentid);String arg_dwname
  885. If arg_funcid = 1046 Or arg_parentid = 1046 Then
  886. //零售
  887. arg_dwname = 'dw_main_child_biz'
  888. ElseIf arg_funcid = 256 Or arg_parentid = 256 Then
  889. //销售
  890. arg_dwname = 'dw_main_child_xs'
  891. ElseIf arg_funcid = 258 Or arg_parentid = 258 Then
  892. //仓库
  893. arg_dwname = 'dw_main_child_ck'
  894. ElseIf arg_funcid = 259 Or arg_parentid = 259 Then
  895. //采购
  896. arg_dwname = 'dw_main_child_cg'
  897. ElseIf arg_funcid = 349 Or arg_parentid = 349 Then
  898. //外协
  899. arg_dwname = 'dw_main_child_jg'
  900. ElseIf arg_funcid = 1047 Or arg_parentid = 1047 Then
  901. //生产
  902. arg_dwname = 'dw_main_child_sc'
  903. ElseIf arg_funcid = 260 Or arg_parentid = 260 Then
  904. //人事工资
  905. arg_dwname = 'dw_main_child_rsgz'
  906. ElseIf arg_funcid = 261 Or arg_parentid = 261 Then
  907. //财务
  908. arg_dwname = 'dw_main_child_cw'
  909. else
  910. arg_dwname = 'dw_main_child_in'
  911. End If
  912. Return arg_dwname
  913. end function
  914. public subroutine wf_retr_msg ();tab_1.tabpage_1.dw_2.retrieve(sys_empid)
  915. if tab_1.tabpage_1.dw_2.rowcount() > 0 then
  916. tab_1.tabpage_1.st_no_mess_warp.visible = false
  917. tab_1.tabpage_1.st_no_mess.visible = false
  918. else
  919. tab_1.tabpage_1.st_no_mess_warp.visible = true
  920. tab_1.tabpage_1.st_no_mess.visible = true
  921. end if
  922. end subroutine
  923. public subroutine wf_retrieve_sale_send ();IF sys_option_if_ljfieb = 0 THEN RETURN
  924. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  925. Long ll_i
  926. String ls_cuscode
  927. Long ll_sendcuscommid,ll_cusareaid
  928. String ls_custype,ls_receivesccode,ls_scstr,ls_SendSCcode
  929. String ls_areastr,ls_outrep
  930. Long ll_scid
  931. tab_1.tabpage_2.dw_sale_send.SetRedraw(False)
  932. tab_1.tabpage_2.dw_sale_send.Retrieve()
  933. IF Not sys_power_issuper THEN
  934. tab_1.tabpage_2.dw_sale_send.AcceptText()
  935. FOR ll_i = tab_1.tabpage_2.dw_sale_send.RowCount() To 1 Step -1
  936. ll_sendcuscommid = tab_1.tabpage_2.dw_sale_send.Object.ljfieb_packet_sendcuscommid[ll_i]
  937. ls_receivesccode = tab_1.tabpage_2.dw_sale_send.Object.ljfieb_packet_receivesccode[ll_i]
  938. ls_SendSCcode = tab_1.tabpage_2.dw_sale_send.Object.ljfieb_packet_SendSCcode [ll_i]
  939. IF sys_user_scstr <> '0' THEN
  940. SELECT scid INTO :ll_scid
  941. FROM u_scdef
  942. Where sccode = :ls_receivesccode Using sqlca;
  943. IF sqlca.SQLCode <> 0 THEN
  944. ll_scid = 0
  945. END IF
  946. ls_scstr = ','+String(ll_scid)+','
  947. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  948. tab_1.tabpage_2.dw_sale_send.DeleteRow(ll_i)
  949. CONTINUE
  950. END IF
  951. END IF
  952. SELECT CusCode
  953. INTO :ls_cuscode
  954. FROM LJFIEB_CusComm
  955. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  956. IF sys_email_sqlca.SQLCode <> 0 THEN
  957. ls_cuscode = ''
  958. END IF
  959. IF Trim(ls_cuscode) = '' THEN CONTINUE
  960. SELECT cusareaid,
  961. custype
  962. INTO
  963. :ll_cusareaid,
  964. :ls_custype
  965. FROM u_cust
  966. WHERE commcode = :ls_cuscode
  967. And commsccode = :ls_SendSCcode Using sqlca;
  968. IF sqlca.SQLCode <> 0 THEN CONTINUE
  969. IF sys_areastr <> '0' THEN
  970. ls_areastr = ','+String( ll_cusareaid)+','
  971. IF Pos(sys_areastr,ls_areastr) = 0 THEN
  972. tab_1.tabpage_2.dw_sale_send.DeleteRow(ll_i)
  973. CONTINUE
  974. END IF
  975. END IF
  976. IF sys_user_outrepstr <> '0' THEN
  977. ls_outrep = ','+String( ls_custype)+','
  978. IF Pos(sys_user_outrepstr,ls_outrep) = 0 THEN
  979. tab_1.tabpage_2.dw_sale_send.DeleteRow(ll_i)
  980. CONTINUE
  981. END IF
  982. END IF
  983. NEXT
  984. END IF
  985. tab_1.tabpage_2.dw_sale_send.SetRedraw(True)
  986. end subroutine
  987. public subroutine wf_retrieve_sale_rece ();IF sys_option_if_ljfieb = 0 THEN RETURN
  988. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  989. Long ll_i
  990. String ls_cuscode
  991. Long ll_sendcuscommid,ll_cusareaid
  992. String ls_custype,ls_receivesccode,ls_scstr,ls_SendSCcode
  993. String ls_areastr,ls_outrep
  994. Long ll_scid
  995. tab_1.tabpage_2.dw_sale_rece.SetRedraw(False)
  996. tab_1.tabpage_2.dw_sale_rece.Retrieve()
  997. IF Not sys_power_issuper THEN
  998. tab_1.tabpage_2.dw_sale_rece.AcceptText()
  999. FOR ll_i = tab_1.tabpage_2.dw_sale_rece.RowCount() To 1 Step -1
  1000. ll_sendcuscommid = tab_1.tabpage_2.dw_sale_rece.Object.ljfieb_packet_sendcuscommid[ll_i]
  1001. ls_receivesccode = tab_1.tabpage_2.dw_sale_rece.Object.ljfieb_packet_receivesccode[ll_i]
  1002. ls_SendSCcode = tab_1.tabpage_2.dw_sale_rece.Object.ljfieb_packet_SendSCcode [ll_i]
  1003. IF sys_user_scstr <> '0' THEN
  1004. SELECT scid INTO :ll_scid
  1005. FROM u_scdef
  1006. Where sccode = :ls_receivesccode Using sqlca;
  1007. IF sqlca.SQLCode <> 0 THEN
  1008. ll_scid = 0
  1009. END IF
  1010. ls_scstr = ','+String(ll_scid)+','
  1011. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1012. tab_1.tabpage_2.dw_sale_rece.DeleteRow(ll_i)
  1013. CONTINUE
  1014. END IF
  1015. END IF
  1016. SELECT CusCode
  1017. INTO :ls_cuscode
  1018. FROM LJFIEB_CusComm
  1019. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1020. IF sys_email_sqlca.SQLCode <> 0 THEN
  1021. ls_cuscode = ''
  1022. END IF
  1023. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1024. SELECT cusareaid,
  1025. custype
  1026. INTO
  1027. :ll_cusareaid,
  1028. :ls_custype
  1029. FROM u_cust
  1030. WHERE commcode = :ls_cuscode
  1031. And commsccode = :ls_SendSCcode Using sqlca;
  1032. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1033. IF sys_areastr <> '0' THEN
  1034. ls_areastr = ','+String( ll_cusareaid)+','
  1035. IF Pos(sys_areastr,ls_areastr) = 0 THEN
  1036. tab_1.tabpage_2.dw_sale_rece.DeleteRow(ll_i)
  1037. CONTINUE
  1038. END IF
  1039. END IF
  1040. IF sys_user_outrepstr <> '0' THEN
  1041. ls_outrep = ','+String( ls_custype)+','
  1042. IF Pos(sys_user_outrepstr,ls_outrep) = 0 THEN
  1043. tab_1.tabpage_2.dw_sale_rece.DeleteRow(ll_i)
  1044. CONTINUE
  1045. END IF
  1046. END IF
  1047. NEXT
  1048. END IF
  1049. tab_1.tabpage_2.dw_sale_rece.SetRedraw(True)
  1050. end subroutine
  1051. public subroutine wf_retrieve_sale_msg ();IF sys_option_if_ljfieb = 0 THEN RETURN
  1052. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  1053. Long ll_i
  1054. String ls_cuscode
  1055. Long ll_sendcuscommid,ll_cusareaid
  1056. String ls_custype,ls_receivesccode,ls_scstr,ls_SendSCcode
  1057. String ls_areastr,ls_outrep
  1058. Long ll_scid
  1059. tab_1.tabpage_2.dw_sale_msg.SetRedraw(False)
  1060. tab_1.tabpage_2.dw_sale_msg.Retrieve()
  1061. IF Not sys_power_issuper THEN
  1062. tab_1.tabpage_2.dw_sale_msg.AcceptText()
  1063. FOR ll_i = tab_1.tabpage_2.dw_sale_msg.RowCount() To 1 Step -1
  1064. ll_sendcuscommid = tab_1.tabpage_2.dw_sale_msg.Object.ljfieb_packet_sendcuscommid[ll_i]
  1065. ls_receivesccode = tab_1.tabpage_2.dw_sale_msg.Object.ljfieb_packet_receivesccode[ll_i]
  1066. ls_SendSCcode = tab_1.tabpage_2.dw_sale_msg.Object.ljfieb_packet_SendSCcode [ll_i]
  1067. IF sys_user_scstr <> '0' THEN
  1068. SELECT scid INTO :ll_scid
  1069. FROM u_scdef
  1070. Where sccode = :ls_receivesccode Using sqlca;
  1071. IF sqlca.SQLCode <> 0 THEN
  1072. ll_scid = 0
  1073. END IF
  1074. ls_scstr = ','+String(ll_scid)+','
  1075. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1076. tab_1.tabpage_2.dw_sale_msg.DeleteRow(ll_i)
  1077. CONTINUE
  1078. END IF
  1079. END IF
  1080. SELECT CusCode
  1081. INTO :ls_cuscode
  1082. FROM LJFIEB_CusComm
  1083. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1084. IF sys_email_sqlca.SQLCode <> 0 THEN
  1085. ls_cuscode = ''
  1086. END IF
  1087. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1088. SELECT cusareaid,
  1089. custype
  1090. INTO
  1091. :ll_cusareaid,
  1092. :ls_custype
  1093. FROM u_cust
  1094. WHERE commcode = :ls_cuscode
  1095. And commsccode = :ls_SendSCcode Using sqlca;
  1096. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1097. IF sys_areastr <> '0' THEN
  1098. ls_areastr = ','+String( ll_cusareaid)+','
  1099. IF Pos(sys_areastr,ls_areastr) = 0 THEN
  1100. tab_1.tabpage_2.dw_sale_msg.DeleteRow(ll_i)
  1101. CONTINUE
  1102. END IF
  1103. END IF
  1104. IF sys_user_outrepstr <> '0' THEN
  1105. ls_outrep = ','+String( ls_custype)+','
  1106. IF Pos(sys_user_outrepstr,ls_outrep) = 0 THEN
  1107. tab_1.tabpage_2.dw_sale_msg.DeleteRow(ll_i)
  1108. CONTINUE
  1109. END IF
  1110. END IF
  1111. NEXT
  1112. END IF
  1113. tab_1.tabpage_2.dw_sale_msg.SetRedraw(true)
  1114. end subroutine
  1115. public subroutine wf_retrieve_buy_send ();if sys_option_if_ljfieb = 0 then return
  1116. if sys_email_sqlca.DBHandle() = 0 then return
  1117. Long ll_i
  1118. String ls_cuscode
  1119. Long ll_ReceiveCusCommID,ll_spttypeid
  1120. String ls_spttype,ls_receivesccode, ls_SendSCcode,ls_scstr
  1121. Long ll_scid
  1122. tab_1.tabpage_3.dw_buy_send.SetRedraw(False)
  1123. tab_1.tabpage_3.dw_buy_send.retrieve()
  1124. IF Not sys_power_issuper THEN
  1125. tab_1.tabpage_3.dw_buy_send.AcceptText()
  1126. FOR ll_i = tab_1.tabpage_3.dw_buy_send.RowCount() To 1 Step -1
  1127. ll_ReceiveCusCommID = tab_1.tabpage_3.dw_buy_send.Object.ljfieb_packet_ReceiveCusCommID[ll_i]
  1128. ls_receivesccode = tab_1.tabpage_3.dw_buy_send.Object.ljfieb_packet_receivesccode[ll_i]
  1129. ls_SendSCcode = tab_1.tabpage_3.dw_buy_send.Object.ljfieb_packet_SendSCcode [ll_i]
  1130. IF sys_user_scstr <> '0' THEN
  1131. SELECT scid INTO :ll_scid
  1132. FROM u_scdef
  1133. Where sccode = :ls_SendSCcode Using sqlca;
  1134. IF sqlca.SQLCode <> 0 THEN
  1135. ll_scid = 0
  1136. END IF
  1137. ls_scstr = ','+String(ll_scid)+','
  1138. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1139. tab_1.tabpage_3.dw_buy_send.DeleteRow(ll_i)
  1140. CONTINUE
  1141. END IF
  1142. END IF
  1143. SELECT CusCode
  1144. INTO :ls_cuscode
  1145. FROM LJFIEB_CusComm
  1146. Where CusCommID = :ll_ReceiveCusCommID Using sys_email_sqlca;
  1147. IF sys_email_sqlca.SQLCode <> 0 THEN
  1148. ls_cuscode = ''
  1149. END IF
  1150. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1151. SELECT spttypeid
  1152. INTO :ll_spttypeid
  1153. FROM u_spt
  1154. WHERE commcode = :ls_cuscode
  1155. And commsccode = :ls_receivesccode Using sqlca;
  1156. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1157. IF sys_user_spttypestr <> '0' THEN
  1158. ls_spttype = ','+String( ll_spttypeid)+','
  1159. IF Pos(sys_user_spttypestr,ls_spttype) = 0 THEN
  1160. tab_1.tabpage_3.dw_buy_send.DeleteRow(ll_i)
  1161. CONTINUE
  1162. END IF
  1163. END IF
  1164. NEXT
  1165. END IF
  1166. tab_1.tabpage_3.dw_buy_send.SetRedraw(True)
  1167. end subroutine
  1168. public subroutine wf_retrieve_buy_feedback ();IF sys_option_if_ljfieb = 0 THEN RETURN
  1169. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  1170. Long ll_i
  1171. String ls_cuscode
  1172. Long ll_sendcuscommid,ll_spttypeid
  1173. String ls_spttype,ls_receivesccode, ls_SendSCcode,ls_scstr
  1174. Long ll_scid
  1175. tab_1.tabpage_3.dw_buy_feedback.SetRedraw(False)
  1176. tab_1.tabpage_3.dw_buy_feedback.Retrieve()
  1177. IF Not sys_power_issuper THEN
  1178. tab_1.tabpage_3.dw_buy_feedback.AcceptText()
  1179. FOR ll_i = tab_1.tabpage_3.dw_buy_feedback.RowCount() To 1 Step -1
  1180. IF tab_1.tabpage_3.dw_buy_feedback.Object.ljfieb_packet_billtype [ll_i] = 9 THEN CONTINUE
  1181. ll_sendcuscommid = tab_1.tabpage_3.dw_buy_feedback.Object.ljfieb_packet_sendcuscommid[ll_i]
  1182. ls_receivesccode = tab_1.tabpage_3.dw_buy_feedback.Object.ljfieb_packet_receivesccode[ll_i]
  1183. ls_SendSCcode = tab_1.tabpage_3.dw_buy_feedback.Object.ljfieb_packet_SendSCcode [ll_i]
  1184. IF sys_user_scstr <> '0' THEN
  1185. SELECT scid INTO :ll_scid
  1186. FROM u_scdef
  1187. Where sccode = :ls_receivesccode Using sqlca;
  1188. IF sqlca.SQLCode <> 0 THEN
  1189. ll_scid = 0
  1190. END IF
  1191. ls_scstr = ','+String(ll_scid)+','
  1192. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1193. tab_1.tabpage_3.dw_buy_feedback.DeleteRow(ll_i)
  1194. CONTINUE
  1195. END IF
  1196. END IF
  1197. SELECT CusCode
  1198. INTO :ls_cuscode
  1199. FROM LJFIEB_CusComm
  1200. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1201. IF sys_email_sqlca.SQLCode <> 0 THEN
  1202. ls_cuscode = ''
  1203. END IF
  1204. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1205. SELECT spttypeid
  1206. INTO :ll_spttypeid
  1207. FROM u_spt
  1208. WHERE commcode = :ls_cuscode
  1209. And commsccode = :ls_SendSCcode Using sqlca;
  1210. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1211. IF sys_user_spttypestr <> '0' THEN
  1212. ls_spttype = ','+String( ll_spttypeid)+','
  1213. IF Pos(sys_user_spttypestr,ls_spttype) = 0 THEN
  1214. tab_1.tabpage_3.dw_buy_feedback.DeleteRow(ll_i)
  1215. CONTINUE
  1216. END IF
  1217. END IF
  1218. NEXT
  1219. END IF
  1220. tab_1.tabpage_3.dw_buy_feedback.SetRedraw(True)
  1221. //查询待处理资料推送条数
  1222. Long cnt
  1223. SELECT count(*)
  1224. INTO :cnt
  1225. FROM LJFIEB_packet INNER JOIN
  1226. LJFIEB_CusComm ON
  1227. LJFIEB_packet.ReceiveCusCommID = LJFIEB_CusComm.CusCommID
  1228. WHERE (LJFIEB_packet.BillType = 9)
  1229. AND (LJFIEB_packet.Complete = 0)
  1230. And (LJFIEB_CusComm.CusType = 0) Using sys_email_sqlca;
  1231. IF sys_email_sqlca.SQLCode <> 0 THEN cnt = 0
  1232. IF cnt > 0 THEN
  1233. tab_1.tabpage_3.st_mtrl_receive.Text = '资料同步(待同步资料共'+String(cnt)+'条)'
  1234. ELSE
  1235. tab_1.tabpage_3.st_mtrl_receive.Text = '资料同步(没有可同步的资料)'
  1236. END IF
  1237. end subroutine
  1238. public subroutine wf_retrieve_buy_msg ();IF sys_option_if_ljfieb = 0 THEN RETURN
  1239. IF sys_email_sqlca.DBHandle() = 0 THEN RETURN
  1240. Long ll_i
  1241. String ls_cuscode
  1242. Long ll_sendcuscommid,ll_spttypeid
  1243. String ls_spttype,ls_receivesccode, ls_SendSCcode,ls_scstr
  1244. Long ll_scid
  1245. tab_1.tabpage_3.dw_buy_msg.SetRedraw(False)
  1246. tab_1.tabpage_3.dw_buy_msg.Retrieve()
  1247. IF Not sys_power_issuper THEN
  1248. tab_1.tabpage_3.dw_buy_msg.AcceptText()
  1249. FOR ll_i = tab_1.tabpage_3.dw_buy_msg.RowCount() To 1 Step -1
  1250. ll_sendcuscommid = tab_1.tabpage_3.dw_buy_msg.Object.ljfieb_packet_sendcuscommid[ll_i]
  1251. ls_receivesccode = tab_1.tabpage_3.dw_buy_msg.Object.ljfieb_packet_receivesccode[ll_i]
  1252. ls_SendSCcode = tab_1.tabpage_3.dw_buy_msg.Object.ljfieb_packet_SendSCcode [ll_i]
  1253. IF sys_user_scstr <> '0' THEN
  1254. SELECT scid INTO :ll_scid
  1255. FROM u_scdef
  1256. Where sccode = :ls_receivesccode Using sqlca;
  1257. IF sqlca.SQLCode <> 0 THEN
  1258. ll_scid = 0
  1259. END IF
  1260. ls_scstr = ','+String(ll_scid)+','
  1261. IF Pos(sys_user_scstr,ls_scstr) = 0 THEN
  1262. tab_1.tabpage_3.dw_buy_msg.DeleteRow(ll_i)
  1263. CONTINUE
  1264. END IF
  1265. END IF
  1266. SELECT CusCode
  1267. INTO :ls_cuscode
  1268. FROM LJFIEB_CusComm
  1269. Where CusCommID = :ll_sendcuscommid Using sys_email_sqlca;
  1270. IF sys_email_sqlca.SQLCode <> 0 THEN
  1271. ls_cuscode = ''
  1272. END IF
  1273. IF Trim(ls_cuscode) = '' THEN CONTINUE
  1274. SELECT spttypeid
  1275. INTO :ll_spttypeid
  1276. FROM u_spt
  1277. WHERE commcode = :ls_cuscode
  1278. And commsccode = :ls_SendSCcode Using sqlca;
  1279. IF sqlca.SQLCode <> 0 THEN CONTINUE
  1280. IF sys_user_spttypestr <> '0' THEN
  1281. ls_spttype = ','+String( ll_spttypeid)+','
  1282. IF Pos(sys_user_spttypestr,ls_spttype) = 0 THEN
  1283. tab_1.tabpage_3.dw_buy_msg.DeleteRow(ll_i)
  1284. CONTINUE
  1285. END IF
  1286. END IF
  1287. NEXT
  1288. END IF
  1289. tab_1.tabpage_3.dw_buy_msg.SetRedraw(True)
  1290. end subroutine
  1291. on w_q6_main.create
  1292. int iCurrent
  1293. call super::create
  1294. if this.MenuName = "m_x_genapp_frame_sp1" then this.MenuID = create m_x_genapp_frame_sp1
  1295. this.p_left=create p_left
  1296. this.p_right=create p_right
  1297. this.p_middle=create p_middle
  1298. this.tv_func=create tv_func
  1299. this.tab_1=create tab_1
  1300. this.p_sfqr=create p_sfqr
  1301. this.st_sfqr=create st_sfqr
  1302. this.p_dysz=create p_dysz
  1303. this.st_dysz=create st_dysz
  1304. this.p_help=create p_help
  1305. this.st_help=create st_help
  1306. this.p_exit=create p_exit
  1307. this.st_exit=create st_exit
  1308. this.p_about=create p_about
  1309. this.st_about=create st_about
  1310. this.st_new=create st_new
  1311. this.p_new=create p_new
  1312. iCurrent=UpperBound(this.Control)
  1313. this.Control[iCurrent+1]=this.p_left
  1314. this.Control[iCurrent+2]=this.p_right
  1315. this.Control[iCurrent+3]=this.p_middle
  1316. this.Control[iCurrent+4]=this.tv_func
  1317. this.Control[iCurrent+5]=this.tab_1
  1318. this.Control[iCurrent+6]=this.p_sfqr
  1319. this.Control[iCurrent+7]=this.st_sfqr
  1320. this.Control[iCurrent+8]=this.p_dysz
  1321. this.Control[iCurrent+9]=this.st_dysz
  1322. this.Control[iCurrent+10]=this.p_help
  1323. this.Control[iCurrent+11]=this.st_help
  1324. this.Control[iCurrent+12]=this.p_exit
  1325. this.Control[iCurrent+13]=this.st_exit
  1326. this.Control[iCurrent+14]=this.p_about
  1327. this.Control[iCurrent+15]=this.st_about
  1328. this.Control[iCurrent+16]=this.st_new
  1329. this.Control[iCurrent+17]=this.p_new
  1330. end on
  1331. on w_q6_main.destroy
  1332. call super::destroy
  1333. if IsValid(MenuID) then destroy(MenuID)
  1334. destroy(this.p_left)
  1335. destroy(this.p_right)
  1336. destroy(this.p_middle)
  1337. destroy(this.tv_func)
  1338. destroy(this.tab_1)
  1339. destroy(this.p_sfqr)
  1340. destroy(this.st_sfqr)
  1341. destroy(this.p_dysz)
  1342. destroy(this.st_dysz)
  1343. destroy(this.p_help)
  1344. destroy(this.st_help)
  1345. destroy(this.p_exit)
  1346. destroy(this.st_exit)
  1347. destroy(this.p_about)
  1348. destroy(this.st_about)
  1349. destroy(this.st_new)
  1350. destroy(this.p_new)
  1351. end on
  1352. event resize;call super::resize;p_right.x = this.workspacewidth() - p_right.width
  1353. p_middle.width = this.width - p_left.width - p_right.width
  1354. tv_func.height = this.workspaceheight() - tv_func.y - 10
  1355. tab_1.width = this.workspacewidth() - tab_1.x - 10
  1356. tab_1.height = this.workspaceheight() - tab_1.y - 10
  1357. //快捷方式
  1358. tab_1.tabpage_1.lv_shortcut.width = tab_1.tabpage_1.width - 10
  1359. //消息
  1360. tab_1.tabpage_1.dw_2.x = tab_1.tabpage_1.st_msg_title.x - 50
  1361. tab_1.tabpage_1.dw_2.y = tab_1.tabpage_1.st_msg_title.y + 116
  1362. tab_1.tabpage_1.dw_2.height = tab_1.tabpage_1.height - tab_1.tabpage_1.dw_2.y - 50
  1363. tab_1.tabpage_1.dw_2.width = tab_1.tabpage_1.width - tab_1.tabpage_1.dw_2.x - 50
  1364. tab_1.tabpage_1.dw_2.object.s_msg.width = tab_1.tabpage_1.dw_2.width - 150
  1365. tab_1.tabpage_1.st_no_mess_warp.x = tab_1.tabpage_1.dw_2.x
  1366. tab_1.tabpage_1.st_no_mess_warp.y = tab_1.tabpage_1.dw_2.y
  1367. tab_1.tabpage_1.st_no_mess_warp.height = tab_1.tabpage_1.height - tab_1.tabpage_1.dw_2.y - 50
  1368. tab_1.tabpage_1.st_no_mess_warp.width = tab_1.tabpage_1.width - tab_1.tabpage_1.dw_2.x - 50
  1369. tab_1.tabpage_1.st_no_mess.x = tab_1.tabpage_1.st_no_mess_warp.x + tab_1.tabpage_1.st_no_mess_warp.width / 2 - tab_1.tabpage_1.st_no_mess.width / 2
  1370. tab_1.tabpage_1.st_no_mess.y = tab_1.tabpage_1.st_no_mess_warp.y + tab_1.tabpage_1.st_no_mess_warp.height / 2 - tab_1.tabpage_1.st_no_mess.height / 2
  1371. //ico
  1372. st_exit.X = THIS.workspacewidth() - st_exit.Width - 100
  1373. p_exit.X = st_exit.X - p_exit.Width - 10
  1374. st_about.X = p_exit.X - st_about.Width - 78
  1375. p_about.X = st_about.X - p_about.Width - 10
  1376. st_help.X = p_about.X - st_help.Width - 78
  1377. p_help.X = st_help.X - p_help.Width - 10
  1378. st_dysz.X = p_help.X - st_dysz.Width - 78
  1379. p_dysz.X = st_dysz.X - p_dysz.Width - 10
  1380. st_sfqr.X = p_dysz.X - st_sfqr.Width - 78
  1381. p_sfqr.X = st_sfqr.X - p_sfqr.Width - 10
  1382. st_new.X = p_sfqr.X - st_new.Width - 78
  1383. p_new.X = st_new.X - p_new.Width - 10
  1384. //sale
  1385. tab_1.tabpage_2.dw_sale_rece.Height = (tab_1.tabpage_2.Height - 200 - 140) / 2
  1386. tab_1.tabpage_2.dw_sale_msg.Height = tab_1.tabpage_2.dw_sale_rece.Height
  1387. tab_1.tabpage_2.r_8.Y = tab_1.tabpage_2.dw_sale_rece.Y + tab_1.tabpage_2.dw_sale_rece.Height + 5
  1388. tab_1.tabpage_2.st_13.Y = tab_1.tabpage_2.r_8.Y + 16
  1389. tab_1.tabpage_2.p_12.Y = tab_1.tabpage_2.r_8.Y + 20
  1390. tab_1.tabpage_2.st_12.Y = tab_1.tabpage_2.r_8.Y + 28
  1391. tab_1.tabpage_2.p_13.Y = tab_1.tabpage_2.r_8.Y + 20
  1392. tab_1.tabpage_2.st_more_sales.Y = tab_1.tabpage_2.r_8.Y + 28
  1393. tab_1.tabpage_2.dw_sale_send.Y = tab_1.tabpage_2.r_8.Y + tab_1.tabpage_2.r_8.Height - 4
  1394. tab_1.tabpage_2.dw_sale_send.Height = tab_1.tabpage_2.Height - tab_1.tabpage_2.dw_sale_send.Y// - 140
  1395. tab_1.tabpage_2.dw_sale_rece.width = tab_1.tabpage_2.width - tab_1.tabpage_2.dw_sale_msg.width - 9
  1396. tab_1.tabpage_2.dw_sale_send.width = tab_1.tabpage_2.width //- 10
  1397. tab_1.tabpage_2.r_8.width = tab_1.tabpage_2.dw_sale_send.width
  1398. tab_1.tabpage_2.r_4.width = tab_1.tabpage_2.dw_sale_rece.width
  1399. tab_1.tabpage_2.dw_sale_msg.x = tab_1.tabpage_2.dw_sale_rece.x + tab_1.tabpage_2.dw_sale_rece.width + 9
  1400. tab_1.tabpage_2.r_6.x = tab_1.tabpage_2.dw_sale_msg.x
  1401. tab_1.tabpage_2.st_14.X = tab_1.tabpage_2.r_6.X + 23
  1402. tab_1.tabpage_2.p_salemsg.x = tab_1.tabpage_2.st_14.X + 329
  1403. tab_1.tabpage_2.st_salemsg.x = tab_1.tabpage_2.st_14.X + 410
  1404. tab_1.tabpage_2.p_mng_sale.x = tab_1.tabpage_2.st_14.X + 604 //tab_1.tabpage_2.st_salemsg.x + 188
  1405. tab_1.tabpage_2.st_mng_sale.x = tab_1.tabpage_2.st_14.X + 677 //tab_1.tabpage_2.st_salemsg.x + 270
  1406. tab_1.tabpage_2.p_salemsg_retrieve.x = tab_1.tabpage_2.st_14.X + 937 //tab_1.tabpage_2.st_mng_sale.x + 233
  1407. tab_1.tabpage_2.st_salemsg_retrieve.x = tab_1.tabpage_2.st_14.X + 1010 //tab_1.tabpage_2.st_mng_sale.x + 306
  1408. //buy
  1409. tab_1.tabpage_3.dw_buy_feedback.Height = (tab_1.tabpage_3.Height - 200 - 140) / 2
  1410. tab_1.tabpage_3.dw_buy_msg.Height = tab_1.tabpage_3.dw_buy_feedback.Height
  1411. tab_1.tabpage_3.dw_buy_feedback.width = tab_1.tabpage_3.width - tab_1.tabpage_3.dw_buy_msg.width - 9
  1412. tab_1.tabpage_3.dw_buy_msg.x = tab_1.tabpage_3.dw_buy_feedback.x + tab_1.tabpage_3.dw_buy_feedback.width + 9
  1413. tab_1.tabpage_3.r_5.Y = tab_1.tabpage_3.dw_buy_feedback.Y + tab_1.tabpage_3.dw_buy_feedback.Height + 5
  1414. tab_1.tabpage_3.st_16.Y = tab_1.tabpage_3.r_5.Y + 16
  1415. tab_1.tabpage_3.p_15.Y = tab_1.tabpage_3.r_5.Y + 20
  1416. tab_1.tabpage_3.st_retrieve_buy.Y = tab_1.tabpage_3.r_5.Y + 28
  1417. tab_1.tabpage_3.p_11.Y = tab_1.tabpage_3.r_5.Y + 20
  1418. tab_1.tabpage_3.st_more_buys.Y = tab_1.tabpage_3.r_5.Y + 28
  1419. tab_1.tabpage_3.dw_buy_send.Y = tab_1.tabpage_3.r_5.Y + tab_1.tabpage_3.r_5.Height - 4
  1420. tab_1.tabpage_3.dw_buy_send.Height = tab_1.tabpage_3.Height - tab_1.tabpage_3.dw_buy_send.Y// - 140
  1421. tab_1.tabpage_3.dw_buy_send.width = tab_1.tabpage_3.width
  1422. tab_1.tabpage_3.r_5.width = tab_1.tabpage_3.dw_buy_send.width
  1423. tab_1.tabpage_3.r_9.width = tab_1.tabpage_3.dw_buy_feedback.width
  1424. tab_1.tabpage_3.r_7.x = tab_1.tabpage_3.dw_buy_msg.x
  1425. tab_1.tabpage_3.st_17.X = tab_1.tabpage_3.r_7.X + 10
  1426. tab_1.tabpage_3.p_buymsg.x = tab_1.tabpage_3.st_17.X + 374
  1427. tab_1.tabpage_3.st_buymsg.x = tab_1.tabpage_3.st_17.X + 457
  1428. tab_1.tabpage_3.p_mng_buy.x = tab_1.tabpage_3.st_17.X + 630 //tab_1.tabpage_3.st_buymsg.x + 178
  1429. tab_1.tabpage_3.st_mng_buy.x = tab_1.tabpage_3.st_17.X + 705 //tab_1.tabpage_3.st_buymsg.x + 261
  1430. tab_1.tabpage_3.p_buymsg_retrieve.x = tab_1.tabpage_3.st_17.X + 950 //tab_1.tabpage_3.st_mng_buy.x + 228
  1431. tab_1.tabpage_3.st_buymsg_retrieve.x = tab_1.tabpage_3.st_17.X + 1020 //tab_1.tabpage_3.st_mng_buy.x + 301
  1432. end event
  1433. event open;call super::open;f_refresh_mainwin_title(w_q6_main)
  1434. dw_guide = tab_1.tabpage_1.dw_1
  1435. tab_1.tabpage_1.dw_2.settransobject(sqlca)
  1436. tab_1.tabpage_1.dw_1.insertrow(0)
  1437. wf_refresh_shortcut()
  1438. wf_build_menutree()
  1439. wf_retr_msg()
  1440. //初始化导航图用到的菜单
  1441. wf_init_menu()
  1442. end event
  1443. event close;call super::close;destroy om_biz_rp
  1444. destroy om_buy_rp
  1445. destroy om_ware_rp
  1446. destroy om_cw_rp
  1447. destroy om_jg_rp
  1448. destroy om_rsgz_rp
  1449. destroy om_sale_rp
  1450. destroy om_buy_fz
  1451. destroy om_ware_fz
  1452. destroy om_cw_fz
  1453. destroy om_jg_fz
  1454. destroy om_sale_fz
  1455. end event
  1456. event closequery;call super::closequery;IF MessageBox("提示", "确定要退出本系统吗?", Question!, OKCancel!, 2) = 1 THEN
  1457. f_terminate_l1()
  1458. // 断开设备及清理内存
  1459. uo_cc301_ins.closedevice( );
  1460. destroy uo_cc301_ins;
  1461. HALT
  1462. ELSE
  1463. RETURN 1
  1464. END IF
  1465. end event
  1466. type cb_func from w_publ_base`cb_func within w_q6_main
  1467. boolean visible = false
  1468. end type
  1469. type cb_exit from w_publ_base`cb_exit within w_q6_main
  1470. boolean visible = false
  1471. end type
  1472. type p_left from picture within w_q6_main
  1473. integer width = 1111
  1474. integer height = 200
  1475. boolean bringtotop = true
  1476. string picturename = "q6bar_left.bmp"
  1477. boolean focusrectangle = false
  1478. end type
  1479. type p_right from picture within w_q6_main
  1480. integer x = 2496
  1481. integer width = 2619
  1482. integer height = 200
  1483. boolean bringtotop = true
  1484. string picturename = "q6bar_right.bmp"
  1485. boolean focusrectangle = false
  1486. end type
  1487. type p_middle from picture within w_q6_main
  1488. integer x = 1111
  1489. integer width = 1385
  1490. integer height = 200
  1491. boolean bringtotop = true
  1492. string picturename = "q6bar_middle.bmp"
  1493. boolean focusrectangle = false
  1494. end type
  1495. type tv_func from treeview within w_q6_main
  1496. event ue_add_shortcut ( )
  1497. integer x = 9
  1498. integer y = 208
  1499. integer width = 1106
  1500. integer height = 2576
  1501. integer taborder = 20
  1502. boolean bringtotop = true
  1503. integer textsize = -9
  1504. integer weight = 400
  1505. fontcharset fontcharset = gb2312charset!
  1506. fontpitch fontpitch = variable!
  1507. string facename = "宋体"
  1508. long textcolor = 33554432
  1509. boolean border = false
  1510. boolean haslines = false
  1511. boolean disabledragdrop = false
  1512. string picturename[] = {"q6logo.ico","graphics\folder_v3.bmp","graphics\folder_g_v3.bmp","graphics\power_v3.bmp","graphics\icon_00.png","graphics\icon_01.png","graphics\icon_02.png","graphics\icon_03.png","graphics\icon_04.png","graphics\icon_05.png","graphics\icon_06.png","graphics\icon_07.png","graphics\icon_08.png","graphics\icon_09.png","graphics\icon_plug.png"}
  1513. integer picturewidth = 16
  1514. integer pictureheight = 16
  1515. long picturemaskcolor = 536870912
  1516. long statepicturemaskcolor = 536870912
  1517. end type
  1518. event ue_add_shortcut();Long ll_hand,funcid
  1519. treeviewitem tvi
  1520. String arg_msg
  1521. s_sys_func s_lss
  1522. listviewitem lv_li
  1523. uo_userpwr uo_user
  1524. uo_user = Create uo_userpwr
  1525. ll_hand = This.FindItem(CurrentTreeItem!,0)
  1526. This.GetItem(ll_hand,tvi)
  1527. s_lss = tvi.Data
  1528. funcid = s_lss.funcid
  1529. IF funcid > 0 THEN
  1530. IF s_lss.functype <> 8 THEN RETURN
  1531. IF uo_user.add_shortcut(sys_scid,sys_empid,funcid,arg_msg,True) = 0 THEN
  1532. MessageBox('提示',arg_msg, Information!, OK! )
  1533. ELSE
  1534. wf_refresh_shortcut()
  1535. END IF
  1536. END IF
  1537. Destroy uo_userpwr
  1538. end event
  1539. event doubleclicked;Long ll_hand,mainid,wintype,functype
  1540. string treename
  1541. treeviewitem tvi
  1542. s_sys_func s_lss
  1543. ll_hand = THIS.FindItem(currenttreeitem!,0)
  1544. THIS.GetItem(ll_hand,tvi)
  1545. s_lss = tvi.Data
  1546. mainid = s_lss.mainid
  1547. treename = s_lss.treename
  1548. functype = s_lss.functype
  1549. IF mainid > 0 AND functype <> 2 and functype <> 3 THEN
  1550. IF Pos(treename,'(嵌入式)') > 0 THEN
  1551. PARENT.PostEvent('ue_main_meun_report',0,mainid)
  1552. ELSEIF Pos(treename,'(外挂)') > 0 THEN
  1553. PARENT.PostEvent('ue_main_meun_plugins',0,mainid)
  1554. ELSE
  1555. PARENT.PostEvent('ue_main_menu_commnd',0,mainid)
  1556. RETURN 1
  1557. END IF
  1558. END IF
  1559. end event
  1560. event clicked;treeviewitem tvi
  1561. s_sys_func s_lss
  1562. Long funcid ,parentid
  1563. String arg_dwname
  1564. If This.GetItem(Handle,tvi) = -1 Then Return
  1565. s_lss = tvi.Data
  1566. funcid = s_lss.funcid
  1567. parentid = s_lss.parentid
  1568. arg_dwname = wf_retr_guide(funcid,parentid)
  1569. If dw_guide.DataObject <> arg_dwname and arg_dwname <> '' Then
  1570. dw_guide.DataObject = arg_dwname
  1571. dw_guide.InsertRow(0)
  1572. End If
  1573. end event
  1574. event rightclicked;//IF Handle <= 0 THEN RETURN
  1575. //il_handle = Handle
  1576. //THIS.SelectItem(il_handle)
  1577. //m_popup_shortcut_add om_1
  1578. //om_1 = CREATE m_popup_shortcut_add
  1579. ////把菜单的anyobject指向被右击的对象(dw_1)
  1580. //om_1.anyobject = THIS
  1581. ////om_1.setmenuitem("添加子项|添加兄弟|编辑|-|删除")
  1582. ////可在此调用om_1.setitemdisable(itemorder)函数disable某菜单项。
  1583. //om_1.popupmenu(THIS.X+THIS.PointerX(),THIS.Y+THIS.PointerY())
  1584. //
  1585. //DESTROY om_1
  1586. Long ll_hand,mainid,functype,if_navigation,funcid,parentid
  1587. string arg_dwname
  1588. treeviewitem tvi
  1589. s_sys_func s_lss
  1590. IF THIS.GetItem(Handle,tvi) = -1 THEN RETURN
  1591. s_lss = tvi.Data
  1592. mainid = s_lss.mainid
  1593. functype = s_lss.functype
  1594. funcid = s_lss.funcid
  1595. parentid = s_lss.parentid
  1596. arg_dwname = wf_retr_guide(funcid,parentid)
  1597. If dw_guide.DataObject <> arg_dwname and arg_dwname <> '' Then
  1598. dw_guide.DataObject = arg_dwname
  1599. dw_guide.InsertRow(0)
  1600. End If
  1601. IF mainid > 0 AND functype <> 0 and functype <> 2 and functype <> 3 THEN
  1602. IF Handle <= 0 THEN RETURN
  1603. THIS.SelectItem(Handle)
  1604. m_popup_shortcut_add_q6 om_1
  1605. om_1 = CREATE m_popup_shortcut_add_q6
  1606. //把菜单的anyobject指向被右击的对象(dw_1)
  1607. om_1.anyobject = THIS
  1608. //om_1.setmenuitem("添加子项|添加兄弟|编辑|-|删除")
  1609. //可在此调用om_1.setitemdisable(itemorder)函数disable某菜单项。
  1610. om_1.popupmenu(THIS.X+THIS.PointerX(),THIS.Y+THIS.PointerY())
  1611. DESTROY om_1
  1612. // RETURN
  1613. ELSE
  1614. THIS.SelectItem(Handle)
  1615. END IF
  1616. end event
  1617. type tab_1 from tab within w_q6_main
  1618. integer x = 1125
  1619. integer y = 208
  1620. integer width = 3963
  1621. integer height = 2572
  1622. integer taborder = 30
  1623. boolean bringtotop = true
  1624. integer textsize = -9
  1625. integer weight = 400
  1626. fontcharset fontcharset = gb2312charset!
  1627. fontpitch fontpitch = variable!
  1628. string facename = "宋体"
  1629. long backcolor = 16777215
  1630. boolean raggedright = true
  1631. boolean boldselectedtext = true
  1632. integer selectedtab = 1
  1633. tabpage_1 tabpage_1
  1634. tabpage_2 tabpage_2
  1635. tabpage_3 tabpage_3
  1636. end type
  1637. on tab_1.create
  1638. this.tabpage_1=create tabpage_1
  1639. this.tabpage_2=create tabpage_2
  1640. this.tabpage_3=create tabpage_3
  1641. this.Control[]={this.tabpage_1,&
  1642. this.tabpage_2,&
  1643. this.tabpage_3}
  1644. end on
  1645. on tab_1.destroy
  1646. destroy(this.tabpage_1)
  1647. destroy(this.tabpage_2)
  1648. destroy(this.tabpage_3)
  1649. end on
  1650. event selectionchanged;IF tab_1.SelectedTab = 1 THEN
  1651. tab_1.tabpage_1.TabTextColor = RGB(0, 120, 174)
  1652. tab_1.tabpage_2.TabTextColor = RGB(100,100,100)
  1653. tab_1.tabpage_3.TabTextColor = RGB(100,100,100)
  1654. elseif tab_1.SelectedTab = 2 THEN
  1655. tab_1.tabpage_1.TabTextColor = RGB(100,100,100)
  1656. tab_1.tabpage_2.TabTextColor =RGB(0, 120, 174)
  1657. tab_1.tabpage_3.TabTextColor = RGB(100,100,100)
  1658. elseif tab_1.SelectedTab = 3 THEN
  1659. tab_1.tabpage_1.TabTextColor = RGB(100,100,100)
  1660. tab_1.tabpage_2.TabTextColor =RGB(100,100,100)
  1661. tab_1.tabpage_3.TabTextColor = RGB(0, 120, 174)
  1662. END IF
  1663. end event
  1664. type tabpage_1 from userobject within tab_1
  1665. integer x = 18
  1666. integer y = 96
  1667. integer width = 3927
  1668. integer height = 2460
  1669. long backcolor = 16777215
  1670. string text = "日常办公"
  1671. long tabtextcolor = 33554432
  1672. long tabbackcolor = 16777215
  1673. long picturemaskcolor = 536870912
  1674. st_4 st_4
  1675. st_retr_msg st_retr_msg
  1676. p_retr_msg p_retr_msg
  1677. st_msg_mng st_msg_mng
  1678. p_msg_mng p_msg_mng
  1679. st_msg_new st_msg_new
  1680. p_msg_new p_msg_new
  1681. p_1 p_1
  1682. st_3 st_3
  1683. st_no_mess st_no_mess
  1684. dw_2 dw_2
  1685. dw_1 dw_1
  1686. st_msg_title st_msg_title
  1687. st_2 st_2
  1688. st_1 st_1
  1689. lv_shortcut lv_shortcut
  1690. st_no_mess_warp st_no_mess_warp
  1691. end type
  1692. on tabpage_1.create
  1693. this.st_4=create st_4
  1694. this.st_retr_msg=create st_retr_msg
  1695. this.p_retr_msg=create p_retr_msg
  1696. this.st_msg_mng=create st_msg_mng
  1697. this.p_msg_mng=create p_msg_mng
  1698. this.st_msg_new=create st_msg_new
  1699. this.p_msg_new=create p_msg_new
  1700. this.p_1=create p_1
  1701. this.st_3=create st_3
  1702. this.st_no_mess=create st_no_mess
  1703. this.dw_2=create dw_2
  1704. this.dw_1=create dw_1
  1705. this.st_msg_title=create st_msg_title
  1706. this.st_2=create st_2
  1707. this.st_1=create st_1
  1708. this.lv_shortcut=create lv_shortcut
  1709. this.st_no_mess_warp=create st_no_mess_warp
  1710. this.Control[]={this.st_4,&
  1711. this.st_retr_msg,&
  1712. this.p_retr_msg,&
  1713. this.st_msg_mng,&
  1714. this.p_msg_mng,&
  1715. this.st_msg_new,&
  1716. this.p_msg_new,&
  1717. this.p_1,&
  1718. this.st_3,&
  1719. this.st_no_mess,&
  1720. this.dw_2,&
  1721. this.dw_1,&
  1722. this.st_msg_title,&
  1723. this.st_2,&
  1724. this.st_1,&
  1725. this.lv_shortcut,&
  1726. this.st_no_mess_warp}
  1727. end on
  1728. on tabpage_1.destroy
  1729. destroy(this.st_4)
  1730. destroy(this.st_retr_msg)
  1731. destroy(this.p_retr_msg)
  1732. destroy(this.st_msg_mng)
  1733. destroy(this.p_msg_mng)
  1734. destroy(this.st_msg_new)
  1735. destroy(this.p_msg_new)
  1736. destroy(this.p_1)
  1737. destroy(this.st_3)
  1738. destroy(this.st_no_mess)
  1739. destroy(this.dw_2)
  1740. destroy(this.dw_1)
  1741. destroy(this.st_msg_title)
  1742. destroy(this.st_2)
  1743. destroy(this.st_1)
  1744. destroy(this.lv_shortcut)
  1745. destroy(this.st_no_mess_warp)
  1746. end on
  1747. type st_4 from statictext within tabpage_1
  1748. integer x = 987
  1749. integer y = 2204
  1750. integer width = 457
  1751. integer height = 76
  1752. integer textsize = -10
  1753. integer weight = 700
  1754. fontcharset fontcharset = gb2312charset!
  1755. fontpitch fontpitch = variable!
  1756. fontfamily fontfamily = swiss!
  1757. string facename = "微软雅黑"
  1758. long textcolor = 8421504
  1759. long backcolor = 16777215
  1760. string text = "暂时没有资讯"
  1761. alignment alignment = center!
  1762. boolean focusrectangle = false
  1763. end type
  1764. type st_retr_msg from statictext within tabpage_1
  1765. integer x = 2962
  1766. integer y = 440
  1767. integer width = 128
  1768. integer height = 56
  1769. integer textsize = -9
  1770. integer weight = 400
  1771. fontcharset fontcharset = gb2312charset!
  1772. fontpitch fontpitch = variable!
  1773. string facename = "宋体"
  1774. string pointer = "HyperLink!"
  1775. long textcolor = 8421504
  1776. long backcolor = 16777215
  1777. string text = "刷新"
  1778. boolean focusrectangle = false
  1779. end type
  1780. event clicked;wf_retr_msg()
  1781. end event
  1782. type p_retr_msg from picture within tabpage_1
  1783. integer x = 2880
  1784. integer y = 432
  1785. integer width = 73
  1786. integer height = 64
  1787. string pointer = "HyperLink!"
  1788. boolean originalsize = true
  1789. string picturename = "graphics\retrieve_q6.png"
  1790. boolean focusrectangle = false
  1791. end type
  1792. event clicked;tab_1.tabpage_1.st_retr_msg.triggerevent(clicked!)
  1793. end event
  1794. type st_msg_mng from statictext within tabpage_1
  1795. integer x = 3515
  1796. integer y = 440
  1797. integer width = 261
  1798. integer height = 48
  1799. integer textsize = -9
  1800. integer weight = 400
  1801. fontcharset fontcharset = gb2312charset!
  1802. fontpitch fontpitch = variable!
  1803. string facename = "宋体"
  1804. string pointer = "HyperLink!"
  1805. long textcolor = 8421504
  1806. long backcolor = 16777215
  1807. string text = "消息管理"
  1808. boolean focusrectangle = false
  1809. end type
  1810. event clicked;s_edit_index_tran s_msg_tran
  1811. openwithparm(w_msg_newstyle,s_msg_tran)
  1812. end event
  1813. type p_msg_mng from picture within tabpage_1
  1814. integer x = 3438
  1815. integer y = 432
  1816. integer width = 69
  1817. integer height = 64
  1818. string pointer = "HyperLink!"
  1819. string picturename = "graphics\more_v3.png"
  1820. boolean focusrectangle = false
  1821. end type
  1822. event clicked;tab_1.tabpage_1.st_msg_mng.triggerevent(clicked!)
  1823. end event
  1824. type st_msg_new from statictext within tabpage_1
  1825. integer x = 3205
  1826. integer y = 440
  1827. integer width = 174
  1828. integer height = 52
  1829. integer textsize = -9
  1830. integer weight = 400
  1831. fontcharset fontcharset = gb2312charset!
  1832. fontpitch fontpitch = variable!
  1833. string facename = "宋体"
  1834. string pointer = "HyperLink!"
  1835. long textcolor = 8421504
  1836. long backcolor = 16777215
  1837. string text = "发消息"
  1838. boolean focusrectangle = false
  1839. end type
  1840. event clicked;s_admsg s_msg
  1841. s_msg.ifback = 0
  1842. //openwithparm(w_msg_send,s_msg)
  1843. openwithparm(w_msg_send_normal,s_msg)
  1844. end event
  1845. type p_msg_new from picture within tabpage_1
  1846. integer x = 3122
  1847. integer y = 432
  1848. integer width = 82
  1849. integer height = 60
  1850. string pointer = "HyperLink!"
  1851. string picturename = "graphics\post_v3.png"
  1852. boolean focusrectangle = false
  1853. end type
  1854. event clicked;tab_1.tabpage_1.st_msg_new.triggerevent(clicked!)
  1855. end event
  1856. type p_1 from picture within tabpage_1
  1857. integer x = 315
  1858. integer y = 20
  1859. integer width = 69
  1860. integer height = 52
  1861. string picturename = "kind_2.png"
  1862. boolean focusrectangle = false
  1863. end type
  1864. type st_3 from statictext within tabpage_1
  1865. integer x = 384
  1866. integer y = 24
  1867. integer width = 928
  1868. integer height = 48
  1869. integer textsize = -9
  1870. integer weight = 400
  1871. fontcharset fontcharset = gb2312charset!
  1872. fontpitch fontpitch = variable!
  1873. string facename = "宋体"
  1874. long textcolor = 8421504
  1875. long backcolor = 16777215
  1876. string text = "右键点击左边功能树可添加快捷方式"
  1877. boolean focusrectangle = false
  1878. end type
  1879. type st_no_mess from statictext within tabpage_1
  1880. boolean visible = false
  1881. integer x = 3003
  1882. integer y = 776
  1883. integer width = 457
  1884. integer height = 76
  1885. integer textsize = -10
  1886. integer weight = 700
  1887. fontcharset fontcharset = gb2312charset!
  1888. fontpitch fontpitch = variable!
  1889. fontfamily fontfamily = swiss!
  1890. string facename = "微软雅黑"
  1891. long textcolor = 8421504
  1892. long backcolor = 33093365
  1893. string text = "没有待确认消息"
  1894. alignment alignment = center!
  1895. boolean focusrectangle = false
  1896. end type
  1897. type dw_2 from datawindow within tabpage_1
  1898. integer x = 2651
  1899. integer y = 1040
  1900. integer width = 1202
  1901. integer height = 1376
  1902. integer taborder = 40
  1903. string title = "none"
  1904. string dataobject = "dw_mainface_msg_q6"
  1905. boolean vscrollbar = true
  1906. boolean border = false
  1907. boolean livescroll = true
  1908. end type
  1909. event clicked;If row <= 0 Then Return
  1910. Long ll_scid,ll_msgid
  1911. String ls_code
  1912. Long rslt = 1,ll_empid,ll_senddtint
  1913. String arg_msg
  1914. If dwo.Name = 'billcode' Then
  1915. ll_scid = This.Object.scid[row]
  1916. ls_code = This.Object.billcode[row]
  1917. If ls_code <> '' Then
  1918. f_open_win(ll_scid,ls_code)
  1919. End If
  1920. ElseIf dwo.Name = 't_deal' Then
  1921. ll_msgid = This.Object.msgid[row]
  1922. ll_empid = This.Object.empid[row]
  1923. ll_senddtint = This.Object.senddtint[row]
  1924. rslt = uo_msg.f_redeal_admsg(ll_msgid,ll_senddtint,ll_empid,arg_msg,True)
  1925. If rslt = 0 Then
  1926. MessageBox('系统提示',arg_msg)
  1927. Else
  1928. This.Object.dealflag[row] = 1
  1929. End If
  1930. elseif dwo.name = 'fjstr' or dwo.name = 'p_fj' then
  1931. s_edit_index_tran s_fj_open
  1932. s_fj_open.b_long = this.object.msgid[row]
  1933. openwithparm(w_msg_fj_view_newstyle,s_fj_open)
  1934. Else
  1935. ll_msgid = This.Object.msgid[row]
  1936. s_edit_index_tran s_msg_tran
  1937. s_msg_tran.b_string = This.Object.sendemp[row]
  1938. s_msg_tran.b_long = ll_msgid
  1939. OpenWithParm(w_msg_newstyle,s_msg_tran)
  1940. End If
  1941. end event
  1942. type dw_1 from datawindow within tabpage_1
  1943. integer x = 9
  1944. integer y = 420
  1945. integer width = 2633
  1946. integer height = 1544
  1947. integer taborder = 30
  1948. string title = "none"
  1949. string dataobject = "dw_main_child_in"
  1950. boolean border = false
  1951. boolean livescroll = true
  1952. end type
  1953. event clicked;string ls_name
  1954. ls_name = dwo.Name
  1955. string ls_tag,ll_x,ll_y
  1956. long ll_mainid
  1957. ls_tag = this.Describe(ls_name+".Tag")
  1958. ll_x = this.Describe(ls_name+".x")
  1959. ll_y = this.Describe(ls_name+".y")
  1960. if trim(ls_tag) <> '' then
  1961. ll_mainid = long(ls_tag)
  1962. end if
  1963. if ll_mainid > 0 then
  1964. // if ll_mainid = 99999 then
  1965. // //更多报表
  1966. // m_sale_rp om_1
  1967. // om_1 = CREATE m_sale_rp
  1968. // om_1.PopMenu(tab_1.X+this.x + long(ll_x),tab_1.Y+this.y+long(ll_y) + 150)
  1969. // DESTROY om_1
  1970. // elseif ll_mainid = 88888 then
  1971. // //辅助功能
  1972. // choose case this.dataobject
  1973. // case 'dw_main_child_jg'
  1974. // m_jg_fz om_jg_fz
  1975. // om_jg_fz = CREATE m_jg_fz
  1976. // om_jg_fz.PopMenu(tab_1.X+this.x + long(ll_x),tab_1.Y+this.y+long(ll_y) + 150)
  1977. // DESTROY om_jg_fz
  1978. // end choose
  1979. if ll_mainid > 10000 then
  1980. wf_handle_click_guide(ll_mainid,this.dataobject ,tab_1.X+this.x + long(ll_x),tab_1.Y+this.y+long(ll_y) + 150)
  1981. else
  1982. f_sys_main(ll_mainid)
  1983. end if
  1984. end if
  1985. end event
  1986. type st_msg_title from statictext within tabpage_1
  1987. integer x = 2702
  1988. integer y = 424
  1989. integer width = 155
  1990. integer height = 64
  1991. integer textsize = -10
  1992. integer weight = 700
  1993. fontcharset fontcharset = gb2312charset!
  1994. fontpitch fontpitch = variable!
  1995. fontfamily fontfamily = swiss!
  1996. string facename = "微软雅黑"
  1997. long textcolor = 33554432
  1998. long backcolor = 16777215
  1999. string text = "消息"
  2000. boolean focusrectangle = false
  2001. end type
  2002. type st_2 from statictext within tabpage_1
  2003. integer x = 46
  2004. integer y = 1984
  2005. integer width = 251
  2006. integer height = 64
  2007. integer textsize = -10
  2008. integer weight = 700
  2009. fontcharset fontcharset = gb2312charset!
  2010. fontpitch fontpitch = variable!
  2011. fontfamily fontfamily = swiss!
  2012. string facename = "微软雅黑"
  2013. long textcolor = 33554432
  2014. long backcolor = 16777215
  2015. string text = "龙嘉资讯"
  2016. boolean focusrectangle = false
  2017. end type
  2018. type st_1 from statictext within tabpage_1
  2019. integer x = 46
  2020. integer y = 8
  2021. integer width = 261
  2022. integer height = 80
  2023. integer textsize = -10
  2024. integer weight = 700
  2025. fontcharset fontcharset = gb2312charset!
  2026. fontpitch fontpitch = variable!
  2027. fontfamily fontfamily = swiss!
  2028. string facename = "微软雅黑"
  2029. long textcolor = 33554432
  2030. long backcolor = 16777215
  2031. string text = "快捷方式"
  2032. boolean focusrectangle = false
  2033. end type
  2034. type lv_shortcut from listview within tabpage_1
  2035. integer y = 120
  2036. integer width = 3639
  2037. integer height = 312
  2038. integer taborder = 30
  2039. integer textsize = -9
  2040. integer weight = 400
  2041. fontcharset fontcharset = gb2312charset!
  2042. fontpitch fontpitch = variable!
  2043. string facename = "宋体"
  2044. long textcolor = 33554432
  2045. boolean border = false
  2046. boolean autoarrange = true
  2047. boolean extendedselect = true
  2048. boolean showheader = false
  2049. boolean trackselect = true
  2050. boolean oneclickactivate = true
  2051. boolean twoclickactivate = true
  2052. boolean headerdragdrop = true
  2053. string largepicturename[] = {"graphics\icon_big_00.png","graphics\icon_big_01.png","graphics\icon_big_02.png","graphics\icon_big_03.png","graphics\icon_big_04.png","graphics\icon_big_05.png","graphics\icon_big_06.png","graphics\icon_big_07.png","graphics\icon_big_08.png","graphics\icon_big_09.png","graphics\icon_big_plug.png"}
  2054. long largepicturemaskcolor = 536870912
  2055. long smallpicturemaskcolor = 536870912
  2056. long statepicturemaskcolor = 536870912
  2057. end type
  2058. event doubleclicked;Long mainid
  2059. listviewitem l_lvi
  2060. s_sys_func s_lss
  2061. string ls_text, dsEventName
  2062. IF THIS.SelectedIndex() > 0 THEN
  2063. THIS.GetItem(THIS.SelectedIndex(),l_lvi)
  2064. s_lss = l_lvi.Data
  2065. mainid = s_lss.mainid
  2066. ls_text = l_lvi.label
  2067. IF Pos(ls_text,'(嵌入式)') > 0 THEN
  2068. dsEventName = 'ue_main_meun_report'
  2069. ELSEIF Pos(ls_text,'(外挂)') > 0 THEN
  2070. dsEventName = 'ue_main_meun_plugins'
  2071. ELSE
  2072. dsEventName = 'ue_main_menu_commnd'
  2073. END IF
  2074. PARENT.getparent().getparent().postEvent(dsEventName,mainid,mainid)
  2075. END IF
  2076. end event
  2077. event rightclicked;
  2078. m_Dfc_Control_PopupMenu dmPopupMenu
  2079. String menustr
  2080. menustr = "Text=删除快捷方式~tEvent=ue_del_shortcut"
  2081. IF Len(Trim(menustr)) <> 0 THEN
  2082. dmPopupMenu = CREATE m_Dfc_Control_PopupMenu
  2083. dmPopupMenu.mf_BuildMenu(THIS, menustr)
  2084. dmPopupMenu.mf_PopMenu()
  2085. DESTROY dmPopupMenu
  2086. END IF
  2087. end event
  2088. type st_no_mess_warp from statictext within tabpage_1
  2089. boolean visible = false
  2090. integer x = 2848
  2091. integer y = 872
  2092. integer width = 978
  2093. integer height = 308
  2094. integer textsize = -10
  2095. integer weight = 700
  2096. fontcharset fontcharset = gb2312charset!
  2097. fontpitch fontpitch = variable!
  2098. fontfamily fontfamily = swiss!
  2099. string facename = "微软雅黑"
  2100. long textcolor = 33554432
  2101. long backcolor = 33093365
  2102. boolean focusrectangle = false
  2103. end type
  2104. type tabpage_2 from userobject within tab_1
  2105. event create ( )
  2106. event destroy ( )
  2107. integer x = 18
  2108. integer y = 96
  2109. integer width = 3927
  2110. integer height = 2460
  2111. long backcolor = 16777215
  2112. string text = "销售供应链"
  2113. long tabtextcolor = 33554432
  2114. long tabbackcolor = 16777215
  2115. long picturemaskcolor = 536870912
  2116. r_8 r_8
  2117. r_6 r_6
  2118. r_4 r_4
  2119. st_salemsg_retrieve st_salemsg_retrieve
  2120. p_salemsg_retrieve p_salemsg_retrieve
  2121. st_mng_sale st_mng_sale
  2122. p_mng_sale p_mng_sale
  2123. st_salemsg st_salemsg
  2124. p_salemsg p_salemsg
  2125. st_14 st_14
  2126. dw_sale_msg dw_sale_msg
  2127. st_more_sale st_more_sale
  2128. p_9 p_9
  2129. st_mtrl_propel st_mtrl_propel
  2130. p_6 p_6
  2131. st_retrieve_sale_re st_retrieve_sale_re
  2132. p_7 p_7
  2133. st_15 st_15
  2134. dw_sale_rece dw_sale_rece
  2135. st_13 st_13
  2136. p_12 p_12
  2137. st_12 st_12
  2138. p_13 p_13
  2139. st_more_sales st_more_sales
  2140. dw_sale_send dw_sale_send
  2141. end type
  2142. on tabpage_2.create
  2143. this.r_8=create r_8
  2144. this.r_6=create r_6
  2145. this.r_4=create r_4
  2146. this.st_salemsg_retrieve=create st_salemsg_retrieve
  2147. this.p_salemsg_retrieve=create p_salemsg_retrieve
  2148. this.st_mng_sale=create st_mng_sale
  2149. this.p_mng_sale=create p_mng_sale
  2150. this.st_salemsg=create st_salemsg
  2151. this.p_salemsg=create p_salemsg
  2152. this.st_14=create st_14
  2153. this.dw_sale_msg=create dw_sale_msg
  2154. this.st_more_sale=create st_more_sale
  2155. this.p_9=create p_9
  2156. this.st_mtrl_propel=create st_mtrl_propel
  2157. this.p_6=create p_6
  2158. this.st_retrieve_sale_re=create st_retrieve_sale_re
  2159. this.p_7=create p_7
  2160. this.st_15=create st_15
  2161. this.dw_sale_rece=create dw_sale_rece
  2162. this.st_13=create st_13
  2163. this.p_12=create p_12
  2164. this.st_12=create st_12
  2165. this.p_13=create p_13
  2166. this.st_more_sales=create st_more_sales
  2167. this.dw_sale_send=create dw_sale_send
  2168. this.Control[]={this.r_8,&
  2169. this.r_6,&
  2170. this.r_4,&
  2171. this.st_salemsg_retrieve,&
  2172. this.p_salemsg_retrieve,&
  2173. this.st_mng_sale,&
  2174. this.p_mng_sale,&
  2175. this.st_salemsg,&
  2176. this.p_salemsg,&
  2177. this.st_14,&
  2178. this.dw_sale_msg,&
  2179. this.st_more_sale,&
  2180. this.p_9,&
  2181. this.st_mtrl_propel,&
  2182. this.p_6,&
  2183. this.st_retrieve_sale_re,&
  2184. this.p_7,&
  2185. this.st_15,&
  2186. this.dw_sale_rece,&
  2187. this.st_13,&
  2188. this.p_12,&
  2189. this.st_12,&
  2190. this.p_13,&
  2191. this.st_more_sales,&
  2192. this.dw_sale_send}
  2193. end on
  2194. on tabpage_2.destroy
  2195. destroy(this.r_8)
  2196. destroy(this.r_6)
  2197. destroy(this.r_4)
  2198. destroy(this.st_salemsg_retrieve)
  2199. destroy(this.p_salemsg_retrieve)
  2200. destroy(this.st_mng_sale)
  2201. destroy(this.p_mng_sale)
  2202. destroy(this.st_salemsg)
  2203. destroy(this.p_salemsg)
  2204. destroy(this.st_14)
  2205. destroy(this.dw_sale_msg)
  2206. destroy(this.st_more_sale)
  2207. destroy(this.p_9)
  2208. destroy(this.st_mtrl_propel)
  2209. destroy(this.p_6)
  2210. destroy(this.st_retrieve_sale_re)
  2211. destroy(this.p_7)
  2212. destroy(this.st_15)
  2213. destroy(this.dw_sale_rece)
  2214. destroy(this.st_13)
  2215. destroy(this.p_12)
  2216. destroy(this.st_12)
  2217. destroy(this.p_13)
  2218. destroy(this.st_more_sales)
  2219. destroy(this.dw_sale_send)
  2220. end on
  2221. event constructor;//if sys_option_if_ljfieb = 0 then this.visible = false
  2222. end event
  2223. type r_8 from rectangle within tabpage_2
  2224. long linecolor = 134217734
  2225. integer linethickness = 4
  2226. long fillcolor = 16777215
  2227. integer y = 948
  2228. integer width = 3319
  2229. integer height = 100
  2230. end type
  2231. event constructor;this.fillcolor = rgb(184,202,238)
  2232. end event
  2233. type r_6 from rectangle within tabpage_2
  2234. long linecolor = 8421504
  2235. integer linethickness = 4
  2236. long fillcolor = 16777215
  2237. integer x = 2299
  2238. integer y = 8
  2239. integer width = 1230
  2240. integer height = 100
  2241. end type
  2242. event constructor;this.fillcolor = rgb(184,202,238)
  2243. end event
  2244. type r_4 from rectangle within tabpage_2
  2245. long linecolor = 8421504
  2246. integer linethickness = 4
  2247. long fillcolor = 16777215
  2248. integer y = 8
  2249. integer width = 2290
  2250. integer height = 100
  2251. end type
  2252. event constructor;this.fillcolor = rgb(184,202,238)
  2253. end event
  2254. type st_salemsg_retrieve from uo_text_m_main within tabpage_2
  2255. integer x = 3360
  2256. integer y = 36
  2257. integer width = 137
  2258. integer height = 48
  2259. integer textsize = -9
  2260. string text = "刷新"
  2261. end type
  2262. event clicked;call super::clicked;wf_retrieve_sale_msg()
  2263. end event
  2264. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2265. end event
  2266. type p_salemsg_retrieve from picture within tabpage_2
  2267. integer x = 3282
  2268. integer y = 28
  2269. integer width = 73
  2270. integer height = 64
  2271. boolean originalsize = true
  2272. string picturename = "graphics/refresh_m.BMP"
  2273. boolean focusrectangle = false
  2274. end type
  2275. type st_mng_sale from uo_text_m_main within tabpage_2
  2276. integer x = 3040
  2277. integer y = 36
  2278. integer width = 242
  2279. integer height = 48
  2280. integer textsize = -9
  2281. string text = "消息管理"
  2282. end type
  2283. event clicked;call super::clicked;openwithparm(w_message_mng_ljfieb,2)
  2284. wf_retrieve_sale_msg()
  2285. end event
  2286. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2287. end event
  2288. type p_mng_sale from picture within tabpage_2
  2289. integer x = 2962
  2290. integer y = 28
  2291. integer width = 73
  2292. integer height = 64
  2293. string pointer = "HAND.CUR"
  2294. boolean originalsize = true
  2295. string picturename = "graphics/open_m.bmp"
  2296. boolean focusrectangle = false
  2297. end type
  2298. event clicked;st_mng_sale.triggerevent(clicked!)
  2299. end event
  2300. type st_salemsg from uo_text_m_main within tabpage_2
  2301. integer x = 2784
  2302. integer y = 36
  2303. integer width = 174
  2304. integer height = 48
  2305. integer textsize = -9
  2306. string text = "发消息"
  2307. end type
  2308. event clicked;call super::clicked;IF Not f_power_ind(1595) THEN
  2309. MessageBox(publ_operator,sys_msg_pow)
  2310. RETURN
  2311. END IF
  2312. s_edit_index_tran s_buy_msg
  2313. s_buy_msg.b_long = 2
  2314. s_buy_msg.c_long = 0
  2315. openwithparm(w_msg_send_ljfieb,s_buy_msg)
  2316. end event
  2317. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2318. end event
  2319. type p_salemsg from picture within tabpage_2
  2320. integer x = 2702
  2321. integer y = 28
  2322. integer width = 73
  2323. integer height = 64
  2324. string pointer = "HAND.CUR"
  2325. boolean originalsize = true
  2326. string picturename = "graphics/new_m.BMP"
  2327. boolean focusrectangle = false
  2328. end type
  2329. event clicked;st_salemsg.triggerevent(clicked!)
  2330. end event
  2331. type st_14 from uo_text_m within tabpage_2
  2332. integer x = 2345
  2333. integer y = 32
  2334. integer width = 329
  2335. integer weight = 700
  2336. long textcolor = 0
  2337. string text = "客户消息"
  2338. end type
  2339. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2340. end event
  2341. type dw_sale_msg from datawindow within tabpage_2
  2342. integer x = 2299
  2343. integer y = 104
  2344. integer width = 1230
  2345. integer height = 828
  2346. integer taborder = 70
  2347. string title = "none"
  2348. string dataobject = "dw_ljfieb_sale_msg_mainface"
  2349. boolean vscrollbar = true
  2350. boolean livescroll = true
  2351. end type
  2352. event doubleclicked;parent.getparent().getparent().triggerevent('ue_sale_msg_view_ljfieb')
  2353. end event
  2354. event rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2355. THIS.SelectRow(0,FALSE)
  2356. THIS.SelectRow(currentrow,TRUE)
  2357. end event
  2358. type st_more_sale from uo_text_m_main within tabpage_2
  2359. integer x = 1125
  2360. integer y = 36
  2361. integer width = 370
  2362. integer height = 48
  2363. integer textsize = -9
  2364. long textcolor = 0
  2365. string text = "查看全部记录"
  2366. end type
  2367. event clicked;call super::clicked;open(w_ljfieb_sale_rece_his)
  2368. end event
  2369. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2370. end event
  2371. type p_9 from picture within tabpage_2
  2372. integer x = 1047
  2373. integer y = 28
  2374. integer width = 73
  2375. integer height = 64
  2376. boolean originalsize = true
  2377. string picturename = "graphics/open_m.bmp"
  2378. boolean focusrectangle = false
  2379. end type
  2380. event clicked;st_more_sale.triggerevent(clicked!)
  2381. end event
  2382. type st_mtrl_propel from uo_text_m_main within tabpage_2
  2383. integer x = 782
  2384. integer y = 36
  2385. integer width = 251
  2386. integer height = 48
  2387. integer textsize = -9
  2388. string text = "资料推送"
  2389. end type
  2390. event clicked;call super::clicked;IF Not f_power_ind(1575) THEN
  2391. MessageBox(publ_operator,sys_msg_pow)
  2392. RETURN
  2393. END IF
  2394. open(w_mtrl_propel_ljfieb)
  2395. end event
  2396. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2397. end event
  2398. type p_6 from picture within tabpage_2
  2399. integer x = 704
  2400. integer y = 28
  2401. integer width = 73
  2402. integer height = 64
  2403. string pointer = "HAND.CUR"
  2404. boolean originalsize = true
  2405. string picturename = "graphics/update_m.BMP"
  2406. boolean focusrectangle = false
  2407. end type
  2408. event clicked;st_mtrl_propel.triggerevent(clicked!)
  2409. end event
  2410. type st_retrieve_sale_re from uo_text_m_main within tabpage_2
  2411. integer x = 553
  2412. integer y = 36
  2413. integer width = 155
  2414. integer height = 48
  2415. integer textsize = -9
  2416. string text = "刷新"
  2417. end type
  2418. event clicked;call super::clicked;wf_retrieve_sale_rece()
  2419. end event
  2420. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2421. end event
  2422. type p_7 from picture within tabpage_2
  2423. integer x = 475
  2424. integer y = 28
  2425. integer width = 73
  2426. integer height = 64
  2427. string pointer = "HAND.CUR"
  2428. boolean originalsize = true
  2429. string picturename = "graphics/refresh_m.BMP"
  2430. boolean focusrectangle = false
  2431. end type
  2432. event clicked;st_retrieve_sale_re.triggerevent(clicked!)
  2433. end event
  2434. type st_15 from uo_text_m within tabpage_2
  2435. integer x = 41
  2436. integer y = 24
  2437. integer width = 251
  2438. integer weight = 700
  2439. long textcolor = 0
  2440. string text = "待处理"
  2441. end type
  2442. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2443. end event
  2444. type dw_sale_rece from u_dw_rbtnfilter within tabpage_2
  2445. integer y = 104
  2446. integer width = 2290
  2447. integer height = 828
  2448. integer taborder = 40
  2449. string dataobject = "dw_ljfieb_sale_rece_mainface"
  2450. boolean hscrollbar = true
  2451. boolean vscrollbar = true
  2452. boolean hsplitscroll = true
  2453. borderstyle borderstyle = stylebox!
  2454. end type
  2455. event doubleclicked;call super::doubleclicked;parent.getparent().getparent().triggerevent('ue_buytask_rece_ljfieb')
  2456. end event
  2457. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2458. THIS.SelectRow(0,FALSE)
  2459. THIS.SelectRow(currentrow,TRUE)
  2460. end event
  2461. type st_13 from uo_text_m within tabpage_2
  2462. integer x = 37
  2463. integer y = 964
  2464. integer width = 384
  2465. integer weight = 700
  2466. long textcolor = 0
  2467. string text = "待客户处理"
  2468. end type
  2469. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2470. end event
  2471. type p_12 from picture within tabpage_2
  2472. integer x = 475
  2473. integer y = 968
  2474. integer width = 73
  2475. integer height = 64
  2476. boolean originalsize = true
  2477. string picturename = "graphics/refresh_m.BMP"
  2478. boolean focusrectangle = false
  2479. end type
  2480. type st_12 from uo_text_m_main within tabpage_2
  2481. integer x = 553
  2482. integer y = 976
  2483. integer width = 123
  2484. integer height = 48
  2485. integer textsize = -9
  2486. string text = "刷新"
  2487. end type
  2488. event clicked;call super::clicked;wf_retrieve_sale_send()
  2489. end event
  2490. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2491. end event
  2492. type p_13 from picture within tabpage_2
  2493. integer x = 704
  2494. integer y = 968
  2495. integer width = 73
  2496. integer height = 64
  2497. boolean originalsize = true
  2498. string picturename = "graphics/open_m.bmp"
  2499. boolean focusrectangle = false
  2500. end type
  2501. type st_more_sales from uo_text_m_main within tabpage_2
  2502. integer x = 782
  2503. integer y = 976
  2504. integer width = 347
  2505. integer height = 48
  2506. integer textsize = -9
  2507. string text = "查看全部记录"
  2508. end type
  2509. event clicked;call super::clicked;open(w_ljfieb_sale_send_his)
  2510. end event
  2511. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2512. end event
  2513. type dw_sale_send from u_dw_rbtnfilter within tabpage_2
  2514. integer y = 1044
  2515. integer width = 3493
  2516. integer height = 868
  2517. integer taborder = 40
  2518. string dataobject = "dw_ljfieb_sale_send_mainface"
  2519. boolean hscrollbar = true
  2520. boolean vscrollbar = true
  2521. boolean hsplitscroll = true
  2522. borderstyle borderstyle = stylebox!
  2523. end type
  2524. event doubleclicked;call super::doubleclicked;IF row <= 0 THEN RETURN
  2525. if this.object.ljfieb_packet_billtype[row] = 3 then return
  2526. String ls_code,ls_sccode
  2527. Long ll_scid
  2528. ls_sccode = This.Object.ljfieb_packet_receivesccode[row]
  2529. SELECT scid
  2530. INTO :ll_scid
  2531. FROM u_scdef
  2532. Where sccode = :ls_sccode;
  2533. IF sqlca.SQLCode <> 0 THEN ll_scid = 0
  2534. ls_code = This.Object.ljfieb_packet_relatedcode[row]
  2535. f_open_win(ll_scid,ls_code)
  2536. end event
  2537. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2538. THIS.SelectRow(0,FALSE)
  2539. THIS.SelectRow(currentrow,TRUE)
  2540. end event
  2541. type tabpage_3 from userobject within tab_1
  2542. event create ( )
  2543. event destroy ( )
  2544. integer x = 18
  2545. integer y = 96
  2546. integer width = 3927
  2547. integer height = 2460
  2548. long backcolor = 16777215
  2549. string text = "采购供应链"
  2550. long tabtextcolor = 33554432
  2551. long tabbackcolor = 16777215
  2552. long picturemaskcolor = 536870912
  2553. r_7 r_7
  2554. st_buymsg_retrieve st_buymsg_retrieve
  2555. p_buymsg_retrieve p_buymsg_retrieve
  2556. st_mng_buy st_mng_buy
  2557. p_mng_buy p_mng_buy
  2558. st_buymsg st_buymsg
  2559. p_buymsg p_buymsg
  2560. st_17 st_17
  2561. st_more_buyfb st_more_buyfb
  2562. p_10 p_10
  2563. st_mtrl_receive st_mtrl_receive
  2564. p_14 p_14
  2565. st_retrieve_buy_re st_retrieve_buy_re
  2566. p_8 p_8
  2567. st_18 st_18
  2568. dw_buy_msg dw_buy_msg
  2569. dw_buy_feedback dw_buy_feedback
  2570. st_more_buys st_more_buys
  2571. p_11 p_11
  2572. st_retrieve_buy st_retrieve_buy
  2573. p_15 p_15
  2574. st_16 st_16
  2575. dw_buy_send dw_buy_send
  2576. r_5 r_5
  2577. r_9 r_9
  2578. end type
  2579. on tabpage_3.create
  2580. this.r_7=create r_7
  2581. this.st_buymsg_retrieve=create st_buymsg_retrieve
  2582. this.p_buymsg_retrieve=create p_buymsg_retrieve
  2583. this.st_mng_buy=create st_mng_buy
  2584. this.p_mng_buy=create p_mng_buy
  2585. this.st_buymsg=create st_buymsg
  2586. this.p_buymsg=create p_buymsg
  2587. this.st_17=create st_17
  2588. this.st_more_buyfb=create st_more_buyfb
  2589. this.p_10=create p_10
  2590. this.st_mtrl_receive=create st_mtrl_receive
  2591. this.p_14=create p_14
  2592. this.st_retrieve_buy_re=create st_retrieve_buy_re
  2593. this.p_8=create p_8
  2594. this.st_18=create st_18
  2595. this.dw_buy_msg=create dw_buy_msg
  2596. this.dw_buy_feedback=create dw_buy_feedback
  2597. this.st_more_buys=create st_more_buys
  2598. this.p_11=create p_11
  2599. this.st_retrieve_buy=create st_retrieve_buy
  2600. this.p_15=create p_15
  2601. this.st_16=create st_16
  2602. this.dw_buy_send=create dw_buy_send
  2603. this.r_5=create r_5
  2604. this.r_9=create r_9
  2605. this.Control[]={this.r_7,&
  2606. this.st_buymsg_retrieve,&
  2607. this.p_buymsg_retrieve,&
  2608. this.st_mng_buy,&
  2609. this.p_mng_buy,&
  2610. this.st_buymsg,&
  2611. this.p_buymsg,&
  2612. this.st_17,&
  2613. this.st_more_buyfb,&
  2614. this.p_10,&
  2615. this.st_mtrl_receive,&
  2616. this.p_14,&
  2617. this.st_retrieve_buy_re,&
  2618. this.p_8,&
  2619. this.st_18,&
  2620. this.dw_buy_msg,&
  2621. this.dw_buy_feedback,&
  2622. this.st_more_buys,&
  2623. this.p_11,&
  2624. this.st_retrieve_buy,&
  2625. this.p_15,&
  2626. this.st_16,&
  2627. this.dw_buy_send,&
  2628. this.r_5,&
  2629. this.r_9}
  2630. end on
  2631. on tabpage_3.destroy
  2632. destroy(this.r_7)
  2633. destroy(this.st_buymsg_retrieve)
  2634. destroy(this.p_buymsg_retrieve)
  2635. destroy(this.st_mng_buy)
  2636. destroy(this.p_mng_buy)
  2637. destroy(this.st_buymsg)
  2638. destroy(this.p_buymsg)
  2639. destroy(this.st_17)
  2640. destroy(this.st_more_buyfb)
  2641. destroy(this.p_10)
  2642. destroy(this.st_mtrl_receive)
  2643. destroy(this.p_14)
  2644. destroy(this.st_retrieve_buy_re)
  2645. destroy(this.p_8)
  2646. destroy(this.st_18)
  2647. destroy(this.dw_buy_msg)
  2648. destroy(this.dw_buy_feedback)
  2649. destroy(this.st_more_buys)
  2650. destroy(this.p_11)
  2651. destroy(this.st_retrieve_buy)
  2652. destroy(this.p_15)
  2653. destroy(this.st_16)
  2654. destroy(this.dw_buy_send)
  2655. destroy(this.r_5)
  2656. destroy(this.r_9)
  2657. end on
  2658. event constructor;//if sys_option_if_ljfieb = 0 then this.visible = false
  2659. end event
  2660. type r_7 from rectangle within tabpage_3
  2661. long linecolor = 134217734
  2662. integer linethickness = 4
  2663. long fillcolor = 12632256
  2664. integer x = 2299
  2665. integer y = 8
  2666. integer width = 1198
  2667. integer height = 100
  2668. end type
  2669. event constructor;this.fillcolor = rgb(184,202,238)
  2670. end event
  2671. type st_buymsg_retrieve from uo_text_m_main within tabpage_3
  2672. integer x = 3360
  2673. integer y = 36
  2674. integer width = 133
  2675. integer height = 48
  2676. integer textsize = -9
  2677. long backcolor = 12632256
  2678. string text = "刷新"
  2679. end type
  2680. event clicked;call super::clicked;wf_retrieve_buy_msg()
  2681. end event
  2682. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2683. end event
  2684. type p_buymsg_retrieve from picture within tabpage_3
  2685. integer x = 3282
  2686. integer y = 28
  2687. integer width = 73
  2688. integer height = 64
  2689. boolean originalsize = true
  2690. string picturename = "graphics/refresh_m.BMP"
  2691. boolean focusrectangle = false
  2692. end type
  2693. event clicked;st_buymsg_retrieve.triggerevent(clicked!)
  2694. end event
  2695. type st_mng_buy from uo_text_m_main within tabpage_3
  2696. integer x = 3040
  2697. integer y = 36
  2698. integer width = 238
  2699. integer height = 48
  2700. integer textsize = -9
  2701. long backcolor = 12632256
  2702. string text = "消息管理"
  2703. end type
  2704. event clicked;call super::clicked;openwithparm(w_message_mng_ljfieb,1)
  2705. wf_retrieve_buy_msg()
  2706. end event
  2707. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2708. end event
  2709. type p_mng_buy from picture within tabpage_3
  2710. integer x = 2962
  2711. integer y = 28
  2712. integer width = 73
  2713. integer height = 64
  2714. string pointer = "HAND.CUR"
  2715. boolean originalsize = true
  2716. string picturename = "graphics/open_m.bmp"
  2717. boolean focusrectangle = false
  2718. end type
  2719. event clicked;st_mng_buy.triggerevent(clicked!)
  2720. end event
  2721. type st_buymsg from uo_text_m_main within tabpage_3
  2722. integer x = 2784
  2723. integer y = 36
  2724. integer width = 174
  2725. integer height = 48
  2726. integer textsize = -9
  2727. long backcolor = 12632256
  2728. string text = "发消息"
  2729. end type
  2730. event clicked;call super::clicked;IF Not f_power_ind(1595) THEN
  2731. MessageBox(publ_operator,sys_msg_pow)
  2732. RETURN
  2733. END IF
  2734. s_edit_index_tran s_buy_msg
  2735. s_buy_msg.b_long = 1
  2736. s_buy_msg.c_long = 0
  2737. openwithparm(w_msg_send_ljfieb,s_buy_msg)
  2738. end event
  2739. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2740. end event
  2741. type p_buymsg from picture within tabpage_3
  2742. integer x = 2702
  2743. integer y = 28
  2744. integer width = 73
  2745. integer height = 64
  2746. string pointer = "HAND.CUR"
  2747. boolean originalsize = true
  2748. string picturename = "graphics/new_m.BMP"
  2749. boolean focusrectangle = false
  2750. end type
  2751. event clicked;st_buymsg.triggerevent(clicked!)
  2752. end event
  2753. type st_17 from uo_text_m within tabpage_3
  2754. integer x = 2318
  2755. integer y = 24
  2756. integer width = 375
  2757. integer weight = 700
  2758. long textcolor = 0
  2759. long backcolor = 12632256
  2760. string text = "供应商消息"
  2761. end type
  2762. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2763. end event
  2764. type st_more_buyfb from uo_text_m_main within tabpage_3
  2765. integer x = 1787
  2766. integer y = 36
  2767. integer width = 343
  2768. integer height = 48
  2769. integer textsize = -9
  2770. long backcolor = 12632256
  2771. string text = "查看全部记录"
  2772. end type
  2773. event clicked;call super::clicked;//open(w_ljfieb_buy_feedback_his)
  2774. end event
  2775. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2776. end event
  2777. type p_10 from picture within tabpage_3
  2778. integer x = 1710
  2779. integer y = 28
  2780. integer width = 73
  2781. integer height = 64
  2782. boolean originalsize = true
  2783. string picturename = "graphics/open_m.bmp"
  2784. boolean focusrectangle = false
  2785. end type
  2786. event clicked;st_more_buyfb.triggerevent(clicked!)
  2787. end event
  2788. type st_mtrl_receive from uo_text_m_main within tabpage_3
  2789. integer x = 782
  2790. integer y = 36
  2791. integer width = 923
  2792. integer height = 48
  2793. integer textsize = -9
  2794. long backcolor = 12632256
  2795. string text = "资料同步(没有可同步的资料)"
  2796. end type
  2797. event clicked;call super::clicked;IF Not f_power_ind(1586) THEN
  2798. MessageBox(publ_operator,sys_msg_pow)
  2799. RETURN
  2800. END IF
  2801. open(w_mtrl_receive_ljfieb)
  2802. wf_retrieve_buy_feedback()
  2803. end event
  2804. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2805. end event
  2806. type p_14 from picture within tabpage_3
  2807. integer x = 704
  2808. integer y = 28
  2809. integer width = 73
  2810. integer height = 64
  2811. string pointer = "HAND.CUR"
  2812. boolean originalsize = true
  2813. string picturename = "graphics/update2_m.BMP"
  2814. boolean focusrectangle = false
  2815. end type
  2816. event clicked;st_mtrl_receive.triggerevent(clicked!)
  2817. end event
  2818. type st_retrieve_buy_re from uo_text_m_main within tabpage_3
  2819. integer x = 553
  2820. integer y = 36
  2821. integer width = 137
  2822. integer height = 48
  2823. integer textsize = -9
  2824. long backcolor = 12632256
  2825. string text = "刷新"
  2826. end type
  2827. event clicked;call super::clicked;wf_retrieve_buy_feedback()
  2828. end event
  2829. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2830. end event
  2831. type p_8 from picture within tabpage_3
  2832. integer x = 475
  2833. integer y = 28
  2834. integer width = 73
  2835. integer height = 64
  2836. string pointer = "HAND.CUR"
  2837. boolean originalsize = true
  2838. string picturename = "graphics/refresh_m.BMP"
  2839. boolean focusrectangle = false
  2840. end type
  2841. event clicked;st_retrieve_buy_re.triggerevent(clicked!)
  2842. end event
  2843. type st_18 from uo_text_m within tabpage_3
  2844. integer x = 41
  2845. integer y = 24
  2846. integer width = 251
  2847. integer weight = 700
  2848. long textcolor = 0
  2849. long backcolor = 12632256
  2850. string text = "待处理"
  2851. end type
  2852. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2853. end event
  2854. type dw_buy_msg from datawindow within tabpage_3
  2855. integer x = 2299
  2856. integer y = 104
  2857. integer width = 1198
  2858. integer height = 828
  2859. integer taborder = 80
  2860. string title = "none"
  2861. string dataobject = "dw_ljfieb_buy_msg_mainface"
  2862. boolean hscrollbar = true
  2863. boolean vscrollbar = true
  2864. boolean hsplitscroll = true
  2865. boolean livescroll = true
  2866. end type
  2867. event doubleclicked;parent.getparent().getparent().triggerevent('ue_buy_msg_view_ljfieb')
  2868. end event
  2869. event rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2870. THIS.SelectRow(0,FALSE)
  2871. THIS.SelectRow(currentrow,TRUE)
  2872. end event
  2873. type dw_buy_feedback from u_dw_rbtnfilter within tabpage_3
  2874. integer y = 104
  2875. integer width = 2290
  2876. integer height = 828
  2877. integer taborder = 80
  2878. string dataobject = "dw_ljfieb_buy_feedback_mainface"
  2879. boolean hscrollbar = true
  2880. boolean vscrollbar = true
  2881. boolean hsplitscroll = true
  2882. borderstyle borderstyle = stylebox!
  2883. end type
  2884. event doubleclicked;call super::doubleclicked;parent.getparent().getparent().triggerevent('ue_buytask_feedback_ljfieb')
  2885. end event
  2886. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2887. THIS.SelectRow(0,FALSE)
  2888. THIS.SelectRow(currentrow,TRUE)
  2889. end event
  2890. type st_more_buys from uo_text_m_main within tabpage_3
  2891. integer x = 782
  2892. integer y = 972
  2893. integer width = 361
  2894. integer height = 48
  2895. integer textsize = -9
  2896. long backcolor = 12632256
  2897. string text = "查看全部记录"
  2898. end type
  2899. event clicked;call super::clicked;open(w_ljfieb_buy_send_his)
  2900. end event
  2901. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2902. end event
  2903. type p_11 from picture within tabpage_3
  2904. integer x = 704
  2905. integer y = 964
  2906. integer width = 73
  2907. integer height = 64
  2908. boolean originalsize = true
  2909. string picturename = "graphics/open_m.bmp"
  2910. boolean focusrectangle = false
  2911. end type
  2912. event clicked;st_more_buys.triggerevent(clicked!)
  2913. end event
  2914. type st_retrieve_buy from uo_text_m_main within tabpage_3
  2915. integer x = 553
  2916. integer y = 972
  2917. integer width = 146
  2918. integer height = 48
  2919. integer textsize = -9
  2920. long backcolor = 12632256
  2921. string text = "刷新"
  2922. end type
  2923. event clicked;call super::clicked;wf_retrieve_buy_send()
  2924. end event
  2925. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2926. end event
  2927. type p_15 from picture within tabpage_3
  2928. integer x = 475
  2929. integer y = 964
  2930. integer width = 73
  2931. integer height = 64
  2932. boolean originalsize = true
  2933. string picturename = "graphics/refresh_m.BMP"
  2934. boolean focusrectangle = false
  2935. end type
  2936. event clicked;st_retrieve_buy.triggerevent(clicked!)
  2937. end event
  2938. type st_16 from uo_text_m within tabpage_3
  2939. integer x = 27
  2940. integer y = 964
  2941. integer width = 448
  2942. integer weight = 700
  2943. long textcolor = 0
  2944. long backcolor = 12632256
  2945. string text = "待供应商处理"
  2946. end type
  2947. event constructor;call super::constructor;this.backcolor = rgb(184,202,238)
  2948. end event
  2949. type dw_buy_send from u_dw_rbtnfilter within tabpage_3
  2950. integer y = 1044
  2951. integer width = 3493
  2952. integer height = 868
  2953. integer taborder = 50
  2954. string dataobject = "dw_ljfieb_buy_send_mainface"
  2955. boolean hscrollbar = true
  2956. boolean vscrollbar = true
  2957. boolean hsplitscroll = true
  2958. borderstyle borderstyle = stylebox!
  2959. end type
  2960. event doubleclicked;call super::doubleclicked;IF row <= 0 THEN RETURN
  2961. String ls_code,ls_sccode
  2962. Long ll_scid
  2963. ls_sccode = This.Object.ljfieb_packet_receivesccode[row]
  2964. SELECT scid
  2965. INTO :ll_scid
  2966. FROM u_scdef
  2967. Where sccode = :ls_sccode;
  2968. IF sqlca.SQLCode <> 0 THEN ll_scid = 0
  2969. ls_code = This.Object.ljfieb_packet_relatedcode[row]
  2970. f_open_win(ll_scid,ls_code)
  2971. end event
  2972. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2973. THIS.SelectRow(0,FALSE)
  2974. THIS.SelectRow(currentrow,TRUE)
  2975. end event
  2976. type r_5 from rectangle within tabpage_3
  2977. long linecolor = 134217734
  2978. integer linethickness = 4
  2979. long fillcolor = 12632256
  2980. integer y = 948
  2981. integer width = 3493
  2982. integer height = 100
  2983. end type
  2984. event constructor;this.fillcolor = rgb(184,202,238)
  2985. end event
  2986. type r_9 from rectangle within tabpage_3
  2987. long linecolor = 134217734
  2988. integer linethickness = 4
  2989. long fillcolor = 12632256
  2990. integer y = 8
  2991. integer width = 2290
  2992. integer height = 100
  2993. end type
  2994. event constructor;this.fillcolor = rgb(184,202,238)
  2995. end event
  2996. type p_sfqr from picture within w_q6_main
  2997. integer x = 3355
  2998. integer y = 220
  2999. integer width = 73
  3000. integer height = 64
  3001. boolean bringtotop = true
  3002. string pointer = "HyperLink!"
  3003. boolean originalsize = true
  3004. string picturename = "graphics\ic_user_q6.bmp"
  3005. boolean focusrectangle = false
  3006. end type
  3007. type st_sfqr from statictext within w_q6_main
  3008. integer x = 3438
  3009. integer y = 228
  3010. integer width = 443
  3011. integer height = 48
  3012. boolean bringtotop = true
  3013. integer textsize = -9
  3014. integer weight = 700
  3015. fontcharset fontcharset = gb2312charset!
  3016. fontpitch fontpitch = variable!
  3017. string facename = "宋体"
  3018. string pointer = "HyperLink!"
  3019. long textcolor = 33554432
  3020. long backcolor = 16777215
  3021. string text = "切换用户或帐套"
  3022. boolean focusrectangle = false
  3023. end type
  3024. event clicked;f_open(1)
  3025. end event
  3026. type p_dysz from picture within w_q6_main
  3027. integer x = 3922
  3028. integer y = 220
  3029. integer width = 73
  3030. integer height = 64
  3031. boolean bringtotop = true
  3032. string pointer = "HyperLink!"
  3033. boolean originalsize = true
  3034. string picturename = "graphics\ic_ie_q6.bmp"
  3035. boolean focusrectangle = false
  3036. end type
  3037. type st_dysz from statictext within w_q6_main
  3038. integer x = 4009
  3039. integer y = 228
  3040. integer width = 142
  3041. integer height = 48
  3042. boolean bringtotop = true
  3043. integer textsize = -9
  3044. integer weight = 700
  3045. fontcharset fontcharset = gb2312charset!
  3046. fontpitch fontpitch = variable!
  3047. string facename = "宋体"
  3048. string pointer = "HyperLink!"
  3049. long textcolor = 33554432
  3050. long backcolor = 16777215
  3051. string text = "官网"
  3052. boolean focusrectangle = false
  3053. end type
  3054. event clicked;If sys_ifoem = 0 Then
  3055. run('explorer http://www.longjoe.com/')
  3056. else
  3057. string ls_run
  3058. ls_run = 'explorer '+ProfileString (sys_inioem, "oem", "website",'')
  3059. run(ls_run)
  3060. end if
  3061. end event
  3062. type p_help from picture within w_q6_main
  3063. integer x = 4174
  3064. integer y = 220
  3065. integer width = 73
  3066. integer height = 64
  3067. boolean bringtotop = true
  3068. string pointer = "HyperLink!"
  3069. boolean originalsize = true
  3070. string picturename = "graphics\ic_help_q6.bmp"
  3071. boolean focusrectangle = false
  3072. end type
  3073. type st_help from statictext within w_q6_main
  3074. integer x = 4261
  3075. integer y = 228
  3076. integer width = 142
  3077. integer height = 48
  3078. boolean bringtotop = true
  3079. integer textsize = -9
  3080. integer weight = 700
  3081. fontcharset fontcharset = gb2312charset!
  3082. fontpitch fontpitch = variable!
  3083. string facename = "宋体"
  3084. string pointer = "HyperLink!"
  3085. long textcolor = 33554432
  3086. long backcolor = 16777215
  3087. string text = "帮助"
  3088. boolean focusrectangle = false
  3089. end type
  3090. event clicked;Int i
  3091. i = htmlhelpA(Handle(THIS), sys_help_chm, 0, "欢迎.htm")
  3092. end event
  3093. type p_exit from picture within w_q6_main
  3094. integer x = 4750
  3095. integer y = 224
  3096. integer width = 73
  3097. integer height = 64
  3098. boolean bringtotop = true
  3099. string pointer = "HyperLink!"
  3100. boolean originalsize = true
  3101. string picturename = "graphics\ic_exit_q6.bmp"
  3102. boolean focusrectangle = false
  3103. end type
  3104. type st_exit from statictext within w_q6_main
  3105. integer x = 4837
  3106. integer y = 228
  3107. integer width = 142
  3108. integer height = 48
  3109. boolean bringtotop = true
  3110. integer textsize = -9
  3111. integer weight = 700
  3112. fontcharset fontcharset = gb2312charset!
  3113. fontpitch fontpitch = variable!
  3114. string facename = "宋体"
  3115. string pointer = "HyperLink!"
  3116. long textcolor = 33554432
  3117. long backcolor = 16777215
  3118. string text = "退出"
  3119. boolean focusrectangle = false
  3120. end type
  3121. event clicked;close(parent)
  3122. end event
  3123. type p_about from picture within w_q6_main
  3124. integer x = 4448
  3125. integer y = 220
  3126. integer width = 73
  3127. integer height = 64
  3128. boolean bringtotop = true
  3129. string pointer = "HyperLink!"
  3130. boolean originalsize = true
  3131. string picturename = "graphics\ic_about_q6.bmp"
  3132. boolean focusrectangle = false
  3133. end type
  3134. type st_about from statictext within w_q6_main
  3135. integer x = 4535
  3136. integer y = 228
  3137. integer width = 142
  3138. integer height = 48
  3139. boolean bringtotop = true
  3140. integer textsize = -9
  3141. integer weight = 700
  3142. fontcharset fontcharset = gb2312charset!
  3143. fontpitch fontpitch = variable!
  3144. string facename = "宋体"
  3145. string pointer = "HyperLink!"
  3146. long textcolor = 33554432
  3147. long backcolor = 16777215
  3148. string text = "关于"
  3149. boolean focusrectangle = false
  3150. end type
  3151. event clicked;f_sys_main(805)
  3152. end event
  3153. type st_new from statictext within w_q6_main
  3154. integer x = 3095
  3155. integer y = 228
  3156. integer width = 192
  3157. integer height = 48
  3158. boolean bringtotop = true
  3159. integer textsize = -9
  3160. integer weight = 700
  3161. fontcharset fontcharset = gb2312charset!
  3162. fontpitch fontpitch = variable!
  3163. string facename = "宋体"
  3164. string pointer = "HyperLink!"
  3165. long textcolor = 33554432
  3166. long backcolor = 16777215
  3167. string text = "新特性"
  3168. boolean focusrectangle = false
  3169. end type
  3170. event clicked;open(w_whatsnew_q6)
  3171. end event
  3172. type p_new from picture within w_q6_main
  3173. integer x = 2999
  3174. integer y = 220
  3175. integer width = 73
  3176. integer height = 64
  3177. boolean bringtotop = true
  3178. string pointer = "HyperLink!"
  3179. boolean originalsize = true
  3180. string picturename = "graphics\ic_new_q6.bmp"
  3181. boolean focusrectangle = false
  3182. end type