w_cust_crm_rq_audit.srw 97 KB

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