w_cust_crm.srw 107 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809
  1. $PBExportHeader$w_cust_crm.srw
  2. forward
  3. global type w_cust_crm from w_publ_easyq
  4. end type
  5. type tv_1 from uo_tv_cusarea within w_cust_crm
  6. end type
  7. type tab_1 from tab within w_cust_crm
  8. end type
  9. type tabpage_1 from userobject within tab_1
  10. end type
  11. type cb_12 from commandbutton within tabpage_1
  12. end type
  13. type cb_8 from commandbutton within tabpage_1
  14. end type
  15. type cb_7 from commandbutton within tabpage_1
  16. end type
  17. type dw_rep from u_dw_rbtnfilter within tabpage_1
  18. end type
  19. type tabpage_1 from userobject within tab_1
  20. cb_12 cb_12
  21. cb_8 cb_8
  22. cb_7 cb_7
  23. dw_rep dw_rep
  24. end type
  25. type tabpage_8 from userobject within tab_1
  26. end type
  27. type dw_item from u_dw_rbtnfilter within tabpage_8
  28. end type
  29. type cb_25 from commandbutton within tabpage_8
  30. end type
  31. type tabpage_8 from userobject within tab_1
  32. dw_item dw_item
  33. cb_25 cb_25
  34. end type
  35. type tabpage_7 from userobject within tab_1
  36. end type
  37. type cb_18 from commandbutton within tabpage_7
  38. end type
  39. type cb_17 from commandbutton within tabpage_7
  40. end type
  41. type cb_16 from commandbutton within tabpage_7
  42. end type
  43. type dw_station from u_dw_rbtnfilter within tabpage_7
  44. end type
  45. type tabpage_7 from userobject within tab_1
  46. cb_18 cb_18
  47. cb_17 cb_17
  48. cb_16 cb_16
  49. dw_station dw_station
  50. end type
  51. type tabpage_2 from userobject within tab_1
  52. end type
  53. type st_interview from statictext within tabpage_2
  54. end type
  55. type cb_31 from commandbutton within tabpage_2
  56. end type
  57. type cb_30 from commandbutton within tabpage_2
  58. end type
  59. type cb_21 from commandbutton within tabpage_2
  60. end type
  61. type em_edate2 from editmask within tabpage_2
  62. end type
  63. type st_6 from statictext within tabpage_2
  64. end type
  65. type em_fdate2 from editmask within tabpage_2
  66. end type
  67. type cb_11 from commandbutton within tabpage_2
  68. end type
  69. type cb_10 from commandbutton within tabpage_2
  70. end type
  71. type cb_9 from commandbutton within tabpage_2
  72. end type
  73. type dw_interview from u_dw_rbtnfilter within tabpage_2
  74. end type
  75. type tabpage_2 from userobject within tab_1
  76. st_interview st_interview
  77. cb_31 cb_31
  78. cb_30 cb_30
  79. cb_21 cb_21
  80. em_edate2 em_edate2
  81. st_6 st_6
  82. em_fdate2 em_fdate2
  83. cb_11 cb_11
  84. cb_10 cb_10
  85. cb_9 cb_9
  86. dw_interview dw_interview
  87. end type
  88. type tabpage_3 from userobject within tab_1
  89. end type
  90. type st_plan from statictext within tabpage_3
  91. end type
  92. type cb_29 from commandbutton within tabpage_3
  93. end type
  94. type cb_28 from commandbutton within tabpage_3
  95. end type
  96. type cb_20 from commandbutton within tabpage_3
  97. end type
  98. type em_edate3 from editmask within tabpage_3
  99. end type
  100. type st_5 from statictext within tabpage_3
  101. end type
  102. type em_fdate3 from editmask within tabpage_3
  103. end type
  104. type cb_15 from commandbutton within tabpage_3
  105. end type
  106. type cb_14 from commandbutton within tabpage_3
  107. end type
  108. type cb_13 from commandbutton within tabpage_3
  109. end type
  110. type dw_plan from u_dw_rbtnfilter within tabpage_3
  111. end type
  112. type tabpage_3 from userobject within tab_1
  113. st_plan st_plan
  114. cb_29 cb_29
  115. cb_28 cb_28
  116. cb_20 cb_20
  117. em_edate3 em_edate3
  118. st_5 st_5
  119. em_fdate3 em_fdate3
  120. cb_15 cb_15
  121. cb_14 cb_14
  122. cb_13 cb_13
  123. dw_plan dw_plan
  124. end type
  125. type tabpage_6 from userobject within tab_1
  126. end type
  127. type cb_6 from commandbutton within tabpage_6
  128. end type
  129. type st_1 from statictext within tabpage_6
  130. end type
  131. type em_fdate6 from editmask within tabpage_6
  132. end type
  133. type em_edate6 from editmask within tabpage_6
  134. end type
  135. type dw_oppose from u_dw_rbtnfilter within tabpage_6
  136. end type
  137. type tabpage_6 from userobject within tab_1
  138. cb_6 cb_6
  139. st_1 st_1
  140. em_fdate6 em_fdate6
  141. em_edate6 em_edate6
  142. dw_oppose dw_oppose
  143. end type
  144. type tabpage_9 from userobject within tab_1
  145. end type
  146. type st_sample from statictext within tabpage_9
  147. end type
  148. type cb_27 from commandbutton within tabpage_9
  149. end type
  150. type cb_26 from commandbutton within tabpage_9
  151. end type
  152. type dw_sample from u_dw_rbtnfilter within tabpage_9
  153. end type
  154. type cb_24 from commandbutton within tabpage_9
  155. end type
  156. type cb_23 from commandbutton within tabpage_9
  157. end type
  158. type cb_22 from commandbutton within tabpage_9
  159. end type
  160. type cb_19 from commandbutton within tabpage_9
  161. end type
  162. type em_edate9 from editmask within tabpage_9
  163. end type
  164. type st_2 from statictext within tabpage_9
  165. end type
  166. type em_fdate9 from editmask within tabpage_9
  167. end type
  168. type tabpage_9 from userobject within tab_1
  169. st_sample st_sample
  170. cb_27 cb_27
  171. cb_26 cb_26
  172. dw_sample dw_sample
  173. cb_24 cb_24
  174. cb_23 cb_23
  175. cb_22 cb_22
  176. cb_19 cb_19
  177. em_edate9 em_edate9
  178. st_2 st_2
  179. em_fdate9 em_fdate9
  180. end type
  181. type tabpage_4 from userobject within tab_1
  182. end type
  183. type dw_price from u_dw_rbtnfilter within tabpage_4
  184. end type
  185. type tabpage_4 from userobject within tab_1
  186. dw_price dw_price
  187. end type
  188. type tabpage_5 from userobject within tab_1
  189. end type
  190. type dw_task from u_dw_rbtnfilter within tabpage_5
  191. end type
  192. type tabpage_5 from userobject within tab_1
  193. dw_task dw_task
  194. end type
  195. type tabpage_12 from userobject within tab_1
  196. end type
  197. type dw_outware from u_dw_rbtnfilter within tabpage_12
  198. end type
  199. type tabpage_12 from userobject within tab_1
  200. dw_outware dw_outware
  201. end type
  202. type tabpage_10 from userobject within tab_1
  203. end type
  204. type dw_rev from u_dw_rbtnfilter within tabpage_10
  205. end type
  206. type cb_32 from commandbutton within tabpage_10
  207. end type
  208. type em_edate4 from editmask within tabpage_10
  209. end type
  210. type st_7 from statictext within tabpage_10
  211. end type
  212. type em_fdate4 from editmask within tabpage_10
  213. end type
  214. type tabpage_10 from userobject within tab_1
  215. dw_rev dw_rev
  216. cb_32 cb_32
  217. em_edate4 em_edate4
  218. st_7 st_7
  219. em_fdate4 em_fdate4
  220. end type
  221. type tabpage_11 from userobject within tab_1
  222. end type
  223. type dw_send from u_dw_rbtnfilter within tabpage_11
  224. end type
  225. type cb_33 from commandbutton within tabpage_11
  226. end type
  227. type em_edate5 from editmask within tabpage_11
  228. end type
  229. type st_8 from statictext within tabpage_11
  230. end type
  231. type em_fdate5 from editmask within tabpage_11
  232. end type
  233. type tabpage_11 from userobject within tab_1
  234. dw_send dw_send
  235. cb_33 cb_33
  236. em_edate5 em_edate5
  237. st_8 st_8
  238. em_fdate5 em_fdate5
  239. end type
  240. type tab_1 from tab within w_cust_crm
  241. tabpage_1 tabpage_1
  242. tabpage_8 tabpage_8
  243. tabpage_7 tabpage_7
  244. tabpage_2 tabpage_2
  245. tabpage_3 tabpage_3
  246. tabpage_6 tabpage_6
  247. tabpage_9 tabpage_9
  248. tabpage_4 tabpage_4
  249. tabpage_5 tabpage_5
  250. tabpage_12 tabpage_12
  251. tabpage_10 tabpage_10
  252. tabpage_11 tabpage_11
  253. end type
  254. type cb_3 from uo_imflatbutton within w_cust_crm
  255. end type
  256. type cb_4 from uo_imflatbutton within w_cust_crm
  257. end type
  258. type cb_5 from uo_imflatbutton within w_cust_crm
  259. end type
  260. type ddlb_1 from dropdownlistbox within w_cust_crm
  261. end type
  262. type ddlb_2 from dropdownlistbox within w_cust_crm
  263. end type
  264. type cb_audit from uo_imflatbutton within w_cust_crm
  265. end type
  266. type cb_other from uo_imflatbutton within w_cust_crm
  267. end type
  268. type st_10 from statictext within w_cust_crm
  269. end type
  270. type cbx_unsale from checkbox within w_cust_crm
  271. end type
  272. type em_unsale from editmask within w_cust_crm
  273. end type
  274. type cbx_untask from checkbox within w_cust_crm
  275. end type
  276. type em_untask from editmask within w_cust_crm
  277. end type
  278. type st_9 from statictext within w_cust_crm
  279. end type
  280. type st_11 from statictext within w_cust_crm
  281. end type
  282. type sle_tel_number from u_sleedit within w_cust_crm
  283. end type
  284. type ddlb_unsale from dropdownlistbox within w_cust_crm
  285. end type
  286. type ddlb_untask from dropdownlistbox within w_cust_crm
  287. end type
  288. end forward
  289. global type w_cust_crm from w_publ_easyq
  290. integer width = 4105
  291. string title = "客户关系管理"
  292. event ue_retr_rep ( )
  293. event ue_retr_plan ( )
  294. event ue_retr_interview ( )
  295. event ue_add_rep ( )
  296. event ue_mod_rep ( )
  297. event ue_del_rep ( )
  298. event ue_add_plan ( )
  299. event ue_mod_plan ( )
  300. event ue_del_plan ( )
  301. event ue_mod_interview ( )
  302. event ue_add_interview ( )
  303. event ue_del_interview ( )
  304. event ue_retr_price ( )
  305. event ue_retr_task ( )
  306. event ue_retr_oppose ( )
  307. event ue_retr_station ( )
  308. event ue_add_station ( )
  309. event ue_del_station ( )
  310. event ue_dft_station ( )
  311. event ue_set_cust_ok ( )
  312. event ue_set_cust_notok ( )
  313. event ue_set_cust_blacklist ( )
  314. event ue_retr_sample ( )
  315. event ue_del_sample ( )
  316. event ue_mod_sample ( )
  317. event ue_add_sample ( )
  318. event ue_retr_item ( )
  319. event ue_mod_item ( )
  320. event ue_fj_edit_sample ( )
  321. event ue_fj_view_sample ( )
  322. event ue_fj_view_plan ( )
  323. event ue_fj_view_interview ( )
  324. event ue_fj_edit_interview ( )
  325. event ue_fj_edit_plan ( )
  326. event ue_fj_edit_cust ( )
  327. event ue_fj_view_cust ( )
  328. event ue_fj_cnt_sample ( )
  329. event ue_fj_cnt_plan ( )
  330. event ue_fj_cnt_interview ( )
  331. event ue_email_send ( )
  332. event ue_email_view ( )
  333. event ue_retr_rev ( )
  334. event ue_retr_send ( )
  335. event ue_retr_outware ( )
  336. event ue_filter_cuscode ( )
  337. event ue_filter_telnumber ( )
  338. event ue_rq_cust ( )
  339. event ue_outrep_def ( )
  340. event ue_outrep_trans ( )
  341. event ue_outrep_p_custype ( )
  342. tv_1 tv_1
  343. tab_1 tab_1
  344. cb_3 cb_3
  345. cb_4 cb_4
  346. cb_5 cb_5
  347. ddlb_1 ddlb_1
  348. ddlb_2 ddlb_2
  349. cb_audit cb_audit
  350. cb_other cb_other
  351. st_10 st_10
  352. cbx_unsale cbx_unsale
  353. em_unsale em_unsale
  354. cbx_untask cbx_untask
  355. em_untask em_untask
  356. st_9 st_9
  357. st_11 st_11
  358. sle_tel_number sle_tel_number
  359. ddlb_unsale ddlb_unsale
  360. ddlb_untask ddlb_untask
  361. end type
  362. global w_cust_crm w_cust_crm
  363. type variables
  364. Int ins_inuse = 1,ins_state = -1
  365. long cur_cusareaid
  366. String ins_areaname = ''
  367. uo_crm uo_cus
  368. datawindow dw_task
  369. datawindow dw_price
  370. end variables
  371. forward prototypes
  372. public function integer wf_getflag (string arg_string)
  373. end prototypes
  374. event ue_retr_rep();Long ll_row,ll_cusid
  375. dw_1.AcceptText()
  376. ll_row = dw_1.GetRow()
  377. IF ll_row <= 0 THEN
  378. tab_1.tabpage_1.dw_rep.Reset()
  379. ELSE
  380. ll_cusid = dw_1.Object.cusid[ll_row]
  381. tab_1.tabpage_1.dw_rep.Retrieve(ll_cusid)
  382. END IF
  383. end event
  384. event ue_retr_plan();Long ll_row,ll_cusid
  385. DateTime ld_fdate,ld_edate
  386. ld_fdate = DateTime(Date(tab_1.tabpage_3.em_fdate3.Text),Time(0))
  387. ld_edate = DateTime(Date(tab_1.tabpage_3.em_edate3.Text),Time('23:59:59'))
  388. dw_1.AcceptText()
  389. ll_row = dw_1.GetRow()
  390. IF ll_row <= 0 THEN
  391. tab_1.tabpage_3.dw_plan.Reset()
  392. ELSE
  393. ll_cusid = dw_1.Object.cusid[ll_row]
  394. tab_1.tabpage_3.dw_plan.Retrieve(ll_cusid,ld_fdate,ld_edate)
  395. END IF
  396. end event
  397. event ue_retr_interview();Long ll_row,ll_cusid
  398. DateTime ld_fdate,ld_edate
  399. ld_fdate = DateTime(Date(tab_1.tabpage_2.em_fdate2.Text),Time(0))
  400. ld_edate = DateTime(Date(tab_1.tabpage_2.em_edate2.Text),Time('23:59:59'))
  401. dw_1.AcceptText()
  402. ll_row = dw_1.GetRow()
  403. IF ll_row <= 0 THEN
  404. tab_1.tabpage_2.dw_interview.Reset()
  405. ELSE
  406. ll_cusid = dw_1.Object.cusid[ll_row]
  407. tab_1.tabpage_2.dw_interview.Retrieve(ll_cusid,ld_fdate,ld_edate)
  408. END IF
  409. end event
  410. event ue_add_rep();IF NOT f_power_ind(1266) THEN
  411. MessageBox('提示','你没有使用权限!',information!,OK!)
  412. RETURN
  413. END IF
  414. Long ll_row
  415. s_cust_rep s_rep
  416. dw_1.AcceptText()
  417. ll_row = dw_1.GetRow()
  418. IF ll_row <= 0 THEN
  419. MessageBox('提示','请先选择客户',information!,OK!)
  420. RETURN
  421. END IF
  422. s_rep.repid = 0
  423. s_rep.cusid = dw_1.Object.cusid[ll_row]
  424. OpenWithParm(w_cust_rep_add,s_rep)
  425. THIS.TriggerEvent('ue_retr_rep')
  426. end event
  427. event ue_mod_rep();IF NOT f_power_ind(1266) THEN
  428. MessageBox('提示','你没有使用权限!',information!,OK!)
  429. RETURN
  430. END IF
  431. Long ll_row
  432. s_cust_rep s_rep
  433. dw_1.AcceptText()
  434. ll_row = dw_1.GetRow()
  435. IF ll_row <= 0 THEN
  436. MessageBox('提示','请先选择客户',information!,OK!)
  437. RETURN
  438. END IF
  439. s_rep.cusid = dw_1.Object.cusid[ll_row]
  440. tab_1.tabpage_1.dw_rep.AcceptText()
  441. ll_row = tab_1.tabpage_1.dw_rep.GetRow()
  442. IF ll_row <= 0 THEN
  443. MessageBox('提示','请先选择客户联系人资料',information!,OK!)
  444. RETURN
  445. END IF
  446. s_rep.repid = tab_1.tabpage_1.dw_rep.Object.repid[ll_row]
  447. OpenWithParm(w_cust_rep_add,s_rep)
  448. THIS.TriggerEvent('ue_retr_rep')
  449. end event
  450. event ue_del_rep();IF NOT f_power_ind(1266) THEN
  451. MessageBox('提示','你没有使用权限!',information!,OK!)
  452. RETURN
  453. END IF
  454. Long ll_row,ll_repid
  455. String arg_msg
  456. tab_1.tabpage_1.dw_rep.AcceptText()
  457. ll_row = tab_1.tabpage_1.dw_rep.GetRow()
  458. IF ll_row <= 0 THEN
  459. MessageBox('提示','请选择要删除的联系人资料',information!,OK!)
  460. RETURN
  461. END IF
  462. IF MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
  463. RETURN
  464. END IF
  465. ll_repid = tab_1.tabpage_1.dw_rep.Object.repid[ll_row]
  466. IF uo_cus.uof_del_rep(ll_repid,publ_operator,arg_msg,TRUE) = 0 THEN
  467. MessageBox('错误','删除联系人资料失败,'+arg_msg,stopsign!,OK!)
  468. RETURN
  469. END IF
  470. THIS.TriggerEvent('ue_retr_rep')
  471. end event
  472. event ue_add_plan();IF NOT f_power_ind(1264) THEN
  473. MessageBox('提示','你没有使用权限!',information!,OK!)
  474. RETURN
  475. END IF
  476. Long ll_row
  477. s_cust_plan s_plan
  478. dw_1.AcceptText()
  479. ll_row = dw_1.GetRow()
  480. IF ll_row <= 0 THEN
  481. MessageBox('提示','请先选择客户',information!,OK!)
  482. RETURN
  483. END IF
  484. s_plan.planid = 0
  485. s_plan.cusid = dw_1.Object.cusid[ll_row]
  486. OpenWithParm(w_cust_plan_add,s_plan)
  487. THIS.TriggerEvent('ue_retr_plan')
  488. end event
  489. event ue_mod_plan();IF NOT f_power_ind(1264) THEN
  490. MessageBox('提示','你没有使用权限!',information!,OK!)
  491. RETURN
  492. END IF
  493. Long ll_row
  494. s_cust_plan s_plan
  495. dw_1.AcceptText()
  496. ll_row = dw_1.GetRow()
  497. IF ll_row <= 0 THEN
  498. MessageBox('提示','请先选择客户',information!,OK!)
  499. RETURN
  500. END IF
  501. s_plan.cusid = dw_1.Object.cusid[ll_row]
  502. tab_1.tabpage_3.dw_plan.AcceptText()
  503. ll_row = tab_1.tabpage_3.dw_plan.GetRow()
  504. IF ll_row <= 0 THEN
  505. MessageBox('提示','请先选择客户联系人资料',information!,OK!)
  506. RETURN
  507. END IF
  508. s_plan.planid = tab_1.tabpage_3.dw_plan.Object.planid[ll_row]
  509. OpenWithParm(w_cust_plan_add,s_plan)
  510. THIS.TriggerEvent('ue_retr_plan')
  511. end event
  512. event ue_del_plan();IF NOT f_power_ind(1264) THEN
  513. MessageBox('提示','你没有使用权限!',information!,OK!)
  514. RETURN
  515. END IF
  516. Long ll_row,ll_planid
  517. String arg_msg
  518. tab_1.tabpage_3.dw_plan.AcceptText()
  519. ll_row = tab_1.tabpage_3.dw_plan.GetRow()
  520. IF ll_row <= 0 THEN
  521. MessageBox('提示','请选择要删除的客户工作计划资料',information!,OK!)
  522. RETURN
  523. END IF
  524. IF MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
  525. RETURN
  526. END IF
  527. ll_planid = tab_1.tabpage_3.dw_plan.Object.planid[ll_row]
  528. IF uo_cus.uof_del_plan(ll_planid,publ_operator,arg_msg,TRUE) = 0 THEN
  529. MessageBox('错误','删除客户工作计划资料失败,'+arg_msg,stopsign!,OK!)
  530. RETURN
  531. END IF
  532. THIS.TriggerEvent('ue_retr_plan')
  533. end event
  534. event ue_mod_interview();IF NOT f_power_ind(1265) THEN
  535. MessageBox('提示','你没有使用权限!',information!,OK!)
  536. RETURN
  537. END IF
  538. Long ll_row
  539. s_cust_interview s_interview
  540. dw_1.AcceptText()
  541. ll_row = dw_1.GetRow()
  542. IF ll_row <= 0 THEN
  543. MessageBox('提示','请先选择客户',information!,OK!)
  544. RETURN
  545. END IF
  546. s_interview.cusid = dw_1.Object.cusid[ll_row]
  547. tab_1.tabpage_2.dw_interview.AcceptText()
  548. ll_row = tab_1.tabpage_2.dw_interview.GetRow()
  549. IF ll_row <= 0 THEN
  550. MessageBox('提示','请先选择客户联系人资料',information!,OK!)
  551. RETURN
  552. END IF
  553. s_interview.interviewid = tab_1.tabpage_2.dw_interview.Object.interviewid[ll_row]
  554. OpenWithParm(w_cust_interview_add,s_interview)
  555. THIS.TriggerEvent('ue_retr_interview')
  556. end event
  557. event ue_add_interview();IF NOT f_power_ind(1265) THEN
  558. MessageBox('提示','你没有使用权限!',information!,OK!)
  559. RETURN
  560. END IF
  561. Long ll_row
  562. s_cust_interview s_interview
  563. dw_1.AcceptText()
  564. ll_row = dw_1.GetRow()
  565. IF ll_row <= 0 THEN
  566. MessageBox('提示','请先选择客户',information!,OK!)
  567. RETURN
  568. END IF
  569. s_interview.interviewid = 0
  570. s_interview.cusid = dw_1.Object.cusid[ll_row]
  571. OpenWithParm(w_cust_interview_add,s_interview)
  572. THIS.TriggerEvent('ue_retr_interview')
  573. end event
  574. event ue_del_interview();
  575. If Not f_power_ind(1919) Then
  576. MessageBox('提示','你没有使用权限!',information!,OK!)
  577. Return
  578. End If
  579. Long ll_row,ll_interviewid
  580. String arg_msg
  581. DateTime ldt_opdate
  582. tab_1.tabpage_2.dw_interview.AcceptText()
  583. ll_row = tab_1.tabpage_2.dw_interview.GetRow()
  584. If ll_row <= 0 Then
  585. MessageBox('提示','请选择要删除的客户走访资料',information!,OK!)
  586. Return
  587. End If
  588. If MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 Then
  589. Return
  590. End If
  591. ll_interviewid = tab_1.tabpage_2.dw_interview.Object.interviewid[ll_row]
  592. ldt_opdate = tab_1.tabpage_2.dw_interview.Object.opdate[ll_row]
  593. If f_power_ind(1927) Then
  594. If not sys_power_issuper Then
  595. If DaysAfter(Date(ldt_opdate),Today()) > 3 Then
  596. MessageBox('提示','限制“建立时间”在3天以前的走访记录不能删除!',information!,OK!)
  597. Return
  598. End If
  599. End If
  600. End If
  601. If uo_cus.uof_del_interview(ll_interviewid,publ_operator,arg_msg,True) = 0 Then
  602. MessageBox('错误','删除客户走访资料失败,'+arg_msg,stopsign!,OK!)
  603. Return
  604. End If
  605. This.TriggerEvent('ue_retr_interview')
  606. end event
  607. event ue_retr_price();Long ll_row,ll_cusid
  608. dw_1.AcceptText()
  609. ll_row = dw_1.GetRow()
  610. IF ll_row <= 0 THEN
  611. tab_1.tabpage_4.dw_price.Reset()
  612. ELSE
  613. ll_cusid = dw_1.Object.cusid[ll_row]
  614. tab_1.tabpage_4.dw_price.Retrieve(ll_cusid)
  615. END IF
  616. end event
  617. event ue_retr_task();Long ll_row,ll_cusid
  618. dw_1.AcceptText()
  619. ll_row = dw_1.GetRow()
  620. IF ll_row <= 0 THEN
  621. dw_task.Reset()
  622. ELSE
  623. ll_cusid = dw_1.Object.cusid[ll_row]
  624. dw_task.Retrieve(ll_cusid)
  625. END IF
  626. end event
  627. event ue_retr_oppose();Long ll_row,ll_cusid
  628. DateTime ld_fdate,ld_edate
  629. ld_fdate = DateTime(Date(tab_1.tabpage_6.em_fdate6.Text),Time(0))
  630. ld_edate = DateTime(Date(tab_1.tabpage_6.em_edate6.Text),Time('23:59:59'))
  631. dw_1.AcceptText()
  632. ll_row = dw_1.GetRow()
  633. IF ll_row <= 0 THEN
  634. tab_1.tabpage_6.dw_oppose.Reset()
  635. ELSE
  636. ll_cusid = dw_1.Object.cusid[ll_row]
  637. tab_1.tabpage_6.dw_oppose.Retrieve(ll_cusid,ld_fdate,ld_edate)
  638. END IF
  639. end event
  640. event ue_retr_station();Long ll_row,ll_cusid
  641. dw_1.AcceptText()
  642. ll_row = dw_1.GetRow()
  643. IF ll_row <= 0 THEN
  644. tab_1.tabpage_7.dw_station.Reset()
  645. ELSE
  646. ll_cusid = dw_1.Object.cusid[ll_row]
  647. tab_1.tabpage_7.dw_station.Retrieve(ll_cusid)
  648. END IF
  649. end event
  650. event ue_add_station();IF NOT f_power_ind(1267) THEN
  651. MessageBox('提示','你没有使用权限!',information!,OK!)
  652. RETURN
  653. END IF
  654. Long ll_row
  655. s_cust_station s_station_1
  656. s_station s_station_2
  657. string arg_msg
  658. dw_1.AcceptText()
  659. ll_row = dw_1.GetRow()
  660. IF ll_row <= 0 THEN
  661. MessageBox('提示','请先选择客户',information!,OK!)
  662. RETURN
  663. END IF
  664. IF NOT IsValid(w_station_edit) THEN
  665. s_edit_index_tran s_ch_tran
  666. s_ch_tran.if_retrieve_all = FALSE
  667. s_ch_tran.work_mode = 1
  668. s_ch_tran.arg_pkid = 0
  669. s_ch_tran.arg_string_code = ''
  670. s_ch_tran.if_select_all = FALSE
  671. OpenWithParm(w_station_edit,s_ch_tran) //调用
  672. s_station_2 = Message.PowerObjectParm //接受返回结构
  673. IF s_station_2.stationid = 0 THEN RETURN
  674. s_station_1.stationid = s_station_2.stationid
  675. s_station_1.cusid = dw_1.Object.cusid[ll_row]
  676. s_station_1.dftflag = 0
  677. IF uo_cus.uof_add_station(s_station_1,arg_msg,TRUE) = 0 THEN
  678. MessageBox('错误','建立客户货运部失败,'+arg_msg,stopsign!,OK!)
  679. RETURN
  680. END IF
  681. END IF
  682. THIS.TriggerEvent('ue_retr_station')
  683. end event
  684. event ue_del_station();IF NOT f_power_ind(1267) THEN
  685. MessageBox('提示','你没有使用权限!',information!,OK!)
  686. RETURN
  687. END IF
  688. Long ll_row,ll_cusid,ll_stationid
  689. String arg_msg
  690. tab_1.tabpage_7.dw_station.AcceptText()
  691. ll_row = tab_1.tabpage_7.dw_station.GetRow()
  692. IF ll_row <= 0 THEN
  693. MessageBox('提示','请选择要删除的货运部资料',information!,OK!)
  694. RETURN
  695. END IF
  696. IF MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
  697. RETURN
  698. END IF
  699. ll_cusid = tab_1.tabpage_7.dw_station.Object.u_cust_station_cusid[ll_row]
  700. ll_stationid = tab_1.tabpage_7.dw_station.Object.stationid[ll_row]
  701. IF uo_cus.uof_del_station(ll_cusid,ll_stationid,arg_msg,TRUE) = 0 THEN
  702. MessageBox('错误','删除货运部资料失败,'+arg_msg,stopsign!,OK!)
  703. RETURN
  704. END IF
  705. THIS.TriggerEvent('ue_retr_station')
  706. end event
  707. event ue_dft_station();IF NOT f_power_ind(1267) THEN
  708. MessageBox('提示','你没有使用权限!',information!,OK!)
  709. RETURN
  710. END IF
  711. Long ll_row
  712. s_cust_station s_station_1
  713. String arg_msg
  714. tab_1.tabpage_7.dw_station.AcceptText()
  715. ll_row = tab_1.tabpage_7.dw_station.GetRow()
  716. IF ll_row <= 0 THEN
  717. MessageBox('提示','请选择货运部资料',information!,OK!)
  718. RETURN
  719. END IF
  720. IF MessageBox ('询问',"是否确定设置当前货运部资料为默认?",Question!,YesNo! ) = 2 THEN
  721. RETURN
  722. END IF
  723. s_station_1.cusid = tab_1.tabpage_7.dw_station.Object.u_cust_station_cusid[ll_row]
  724. s_station_1.stationid = tab_1.tabpage_7.dw_station.Object.stationid[ll_row]
  725. IF uo_cus.uof_set_dft_station(s_station_1,arg_msg,TRUE) = 0 THEN
  726. MessageBox('错误','设置默认货运部资料失败,'+arg_msg,stopsign!,OK!)
  727. RETURN
  728. END IF
  729. THIS.TriggerEvent('ue_retr_station')
  730. end event
  731. event ue_set_cust_ok();IF NOT f_power_ind(1261) THEN
  732. MessageBox('提示','你没有使用权限!',information!,OK!)
  733. RETURN
  734. END IF
  735. Long LS_id
  736. Long LS_LONG = 0
  737. String ls_code,arg_msg
  738. IF dw_1.GetRow() <= 0 THEN
  739. MessageBox('提示','没有操作目标记录!',information!,OK!)
  740. RETURN
  741. END IF
  742. IF MessageBox ("询问","是否确定要当前客户资料为正式客户资料?",Question!,YesNo! ) = 2 THEN
  743. RETURN
  744. END IF
  745. LS_id = dw_1.Object.cusid[dw_1.GetRow()]
  746. ls_code = dw_1.Object.cuscode[dw_1.GetRow()]
  747. IF uo_cus.uof_change_state(LS_id,1,arg_msg,TRUE) = 0 THEN
  748. MessageBox ("错误","设置正式客户资料操作失败!(请重试!)"+arg_msg,stopsign!,OK!)
  749. RETURN
  750. END IF
  751. f_setsysoplog('定义资料','客户定义资料设正式,ID:'+String(LS_id)+',code:'+ls_code,arg_msg,TRUE)
  752. cb_1.TriggerEvent(Clicked!)
  753. end event
  754. event ue_set_cust_notok();IF NOT f_power_ind(1262) THEN
  755. MessageBox('提示','你没有使用权限!',information!,OK!)
  756. RETURN
  757. END IF
  758. Long LS_id
  759. Long LS_LONG = 0
  760. String ls_code,arg_msg
  761. IF dw_1.GetRow() <= 0 THEN
  762. MessageBox('提示','没有操作目标记录!',information!,OK!)
  763. RETURN
  764. END IF
  765. IF MessageBox ("询问","是否确定要当前客户资料为非正式客户资料?",Question!,YesNo! ) = 2 THEN
  766. RETURN
  767. END IF
  768. LS_id = dw_1.Object.cusid[dw_1.GetRow()]
  769. ls_code = dw_1.Object.cuscode[dw_1.GetRow()]
  770. IF uo_cus.uof_change_state(LS_id,0,arg_msg,TRUE) = 0 THEN
  771. MessageBox ("错误","设置非正式客户资料操作失败!(请重试!)"+arg_msg,stopsign!,ok!)
  772. RETURN
  773. END IF
  774. f_setsysoplog('定义资料','客户定义资料设非正式,ID:'+String(LS_id)+',code:'+ls_code,arg_msg,TRUE)
  775. cb_1.TriggerEvent(Clicked!)
  776. end event
  777. event ue_set_cust_blacklist();IF NOT f_power_ind(1263) THEN
  778. MessageBox('提示','你没有使用权限!',information!,OK!)
  779. RETURN
  780. END IF
  781. Long LS_id
  782. Long LS_LONG = 0
  783. String ls_code,arg_msg
  784. IF dw_1.GetRow() <= 0 THEN
  785. MessageBox('提示','没有操作目标记录!',information!,OK!)
  786. RETURN
  787. END IF
  788. IF MessageBox ("询问","是否确定要当前客户资料为黑名单客户资料?",Question!,YesNo! ) = 2 THEN
  789. RETURN
  790. END IF
  791. LS_id = dw_1.Object.cusid[dw_1.GetRow()]
  792. ls_code = dw_1.Object.cuscode[dw_1.GetRow()]
  793. IF uo_cus.uof_change_state(LS_id,2,arg_msg,TRUE) = 0 THEN
  794. MessageBox ("错误","设置黑名单客户资料操作失败!(请重试!)"+arg_msg,stopsign!,ok!)
  795. RETURN
  796. END IF
  797. f_setsysoplog('定义资料','客户定义资料设黑名单,ID:'+String(LS_id)+',code:'+ls_code,arg_msg,TRUE)
  798. cb_1.TriggerEvent(Clicked!)
  799. end event
  800. event ue_retr_sample();Long ll_row,ll_cusid
  801. DateTime ld_fdate,ld_edate
  802. ld_fdate = DateTime(Date(tab_1.tabpage_9.em_fdate9.Text),Time(0))
  803. ld_edate = DateTime(Date(tab_1.tabpage_9.em_edate9.Text),Time('23:59:59'))
  804. dw_1.AcceptText()
  805. ll_row = dw_1.GetRow()
  806. IF ll_row <= 0 THEN
  807. tab_1.tabpage_9.dw_sample.Reset()
  808. ELSE
  809. ll_cusid = dw_1.Object.cusid[ll_row]
  810. tab_1.tabpage_9.dw_sample.Retrieve(ll_cusid,ld_fdate,ld_edate)
  811. END IF
  812. end event
  813. event ue_del_sample();IF NOT f_power_ind(1268) THEN
  814. MessageBox('提示','你没有使用权限!',information!,OK!)
  815. RETURN
  816. END IF
  817. Long ll_row,ll_sampleid
  818. String arg_msg
  819. tab_1.tabpage_9.dw_sample.AcceptText()
  820. ll_row = tab_1.tabpage_9.dw_sample.GetRow()
  821. IF ll_row <= 0 THEN
  822. MessageBox('提示','请选择要删除的客户样版资料',information!,OK!)
  823. RETURN
  824. END IF
  825. IF MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
  826. RETURN
  827. END IF
  828. ll_sampleid = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ll_row]
  829. IF uo_cus.uof_del_sample(ll_sampleid,publ_operator,arg_msg,TRUE) = 0 THEN
  830. MessageBox('错误','删除客户样版资料失败,'+arg_msg,stopsign!,ok!)
  831. RETURN
  832. END IF
  833. THIS.TriggerEvent('ue_retr_sample')
  834. end event
  835. event ue_mod_sample();IF NOT f_power_ind(1268) THEN
  836. MessageBox('提示','你没有使用权限!',information!,OK!)
  837. RETURN
  838. END IF
  839. Long ll_row
  840. s_cust_sample s_sample
  841. dw_1.AcceptText()
  842. ll_row = dw_1.GetRow()
  843. IF ll_row <= 0 THEN
  844. MessageBox('提示','请先选择客户',information!,OK!)
  845. RETURN
  846. END IF
  847. s_sample.cusid = dw_1.Object.cusid[ll_row]
  848. tab_1.tabpage_9.dw_sample.AcceptText()
  849. ll_row = tab_1.tabpage_9.dw_sample.GetRow()
  850. IF ll_row <= 0 THEN
  851. MessageBox('提示','请先选择客户样版资料',information!,OK!)
  852. RETURN
  853. END IF
  854. s_sample.sampleid = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ll_row]
  855. OpenWithParm(w_cust_sample_add,s_sample)
  856. THIS.TriggerEvent('ue_retr_sample')
  857. end event
  858. event ue_add_sample();IF NOT f_power_ind(1268) THEN
  859. MessageBox('提示','你没有使用权限!',information!,OK!)
  860. RETURN
  861. END IF
  862. Long ll_row
  863. s_cust_sample s_sample
  864. dw_1.AcceptText()
  865. ll_row = dw_1.GetRow()
  866. IF ll_row <= 0 THEN
  867. MessageBox('提示','请先选择客户',information!,OK!)
  868. RETURN
  869. END IF
  870. s_sample.sampleid = 0
  871. s_sample.cusid = dw_1.Object.cusid[ll_row]
  872. OpenWithParm(w_cust_sample_add,s_sample)
  873. THIS.TriggerEvent('ue_retr_sample')
  874. end event
  875. event ue_retr_item();Long ll_row,ll_cusid
  876. dw_1.AcceptText()
  877. ll_row = dw_1.GetRow()
  878. IF ll_row <= 0 THEN
  879. tab_1.tabpage_8.dw_item.Reset()
  880. ELSE
  881. ll_cusid = dw_1.Object.cusid[ll_row]
  882. tab_1.tabpage_8.dw_item.Retrieve(ll_cusid)
  883. END IF
  884. end event
  885. event ue_mod_item();if not f_power_ind(1269) then
  886. messagebox('提示','你没有使用权限!',information!,OK!)
  887. return
  888. end if
  889. long ll_row,ll_row_cust
  890. long ll_itemid
  891. s_item_cust_spt arg_s_item
  892. string ls_dscrp,arg_msg
  893. dw_1.accepttext()
  894. ll_row_cust = dw_1.getrow()
  895. if ll_row_cust <= 0 then
  896. messagebox('提示','请先选择客户',information!,OK!)
  897. return
  898. end if
  899. tab_1.tabpage_8.dw_item.accepttext()
  900. ll_row = tab_1.tabpage_8.dw_item.getrow()
  901. if ll_row <= 0 then
  902. messagebox('提示','请先选择客户辅助项目资料',information!,OK!)
  903. return
  904. end if
  905. if tab_1.tabpage_8.dw_item.object.u_item_cust_spt_def_inputtype[ll_row] = 1 then
  906. s_inputbox s_objstru
  907. s_objstru.title = '请填入内容'
  908. s_objstru.old_text = tab_1.tabpage_8.dw_item.object.u_item_cust_spt_dscrp[ll_row]
  909. openwithparm(w_inputbox,s_objstru)
  910. else
  911. ll_itemid = tab_1.tabpage_8.dw_item.object.u_item_cust_spt_itemid[ll_row]
  912. openwithparm(w_item_cust_spt_mx_ch,ll_itemid)
  913. end if
  914. ls_dscrp = message.stringparm
  915. if trim(ls_dscrp) = '' then return
  916. arg_s_item.itemid = tab_1.tabpage_8.dw_item.object.u_item_cust_spt_itemid[ll_row]
  917. arg_s_item.relid = dw_1.object.cusid[ll_row_cust]
  918. arg_s_item.reltype = tab_1.tabpage_8.dw_item.object.u_item_cust_spt_reltype[ll_row]
  919. arg_s_item.dscrp = ls_dscrp
  920. if uo_cus.uof_add_item(arg_s_item,arg_msg,true) = 0 then
  921. messagebox ("错误",arg_msg+",保存操作失败!",stopsign!,ok!)
  922. return
  923. end if
  924. this.triggerevent('ue_retr_item')
  925. end event
  926. event ue_fj_edit_sample();s_edit_index_tran s_pic
  927. Long ll_ConnectionID
  928. String arg_msg
  929. Long ls_row
  930. ls_row = tab_1.tabpage_9.dw_sample.GetRow()
  931. IF ls_row <= 0 THEN
  932. RETURN
  933. END IF
  934. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  935. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  936. RETURN
  937. END IF
  938. s_pic.f_long = 1201 //
  939. s_pic.f_string = ''
  940. s_pic.g_long = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ls_row]
  941. s_pic.d_long = 0 //relid_mx
  942. s_pic.d_string = '' //relcode_mx
  943. s_pic.e_long = 0 // scid
  944. s_pic.sqltransaction = sys_filedb_sqlca
  945. OpenWithParm(w_fj_bill_mng,s_pic)
  946. end event
  947. event ue_fj_view_sample();s_edit_index_tran s_pic
  948. Long ll_ConnectionID
  949. String arg_msg
  950. Long ls_row
  951. ls_row = tab_1.tabpage_9.dw_sample.GetRow()
  952. IF ls_row <= 0 THEN
  953. RETURN
  954. END IF
  955. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  956. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  957. RETURN
  958. END IF
  959. s_pic.f_long = 1201 //
  960. s_pic.f_string = ''
  961. s_pic.g_long = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ls_row]
  962. s_pic.d_long = 0 //relid_mx
  963. s_pic.d_string = '' //relcode_mx
  964. s_pic.e_long = 0 // scid
  965. s_pic.sqltransaction = sys_filedb_sqlca
  966. OpenWithParm(w_fj_bill_view,s_pic)
  967. end event
  968. event ue_fj_view_plan();s_edit_index_tran s_pic
  969. Long ll_ConnectionID
  970. String arg_msg
  971. Long ls_row
  972. ls_row = tab_1.tabpage_3.dw_plan.GetRow()
  973. IF ls_row <= 0 THEN
  974. RETURN
  975. END IF
  976. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  977. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  978. RETURN
  979. END IF
  980. s_pic.f_long = 1203 //
  981. s_pic.f_string = ''
  982. s_pic.g_long = tab_1.tabpage_3.dw_plan.Object.planid[ls_row]
  983. s_pic.d_long = 0 //relid_mx
  984. s_pic.d_string = '' //relcode_mx
  985. s_pic.e_long = 0 // scid
  986. s_pic.sqltransaction = sys_filedb_sqlca
  987. OpenWithParm(w_fj_bill_view,s_pic)
  988. end event
  989. event ue_fj_view_interview();s_edit_index_tran s_pic
  990. Long ll_ConnectionID
  991. String arg_msg
  992. Long ls_row
  993. ls_row = tab_1.tabpage_9.dw_sample.GetRow()
  994. IF ls_row <= 0 THEN
  995. RETURN
  996. END IF
  997. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  998. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  999. RETURN
  1000. END IF
  1001. s_pic.f_long = 1202 //
  1002. s_pic.f_string = ''
  1003. s_pic.g_long = tab_1.tabpage_9.dw_sample.Object.interviewid[ls_row]
  1004. s_pic.d_long = 0 //relid_mx
  1005. s_pic.d_string = '' //relcode_mx
  1006. s_pic.e_long = 0 // scid
  1007. s_pic.sqltransaction = sys_filedb_sqlca
  1008. OpenWithParm(w_fj_bill_view,s_pic)
  1009. end event
  1010. event ue_fj_edit_interview();s_edit_index_tran s_pic
  1011. Long ll_ConnectionID
  1012. String arg_msg
  1013. Long ls_row
  1014. ls_row = tab_1.tabpage_2.dw_interview.GetRow()
  1015. IF ls_row <= 0 THEN
  1016. RETURN
  1017. END IF
  1018. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  1019. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  1020. RETURN
  1021. END IF
  1022. s_pic.f_long = 1202 //
  1023. s_pic.f_string = ''
  1024. s_pic.g_long = tab_1.tabpage_2.dw_interview.Object.interviewid[ls_row]
  1025. s_pic.d_long = 0 //relid_mx
  1026. s_pic.d_string = '' //relcode_mx
  1027. s_pic.e_long = 0 // scid
  1028. s_pic.sqltransaction = sys_filedb_sqlca
  1029. OpenWithParm(w_fj_bill_mng,s_pic)
  1030. end event
  1031. event ue_fj_edit_plan();s_edit_index_tran s_pic
  1032. Long ll_ConnectionID
  1033. String arg_msg
  1034. Long ls_row
  1035. ls_row = tab_1.tabpage_3.dw_plan.GetRow()
  1036. IF ls_row <= 0 THEN
  1037. RETURN
  1038. END IF
  1039. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  1040. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  1041. RETURN
  1042. END IF
  1043. s_pic.f_long = 1203 //
  1044. s_pic.f_string = ''
  1045. s_pic.g_long = tab_1.tabpage_3.dw_plan.Object.planid[ls_row]
  1046. s_pic.d_long = 0 //relid_mx
  1047. s_pic.d_string = '' //relcode_mx
  1048. s_pic.e_long = 0 // scid
  1049. s_pic.sqltransaction = sys_filedb_sqlca
  1050. OpenWithParm(w_fj_bill_mng,s_pic)
  1051. end event
  1052. event ue_fj_edit_cust();s_edit_index_tran s_pic
  1053. Long ll_ConnectionID
  1054. String arg_msg
  1055. Long ls_row
  1056. ls_row = dw_1.GetRow()
  1057. IF ls_row <= 0 THEN
  1058. RETURN
  1059. END IF
  1060. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  1061. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  1062. RETURN
  1063. END IF
  1064. s_pic.f_long = 105 //
  1065. s_pic.f_string = ''
  1066. s_pic.g_long = dw_1.Object.cusid[ls_row]
  1067. s_pic.d_long = 0 //relid_mx
  1068. s_pic.d_string = '' //relcode_mx
  1069. s_pic.e_long = 0 // scid
  1070. s_pic.sqltransaction = sys_filedb_sqlca
  1071. OpenWithParm(w_fj_bill_mng,s_pic)
  1072. end event
  1073. event ue_fj_view_cust();s_edit_index_tran s_pic
  1074. Long ll_ConnectionID
  1075. String arg_msg
  1076. Long ls_row
  1077. ls_row = dw_1.GetRow()
  1078. IF ls_row <= 0 THEN
  1079. RETURN
  1080. END IF
  1081. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  1082. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  1083. RETURN
  1084. END IF
  1085. s_pic.f_long = 105 //
  1086. s_pic.f_string = ''
  1087. s_pic.g_long = dw_1.Object.cusid[ls_row]
  1088. s_pic.d_long = 0 //relid_mx
  1089. s_pic.d_string = '' //relcode_mx
  1090. s_pic.e_long = 0 // scid
  1091. s_pic.sqltransaction = sys_filedb_sqlca
  1092. OpenWithParm(w_fj_bill_view,s_pic)
  1093. end event
  1094. event ue_fj_cnt_sample();s_edit_index_tran s_pic
  1095. Long ll_ConnectionID
  1096. String arg_msg
  1097. Long ls_row
  1098. Long ll_fj_cnt,ll_fj_id
  1099. ls_row = tab_1.tabpage_9.dw_sample.GetRow()
  1100. IF ls_row <= 0 THEN
  1101. RETURN
  1102. END IF
  1103. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  1104. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  1105. RETURN
  1106. END IF
  1107. uo_fj_mng_billtype uo_fj_cnt
  1108. uo_fj_cnt = CREATE uo_fj_mng_billtype
  1109. ll_fj_id = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ls_row]
  1110. IF uo_fj_cnt.uf_check_billfj(1201,ll_fj_id,0,0,sys_filedb_sqlca,arg_msg,ll_fj_cnt) = 0 THEN
  1111. MessageBox('错误','查询附件数失败,'+arg_msg,stopsign!,ok!)
  1112. RETURN
  1113. END IF
  1114. tab_1.tabpage_9.st_sample.text = '附件数('+string(ll_fj_cnt)+')'
  1115. DESTROY uo_fj_cnt
  1116. end event
  1117. event ue_fj_cnt_plan();s_edit_index_tran s_pic
  1118. Long ll_ConnectionID
  1119. String arg_msg
  1120. Long ls_row
  1121. Long ll_fj_cnt,ll_fj_id
  1122. ls_row = tab_1.tabpage_3.dw_plan.GetRow()
  1123. IF ls_row <= 0 THEN
  1124. RETURN
  1125. END IF
  1126. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  1127. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  1128. RETURN
  1129. END IF
  1130. uo_fj_mng_billtype uo_fj_cnt
  1131. uo_fj_cnt = CREATE uo_fj_mng_billtype
  1132. ll_fj_id = tab_1.tabpage_3.dw_plan.Object.planid[ls_row]
  1133. IF uo_fj_cnt.uf_check_billfj(1203,ll_fj_id,0,0,sys_filedb_sqlca,arg_msg,ll_fj_cnt) = 0 THEN
  1134. MessageBox('错误','查询附件数失败,'+arg_msg,stopsign!,ok!)
  1135. RETURN
  1136. END IF
  1137. tab_1.tabpage_3.st_plan.text = '附件数('+string(ll_fj_cnt)+')'
  1138. DESTROY uo_fj_cnt
  1139. end event
  1140. event ue_fj_cnt_interview();s_edit_index_tran s_pic
  1141. Long ll_ConnectionID
  1142. String arg_msg
  1143. Long ls_row
  1144. Long ll_fj_cnt,ll_fj_id
  1145. ls_row = tab_1.tabpage_2.dw_interview.GetRow()
  1146. IF ls_row <= 0 THEN
  1147. RETURN
  1148. END IF
  1149. IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
  1150. MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
  1151. RETURN
  1152. END IF
  1153. uo_fj_mng_billtype uo_fj_cnt
  1154. uo_fj_cnt = CREATE uo_fj_mng_billtype
  1155. ll_fj_id = tab_1.tabpage_2.dw_interview.Object.interviewid[ls_row]
  1156. IF uo_fj_cnt.uf_check_billfj(1202,ll_fj_id,0,0,sys_filedb_sqlca,arg_msg,ll_fj_cnt) = 0 THEN
  1157. MessageBox('错误','查询附件数失败,'+arg_msg,stopsign!,ok!)
  1158. RETURN
  1159. END IF
  1160. tab_1.tabpage_2.st_interview.Text = '附件数('+String(ll_fj_cnt)+')'
  1161. DESTROY uo_fj_cnt
  1162. end event
  1163. event ue_email_send();IF dw_1.GetRow() = 0 THEN RETURN
  1164. s_edit_index_tran s_tran //传递参数使用
  1165. OpenWithParm(w_email_set,s_tran)
  1166. s_email_set s_return
  1167. Long ll_row
  1168. s_return = Message.PowerObjectParm
  1169. IF s_return.mailid > 0 THEN
  1170. s_return.flag = 1
  1171. s_return.reltype = 2
  1172. s_return.revaddress = dw_1.object.email[dw_1.GetRow()]
  1173. s_return.revuser = dw_1.object.cuscode[dw_1.GetRow()]
  1174. OpenWithParm(w_email_send_new,s_return)
  1175. END IF
  1176. end event
  1177. event ue_email_view();Long ll_ConnectionID
  1178. String arg_msg
  1179. IF f_get_outerconnection_email(ll_ConnectionID,arg_msg) <> 1 THEN
  1180. MessageBox('系统提示','要使用邮件功能,请先定义邮件数据库')
  1181. return
  1182. END IF
  1183. open(w_email_view)
  1184. end event
  1185. event ue_retr_rev();Long ll_ConnectionID
  1186. String arg_msg
  1187. IF sys_email_sqlca.DBHandle() <= 0 THEN
  1188. tab_1.tabpage_10.dw_rev.Reset()
  1189. RETURN
  1190. END IF
  1191. Long ll_row,ll_cusid
  1192. DateTime ld_fdate,ld_edate
  1193. ld_fdate = DateTime(Date(tab_1.tabpage_10.em_fdate4.Text),Time(0))
  1194. ld_edate = DateTime(Date(tab_1.tabpage_10.em_edate4.Text),Time('23:59:59'))
  1195. Long ll_mailid[]
  1196. String ls_sendaddress[]
  1197. String ls_send_str
  1198. Long i ,j
  1199. i = 0
  1200. j = 0
  1201. ll_row = dw_1.GetRow()
  1202. IF ll_row > 0 THEN
  1203. ll_cusid = dw_1.Object.cusid[ll_row]
  1204. END IF
  1205. String ls_emp
  1206. Integer ls_empid,ls_count
  1207. ls_emp = String(sys_empid)
  1208. //FOR ls_count = 1 To UpperBound(sys_user_outrep)
  1209. // ls_empid = 0
  1210. // SELECT empid Into :ls_empid From u_rs_empinfo Where empname = :sys_user_outrep[ls_count];
  1211. // IF Not IsNull(ls_empid) And ls_empid <> 0 THEN
  1212. // ls_emp = ls_emp + ' , ' + String(ls_empid)
  1213. // END IF
  1214. //
  1215. //NEXT
  1216. //WHERE ( u_email_set.empid in ( :sys_empid) AND u_email_set.mailtype = 0)
  1217. ls_empid = sys_empid
  1218. DECLARE cur_mailid CURSOR FOR
  1219. SELECT mailid
  1220. FROM u_email_set
  1221. WHERE ( u_email_set.empid = :ls_empid AND u_email_set.mailtype = 0)
  1222. Or u_email_set.mailtype = 1;
  1223. OPEN cur_mailid;
  1224. i++
  1225. FETCH cur_mailid Into :ll_mailid[i];
  1226. DO WHILE sqlca.SQLCode = 0
  1227. i++
  1228. FETCH cur_mailid Into :ll_mailid[i];
  1229. LOOP
  1230. CLOSE cur_mailid;
  1231. ////////////////// //
  1232. FOR ls_count = 1 To UpperBound(sys_user_outrep)
  1233. ls_empid = 0
  1234. SELECT empid Into :ls_empid From u_rs_empinfo Where empname = :sys_user_outrep[ls_count];
  1235. IF Not IsNull(ls_empid) And ls_empid <> 0 THEN
  1236. OPEN cur_mailid;
  1237. i++
  1238. FETCH cur_mailid Into :ll_mailid[i];
  1239. DO WHILE sqlca.SQLCode = 0
  1240. i++
  1241. FETCH cur_mailid Into :ll_mailid[i];
  1242. LOOP
  1243. CLOSE cur_mailid;
  1244. END IF
  1245. NEXT
  1246. ///////////////// //
  1247. DECLARE cur_address CURSOR FOR
  1248. SELECT DISTINCT LOWER(email)
  1249. FROM
  1250. (SELECT email
  1251. FROM u_cust
  1252. WHERE cusid = :ll_cusid
  1253. UNION ALL
  1254. SELECT email
  1255. FROM u_cust_rep
  1256. WHERE cusid = :ll_cusid) a
  1257. Where (email <> '');
  1258. OPEN cur_address;
  1259. FETCH cur_address Into :ls_send_str;
  1260. DO WHILE sqlca.SQLCode = 0
  1261. IF Trim(ls_send_str) <> '' THEN
  1262. j++
  1263. ls_sendaddress[j] = ls_send_str
  1264. END IF
  1265. FETCH cur_address Into :ls_send_str;
  1266. LOOP
  1267. CLOSE cur_address;
  1268. j++
  1269. ls_sendaddress[j] = 'XXXXXXXXXX'
  1270. dw_1.AcceptText()
  1271. ll_row = dw_1.GetRow()
  1272. IF ll_row <= 0 THEN
  1273. tab_1.tabpage_10.dw_rev.Reset()
  1274. ELSE
  1275. ll_cusid = dw_1.Object.cusid[ll_row]
  1276. tab_1.tabpage_10.dw_rev.Retrieve(ld_fdate,ld_edate,ll_mailid,ls_sendaddress)
  1277. END IF
  1278. end event
  1279. event ue_retr_send();Long ll_ConnectionID
  1280. String arg_msg
  1281. IF sys_email_sqlca.DBHandle() <= 0 THEN
  1282. tab_1.tabpage_11.dw_send.Reset()
  1283. RETURN
  1284. END IF
  1285. Long ll_row,ll_cusid
  1286. DateTime ld_fdate,ld_edate
  1287. ld_fdate = DateTime(Date(tab_1.tabpage_11.em_fdate5.Text),Time(0))
  1288. ld_edate = DateTime(Date(tab_1.tabpage_11.em_edate5.Text),Time('23:59:59'))
  1289. Long ll_mailid[]
  1290. String ls_sendaddress[]
  1291. String ls_send_str
  1292. Long i ,j
  1293. i=0
  1294. j = 0
  1295. ll_row = dw_1.GetRow()
  1296. IF ll_row > 0 THEN
  1297. ll_cusid = dw_1.Object.cusid[ll_row]
  1298. END IF
  1299. String ls_emp
  1300. long ls_empid,ls_count
  1301. ls_emp = String(sys_empid)
  1302. //for ls_count=1 to upperbound(sys_user_outrep)
  1303. // ls_empid=0
  1304. // select empid into :ls_empid from u_rs_empinfo where empname=:sys_user_outrep[ls_count];
  1305. // if not isnull(ls_empid) and ls_empid<>0 then
  1306. // ls_emp=ls_emp + ',' + string(ls_empid)
  1307. // end if
  1308. //
  1309. //next
  1310. // WHERE ( u_email_set.empid = :sys_empid AND u_email_set.mailtype = 0)
  1311. //WHERE ( u_email_set.empid in(:ls_emp) AND u_email_set.mailtype = 0)
  1312. ///////////
  1313. ls_empid = sys_empid
  1314. DECLARE cur_mailid CURSOR FOR
  1315. SELECT mailid
  1316. FROM u_email_set
  1317. WHERE ( u_email_set.empid = :ls_empid AND u_email_set.mailtype = 0)
  1318. Or u_email_set.mailtype = 1;
  1319. OPEN cur_mailid;
  1320. //IF sqlca.SQLCode <> 0 THEN
  1321. // MessageBox("",sqlca.SQLErrText)
  1322. //END IF
  1323. i++
  1324. FETCH cur_mailid Into :ll_mailid[i];
  1325. //IF sqlca.SQLCode <> 0 THEN
  1326. // MessageBox("",sqlca.SQLErrText)
  1327. //END IF
  1328. DO WHILE sqlca.SQLCode = 0
  1329. i++
  1330. FETCH cur_mailid Into :ll_mailid[i];
  1331. LOOP
  1332. CLOSE cur_mailid;
  1333. //////////////// //
  1334. FOR ls_count = 1 To UpperBound(sys_user_outrep)
  1335. ls_empid = 0
  1336. SELECT empid Into :ls_empid From u_rs_empinfo Where empname = :sys_user_outrep[ls_count];
  1337. IF Not IsNull(ls_empid) And ls_empid <> 0 THEN
  1338. //DECLARE cur_mailid CURSOR FOR
  1339. // SELECT mailid
  1340. // FROM u_email_set
  1341. // WHERE ( u_email_set.empid = :sys_empid AND u_email_set.mailtype = 0)
  1342. // OR u_email_set.mailtype = 1;
  1343. OPEN cur_mailid;
  1344. // IF sqlca.SQLCode <> 0 THEN
  1345. // MessageBox("",sqlca.SQLErrText)
  1346. // END IF
  1347. i++
  1348. FETCH cur_mailid Into :ll_mailid[i];
  1349. // IF sqlca.SQLCode <> 0 THEN
  1350. // MessageBox("",sqlca.SQLErrText)
  1351. // END IF
  1352. DO WHILE sqlca.SQLCode = 0
  1353. i++
  1354. FETCH cur_mailid Into :ll_mailid[i];
  1355. LOOP
  1356. CLOSE cur_mailid;
  1357. END IF
  1358. NEXT
  1359. DECLARE cur_address CURSOR FOR
  1360. SELECT DISTINCT LOWER(email)
  1361. FROM
  1362. (SELECT email
  1363. FROM u_cust
  1364. WHERE cusid = :ll_cusid
  1365. UNION ALL
  1366. SELECT email
  1367. FROM u_cust_rep
  1368. WHERE cusid = :ll_cusid) a
  1369. Where (email <> '');
  1370. OPEN cur_address;
  1371. FETCH cur_address Into :ls_send_str;
  1372. DO WHILE sqlca.SQLCode = 0
  1373. IF Trim(ls_send_str) <> '' THEN
  1374. j++
  1375. ls_sendaddress[j] = ls_send_str
  1376. END IF
  1377. FETCH cur_address Into :ls_send_str;
  1378. LOOP
  1379. CLOSE cur_address;
  1380. j++
  1381. ls_sendaddress[j] = 'XXXXXXXXXX'
  1382. dw_1.AcceptText()
  1383. ll_row = dw_1.GetRow()
  1384. IF ll_row <= 0 THEN
  1385. tab_1.tabpage_11.dw_send.Reset()
  1386. ELSE
  1387. ll_cusid = dw_1.Object.cusid[ll_row]
  1388. tab_1.tabpage_11.dw_send.Retrieve(ld_fdate,ld_edate,ll_mailid,ls_sendaddress)
  1389. END IF
  1390. end event
  1391. event ue_retr_outware();Long ll_row,ll_cusid
  1392. dw_1.AcceptText()
  1393. ll_row = dw_1.GetRow()
  1394. IF ll_row <= 0 THEN
  1395. tab_1.tabpage_12.dw_outware.Reset()
  1396. ELSE
  1397. ll_cusid = dw_1.Object.cusid[ll_row]
  1398. tab_1.tabpage_12.dw_outware.Retrieve(ll_cusid)
  1399. END IF
  1400. end event
  1401. event ue_filter_cuscode();String obj_expr = ''
  1402. IF Trim(sle_cust.Text) <> '' THEN
  1403. IF Pos(Trim(sle_cust.Text),'%') = 0 THEN
  1404. obj_expr = obj_expr+'( cuscode LIKE "%'+Trim(sle_cust.Text)+'%" )'
  1405. obj_expr = obj_expr+' or (name LIKE "%'+Trim(sle_cust.Text)+'%" )'
  1406. ELSE
  1407. obj_expr = obj_expr+'( cuscode LIKE "'+Trim(sle_cust.Text)+'") '
  1408. obj_expr = obj_expr+' or (name LIKE "'+Trim(sle_cust.Text)+'" )'
  1409. END IF
  1410. END IF
  1411. dw_1.SetFilter(obj_expr)
  1412. dw_1.SetRedraw(FALSE)
  1413. dw_1.Filter()
  1414. IF dw_1.RowCount() >= 1 THEN
  1415. dw_1.SelectRow(0,FALSE)
  1416. dw_1.SelectRow(1,TRUE)
  1417. END IF
  1418. dw_1.SetRedraw(TRUE)
  1419. end event
  1420. event ue_filter_telnumber();String obj_expr = ''
  1421. IF trim(This.sle_tel_number.Text) <> '' THEN
  1422. IF Pos(Trim(sle_tel_number.Text),'%') = 0 THEN
  1423. obj_expr = obj_expr+"( tele LIKE '%"+Trim(sle_tel_number.Text)+"%')"
  1424. obj_expr = obj_expr+" or (tele1 LIKE '%"+Trim(sle_tel_number.Text)+"%' )"
  1425. obj_expr = obj_expr+" or (freight LIKE '%"+Trim(sle_tel_number.Text)+"%')"
  1426. ELSE
  1427. obj_expr = obj_expr+'( tele LIKE '+Trim(sle_tel_number.Text)+')'
  1428. obj_expr = obj_expr+' or (tele1 LIKE '+Trim(sle_tel_number.Text)+')'
  1429. obj_expr = obj_expr+' or (freight LIKE '+Trim(sle_tel_number.Text)+')'
  1430. //obj_expr = obj_expr + ' or (cusid = (select top(1) cusid from u_cust_rep where officetel LIKE ' + Trim(sle_tel_number.Text) + ' or handtel like ' + Trim(sle_tel_number.Text) + '))'
  1431. END IF
  1432. END IF
  1433. dw_1.SetFilter(obj_expr)
  1434. dw_1.SetRedraw(FALSE)
  1435. dw_1.Filter()
  1436. IF dw_1.RowCount() >= 1 THEN
  1437. dw_1.SelectRow(0,FALSE)
  1438. dw_1.SelectRow(1,TRUE)
  1439. else
  1440. String ls_number
  1441. IF Pos(Trim(sle_tel_number.Text),'%') = 0 THEN
  1442. ls_number = '%' + trim(sle_tel_number.Text) + '%'
  1443. else
  1444. ls_number = trim(sle_tel_number.Text)
  1445. end if
  1446. // 查询u_cust_rep offictel, handtel 找出匹配电话号码,再关联cusID
  1447. long ll_cusid = 0
  1448. string ls_cuscode
  1449. select top 1 cusid into :ll_cusid from u_cust_rep where officetel LIKE :ls_number or handtel LIKE :ls_number ;
  1450. // 不存在相关的cusid
  1451. if sqlca.sqlcode = 100 or isnull(ll_cusid) or ll_cusid = 0 then
  1452. obj_expr = ' cuscode = ' + "'" +trim(sle_tel_number.Text) + "'"
  1453. dw_1.SetFilter(obj_expr)
  1454. dw_1.Filter()
  1455. dw_1.SetRedraw(TRUE)
  1456. return
  1457. else
  1458. select cuscode into :ls_cuscode from u_cust where cusid = :ll_cusid ;
  1459. // 查询得到cusid 但找不到相关的名
  1460. if sqlca.sqlcode <> 0 then
  1461. MessageBox('IF', '网络或其他原因,查询cuscode 失败')
  1462. return;
  1463. else
  1464. obj_expr = ' cuscode = ' + "'" +ls_cuscode + "'"
  1465. dw_1.SetFilter(obj_expr)
  1466. dw_1.Filter()
  1467. IF dw_1.RowCount() >= 1 THEN
  1468. dw_1.SelectRow(0,FALSE)
  1469. dw_1.SelectRow(1,TRUE)
  1470. end if
  1471. end if
  1472. end if
  1473. // 再到u_cust 表查询得到相关信息
  1474. END IF
  1475. dw_1.SetRedraw(TRUE)
  1476. end event
  1477. event ue_rq_cust();Int rslt = 1
  1478. Long ll_row
  1479. Long ll_cusid
  1480. Int li_state
  1481. String ls_cusname, ls_custype, ls_dscrp
  1482. String arg_msg
  1483. DateTime ldt_rqdate
  1484. ll_row = dw_1.GetRow()
  1485. IF ll_row <= 0 THEN
  1486. MessageBox('系统提示', '请选择客户')
  1487. RETURN
  1488. END IF
  1489. ll_cusid = dw_1.Object.cusid[ll_row]
  1490. ls_cusname = dw_1.Object.Name[ll_row]
  1491. li_state = dw_1.Object.State[ll_row]
  1492. ls_custype = dw_1.Object.custype[ll_row]
  1493. IF li_state <> 0 THEN
  1494. MessageBox('系统提示', '非公共客户不能申请')
  1495. RETURN
  1496. END IF
  1497. IF MessageBox('确定', '是否确定要申请['+ls_cusname+']为准客户?', question!, yesno!) = 2 THEN RETURN
  1498. ldt_rqdate = DateTime(Today(), Now())
  1499. ls_dscrp = ""
  1500. uo_custdef uo_cust
  1501. uo_cust = Create uo_custdef
  1502. uo_cust.commit_transaction = sqlca
  1503. IF uo_cust.uof_add_cust_rq(ll_cusid, ls_custype, ldt_rqdate, ls_dscrp, arg_msg, True) = 0 THEN
  1504. rslt = 0
  1505. //goto ext
  1506. END IF
  1507. Destroy uo_cust
  1508. IF rslt = 0 THEN
  1509. MessageBox('系统提示', arg_msg)
  1510. RETURN
  1511. ELSE
  1512. MessageBox('系统提示', '申请准客户成功')
  1513. dw_1.Object.State[ll_row] = 3
  1514. //RETURN
  1515. END IF
  1516. end event
  1517. event ue_outrep_def();f_sys_main(118)
  1518. end event
  1519. event ue_outrep_trans;f_sys_main(139)
  1520. end event
  1521. event ue_outrep_p_custype();IF Not f_power_ind(1715,sys_msg_pow) THEN
  1522. MessageBox(publ_operator,sys_msg_pow)
  1523. RETURN
  1524. END IF
  1525. IF MessageBox('询问','是否确认要更新当前列表中公共客户的业务员?',question!,yesno!) = 2 THEN RETURN
  1526. s_outrepdef INS_RT_STRU
  1527. Open(w_outrepdef_edit_ch)
  1528. Long rslt = 1
  1529. String arg_msg
  1530. String ls_outrep
  1531. Long ll_i
  1532. Long ll_cusid
  1533. s_outrepdef s_outrep_ch
  1534. s_outrep_ch = Message.PowerObjectParm
  1535. IF s_outrep_ch.outrepname = '' THEN RETURN
  1536. ls_outrep = s_outrep_ch.outrepname
  1537. FOR ll_i = 1 To dw_1.RowCount()
  1538. IF dw_1.Object.State[ll_i] = 1 THEN CONTINUE
  1539. IF dw_1.Object.ch[ll_i] = 0 THEN CONTINUE
  1540. ll_cusid = dw_1.Object.cusid[ll_i]
  1541. UPDATE u_cust
  1542. SET custype = :ls_outrep
  1543. Where cusid = :ll_cusid;
  1544. IF sqlca.SQLCode <> 0 THEN
  1545. rslt = 0
  1546. arg_msg = '第'+String(ll_i)+'行,更新业务员失败,'+sqlca.SQLErrText
  1547. EXIT
  1548. END IF
  1549. NEXT
  1550. IF rslt = 0 THEN
  1551. ROLLBACK;
  1552. MessageBox('Error','第'+String(ll_i)+'行,更新业务员失败')
  1553. RETURN
  1554. ELSE
  1555. COMMIT;
  1556. MessageBox('系统提示','更新成功!')
  1557. cb_1.TriggerEvent(Clicked!)
  1558. END IF
  1559. end event
  1560. public function integer wf_getflag (string arg_string);int reslt
  1561. CHOOSE CASE arg_string
  1562. CASE '='
  1563. reslt = 0
  1564. CASE '>='
  1565. reslt = 1
  1566. CASE '<='
  1567. reslt = 2
  1568. CASE '>'
  1569. reslt = 3
  1570. CASE '<'
  1571. reslt = 4
  1572. END CHOOSE
  1573. return reslt
  1574. end function
  1575. on w_cust_crm.create
  1576. int iCurrent
  1577. call super::create
  1578. this.tv_1=create tv_1
  1579. this.tab_1=create tab_1
  1580. this.cb_3=create cb_3
  1581. this.cb_4=create cb_4
  1582. this.cb_5=create cb_5
  1583. this.ddlb_1=create ddlb_1
  1584. this.ddlb_2=create ddlb_2
  1585. this.cb_audit=create cb_audit
  1586. this.cb_other=create cb_other
  1587. this.st_10=create st_10
  1588. this.cbx_unsale=create cbx_unsale
  1589. this.em_unsale=create em_unsale
  1590. this.cbx_untask=create cbx_untask
  1591. this.em_untask=create em_untask
  1592. this.st_9=create st_9
  1593. this.st_11=create st_11
  1594. this.sle_tel_number=create sle_tel_number
  1595. this.ddlb_unsale=create ddlb_unsale
  1596. this.ddlb_untask=create ddlb_untask
  1597. iCurrent=UpperBound(this.Control)
  1598. this.Control[iCurrent+1]=this.tv_1
  1599. this.Control[iCurrent+2]=this.tab_1
  1600. this.Control[iCurrent+3]=this.cb_3
  1601. this.Control[iCurrent+4]=this.cb_4
  1602. this.Control[iCurrent+5]=this.cb_5
  1603. this.Control[iCurrent+6]=this.ddlb_1
  1604. this.Control[iCurrent+7]=this.ddlb_2
  1605. this.Control[iCurrent+8]=this.cb_audit
  1606. this.Control[iCurrent+9]=this.cb_other
  1607. this.Control[iCurrent+10]=this.st_10
  1608. this.Control[iCurrent+11]=this.cbx_unsale
  1609. this.Control[iCurrent+12]=this.em_unsale
  1610. this.Control[iCurrent+13]=this.cbx_untask
  1611. this.Control[iCurrent+14]=this.em_untask
  1612. this.Control[iCurrent+15]=this.st_9
  1613. this.Control[iCurrent+16]=this.st_11
  1614. this.Control[iCurrent+17]=this.sle_tel_number
  1615. this.Control[iCurrent+18]=this.ddlb_unsale
  1616. this.Control[iCurrent+19]=this.ddlb_untask
  1617. end on
  1618. on w_cust_crm.destroy
  1619. call super::destroy
  1620. destroy(this.tv_1)
  1621. destroy(this.tab_1)
  1622. destroy(this.cb_3)
  1623. destroy(this.cb_4)
  1624. destroy(this.cb_5)
  1625. destroy(this.ddlb_1)
  1626. destroy(this.ddlb_2)
  1627. destroy(this.cb_audit)
  1628. destroy(this.cb_other)
  1629. destroy(this.st_10)
  1630. destroy(this.cbx_unsale)
  1631. destroy(this.em_unsale)
  1632. destroy(this.cbx_untask)
  1633. destroy(this.em_untask)
  1634. destroy(this.st_9)
  1635. destroy(this.st_11)
  1636. destroy(this.sle_tel_number)
  1637. destroy(this.ddlb_unsale)
  1638. destroy(this.ddlb_untask)
  1639. end on
  1640. event resize;ln_bar.EndX = THIS.Width
  1641. ln_bar2.EndX = THIS.Width
  1642. ln_1.EndX = THIS.Width
  1643. ln_2.EndX = THIS.Width
  1644. r_bar.Width = THIS.Width
  1645. dw_1.Width = THIS.Width - dw_1.X - 40
  1646. tab_1.Width = THIS.Width - tab_1.X - 40
  1647. tab_1.Height = THIS.Height - tab_1.Y - 150
  1648. tab_1.tabpage_1.dw_rep.Width = THIS.Width - tab_1.X - 80
  1649. tab_1.tabpage_2.dw_interview.Width = THIS.Width - tab_1.X - 80
  1650. tab_1.tabpage_3.dw_plan.Width = THIS.Width - tab_1.X - 80
  1651. tab_1.tabpage_4.dw_price.Width = THIS.Width - tab_1.X - 80
  1652. tab_1.tabpage_5.dw_task.Width = THIS.Width - tab_1.X - 80
  1653. tab_1.tabpage_6.dw_oppose.Width = THIS.Width - tab_1.X - 80
  1654. tab_1.tabpage_7.dw_station.Width = THIS.Width - tab_1.X - 80
  1655. tab_1.tabpage_8.dw_item.Width = THIS.Width - tab_1.X - 80
  1656. tab_1.tabpage_9.dw_sample.Width = THIS.Width - tab_1.X - 80
  1657. tab_1.tabpage_10.dw_rev.Width = THIS.Width - tab_1.X - 80
  1658. tab_1.tabpage_11.dw_send.Width = THIS.Width - tab_1.X - 80
  1659. tab_1.tabpage_12.dw_outware.Width = THIS.Width - tab_1.X - 80
  1660. tab_1.tabpage_1.dw_rep.Height = THIS.Height - ( 2300 - 460 )
  1661. tab_1.tabpage_2.dw_interview.Height = THIS.Height - ( 2300 - 460 )
  1662. tab_1.tabpage_3.dw_plan.Height = THIS.Height - ( 2300 - 460 )
  1663. tab_1.tabpage_4.dw_price.Height = THIS.Height - ( 2300 - 548 )
  1664. tab_1.tabpage_5.dw_task.Height = THIS.Height - ( 2300 - 548 )
  1665. tab_1.tabpage_6.dw_oppose.Height = THIS.Height - ( 2300 - 460 )
  1666. tab_1.tabpage_7.dw_station.Height = THIS.Height - ( 2300 - 460 )
  1667. tab_1.tabpage_8.dw_item.Height = THIS.Height - ( 2300 - 460 )
  1668. tab_1.tabpage_9.dw_sample.Height = THIS.Height - ( 2300 - 460 )
  1669. tab_1.tabpage_10.dw_rev.Height= THIS.Height - ( 2300 - 460 )
  1670. tab_1.tabpage_11.dw_send.Height = THIS.Height - ( 2300 - 460 )
  1671. tab_1.tabpage_12.dw_outware.Height = THIS.Height - ( 2300 - 548 )
  1672. end event
  1673. event ue_before_open;wf_init_dw1()
  1674. wf_replacedw()
  1675. s_edit_index_tran s_tran
  1676. s_tran = Message.PowerObjectParm
  1677. IF Not IsNull(s_tran) THEN
  1678. if_power_sendout = s_tran.if_sendout
  1679. if_power_print = s_tran.if_print
  1680. sle_cust.text = trim(s_tran.arg_string_code)
  1681. sle_tel_number.text = trim(s_tran.d_string) // 上送的电话号码
  1682. END IF
  1683. if_ue_sentdataout = if_power_sendout
  1684. cb_psetup.enabled = if_power_print
  1685. cb_2.enabled = if_power_print
  1686. cbx_yl.enabled = if_power_print
  1687. ddlb_yl.enabled = if_power_print
  1688. uo_cus = CREATE uo_crm
  1689. tab_1.tabpage_1.dw_rep.SetTransObject(sqlca)
  1690. tab_1.tabpage_2.dw_interview.SetTransObject(sqlca)
  1691. tab_1.tabpage_3.dw_plan.SetTransObject(sqlca)
  1692. tab_1.tabpage_4.dw_price.SetTransObject(sqlca)
  1693. tab_1.tabpage_5.dw_task.SetTransObject(sqlca)
  1694. tab_1.tabpage_6.dw_oppose.SetTransObject(sqlca)
  1695. tab_1.tabpage_7.dw_station.SetTransObject(sqlca)
  1696. tab_1.tabpage_8.dw_item.SetTransObject(sqlca)
  1697. tab_1.tabpage_9.dw_sample.SetTransObject(sqlca)
  1698. tab_1.tabpage_10.dw_rev.SetTransObject(sys_email_sqlca)
  1699. tab_1.tabpage_11.dw_send.SetTransObject(sys_email_sqlca)
  1700. tab_1.tabpage_12.dw_outware.SetTransObject(sqlca)
  1701. tab_1.tabpage_10.visible = true
  1702. tab_1.tabpage_11.visible = true
  1703. dw_task = tab_1.tabpage_5.dw_task
  1704. dw_price= tab_1.tabpage_4.dw_price
  1705. end event
  1706. event close;call super::close;DESTROY uo_cus
  1707. end event
  1708. event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col,s_col2,s_col3
  1709. s_col.col_1 = 'amt'
  1710. s_col.col_2 = 'consignedqtyamt'
  1711. s_col.col_3 = 'not_consignedqtyamt'
  1712. f_hide_col(122,dw_task,s_col)
  1713. s_col2.col_1 = 'u_cus_price_fprice'
  1714. s_col2.col_2 = 'u_cus_price_zqrate'
  1715. s_col2.col_3 = 'u_cus_price_price'
  1716. s_col2.col_4 = 'u_mtrldef_price'
  1717. f_hide_col(122,dw_price,s_col2)
  1718. s_col3.col_1 = 'amt'
  1719. s_col3.col_2 = 'saleqtyamt'
  1720. f_hide_col(122,tab_1.tabpage_12.dw_outware,s_col3)
  1721. end event
  1722. event open;call super::open;This.TriggerEvent("ue_filter_cuscode")
  1723. // 电话录音盒
  1724. This.TriggerEvent("ue_filter_telnumber")
  1725. end event
  1726. type cb_func from w_publ_easyq`cb_func within w_cust_crm
  1727. end type
  1728. type cb_exit from w_publ_easyq`cb_exit within w_cust_crm
  1729. integer x = 1330
  1730. end type
  1731. type cb_2 from w_publ_easyq`cb_2 within w_cust_crm
  1732. integer x = 1029
  1733. end type
  1734. type cb_psetup from w_publ_easyq`cb_psetup within w_cust_crm
  1735. integer x = 1408
  1736. integer y = 580
  1737. end type
  1738. type cb_1 from w_publ_easyq`cb_1 within w_cust_crm
  1739. end type
  1740. event cb_1::clicked;call super::clicked;
  1741. Int li_unsale, li_untask
  1742. Long ll_daynum, ll_daynum_task
  1743. long unsale_flag,untask_flag
  1744. IF cbx_unsale.Checked THEN
  1745. li_unsale = wf_getflag(ddlb_unsale.text)
  1746. ll_daynum = Long(em_unsale.Text)
  1747. ELSE
  1748. li_unsale = -1
  1749. ll_daynum = 0
  1750. END IF
  1751. IF cbx_untask.Checked THEN
  1752. li_untask = wf_getflag(ddlb_untask.text)
  1753. ll_daynum_task = Long(em_untask.Text)
  1754. ELSE
  1755. li_untask = -1
  1756. ll_daynum_task = 0
  1757. END IF
  1758. dw_1.Retrieve(ins_inuse,ins_areaname,sys_areaid,ins_state,sys_user_outrep, sys_option_outrep,li_unsale,ll_daynum,li_untask,ll_daynum_task)
  1759. Parent.TriggerEvent('ue_retr_rep')
  1760. Parent.TriggerEvent('ue_retr_plan')
  1761. Parent.TriggerEvent('ue_retr_interview')
  1762. Parent.TriggerEvent('ue_retr_price')
  1763. Parent.TriggerEvent('ue_retr_task')
  1764. Parent.TriggerEvent('ue_retr_outware')
  1765. Parent.TriggerEvent('ue_retr_oppose')
  1766. Parent.TriggerEvent('ue_retr_station')
  1767. Parent.TriggerEvent('ue_retr_item')
  1768. Parent.TriggerEvent('ue_retr_sample')
  1769. Parent.TriggerEvent('ue_retr_rev')
  1770. Parent.TriggerEvent('ue_retr_send')
  1771. end event
  1772. type st_3 from w_publ_easyq`st_3 within w_cust_crm
  1773. integer x = 5
  1774. integer y = 196
  1775. integer width = 261
  1776. string text = "客户编号:"
  1777. end type
  1778. type st_4 from w_publ_easyq`st_4 within w_cust_crm
  1779. integer x = 1111
  1780. integer y = 328
  1781. string text = ""
  1782. end type
  1783. type em_1 from w_publ_easyq`em_1 within w_cust_crm
  1784. integer x = 1321
  1785. integer y = 432
  1786. end type
  1787. type em_2 from w_publ_easyq`em_2 within w_cust_crm
  1788. integer x = 1810
  1789. integer y = 432
  1790. end type
  1791. type ddlb_yl from w_publ_easyq`ddlb_yl within w_cust_crm
  1792. integer x = 2085
  1793. integer y = 640
  1794. end type
  1795. type cbx_yl from w_publ_easyq`cbx_yl within w_cust_crm
  1796. integer x = 1874
  1797. integer y = 644
  1798. end type
  1799. event cbx_yl::clicked;long i = 0
  1800. end event
  1801. type dw_1 from w_publ_easyq`dw_1 within w_cust_crm
  1802. integer x = 1001
  1803. integer y = 288
  1804. integer width = 2551
  1805. integer height = 1200
  1806. string dataobject = "dw_cust_crm_index"
  1807. end type
  1808. event dw_1::rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
  1809. THIS.SelectRow(0,FALSE)
  1810. THIS.SelectRow(currentrow,TRUE)
  1811. END IF
  1812. PARENT.TriggerEvent('ue_retr_rep')
  1813. PARENT.TriggerEvent('ue_retr_plan')
  1814. PARENT.TriggerEvent('ue_retr_interview')
  1815. PARENT.TriggerEvent('ue_retr_price')
  1816. PARENT.TriggerEvent('ue_retr_task')
  1817. PARENT.TriggerEvent('ue_retr_outware')
  1818. PARENT.TriggerEvent('ue_retr_oppose')
  1819. PARENT.TriggerEvent('ue_retr_station')
  1820. PARENT.TriggerEvent('ue_retr_item')
  1821. PARENT.TriggerEvent('ue_retr_sample')
  1822. PARENT.TriggerEvent('ue_retr_rev')
  1823. PARENT.TriggerEvent('ue_retr_send')
  1824. end event
  1825. event dw_1::clicked;call super::clicked;IF row > 0 THEN
  1826. This.SelectRow(0,False)
  1827. This.SetRow(row)
  1828. This.SelectRow(row,True)
  1829. END IF
  1830. end event
  1831. type sle_mtrl from w_publ_easyq`sle_mtrl within w_cust_crm
  1832. end type
  1833. type sle_cust from w_publ_easyq`sle_cust within w_cust_crm
  1834. boolean visible = true
  1835. integer x = 261
  1836. integer y = 180
  1837. integer width = 503
  1838. integer height = 88
  1839. end type
  1840. type st_mtrl from w_publ_easyq`st_mtrl within w_cust_crm
  1841. end type
  1842. type st_cust from w_publ_easyq`st_cust within w_cust_crm
  1843. end type
  1844. type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_cust_crm
  1845. end type
  1846. type pb_em1 from w_publ_easyq`pb_em1 within w_cust_crm
  1847. boolean visible = false
  1848. end type
  1849. type pb_em2 from w_publ_easyq`pb_em2 within w_cust_crm
  1850. boolean visible = false
  1851. end type
  1852. type pb_2 from w_publ_easyq`pb_2 within w_cust_crm
  1853. boolean visible = false
  1854. end type
  1855. type cb_help from w_publ_easyq`cb_help within w_cust_crm
  1856. integer x = 1179
  1857. end type
  1858. type cb_copyself from w_publ_easyq`cb_copyself within w_cust_crm
  1859. boolean visible = false
  1860. end type
  1861. type gb_1 from w_publ_easyq`gb_1 within w_cust_crm
  1862. integer x = 1577
  1863. integer y = 448
  1864. end type
  1865. type ln_bar from w_publ_easyq`ln_bar within w_cust_crm
  1866. end type
  1867. type ln_bar2 from w_publ_easyq`ln_bar2 within w_cust_crm
  1868. end type
  1869. type r_bar from w_publ_easyq`r_bar within w_cust_crm
  1870. end type
  1871. type ln_1 from w_publ_easyq`ln_1 within w_cust_crm
  1872. integer beginy = 280
  1873. integer endy = 280
  1874. end type
  1875. type ln_2 from w_publ_easyq`ln_2 within w_cust_crm
  1876. integer beginy = 284
  1877. integer endy = 284
  1878. end type
  1879. type ln_3 from w_publ_easyq`ln_3 within w_cust_crm
  1880. boolean visible = false
  1881. end type
  1882. type ln_4 from w_publ_easyq`ln_4 within w_cust_crm
  1883. boolean visible = false
  1884. end type
  1885. type tv_1 from uo_tv_cusarea within w_cust_crm
  1886. integer y = 288
  1887. integer width = 997
  1888. integer height = 1200
  1889. integer taborder = 60
  1890. boolean bringtotop = true
  1891. integer textsize = -9
  1892. fontcharset fontcharset = gb2312charset!
  1893. fontfamily fontfamily = anyfont!
  1894. string facename = "宋体"
  1895. end type
  1896. event selectionchanged;call super::selectionchanged;ins_areaname = THIS.uo_cur_info.areaname
  1897. IF THIS.uo_cur_info.sonflag = 1 THEN
  1898. cur_cusareaid = THIS.uo_cur_info.cusareaid
  1899. ELSE
  1900. cur_cusareaid = 0
  1901. END IF
  1902. ins_areaname = ins_areaname + '%'
  1903. cb_1.TriggerEvent(Clicked!)
  1904. end event
  1905. type tab_1 from tab within w_cust_crm
  1906. event create ( )
  1907. event destroy ( )
  1908. integer y = 1492
  1909. integer width = 3543
  1910. integer height = 728
  1911. integer taborder = 80
  1912. boolean bringtotop = true
  1913. integer textsize = -9
  1914. integer weight = 400
  1915. fontcharset fontcharset = gb2312charset!
  1916. fontpitch fontpitch = variable!
  1917. string facename = "宋体"
  1918. long backcolor = 134217739
  1919. boolean raggedright = true
  1920. boolean focusonbuttondown = true
  1921. integer selectedtab = 1
  1922. tabpage_1 tabpage_1
  1923. tabpage_8 tabpage_8
  1924. tabpage_7 tabpage_7
  1925. tabpage_2 tabpage_2
  1926. tabpage_3 tabpage_3
  1927. tabpage_6 tabpage_6
  1928. tabpage_9 tabpage_9
  1929. tabpage_4 tabpage_4
  1930. tabpage_5 tabpage_5
  1931. tabpage_12 tabpage_12
  1932. tabpage_10 tabpage_10
  1933. tabpage_11 tabpage_11
  1934. end type
  1935. on tab_1.create
  1936. this.tabpage_1=create tabpage_1
  1937. this.tabpage_8=create tabpage_8
  1938. this.tabpage_7=create tabpage_7
  1939. this.tabpage_2=create tabpage_2
  1940. this.tabpage_3=create tabpage_3
  1941. this.tabpage_6=create tabpage_6
  1942. this.tabpage_9=create tabpage_9
  1943. this.tabpage_4=create tabpage_4
  1944. this.tabpage_5=create tabpage_5
  1945. this.tabpage_12=create tabpage_12
  1946. this.tabpage_10=create tabpage_10
  1947. this.tabpage_11=create tabpage_11
  1948. this.Control[]={this.tabpage_1,&
  1949. this.tabpage_8,&
  1950. this.tabpage_7,&
  1951. this.tabpage_2,&
  1952. this.tabpage_3,&
  1953. this.tabpage_6,&
  1954. this.tabpage_9,&
  1955. this.tabpage_4,&
  1956. this.tabpage_5,&
  1957. this.tabpage_12,&
  1958. this.tabpage_10,&
  1959. this.tabpage_11}
  1960. end on
  1961. on tab_1.destroy
  1962. destroy(this.tabpage_1)
  1963. destroy(this.tabpage_8)
  1964. destroy(this.tabpage_7)
  1965. destroy(this.tabpage_2)
  1966. destroy(this.tabpage_3)
  1967. destroy(this.tabpage_6)
  1968. destroy(this.tabpage_9)
  1969. destroy(this.tabpage_4)
  1970. destroy(this.tabpage_5)
  1971. destroy(this.tabpage_12)
  1972. destroy(this.tabpage_10)
  1973. destroy(this.tabpage_11)
  1974. end on
  1975. type tabpage_1 from userobject within tab_1
  1976. integer x = 18
  1977. integer y = 96
  1978. integer width = 3506
  1979. integer height = 616
  1980. long backcolor = 134217739
  1981. string text = "联系人"
  1982. long tabtextcolor = 33554432
  1983. long tabbackcolor = 134217739
  1984. long picturemaskcolor = 536870912
  1985. cb_12 cb_12
  1986. cb_8 cb_8
  1987. cb_7 cb_7
  1988. dw_rep dw_rep
  1989. end type
  1990. on tabpage_1.create
  1991. this.cb_12=create cb_12
  1992. this.cb_8=create cb_8
  1993. this.cb_7=create cb_7
  1994. this.dw_rep=create dw_rep
  1995. this.Control[]={this.cb_12,&
  1996. this.cb_8,&
  1997. this.cb_7,&
  1998. this.dw_rep}
  1999. end on
  2000. on tabpage_1.destroy
  2001. destroy(this.cb_12)
  2002. destroy(this.cb_8)
  2003. destroy(this.cb_7)
  2004. destroy(this.dw_rep)
  2005. end on
  2006. type cb_12 from commandbutton within tabpage_1
  2007. integer y = 4
  2008. integer width = 192
  2009. integer height = 72
  2010. integer taborder = 30
  2011. integer textsize = -9
  2012. integer weight = 400
  2013. fontcharset fontcharset = gb2312charset!
  2014. fontpitch fontpitch = variable!
  2015. string facename = "宋体"
  2016. string text = "增加"
  2017. end type
  2018. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_rep')
  2019. end event
  2020. type cb_8 from commandbutton within tabpage_1
  2021. integer x = 192
  2022. integer y = 4
  2023. integer width = 206
  2024. integer height = 72
  2025. integer taborder = 40
  2026. integer textsize = -9
  2027. integer weight = 400
  2028. fontcharset fontcharset = gb2312charset!
  2029. fontpitch fontpitch = variable!
  2030. string facename = "宋体"
  2031. string text = "修改"
  2032. end type
  2033. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_rep')
  2034. end event
  2035. type cb_7 from commandbutton within tabpage_1
  2036. integer x = 398
  2037. integer y = 4
  2038. integer width = 206
  2039. integer height = 72
  2040. integer taborder = 30
  2041. integer textsize = -9
  2042. integer weight = 400
  2043. fontcharset fontcharset = gb2312charset!
  2044. fontpitch fontpitch = variable!
  2045. string facename = "宋体"
  2046. string text = "删除"
  2047. end type
  2048. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_rep')
  2049. end event
  2050. type dw_rep from u_dw_rbtnfilter within tabpage_1
  2051. integer y = 80
  2052. integer width = 3506
  2053. integer height = 528
  2054. integer taborder = 20
  2055. string dataobject = "dw_cust_crm_rep"
  2056. boolean hscrollbar = true
  2057. boolean vscrollbar = true
  2058. boolean hsplitscroll = true
  2059. boolean rbutton_filter_use = true
  2060. boolean titleclick_sort_use = true
  2061. end type
  2062. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2063. THIS.SelectRow(0,FALSE)
  2064. THIS.SelectRow(currentrow,TRUE)
  2065. end event
  2066. type tabpage_8 from userobject within tab_1
  2067. integer x = 18
  2068. integer y = 96
  2069. integer width = 3506
  2070. integer height = 616
  2071. long backcolor = 134217739
  2072. string text = "辅助项目"
  2073. long tabtextcolor = 33554432
  2074. long tabbackcolor = 134217739
  2075. long picturemaskcolor = 536870912
  2076. dw_item dw_item
  2077. cb_25 cb_25
  2078. end type
  2079. on tabpage_8.create
  2080. this.dw_item=create dw_item
  2081. this.cb_25=create cb_25
  2082. this.Control[]={this.dw_item,&
  2083. this.cb_25}
  2084. end on
  2085. on tabpage_8.destroy
  2086. destroy(this.dw_item)
  2087. destroy(this.cb_25)
  2088. end on
  2089. type dw_item from u_dw_rbtnfilter within tabpage_8
  2090. integer y = 80
  2091. integer width = 3506
  2092. integer height = 484
  2093. integer taborder = 30
  2094. string dataobject = "dw_cust_crm_item"
  2095. boolean hscrollbar = true
  2096. boolean vscrollbar = true
  2097. boolean hsplitscroll = true
  2098. boolean rbutton_filter_use = true
  2099. boolean titleclick_sort_use = true
  2100. end type
  2101. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2102. THIS.SelectRow(0,FALSE)
  2103. THIS.SelectRow(currentrow,TRUE)
  2104. end event
  2105. type cb_25 from commandbutton within tabpage_8
  2106. integer x = 5
  2107. integer y = 4
  2108. integer width = 274
  2109. integer height = 72
  2110. integer taborder = 40
  2111. integer textsize = -9
  2112. integer weight = 400
  2113. fontcharset fontcharset = gb2312charset!
  2114. fontpitch fontpitch = variable!
  2115. string facename = "宋体"
  2116. string text = "修改摘要"
  2117. end type
  2118. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_item')
  2119. end event
  2120. type tabpage_7 from userobject within tab_1
  2121. integer x = 18
  2122. integer y = 96
  2123. integer width = 3506
  2124. integer height = 616
  2125. long backcolor = 134217739
  2126. string text = "货运部"
  2127. long tabtextcolor = 33554432
  2128. long tabbackcolor = 134217739
  2129. long picturemaskcolor = 536870912
  2130. cb_18 cb_18
  2131. cb_17 cb_17
  2132. cb_16 cb_16
  2133. dw_station dw_station
  2134. end type
  2135. on tabpage_7.create
  2136. this.cb_18=create cb_18
  2137. this.cb_17=create cb_17
  2138. this.cb_16=create cb_16
  2139. this.dw_station=create dw_station
  2140. this.Control[]={this.cb_18,&
  2141. this.cb_17,&
  2142. this.cb_16,&
  2143. this.dw_station}
  2144. end on
  2145. on tabpage_7.destroy
  2146. destroy(this.cb_18)
  2147. destroy(this.cb_17)
  2148. destroy(this.cb_16)
  2149. destroy(this.dw_station)
  2150. end on
  2151. type cb_18 from commandbutton within tabpage_7
  2152. integer x = 192
  2153. integer y = 4
  2154. integer width = 206
  2155. integer height = 72
  2156. integer taborder = 50
  2157. integer textsize = -9
  2158. integer weight = 400
  2159. fontcharset fontcharset = gb2312charset!
  2160. fontpitch fontpitch = variable!
  2161. string facename = "宋体"
  2162. string text = "删除"
  2163. end type
  2164. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_station')
  2165. end event
  2166. type cb_17 from commandbutton within tabpage_7
  2167. integer x = 398
  2168. integer y = 4
  2169. integer width = 384
  2170. integer height = 72
  2171. integer taborder = 40
  2172. integer textsize = -9
  2173. integer weight = 400
  2174. fontcharset fontcharset = gb2312charset!
  2175. fontpitch fontpitch = variable!
  2176. string facename = "宋体"
  2177. string text = "设默认货运部"
  2178. end type
  2179. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_dft_station')
  2180. end event
  2181. type cb_16 from commandbutton within tabpage_7
  2182. integer y = 4
  2183. integer width = 192
  2184. integer height = 72
  2185. integer taborder = 40
  2186. integer textsize = -9
  2187. integer weight = 400
  2188. fontcharset fontcharset = gb2312charset!
  2189. fontpitch fontpitch = variable!
  2190. string facename = "宋体"
  2191. string text = "增加"
  2192. end type
  2193. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_station')
  2194. end event
  2195. type dw_station from u_dw_rbtnfilter within tabpage_7
  2196. integer y = 80
  2197. integer width = 3506
  2198. integer height = 492
  2199. integer taborder = 20
  2200. string dataobject = "dw_cust_crm_station"
  2201. boolean hscrollbar = true
  2202. boolean vscrollbar = true
  2203. boolean hsplitscroll = true
  2204. boolean rbutton_filter_use = true
  2205. boolean titleclick_sort_use = true
  2206. end type
  2207. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2208. THIS.SelectRow(0,FALSE)
  2209. THIS.SelectRow(currentrow,TRUE)
  2210. end event
  2211. type tabpage_2 from userobject within tab_1
  2212. integer x = 18
  2213. integer y = 96
  2214. integer width = 3506
  2215. integer height = 616
  2216. long backcolor = 134217739
  2217. string text = "走访"
  2218. long tabtextcolor = 33554432
  2219. long tabbackcolor = 134217739
  2220. long picturemaskcolor = 536870912
  2221. st_interview st_interview
  2222. cb_31 cb_31
  2223. cb_30 cb_30
  2224. cb_21 cb_21
  2225. em_edate2 em_edate2
  2226. st_6 st_6
  2227. em_fdate2 em_fdate2
  2228. cb_11 cb_11
  2229. cb_10 cb_10
  2230. cb_9 cb_9
  2231. dw_interview dw_interview
  2232. end type
  2233. on tabpage_2.create
  2234. this.st_interview=create st_interview
  2235. this.cb_31=create cb_31
  2236. this.cb_30=create cb_30
  2237. this.cb_21=create cb_21
  2238. this.em_edate2=create em_edate2
  2239. this.st_6=create st_6
  2240. this.em_fdate2=create em_fdate2
  2241. this.cb_11=create cb_11
  2242. this.cb_10=create cb_10
  2243. this.cb_9=create cb_9
  2244. this.dw_interview=create dw_interview
  2245. this.Control[]={this.st_interview,&
  2246. this.cb_31,&
  2247. this.cb_30,&
  2248. this.cb_21,&
  2249. this.em_edate2,&
  2250. this.st_6,&
  2251. this.em_fdate2,&
  2252. this.cb_11,&
  2253. this.cb_10,&
  2254. this.cb_9,&
  2255. this.dw_interview}
  2256. end on
  2257. on tabpage_2.destroy
  2258. destroy(this.st_interview)
  2259. destroy(this.cb_31)
  2260. destroy(this.cb_30)
  2261. destroy(this.cb_21)
  2262. destroy(this.em_edate2)
  2263. destroy(this.st_6)
  2264. destroy(this.em_fdate2)
  2265. destroy(this.cb_11)
  2266. destroy(this.cb_10)
  2267. destroy(this.cb_9)
  2268. destroy(this.dw_interview)
  2269. end on
  2270. type st_interview from statictext within tabpage_2
  2271. boolean visible = false
  2272. integer x = 1221
  2273. integer y = 16
  2274. integer width = 398
  2275. integer height = 48
  2276. integer textsize = -9
  2277. integer weight = 400
  2278. fontcharset fontcharset = gb2312charset!
  2279. fontpitch fontpitch = variable!
  2280. string facename = "宋体"
  2281. long textcolor = 16711680
  2282. long backcolor = 134217739
  2283. string text = "附件数()"
  2284. boolean focusrectangle = false
  2285. end type
  2286. type cb_31 from commandbutton within tabpage_2
  2287. integer x = 901
  2288. integer y = 4
  2289. integer width = 297
  2290. integer height = 72
  2291. integer taborder = 50
  2292. integer textsize = -9
  2293. integer weight = 400
  2294. fontcharset fontcharset = gb2312charset!
  2295. fontpitch fontpitch = variable!
  2296. string facename = "宋体"
  2297. string text = "添加附件"
  2298. end type
  2299. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_edit_interview')
  2300. end event
  2301. type cb_30 from commandbutton within tabpage_2
  2302. integer x = 603
  2303. integer y = 4
  2304. integer width = 297
  2305. integer height = 72
  2306. integer taborder = 40
  2307. integer textsize = -9
  2308. integer weight = 400
  2309. fontcharset fontcharset = gb2312charset!
  2310. fontpitch fontpitch = variable!
  2311. string facename = "宋体"
  2312. string text = "查看附件"
  2313. end type
  2314. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_view_interview')
  2315. end event
  2316. type cb_21 from commandbutton within tabpage_2
  2317. integer x = 2565
  2318. integer y = 4
  2319. integer width = 169
  2320. integer height = 72
  2321. integer taborder = 40
  2322. integer textsize = -9
  2323. integer weight = 400
  2324. fontcharset fontcharset = gb2312charset!
  2325. fontpitch fontpitch = variable!
  2326. string facename = "宋体"
  2327. string text = "刷新"
  2328. end type
  2329. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_interview')
  2330. end event
  2331. type em_edate2 from editmask within tabpage_2
  2332. integer x = 2149
  2333. integer width = 402
  2334. integer height = 84
  2335. integer taborder = 40
  2336. integer textsize = -9
  2337. integer weight = 400
  2338. fontcharset fontcharset = gb2312charset!
  2339. fontpitch fontpitch = variable!
  2340. string facename = "宋体"
  2341. long textcolor = 33554432
  2342. string text = "none"
  2343. alignment alignment = center!
  2344. borderstyle borderstyle = stylelowered!
  2345. maskdatatype maskdatatype = datemask!
  2346. string mask = "yyyy-mm-dd"
  2347. boolean spin = true
  2348. end type
  2349. event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
  2350. end event
  2351. event rbuttondown;s_calender_arg s_calender
  2352. s_calender.PointerX = THIS.PointerX()
  2353. s_calender.PointerY = THIS.PointerY()
  2354. s_calender.X = THIS.X
  2355. s_calender.Y = THIS.Y + tab_1.Y
  2356. OpenWithParm(w_calendar,s_calender)
  2357. THIS.Text = String(id_date_selected)
  2358. end event
  2359. type st_6 from statictext within tabpage_2
  2360. integer x = 2043
  2361. integer y = 24
  2362. integer width = 82
  2363. integer height = 48
  2364. integer textsize = -9
  2365. integer weight = 400
  2366. fontcharset fontcharset = gb2312charset!
  2367. fontpitch fontpitch = variable!
  2368. string facename = "宋体"
  2369. long textcolor = 33554432
  2370. long backcolor = 134217739
  2371. string text = "~~"
  2372. alignment alignment = center!
  2373. boolean focusrectangle = false
  2374. end type
  2375. type em_fdate2 from editmask within tabpage_2
  2376. integer x = 1637
  2377. integer width = 402
  2378. integer height = 84
  2379. integer taborder = 10
  2380. integer textsize = -9
  2381. integer weight = 400
  2382. fontcharset fontcharset = gb2312charset!
  2383. fontpitch fontpitch = variable!
  2384. string facename = "宋体"
  2385. long textcolor = 33554432
  2386. string text = "none"
  2387. alignment alignment = center!
  2388. borderstyle borderstyle = stylelowered!
  2389. maskdatatype maskdatatype = datemask!
  2390. string mask = "yyyy-mm-dd"
  2391. boolean spin = true
  2392. end type
  2393. event constructor;THIS.Text = String(RelativeDate ( Today(), -90 ),'yyyy-mm-dd')
  2394. end event
  2395. event rbuttondown;s_calender_arg s_calender
  2396. s_calender.PointerX = THIS.PointerX()
  2397. s_calender.PointerY = THIS.PointerY()
  2398. s_calender.X = THIS.X
  2399. s_calender.Y = THIS.Y + tab_1.Y
  2400. OpenWithParm(w_calendar,s_calender)
  2401. THIS.Text = String(id_date_selected)
  2402. end event
  2403. type cb_11 from commandbutton within tabpage_2
  2404. integer x = 398
  2405. integer y = 4
  2406. integer width = 206
  2407. integer height = 72
  2408. integer taborder = 50
  2409. integer textsize = -9
  2410. integer weight = 400
  2411. fontcharset fontcharset = gb2312charset!
  2412. fontpitch fontpitch = variable!
  2413. string facename = "宋体"
  2414. string text = "删除"
  2415. end type
  2416. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_interview')
  2417. end event
  2418. type cb_10 from commandbutton within tabpage_2
  2419. integer x = 192
  2420. integer y = 4
  2421. integer width = 206
  2422. integer height = 72
  2423. integer taborder = 40
  2424. integer textsize = -9
  2425. integer weight = 400
  2426. fontcharset fontcharset = gb2312charset!
  2427. fontpitch fontpitch = variable!
  2428. string facename = "宋体"
  2429. string text = "修改"
  2430. end type
  2431. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_interview')
  2432. end event
  2433. type cb_9 from commandbutton within tabpage_2
  2434. integer y = 4
  2435. integer width = 192
  2436. integer height = 72
  2437. integer taborder = 40
  2438. integer textsize = -9
  2439. integer weight = 400
  2440. fontcharset fontcharset = gb2312charset!
  2441. fontpitch fontpitch = variable!
  2442. string facename = "宋体"
  2443. string text = "增加"
  2444. end type
  2445. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_interview')
  2446. end event
  2447. type dw_interview from u_dw_rbtnfilter within tabpage_2
  2448. integer y = 88
  2449. integer width = 3506
  2450. integer height = 484
  2451. integer taborder = 20
  2452. string dataobject = "dw_cust_crm_interview"
  2453. boolean hscrollbar = true
  2454. boolean vscrollbar = true
  2455. boolean hsplitscroll = true
  2456. boolean rbutton_filter_use = true
  2457. boolean titleclick_sort_use = true
  2458. end type
  2459. event rowfocuschanged;call super::rowfocuschanged;//PARENT.GetParent().GetParent().TriggerEvent('ue_fj_cnt_interview')
  2460. IF currentrow <= 0 THEN RETURN
  2461. THIS.SelectRow(0,FALSE)
  2462. THIS.SelectRow(currentrow,TRUE)
  2463. end event
  2464. type tabpage_3 from userobject within tab_1
  2465. integer x = 18
  2466. integer y = 96
  2467. integer width = 3506
  2468. integer height = 616
  2469. long backcolor = 134217739
  2470. string text = "工作计划"
  2471. long tabtextcolor = 33554432
  2472. long tabbackcolor = 134217739
  2473. long picturemaskcolor = 536870912
  2474. st_plan st_plan
  2475. cb_29 cb_29
  2476. cb_28 cb_28
  2477. cb_20 cb_20
  2478. em_edate3 em_edate3
  2479. st_5 st_5
  2480. em_fdate3 em_fdate3
  2481. cb_15 cb_15
  2482. cb_14 cb_14
  2483. cb_13 cb_13
  2484. dw_plan dw_plan
  2485. end type
  2486. on tabpage_3.create
  2487. this.st_plan=create st_plan
  2488. this.cb_29=create cb_29
  2489. this.cb_28=create cb_28
  2490. this.cb_20=create cb_20
  2491. this.em_edate3=create em_edate3
  2492. this.st_5=create st_5
  2493. this.em_fdate3=create em_fdate3
  2494. this.cb_15=create cb_15
  2495. this.cb_14=create cb_14
  2496. this.cb_13=create cb_13
  2497. this.dw_plan=create dw_plan
  2498. this.Control[]={this.st_plan,&
  2499. this.cb_29,&
  2500. this.cb_28,&
  2501. this.cb_20,&
  2502. this.em_edate3,&
  2503. this.st_5,&
  2504. this.em_fdate3,&
  2505. this.cb_15,&
  2506. this.cb_14,&
  2507. this.cb_13,&
  2508. this.dw_plan}
  2509. end on
  2510. on tabpage_3.destroy
  2511. destroy(this.st_plan)
  2512. destroy(this.cb_29)
  2513. destroy(this.cb_28)
  2514. destroy(this.cb_20)
  2515. destroy(this.em_edate3)
  2516. destroy(this.st_5)
  2517. destroy(this.em_fdate3)
  2518. destroy(this.cb_15)
  2519. destroy(this.cb_14)
  2520. destroy(this.cb_13)
  2521. destroy(this.dw_plan)
  2522. end on
  2523. type st_plan from statictext within tabpage_3
  2524. boolean visible = false
  2525. integer x = 1221
  2526. integer y = 16
  2527. integer width = 398
  2528. integer height = 48
  2529. integer textsize = -9
  2530. integer weight = 400
  2531. fontcharset fontcharset = gb2312charset!
  2532. fontpitch fontpitch = variable!
  2533. string facename = "宋体"
  2534. long textcolor = 16711680
  2535. long backcolor = 134217739
  2536. string text = "附件数()"
  2537. boolean focusrectangle = false
  2538. end type
  2539. type cb_29 from commandbutton within tabpage_3
  2540. integer x = 901
  2541. integer y = 4
  2542. integer width = 297
  2543. integer height = 72
  2544. integer taborder = 50
  2545. integer textsize = -9
  2546. integer weight = 400
  2547. fontcharset fontcharset = gb2312charset!
  2548. fontpitch fontpitch = variable!
  2549. string facename = "宋体"
  2550. string text = "添加附件"
  2551. end type
  2552. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_edit_plan')
  2553. end event
  2554. type cb_28 from commandbutton within tabpage_3
  2555. integer x = 603
  2556. integer y = 4
  2557. integer width = 297
  2558. integer height = 72
  2559. integer taborder = 40
  2560. integer textsize = -9
  2561. integer weight = 400
  2562. fontcharset fontcharset = gb2312charset!
  2563. fontpitch fontpitch = variable!
  2564. string facename = "宋体"
  2565. string text = "查看附件"
  2566. end type
  2567. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_view_plan')
  2568. end event
  2569. type cb_20 from commandbutton within tabpage_3
  2570. integer x = 2693
  2571. integer y = 4
  2572. integer width = 169
  2573. integer height = 72
  2574. integer taborder = 40
  2575. integer textsize = -9
  2576. integer weight = 400
  2577. fontcharset fontcharset = gb2312charset!
  2578. fontpitch fontpitch = variable!
  2579. string facename = "宋体"
  2580. string text = "刷新"
  2581. end type
  2582. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_plan')
  2583. end event
  2584. type em_edate3 from editmask within tabpage_3
  2585. integer x = 2277
  2586. integer width = 402
  2587. integer height = 84
  2588. integer taborder = 40
  2589. integer textsize = -9
  2590. integer weight = 400
  2591. fontcharset fontcharset = gb2312charset!
  2592. fontpitch fontpitch = variable!
  2593. string facename = "宋体"
  2594. long textcolor = 33554432
  2595. string text = "none"
  2596. alignment alignment = center!
  2597. borderstyle borderstyle = stylelowered!
  2598. maskdatatype maskdatatype = datemask!
  2599. string mask = "yyyy-mm-dd"
  2600. boolean spin = true
  2601. end type
  2602. event constructor;THIS.Text = String(RelativeDate ( Today(), 30 ),'yyyy-mm-dd')
  2603. end event
  2604. event rbuttondown;s_calender_arg s_calender
  2605. s_calender.PointerX = THIS.PointerX()
  2606. s_calender.PointerY = THIS.PointerY()
  2607. s_calender.X = THIS.X
  2608. s_calender.Y = THIS.Y + tab_1.Y
  2609. OpenWithParm(w_calendar,s_calender)
  2610. THIS.Text = String(id_date_selected)
  2611. end event
  2612. type st_5 from statictext within tabpage_3
  2613. integer x = 2171
  2614. integer y = 24
  2615. integer width = 82
  2616. integer height = 48
  2617. integer textsize = -9
  2618. integer weight = 400
  2619. fontcharset fontcharset = gb2312charset!
  2620. fontpitch fontpitch = variable!
  2621. string facename = "宋体"
  2622. long textcolor = 33554432
  2623. long backcolor = 134217739
  2624. string text = "~~"
  2625. alignment alignment = center!
  2626. boolean focusrectangle = false
  2627. end type
  2628. type em_fdate3 from editmask within tabpage_3
  2629. integer x = 1765
  2630. integer width = 402
  2631. integer height = 84
  2632. integer taborder = 10
  2633. integer textsize = -9
  2634. integer weight = 400
  2635. fontcharset fontcharset = gb2312charset!
  2636. fontpitch fontpitch = variable!
  2637. string facename = "宋体"
  2638. long textcolor = 33554432
  2639. string text = "none"
  2640. alignment alignment = center!
  2641. borderstyle borderstyle = stylelowered!
  2642. maskdatatype maskdatatype = datemask!
  2643. string mask = "yyyy-mm-dd"
  2644. boolean spin = true
  2645. end type
  2646. event constructor;THIS.Text = String(RelativeDate ( Today(), -7 ),'yyyy-mm-dd')
  2647. end event
  2648. event rbuttondown;s_calender_arg s_calender
  2649. s_calender.PointerX = THIS.PointerX()
  2650. s_calender.PointerY = THIS.PointerY()
  2651. s_calender.X = THIS.X
  2652. s_calender.Y = THIS.Y + tab_1.Y
  2653. OpenWithParm(w_calendar,s_calender)
  2654. THIS.Text = String(id_date_selected)
  2655. end event
  2656. type cb_15 from commandbutton within tabpage_3
  2657. integer x = 398
  2658. integer y = 4
  2659. integer width = 206
  2660. integer height = 72
  2661. integer taborder = 50
  2662. integer textsize = -9
  2663. integer weight = 400
  2664. fontcharset fontcharset = gb2312charset!
  2665. fontpitch fontpitch = variable!
  2666. string facename = "宋体"
  2667. string text = "删除"
  2668. end type
  2669. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_plan')
  2670. end event
  2671. type cb_14 from commandbutton within tabpage_3
  2672. integer x = 192
  2673. integer y = 4
  2674. integer width = 206
  2675. integer height = 72
  2676. integer taborder = 40
  2677. integer textsize = -9
  2678. integer weight = 400
  2679. fontcharset fontcharset = gb2312charset!
  2680. fontpitch fontpitch = variable!
  2681. string facename = "宋体"
  2682. string text = "修改"
  2683. end type
  2684. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_plan')
  2685. end event
  2686. type cb_13 from commandbutton within tabpage_3
  2687. integer y = 4
  2688. integer width = 192
  2689. integer height = 72
  2690. integer taborder = 40
  2691. integer textsize = -9
  2692. integer weight = 400
  2693. fontcharset fontcharset = gb2312charset!
  2694. fontpitch fontpitch = variable!
  2695. string facename = "宋体"
  2696. string text = "增加"
  2697. end type
  2698. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_plan')
  2699. end event
  2700. type dw_plan from u_dw_rbtnfilter within tabpage_3
  2701. integer y = 88
  2702. integer width = 3506
  2703. integer height = 484
  2704. integer taborder = 20
  2705. string dataobject = "dw_cust_crm_plan"
  2706. boolean hscrollbar = true
  2707. boolean vscrollbar = true
  2708. boolean hsplitscroll = true
  2709. boolean rbutton_filter_use = true
  2710. boolean titleclick_sort_use = true
  2711. end type
  2712. event rowfocuschanged;call super::rowfocuschanged;//PARENT.GetParent().GetParent().TriggerEvent('ue_fj_cnt_plan')
  2713. IF currentrow <= 0 THEN RETURN
  2714. THIS.SelectRow(0,FALSE)
  2715. THIS.SelectRow(currentrow,TRUE)
  2716. end event
  2717. type tabpage_6 from userobject within tab_1
  2718. integer x = 18
  2719. integer y = 96
  2720. integer width = 3506
  2721. integer height = 616
  2722. long backcolor = 134217739
  2723. string text = "投拆"
  2724. long tabtextcolor = 33554432
  2725. long tabbackcolor = 134217739
  2726. long picturemaskcolor = 536870912
  2727. cb_6 cb_6
  2728. st_1 st_1
  2729. em_fdate6 em_fdate6
  2730. em_edate6 em_edate6
  2731. dw_oppose dw_oppose
  2732. end type
  2733. on tabpage_6.create
  2734. this.cb_6=create cb_6
  2735. this.st_1=create st_1
  2736. this.em_fdate6=create em_fdate6
  2737. this.em_edate6=create em_edate6
  2738. this.dw_oppose=create dw_oppose
  2739. this.Control[]={this.cb_6,&
  2740. this.st_1,&
  2741. this.em_fdate6,&
  2742. this.em_edate6,&
  2743. this.dw_oppose}
  2744. end on
  2745. on tabpage_6.destroy
  2746. destroy(this.cb_6)
  2747. destroy(this.st_1)
  2748. destroy(this.em_fdate6)
  2749. destroy(this.em_edate6)
  2750. destroy(this.dw_oppose)
  2751. end on
  2752. type cb_6 from commandbutton within tabpage_6
  2753. integer x = 928
  2754. integer y = 4
  2755. integer width = 169
  2756. integer height = 72
  2757. integer taborder = 40
  2758. integer textsize = -9
  2759. integer weight = 400
  2760. fontcharset fontcharset = gb2312charset!
  2761. fontpitch fontpitch = variable!
  2762. string facename = "宋体"
  2763. string text = "刷新"
  2764. end type
  2765. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_oppose')
  2766. end event
  2767. type st_1 from statictext within tabpage_6
  2768. integer x = 407
  2769. integer y = 24
  2770. integer width = 82
  2771. integer height = 48
  2772. integer textsize = -9
  2773. integer weight = 400
  2774. fontcharset fontcharset = gb2312charset!
  2775. fontpitch fontpitch = variable!
  2776. string facename = "宋体"
  2777. long textcolor = 33554432
  2778. long backcolor = 134217739
  2779. string text = "~~"
  2780. alignment alignment = center!
  2781. boolean focusrectangle = false
  2782. end type
  2783. type em_fdate6 from editmask within tabpage_6
  2784. integer width = 402
  2785. integer height = 84
  2786. integer taborder = 30
  2787. integer textsize = -9
  2788. integer weight = 400
  2789. fontcharset fontcharset = gb2312charset!
  2790. fontpitch fontpitch = variable!
  2791. string facename = "宋体"
  2792. long textcolor = 33554432
  2793. string text = "none"
  2794. alignment alignment = center!
  2795. borderstyle borderstyle = stylelowered!
  2796. maskdatatype maskdatatype = datemask!
  2797. string mask = "yyyy-mm-dd"
  2798. boolean spin = true
  2799. end type
  2800. event constructor;THIS.Text = String(RelativeDate ( Today(), -90 ),'yyyy-mm-dd')
  2801. end event
  2802. event rbuttondown;s_calender_arg s_calender
  2803. s_calender.PointerX = THIS.PointerX()
  2804. s_calender.PointerY = THIS.PointerY()
  2805. s_calender.X = THIS.X
  2806. s_calender.Y = THIS.Y + tab_1.Y
  2807. OpenWithParm(w_calendar,s_calender)
  2808. THIS.Text = String(id_date_selected)
  2809. end event
  2810. type em_edate6 from editmask within tabpage_6
  2811. integer x = 512
  2812. integer width = 402
  2813. integer height = 84
  2814. integer taborder = 30
  2815. integer textsize = -9
  2816. integer weight = 400
  2817. fontcharset fontcharset = gb2312charset!
  2818. fontpitch fontpitch = variable!
  2819. string facename = "宋体"
  2820. long textcolor = 33554432
  2821. string text = "none"
  2822. alignment alignment = center!
  2823. borderstyle borderstyle = stylelowered!
  2824. maskdatatype maskdatatype = datemask!
  2825. string mask = "yyyy-mm-dd"
  2826. boolean spin = true
  2827. end type
  2828. event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
  2829. end event
  2830. event rbuttondown;s_calender_arg s_calender
  2831. s_calender.PointerX = THIS.PointerX()
  2832. s_calender.PointerY = THIS.PointerY()
  2833. s_calender.X = THIS.X
  2834. s_calender.Y = THIS.Y + tab_1.Y
  2835. OpenWithParm(w_calendar,s_calender)
  2836. THIS.Text = String(id_date_selected)
  2837. end event
  2838. type dw_oppose from u_dw_rbtnfilter within tabpage_6
  2839. integer y = 88
  2840. integer width = 3506
  2841. integer height = 484
  2842. integer taborder = 20
  2843. string dataobject = "dw_crm_oppsoe"
  2844. boolean hscrollbar = true
  2845. boolean vscrollbar = true
  2846. boolean hsplitscroll = true
  2847. boolean rbutton_filter_use = true
  2848. boolean titleclick_sort_use = true
  2849. end type
  2850. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  2851. THIS.SelectRow(0,FALSE)
  2852. THIS.SelectRow(currentrow,TRUE)
  2853. end event
  2854. type tabpage_9 from userobject within tab_1
  2855. integer x = 18
  2856. integer y = 96
  2857. integer width = 3506
  2858. integer height = 616
  2859. long backcolor = 134217739
  2860. string text = "样版"
  2861. long tabtextcolor = 33554432
  2862. long tabbackcolor = 134217739
  2863. long picturemaskcolor = 536870912
  2864. st_sample st_sample
  2865. cb_27 cb_27
  2866. cb_26 cb_26
  2867. dw_sample dw_sample
  2868. cb_24 cb_24
  2869. cb_23 cb_23
  2870. cb_22 cb_22
  2871. cb_19 cb_19
  2872. em_edate9 em_edate9
  2873. st_2 st_2
  2874. em_fdate9 em_fdate9
  2875. end type
  2876. on tabpage_9.create
  2877. this.st_sample=create st_sample
  2878. this.cb_27=create cb_27
  2879. this.cb_26=create cb_26
  2880. this.dw_sample=create dw_sample
  2881. this.cb_24=create cb_24
  2882. this.cb_23=create cb_23
  2883. this.cb_22=create cb_22
  2884. this.cb_19=create cb_19
  2885. this.em_edate9=create em_edate9
  2886. this.st_2=create st_2
  2887. this.em_fdate9=create em_fdate9
  2888. this.Control[]={this.st_sample,&
  2889. this.cb_27,&
  2890. this.cb_26,&
  2891. this.dw_sample,&
  2892. this.cb_24,&
  2893. this.cb_23,&
  2894. this.cb_22,&
  2895. this.cb_19,&
  2896. this.em_edate9,&
  2897. this.st_2,&
  2898. this.em_fdate9}
  2899. end on
  2900. on tabpage_9.destroy
  2901. destroy(this.st_sample)
  2902. destroy(this.cb_27)
  2903. destroy(this.cb_26)
  2904. destroy(this.dw_sample)
  2905. destroy(this.cb_24)
  2906. destroy(this.cb_23)
  2907. destroy(this.cb_22)
  2908. destroy(this.cb_19)
  2909. destroy(this.em_edate9)
  2910. destroy(this.st_2)
  2911. destroy(this.em_fdate9)
  2912. end on
  2913. type st_sample from statictext within tabpage_9
  2914. boolean visible = false
  2915. integer x = 1221
  2916. integer y = 16
  2917. integer width = 398
  2918. integer height = 48
  2919. integer textsize = -9
  2920. integer weight = 400
  2921. fontcharset fontcharset = gb2312charset!
  2922. fontpitch fontpitch = variable!
  2923. string facename = "宋体"
  2924. long textcolor = 16711680
  2925. long backcolor = 134217739
  2926. string text = "附件数()"
  2927. boolean focusrectangle = false
  2928. end type
  2929. type cb_27 from commandbutton within tabpage_9
  2930. integer x = 901
  2931. integer y = 4
  2932. integer width = 297
  2933. integer height = 72
  2934. integer taborder = 50
  2935. integer textsize = -9
  2936. integer weight = 400
  2937. fontcharset fontcharset = gb2312charset!
  2938. fontpitch fontpitch = variable!
  2939. string facename = "宋体"
  2940. string text = "添加附件"
  2941. end type
  2942. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_edit_sample')
  2943. end event
  2944. type cb_26 from commandbutton within tabpage_9
  2945. integer x = 603
  2946. integer y = 4
  2947. integer width = 297
  2948. integer height = 72
  2949. integer taborder = 40
  2950. integer textsize = -9
  2951. integer weight = 400
  2952. fontcharset fontcharset = gb2312charset!
  2953. fontpitch fontpitch = variable!
  2954. string facename = "宋体"
  2955. string text = "查看附件"
  2956. end type
  2957. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_view_sample')
  2958. end event
  2959. type dw_sample from u_dw_rbtnfilter within tabpage_9
  2960. integer y = 88
  2961. integer width = 3506
  2962. integer height = 484
  2963. integer taborder = 30
  2964. string dataobject = "dw_cust_crm_sample"
  2965. boolean hscrollbar = true
  2966. boolean vscrollbar = true
  2967. boolean hsplitscroll = true
  2968. boolean rbutton_filter_use = true
  2969. boolean titleclick_sort_use = true
  2970. end type
  2971. event rowfocuschanged;call super::rowfocuschanged;//PARENT.GetParent().GetParent().TriggerEvent('ue_fj_cnt_sample')
  2972. IF currentrow <= 0 THEN RETURN
  2973. THIS.SelectRow(0,FALSE)
  2974. THIS.SelectRow(currentrow,TRUE)
  2975. end event
  2976. type cb_24 from commandbutton within tabpage_9
  2977. integer x = 398
  2978. integer y = 4
  2979. integer width = 206
  2980. integer height = 72
  2981. integer taborder = 50
  2982. integer textsize = -9
  2983. integer weight = 400
  2984. fontcharset fontcharset = gb2312charset!
  2985. fontpitch fontpitch = variable!
  2986. string facename = "宋体"
  2987. string text = "删除"
  2988. end type
  2989. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_sample')
  2990. end event
  2991. type cb_23 from commandbutton within tabpage_9
  2992. integer x = 192
  2993. integer y = 4
  2994. integer width = 206
  2995. integer height = 72
  2996. integer taborder = 40
  2997. integer textsize = -9
  2998. integer weight = 400
  2999. fontcharset fontcharset = gb2312charset!
  3000. fontpitch fontpitch = variable!
  3001. string facename = "宋体"
  3002. string text = "修改"
  3003. end type
  3004. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_sample')
  3005. end event
  3006. type cb_22 from commandbutton within tabpage_9
  3007. integer y = 4
  3008. integer width = 192
  3009. integer height = 72
  3010. integer taborder = 40
  3011. integer textsize = -9
  3012. integer weight = 400
  3013. fontcharset fontcharset = gb2312charset!
  3014. fontpitch fontpitch = variable!
  3015. string facename = "宋体"
  3016. string text = "增加"
  3017. end type
  3018. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_sample')
  3019. end event
  3020. type cb_19 from commandbutton within tabpage_9
  3021. integer x = 2624
  3022. integer y = 4
  3023. integer width = 169
  3024. integer height = 72
  3025. integer taborder = 40
  3026. integer textsize = -9
  3027. integer weight = 400
  3028. fontcharset fontcharset = gb2312charset!
  3029. fontpitch fontpitch = variable!
  3030. string facename = "宋体"
  3031. string text = "刷新"
  3032. end type
  3033. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_sample')
  3034. end event
  3035. type em_edate9 from editmask within tabpage_9
  3036. integer x = 2208
  3037. integer width = 402
  3038. integer height = 84
  3039. integer taborder = 40
  3040. integer textsize = -9
  3041. integer weight = 400
  3042. fontcharset fontcharset = gb2312charset!
  3043. fontpitch fontpitch = variable!
  3044. string facename = "宋体"
  3045. long textcolor = 33554432
  3046. string text = "none"
  3047. alignment alignment = center!
  3048. borderstyle borderstyle = stylelowered!
  3049. maskdatatype maskdatatype = datemask!
  3050. string mask = "yyyy-mm-dd"
  3051. boolean spin = true
  3052. end type
  3053. event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
  3054. end event
  3055. event rbuttondown;s_calender_arg s_calender
  3056. s_calender.PointerX = THIS.PointerX()
  3057. s_calender.PointerY = THIS.PointerY()
  3058. s_calender.X = THIS.X
  3059. s_calender.Y = THIS.Y + tab_1.Y
  3060. OpenWithParm(w_calendar,s_calender)
  3061. THIS.Text = String(id_date_selected)
  3062. end event
  3063. type st_2 from statictext within tabpage_9
  3064. integer x = 2103
  3065. integer y = 24
  3066. integer width = 82
  3067. integer height = 48
  3068. integer textsize = -9
  3069. integer weight = 400
  3070. fontcharset fontcharset = gb2312charset!
  3071. fontpitch fontpitch = variable!
  3072. string facename = "宋体"
  3073. long textcolor = 33554432
  3074. long backcolor = 134217739
  3075. string text = "~~"
  3076. alignment alignment = center!
  3077. boolean focusrectangle = false
  3078. end type
  3079. type em_fdate9 from editmask within tabpage_9
  3080. integer x = 1696
  3081. integer width = 402
  3082. integer height = 84
  3083. integer taborder = 10
  3084. integer textsize = -9
  3085. integer weight = 400
  3086. fontcharset fontcharset = gb2312charset!
  3087. fontpitch fontpitch = variable!
  3088. string facename = "宋体"
  3089. long textcolor = 33554432
  3090. string text = "none"
  3091. alignment alignment = center!
  3092. borderstyle borderstyle = stylelowered!
  3093. maskdatatype maskdatatype = datemask!
  3094. string mask = "yyyy-mm-dd"
  3095. boolean spin = true
  3096. end type
  3097. event constructor;THIS.Text = String(RelativeDate ( Today(), -365 ),'yyyy-mm-dd')
  3098. end event
  3099. event rbuttondown;s_calender_arg s_calender
  3100. s_calender.PointerX = THIS.PointerX()
  3101. s_calender.PointerY = THIS.PointerY()
  3102. s_calender.X = THIS.X
  3103. s_calender.Y = THIS.Y + tab_1.Y
  3104. OpenWithParm(w_calendar,s_calender)
  3105. THIS.Text = String(id_date_selected)
  3106. end event
  3107. type tabpage_4 from userobject within tab_1
  3108. integer x = 18
  3109. integer y = 96
  3110. integer width = 3506
  3111. integer height = 616
  3112. long backcolor = 134217739
  3113. string text = "最新售价"
  3114. long tabtextcolor = 33554432
  3115. long tabbackcolor = 134217739
  3116. long picturemaskcolor = 536870912
  3117. dw_price dw_price
  3118. end type
  3119. on tabpage_4.create
  3120. this.dw_price=create dw_price
  3121. this.Control[]={this.dw_price}
  3122. end on
  3123. on tabpage_4.destroy
  3124. destroy(this.dw_price)
  3125. end on
  3126. type dw_price from u_dw_rbtnfilter within tabpage_4
  3127. integer width = 3506
  3128. integer height = 612
  3129. integer taborder = 20
  3130. string dataobject = "dw_cust_crm_price"
  3131. boolean hscrollbar = true
  3132. boolean vscrollbar = true
  3133. boolean hsplitscroll = true
  3134. boolean rbutton_filter_use = true
  3135. boolean titleclick_sort_use = true
  3136. end type
  3137. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3138. THIS.SelectRow(0,FALSE)
  3139. THIS.SelectRow(currentrow,TRUE)
  3140. end event
  3141. type tabpage_5 from userobject within tab_1
  3142. integer x = 18
  3143. integer y = 96
  3144. integer width = 3506
  3145. integer height = 616
  3146. long backcolor = 134217739
  3147. string text = "订货历史"
  3148. long tabtextcolor = 33554432
  3149. long tabbackcolor = 134217739
  3150. long picturemaskcolor = 536870912
  3151. dw_task dw_task
  3152. end type
  3153. on tabpage_5.create
  3154. this.dw_task=create dw_task
  3155. this.Control[]={this.dw_task}
  3156. end on
  3157. on tabpage_5.destroy
  3158. destroy(this.dw_task)
  3159. end on
  3160. type dw_task from u_dw_rbtnfilter within tabpage_5
  3161. integer width = 3506
  3162. integer height = 616
  3163. integer taborder = 20
  3164. string dataobject = "dw_cust_crm_task"
  3165. boolean hscrollbar = true
  3166. boolean vscrollbar = true
  3167. boolean hsplitscroll = true
  3168. boolean rbutton_filter_use = true
  3169. boolean titleclick_sort_use = true
  3170. end type
  3171. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3172. THIS.SelectRow(0,FALSE)
  3173. THIS.SelectRow(currentrow,TRUE)
  3174. end event
  3175. event doubleclicked;call super::doubleclicked;//IF row > 0 THEN
  3176. // String ls_code
  3177. // Long ll_scid
  3178. //
  3179. // ll_scid = THIS.Object.u_saletask_scid[row]
  3180. // ls_code = THIS.Object.u_saletask_taskcode[row]
  3181. //
  3182. // f_open_win(ll_scid,ls_code)
  3183. //END IF
  3184. //
  3185. end event
  3186. type tabpage_12 from userobject within tab_1
  3187. integer x = 18
  3188. integer y = 96
  3189. integer width = 3506
  3190. integer height = 616
  3191. long backcolor = 134217739
  3192. string text = "发货历史"
  3193. long tabtextcolor = 33554432
  3194. long tabbackcolor = 134217739
  3195. long picturemaskcolor = 536870912
  3196. dw_outware dw_outware
  3197. end type
  3198. on tabpage_12.create
  3199. this.dw_outware=create dw_outware
  3200. this.Control[]={this.dw_outware}
  3201. end on
  3202. on tabpage_12.destroy
  3203. destroy(this.dw_outware)
  3204. end on
  3205. type dw_outware from u_dw_rbtnfilter within tabpage_12
  3206. integer width = 3506
  3207. integer height = 616
  3208. string dataobject = "dw_cust_crm_outware"
  3209. boolean hscrollbar = true
  3210. boolean vscrollbar = true
  3211. boolean hsplitscroll = true
  3212. boolean rbutton_filter_use = true
  3213. boolean titleclick_sort_use = true
  3214. end type
  3215. event doubleclicked;call super::doubleclicked;//IF row > 0 THEN
  3216. // String ls_code
  3217. // Long ll_scid
  3218. //
  3219. // ll_scid = THIS.Object.u_saletask_scid[row]
  3220. // ls_code = THIS.Object.u_saletask_taskcode[row]
  3221. //
  3222. // f_open_win(ll_scid,ls_code)
  3223. //END IF
  3224. //
  3225. end event
  3226. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3227. THIS.SelectRow(0,FALSE)
  3228. THIS.SelectRow(currentrow,TRUE)
  3229. end event
  3230. type tabpage_10 from userobject within tab_1
  3231. integer x = 18
  3232. integer y = 96
  3233. integer width = 3506
  3234. integer height = 616
  3235. long backcolor = 134217739
  3236. string text = "邮件接收历史"
  3237. long tabtextcolor = 33554432
  3238. long tabbackcolor = 134217739
  3239. long picturemaskcolor = 536870912
  3240. dw_rev dw_rev
  3241. cb_32 cb_32
  3242. em_edate4 em_edate4
  3243. st_7 st_7
  3244. em_fdate4 em_fdate4
  3245. end type
  3246. on tabpage_10.create
  3247. this.dw_rev=create dw_rev
  3248. this.cb_32=create cb_32
  3249. this.em_edate4=create em_edate4
  3250. this.st_7=create st_7
  3251. this.em_fdate4=create em_fdate4
  3252. this.Control[]={this.dw_rev,&
  3253. this.cb_32,&
  3254. this.em_edate4,&
  3255. this.st_7,&
  3256. this.em_fdate4}
  3257. end on
  3258. on tabpage_10.destroy
  3259. destroy(this.dw_rev)
  3260. destroy(this.cb_32)
  3261. destroy(this.em_edate4)
  3262. destroy(this.st_7)
  3263. destroy(this.em_fdate4)
  3264. end on
  3265. type dw_rev from u_dw_rbtnfilter within tabpage_10
  3266. integer y = 88
  3267. integer width = 3506
  3268. integer height = 524
  3269. integer taborder = 30
  3270. string dataobject = "dw_email_crm_rev"
  3271. boolean hscrollbar = true
  3272. boolean vscrollbar = true
  3273. boolean hsplitscroll = true
  3274. boolean rbutton_filter_use = true
  3275. boolean titleclick_sort_use = true
  3276. end type
  3277. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3278. THIS.SelectRow(0,FALSE)
  3279. THIS.SelectRow(currentrow,TRUE)
  3280. end event
  3281. event doubleclicked;call super::doubleclicked;IF dw_rev.GetRow() = 0 THEN RETURN
  3282. s_email_set s_parm
  3283. String ls_msg
  3284. s_parm.sendid = dw_rev.Object.id[dw_rev.GetRow()]
  3285. IF dw_rev.Object.u_email_msg_mailtype[dw_rev.GetRow()] = '发件' THEN
  3286. OpenWithParm(w_email_send_new,s_parm)
  3287. ELSE
  3288. Long arr[]
  3289. Long i
  3290. FOR i = 1 To dw_rev.RowCount()
  3291. arr[i] = dw_rev.Object.id[i]
  3292. NEXT
  3293. s_parm.arr = arr
  3294. s_parm.cur = dw_rev.GetRow()
  3295. s_parm.title="已接收的邮件"
  3296. OpenWithParm(w_email_rev, s_parm)
  3297. END IF
  3298. end event
  3299. type cb_32 from commandbutton within tabpage_10
  3300. integer x = 928
  3301. integer y = 4
  3302. integer width = 169
  3303. integer height = 72
  3304. integer taborder = 50
  3305. integer textsize = -9
  3306. integer weight = 400
  3307. fontcharset fontcharset = gb2312charset!
  3308. fontpitch fontpitch = variable!
  3309. string facename = "宋体"
  3310. string text = "刷新"
  3311. end type
  3312. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_rev')
  3313. end event
  3314. type em_edate4 from editmask within tabpage_10
  3315. integer x = 512
  3316. integer width = 402
  3317. integer height = 84
  3318. integer taborder = 40
  3319. integer textsize = -9
  3320. integer weight = 400
  3321. fontcharset fontcharset = gb2312charset!
  3322. fontpitch fontpitch = variable!
  3323. string facename = "宋体"
  3324. long textcolor = 33554432
  3325. string text = "none"
  3326. alignment alignment = center!
  3327. borderstyle borderstyle = stylelowered!
  3328. maskdatatype maskdatatype = datemask!
  3329. string mask = "yyyy-mm-dd"
  3330. boolean spin = true
  3331. end type
  3332. event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
  3333. end event
  3334. event rbuttondown;s_calender_arg s_calender
  3335. s_calender.PointerX = THIS.PointerX()
  3336. s_calender.PointerY = THIS.PointerY()
  3337. s_calender.X = THIS.X
  3338. s_calender.Y = THIS.Y + tab_1.Y
  3339. OpenWithParm(w_calendar,s_calender)
  3340. THIS.Text = String(id_date_selected)
  3341. end event
  3342. type st_7 from statictext within tabpage_10
  3343. integer x = 407
  3344. integer y = 24
  3345. integer width = 82
  3346. integer height = 48
  3347. integer textsize = -9
  3348. integer weight = 400
  3349. fontcharset fontcharset = gb2312charset!
  3350. fontpitch fontpitch = variable!
  3351. string facename = "宋体"
  3352. long textcolor = 33554432
  3353. long backcolor = 134217739
  3354. string text = "~~"
  3355. alignment alignment = center!
  3356. boolean focusrectangle = false
  3357. end type
  3358. type em_fdate4 from editmask within tabpage_10
  3359. integer width = 402
  3360. integer height = 84
  3361. integer taborder = 40
  3362. integer textsize = -9
  3363. integer weight = 400
  3364. fontcharset fontcharset = gb2312charset!
  3365. fontpitch fontpitch = variable!
  3366. string facename = "宋体"
  3367. long textcolor = 33554432
  3368. string text = "none"
  3369. alignment alignment = center!
  3370. borderstyle borderstyle = stylelowered!
  3371. maskdatatype maskdatatype = datemask!
  3372. string mask = "yyyy-mm-dd"
  3373. boolean spin = true
  3374. end type
  3375. event constructor;THIS.Text = String(RelativeDate ( Today(), -90 ),'yyyy-mm-dd')
  3376. end event
  3377. event rbuttondown;s_calender_arg s_calender
  3378. s_calender.PointerX = THIS.PointerX()
  3379. s_calender.PointerY = THIS.PointerY()
  3380. s_calender.X = THIS.X
  3381. s_calender.Y = THIS.Y + tab_1.Y
  3382. OpenWithParm(w_calendar,s_calender)
  3383. THIS.Text = String(id_date_selected)
  3384. end event
  3385. type tabpage_11 from userobject within tab_1
  3386. integer x = 18
  3387. integer y = 96
  3388. integer width = 3506
  3389. integer height = 616
  3390. long backcolor = 134217739
  3391. string text = "邮件发送历史"
  3392. long tabtextcolor = 33554432
  3393. long tabbackcolor = 134217739
  3394. long picturemaskcolor = 536870912
  3395. dw_send dw_send
  3396. cb_33 cb_33
  3397. em_edate5 em_edate5
  3398. st_8 st_8
  3399. em_fdate5 em_fdate5
  3400. end type
  3401. on tabpage_11.create
  3402. this.dw_send=create dw_send
  3403. this.cb_33=create cb_33
  3404. this.em_edate5=create em_edate5
  3405. this.st_8=create st_8
  3406. this.em_fdate5=create em_fdate5
  3407. this.Control[]={this.dw_send,&
  3408. this.cb_33,&
  3409. this.em_edate5,&
  3410. this.st_8,&
  3411. this.em_fdate5}
  3412. end on
  3413. on tabpage_11.destroy
  3414. destroy(this.dw_send)
  3415. destroy(this.cb_33)
  3416. destroy(this.em_edate5)
  3417. destroy(this.st_8)
  3418. destroy(this.em_fdate5)
  3419. end on
  3420. type dw_send from u_dw_rbtnfilter within tabpage_11
  3421. integer y = 88
  3422. integer width = 3506
  3423. integer height = 484
  3424. integer taborder = 30
  3425. string dataobject = "dw_email_crm_send"
  3426. boolean hscrollbar = true
  3427. boolean vscrollbar = true
  3428. boolean hsplitscroll = true
  3429. boolean rbutton_filter_use = true
  3430. boolean titleclick_sort_use = true
  3431. end type
  3432. event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
  3433. THIS.SelectRow(0,FALSE)
  3434. THIS.SelectRow(currentrow,TRUE)
  3435. end event
  3436. event doubleclicked;call super::doubleclicked;IF dw_send.GetRow() = 0 THEN RETURN
  3437. s_email_set s_parm
  3438. String ls_msg
  3439. Long arr[]
  3440. Long i
  3441. s_parm.sendid = dw_send.Object.id[dw_send.GetRow()]
  3442. FOR i = 1 To dw_send.RowCount()
  3443. arr[i] = dw_send.Object.id[i]
  3444. NEXT
  3445. s_parm.arr = arr
  3446. s_parm.cur = dw_send.GetRow()
  3447. s_parm.title="已发送的邮件"
  3448. OpenWithParm(w_email_rev, s_parm)
  3449. end event
  3450. type cb_33 from commandbutton within tabpage_11
  3451. integer x = 928
  3452. integer y = 4
  3453. integer width = 169
  3454. integer height = 72
  3455. integer taborder = 30
  3456. integer textsize = -9
  3457. integer weight = 400
  3458. fontcharset fontcharset = gb2312charset!
  3459. fontpitch fontpitch = variable!
  3460. string facename = "宋体"
  3461. string text = "刷新"
  3462. end type
  3463. event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_send')
  3464. end event
  3465. type em_edate5 from editmask within tabpage_11
  3466. integer x = 512
  3467. integer width = 402
  3468. integer height = 84
  3469. integer taborder = 40
  3470. integer textsize = -9
  3471. integer weight = 400
  3472. fontcharset fontcharset = gb2312charset!
  3473. fontpitch fontpitch = variable!
  3474. string facename = "宋体"
  3475. long textcolor = 33554432
  3476. string text = "none"
  3477. alignment alignment = center!
  3478. borderstyle borderstyle = stylelowered!
  3479. maskdatatype maskdatatype = datemask!
  3480. string mask = "yyyy-mm-dd"
  3481. boolean spin = true
  3482. end type
  3483. event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
  3484. end event
  3485. event rbuttondown;s_calender_arg s_calender
  3486. s_calender.PointerX = THIS.PointerX()
  3487. s_calender.PointerY = THIS.PointerY()
  3488. s_calender.X = THIS.X
  3489. s_calender.Y = THIS.Y + tab_1.Y
  3490. OpenWithParm(w_calendar,s_calender)
  3491. THIS.Text = String(id_date_selected)
  3492. end event
  3493. type st_8 from statictext within tabpage_11
  3494. integer x = 407
  3495. integer y = 24
  3496. integer width = 82
  3497. integer height = 48
  3498. integer textsize = -9
  3499. integer weight = 400
  3500. fontcharset fontcharset = gb2312charset!
  3501. fontpitch fontpitch = variable!
  3502. string facename = "宋体"
  3503. long textcolor = 33554432
  3504. long backcolor = 134217739
  3505. string text = "~~"
  3506. alignment alignment = center!
  3507. boolean focusrectangle = false
  3508. end type
  3509. type em_fdate5 from editmask within tabpage_11
  3510. integer width = 402
  3511. integer height = 84
  3512. integer taborder = 40
  3513. integer textsize = -9
  3514. integer weight = 400
  3515. fontcharset fontcharset = gb2312charset!
  3516. fontpitch fontpitch = variable!
  3517. string facename = "宋体"
  3518. long textcolor = 33554432
  3519. string text = "none"
  3520. alignment alignment = center!
  3521. borderstyle borderstyle = stylelowered!
  3522. maskdatatype maskdatatype = datemask!
  3523. string mask = "yyyy-mm-dd"
  3524. boolean spin = true
  3525. end type
  3526. event constructor;THIS.Text = String(RelativeDate ( Today(), -90 ),'yyyy-mm-dd')
  3527. end event
  3528. event rbuttondown;s_calender_arg s_calender
  3529. s_calender.PointerX = THIS.PointerX()
  3530. s_calender.PointerY = THIS.PointerY()
  3531. s_calender.X = THIS.X
  3532. s_calender.Y = THIS.Y + tab_1.Y
  3533. OpenWithParm(w_calendar,s_calender)
  3534. THIS.Text = String(id_date_selected)
  3535. end event
  3536. type cb_3 from uo_imflatbutton within w_cust_crm
  3537. integer x = 302
  3538. integer width = 151
  3539. integer height = 164
  3540. integer taborder = 30
  3541. boolean bringtotop = true
  3542. string text = "增加"
  3543. string normalpicname = "new.bmp"
  3544. integer picsize = 16
  3545. toolbaralignment pic_align = alignattop!
  3546. boolean border = false
  3547. end type
  3548. event clicked;call super::clicked;IF NOT f_power_ind(1258) THEN
  3549. MessageBox('提示','你没有使用权限!',information!,ok!)
  3550. RETURN
  3551. END IF
  3552. Long ll_row
  3553. s_custom s_cust
  3554. s_cust.cusareaid = cur_cusareaid
  3555. s_cust.cusid = 0
  3556. OpenWithParm(w_cust_crm_add,s_cust)
  3557. cb_1.TriggerEvent(Clicked!)
  3558. end event
  3559. type cb_4 from uo_imflatbutton within w_cust_crm
  3560. integer x = 453
  3561. integer width = 151
  3562. integer height = 164
  3563. integer taborder = 30
  3564. boolean bringtotop = true
  3565. string text = "修改"
  3566. string normalpicname = "open.bmp"
  3567. integer picsize = 16
  3568. toolbaralignment pic_align = alignattop!
  3569. boolean border = false
  3570. end type
  3571. event clicked;call super::clicked;IF NOT f_power_ind(1741) THEN
  3572. MessageBox('提示','你没有使用权限!',information!,ok!)
  3573. RETURN
  3574. END IF
  3575. Long ll_row
  3576. s_custom s_cust
  3577. dw_1.AcceptText()
  3578. ll_row = dw_1.GetRow()
  3579. IF ll_row <= 0 THEN
  3580. MessageBox('提示','请先选择客户',information!,ok!)
  3581. RETURN
  3582. END IF
  3583. s_cust.cusid = dw_1.Object.cusid[ll_row]
  3584. OpenWithParm(w_cust_crm_add,s_cust)
  3585. cb_1.TriggerEvent(Clicked!)
  3586. end event
  3587. type cb_5 from uo_imflatbutton within w_cust_crm
  3588. integer x = 603
  3589. integer width = 151
  3590. integer height = 164
  3591. integer taborder = 40
  3592. boolean bringtotop = true
  3593. string text = "删除"
  3594. string normalpicname = "delete.bmp"
  3595. integer picsize = 16
  3596. toolbaralignment pic_align = alignattop!
  3597. boolean border = false
  3598. end type
  3599. event clicked;call super::clicked;IF NOT f_power_ind(1259) THEN
  3600. MessageBox('提示','你没有使用权限!',information!,ok!)
  3601. RETURN
  3602. END IF
  3603. Long LS_id
  3604. Long LS_LONG = 0
  3605. String ls_code,arg_msg
  3606. IF dw_1.GetRow() <= 0 THEN
  3607. MessageBox('提示','没有操作目标记录!',information!,ok!)
  3608. RETURN
  3609. END IF
  3610. IF MessageBox ("询问","是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
  3611. RETURN
  3612. END IF
  3613. LS_id = dw_1.Object.cusid[dw_1.GetRow()]
  3614. ls_code = dw_1.Object.cuscode[dw_1.GetRow()]
  3615. if uo_cus.uof_del_cust(LS_id,arg_msg,true) = 0 then
  3616. MessageBox ("错误","删除客户资料操作失败!(请重试!)"+arg_msg,stopsign!,ok!)
  3617. RETURN
  3618. END IF
  3619. dw_1.SetRedraw (FALSE)
  3620. dw_1.DeleteRow (0)
  3621. dw_1.TriggerEvent (RowFocusChanged!)
  3622. dw_1.SetRedraw (TRUE)
  3623. f_setsysoplog('定义资料','客户定义资料删除,ID:'+String(LS_id)+',code:'+ls_code,arg_msg,TRUE)
  3624. end event
  3625. type ddlb_1 from dropdownlistbox within w_cust_crm
  3626. integer x = 1938
  3627. integer y = 184
  3628. integer width = 261
  3629. integer height = 300
  3630. integer taborder = 50
  3631. boolean bringtotop = true
  3632. integer textsize = -9
  3633. integer weight = 400
  3634. fontcharset fontcharset = gb2312charset!
  3635. fontpitch fontpitch = variable!
  3636. string facename = "宋体"
  3637. long textcolor = 33554432
  3638. string text = "有效"
  3639. boolean sorted = false
  3640. string item[] = {"[全部]","有效","无效"}
  3641. borderstyle borderstyle = stylelowered!
  3642. end type
  3643. event selectionchanged;IF THIS.Text = '有效' THEN
  3644. ins_inuse = 1
  3645. ELSEIF THIS.Text = '无效' THEN
  3646. ins_inuse = 0
  3647. ELSE
  3648. ins_inuse = -1
  3649. END IF
  3650. cb_1.TriggerEvent(Clicked!)
  3651. end event
  3652. type ddlb_2 from dropdownlistbox within w_cust_crm
  3653. integer x = 1586
  3654. integer y = 184
  3655. integer width = 334
  3656. integer height = 656
  3657. integer taborder = 60
  3658. boolean bringtotop = true
  3659. integer textsize = -9
  3660. integer weight = 400
  3661. fontcharset fontcharset = gb2312charset!
  3662. fontpitch fontpitch = variable!
  3663. string facename = "宋体"
  3664. long textcolor = 33554432
  3665. string text = "[全部]"
  3666. boolean sorted = false
  3667. string item[] = {"[全部]","公共","准客户","正式","黑名单"}
  3668. borderstyle borderstyle = stylelowered!
  3669. end type
  3670. event selectionchanged;IF This.Text = '正式' THEN
  3671. ins_state = 1
  3672. ELSEIF This.Text = '公共' THEN
  3673. ins_state = 0
  3674. ELSEIF This.Text = '黑名单' THEN
  3675. ins_state = 2
  3676. ELSEIF This.Text = '准客户' THEN
  3677. ins_state = 3
  3678. ELSE
  3679. ins_state = -1
  3680. END IF
  3681. cb_1.TriggerEvent(Clicked!)
  3682. end event
  3683. type cb_audit from uo_imflatbutton within w_cust_crm
  3684. boolean visible = false
  3685. integer x = 603
  3686. integer width = 151
  3687. integer height = 164
  3688. integer taborder = 30
  3689. boolean bringtotop = true
  3690. string text = "设置"
  3691. string normalpicname = "audit.bmp"
  3692. integer picsize = 16
  3693. toolbaralignment pic_align = alignattop!
  3694. boolean border = false
  3695. end type
  3696. event clicked;call super::clicked;m_Dfc_Control_PopupMenu dmPopupMenu
  3697. string menustr
  3698. menustr="Text=设正式客户~tEvent=ue_set_cust_ok"
  3699. menustr=menustr + "|" + "Text=设非正式客户~tEvent=ue_set_cust_notok"
  3700. menustr=menustr + "|" + "Text=设黑名单客户~tEvent=ue_set_cust_blacklist"
  3701. menustr=menustr + "|" + "Text=-"
  3702. menustr=menustr + "|" + "Text=查看附件~tEvent=ue_fj_view_cust"
  3703. menustr=menustr + "|" + "Text=添加附件~tEvent=ue_fj_edit_cust"
  3704. if len(trim(menustr))<>0 then
  3705. dmPopupMenu = Create m_Dfc_Control_PopupMenu
  3706. dmPopupMenu.mf_BuildMenu(This, menustr)
  3707. dmPopupMenu.mf_PopMenu()
  3708. Destroy dmPopupMenu
  3709. end if
  3710. end event
  3711. type cb_other from uo_imflatbutton within w_cust_crm
  3712. integer x = 754
  3713. integer width = 274
  3714. integer height = 164
  3715. integer taborder = 40
  3716. boolean bringtotop = true
  3717. string text = "辅助功能"
  3718. string normalpicname = "other.bmp"
  3719. integer picsize = 16
  3720. toolbaralignment pic_align = alignattop!
  3721. boolean border = false
  3722. end type
  3723. event clicked;call super::clicked;m_Dfc_Control_PopupMenu dmPopupMenu
  3724. String menustr
  3725. //menustr="Text=发送邮件~tEvent=ue_email_send"
  3726. menustr = menustr + "|" + "Text=邮件管理~tEvent=ue_email_view"
  3727. menustr = menustr + "|" + "Text=-"
  3728. menustr = menustr + "|" + "Text=业务员设定~tEvent=ue_outrep_def"
  3729. menustr = menustr + "|" + "Text=公共客户批设置业务员~tEvent=ue_outrep_p_custype"
  3730. menustr = menustr + "|" + "Text=正式客户变更业务员~tEvent=ue_outrep_trans"
  3731. menustr = menustr + "|" + "Text=-"
  3732. menustr = menustr + "|" + "Text=申请准客户~tEvent=ue_rq_cust"
  3733. IF Len(Trim(menustr)) <> 0 THEN
  3734. dmPopupMenu = Create m_Dfc_Control_PopupMenu
  3735. dmPopupMenu.mf_BuildMenu(This, menustr)
  3736. dmPopupMenu.mf_PopMenu()
  3737. Destroy dmPopupMenu
  3738. END IF
  3739. end event
  3740. type st_10 from statictext within w_cust_crm
  3741. integer x = 2999
  3742. integer y = 204
  3743. integer width = 96
  3744. integer height = 60
  3745. boolean bringtotop = true
  3746. integer textsize = -9
  3747. integer weight = 400
  3748. fontcharset fontcharset = gb2312charset!
  3749. fontpitch fontpitch = variable!
  3750. string facename = "宋体"
  3751. long textcolor = 33554432
  3752. long backcolor = 134217739
  3753. string text = "天"
  3754. alignment alignment = center!
  3755. boolean focusrectangle = false
  3756. end type
  3757. type cbx_unsale from checkbox within w_cust_crm
  3758. integer x = 2217
  3759. integer y = 196
  3760. integer width = 370
  3761. integer height = 60
  3762. boolean bringtotop = true
  3763. integer textsize = -9
  3764. integer weight = 400
  3765. fontcharset fontcharset = gb2312charset!
  3766. fontpitch fontpitch = variable!
  3767. string facename = "宋体"
  3768. long textcolor = 33554432
  3769. long backcolor = 134217739
  3770. string text = "最后发货"
  3771. end type
  3772. type em_unsale from editmask within w_cust_crm
  3773. integer x = 2793
  3774. integer y = 192
  3775. integer width = 201
  3776. integer height = 84
  3777. integer taborder = 30
  3778. boolean bringtotop = true
  3779. integer textsize = -9
  3780. integer weight = 400
  3781. fontcharset fontcharset = gb2312charset!
  3782. fontpitch fontpitch = variable!
  3783. string facename = "宋体"
  3784. long textcolor = 33554432
  3785. string text = "90"
  3786. alignment alignment = center!
  3787. borderstyle borderstyle = stylelowered!
  3788. string mask = "##0"
  3789. end type
  3790. type cbx_untask from checkbox within w_cust_crm
  3791. integer x = 3118
  3792. integer y = 196
  3793. integer width = 370
  3794. integer height = 60
  3795. boolean bringtotop = true
  3796. integer textsize = -9
  3797. integer weight = 400
  3798. fontcharset fontcharset = gb2312charset!
  3799. fontpitch fontpitch = variable!
  3800. string facename = "宋体"
  3801. long textcolor = 33554432
  3802. long backcolor = 134217739
  3803. string text = "最后订货"
  3804. end type
  3805. type em_untask from editmask within w_cust_crm
  3806. integer x = 3698
  3807. integer y = 200
  3808. integer width = 201
  3809. integer height = 84
  3810. integer taborder = 60
  3811. boolean bringtotop = true
  3812. integer textsize = -9
  3813. integer weight = 400
  3814. fontcharset fontcharset = gb2312charset!
  3815. fontpitch fontpitch = variable!
  3816. string facename = "宋体"
  3817. long textcolor = 33554432
  3818. string text = "90"
  3819. alignment alignment = center!
  3820. borderstyle borderstyle = stylelowered!
  3821. string mask = "##0"
  3822. end type
  3823. type st_9 from statictext within w_cust_crm
  3824. integer x = 3904
  3825. integer y = 212
  3826. integer width = 96
  3827. integer height = 60
  3828. boolean bringtotop = true
  3829. integer textsize = -9
  3830. integer weight = 400
  3831. fontcharset fontcharset = gb2312charset!
  3832. fontpitch fontpitch = variable!
  3833. string facename = "宋体"
  3834. long textcolor = 33554432
  3835. long backcolor = 134217739
  3836. string text = "天"
  3837. alignment alignment = center!
  3838. boolean focusrectangle = false
  3839. end type
  3840. type st_11 from statictext within w_cust_crm
  3841. integer x = 768
  3842. integer y = 196
  3843. integer width = 320
  3844. integer height = 60
  3845. boolean bringtotop = true
  3846. integer textsize = -9
  3847. integer weight = 400
  3848. fontcharset fontcharset = gb2312charset!
  3849. fontpitch fontpitch = variable!
  3850. string facename = "宋体"
  3851. long textcolor = 33554432
  3852. long backcolor = 134217739
  3853. string text = "电话号码含:"
  3854. boolean focusrectangle = false
  3855. end type
  3856. type sle_tel_number from u_sleedit within w_cust_crm
  3857. integer x = 1070
  3858. integer y = 180
  3859. integer taborder = 20
  3860. boolean bringtotop = true
  3861. end type
  3862. event inputchanged;call super::inputchanged;PARENT.TRIGGEREVENT("ue_filter_telnumber")
  3863. end event
  3864. type ddlb_unsale from dropdownlistbox within w_cust_crm
  3865. integer x = 2551
  3866. integer y = 188
  3867. integer width = 224
  3868. integer height = 440
  3869. integer taborder = 50
  3870. boolean bringtotop = true
  3871. integer textsize = -9
  3872. integer weight = 400
  3873. fontcharset fontcharset = gb2312charset!
  3874. fontpitch fontpitch = variable!
  3875. string facename = "宋体"
  3876. long textcolor = 33554432
  3877. string text = ">="
  3878. boolean sorted = false
  3879. string item[] = {">=",">","<=","<","="}
  3880. borderstyle borderstyle = stylelowered!
  3881. end type
  3882. type ddlb_untask from dropdownlistbox within w_cust_crm
  3883. integer x = 3447
  3884. integer y = 196
  3885. integer width = 224
  3886. integer height = 424
  3887. integer taborder = 70
  3888. boolean bringtotop = true
  3889. integer textsize = -9
  3890. integer weight = 400
  3891. fontcharset fontcharset = gb2312charset!
  3892. fontpitch fontpitch = variable!
  3893. string facename = "宋体"
  3894. long textcolor = 33554432
  3895. string text = ">="
  3896. boolean sorted = false
  3897. string item[] = {">=",">","<=","<","="}
  3898. borderstyle borderstyle = stylelowered!
  3899. end type