w_cust_crm_rq.srw 92 KB

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