123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809 |
- $PBExportHeader$w_cust_crm.srw
- forward
- global type w_cust_crm from w_publ_easyq
- end type
- type tv_1 from uo_tv_cusarea within w_cust_crm
- end type
- type tab_1 from tab within w_cust_crm
- end type
- type tabpage_1 from userobject within tab_1
- end type
- type cb_12 from commandbutton within tabpage_1
- end type
- type cb_8 from commandbutton within tabpage_1
- end type
- type cb_7 from commandbutton within tabpage_1
- end type
- type dw_rep from u_dw_rbtnfilter within tabpage_1
- end type
- type tabpage_1 from userobject within tab_1
- cb_12 cb_12
- cb_8 cb_8
- cb_7 cb_7
- dw_rep dw_rep
- end type
- type tabpage_8 from userobject within tab_1
- end type
- type dw_item from u_dw_rbtnfilter within tabpage_8
- end type
- type cb_25 from commandbutton within tabpage_8
- end type
- type tabpage_8 from userobject within tab_1
- dw_item dw_item
- cb_25 cb_25
- end type
- type tabpage_7 from userobject within tab_1
- end type
- type cb_18 from commandbutton within tabpage_7
- end type
- type cb_17 from commandbutton within tabpage_7
- end type
- type cb_16 from commandbutton within tabpage_7
- end type
- type dw_station from u_dw_rbtnfilter within tabpage_7
- end type
- type tabpage_7 from userobject within tab_1
- cb_18 cb_18
- cb_17 cb_17
- cb_16 cb_16
- dw_station dw_station
- end type
- type tabpage_2 from userobject within tab_1
- end type
- type st_interview from statictext within tabpage_2
- end type
- type cb_31 from commandbutton within tabpage_2
- end type
- type cb_30 from commandbutton within tabpage_2
- end type
- type cb_21 from commandbutton within tabpage_2
- end type
- type em_edate2 from editmask within tabpage_2
- end type
- type st_6 from statictext within tabpage_2
- end type
- type em_fdate2 from editmask within tabpage_2
- end type
- type cb_11 from commandbutton within tabpage_2
- end type
- type cb_10 from commandbutton within tabpage_2
- end type
- type cb_9 from commandbutton within tabpage_2
- end type
- type dw_interview from u_dw_rbtnfilter within tabpage_2
- end type
- type tabpage_2 from userobject within tab_1
- st_interview st_interview
- cb_31 cb_31
- cb_30 cb_30
- cb_21 cb_21
- em_edate2 em_edate2
- st_6 st_6
- em_fdate2 em_fdate2
- cb_11 cb_11
- cb_10 cb_10
- cb_9 cb_9
- dw_interview dw_interview
- end type
- type tabpage_3 from userobject within tab_1
- end type
- type st_plan from statictext within tabpage_3
- end type
- type cb_29 from commandbutton within tabpage_3
- end type
- type cb_28 from commandbutton within tabpage_3
- end type
- type cb_20 from commandbutton within tabpage_3
- end type
- type em_edate3 from editmask within tabpage_3
- end type
- type st_5 from statictext within tabpage_3
- end type
- type em_fdate3 from editmask within tabpage_3
- end type
- type cb_15 from commandbutton within tabpage_3
- end type
- type cb_14 from commandbutton within tabpage_3
- end type
- type cb_13 from commandbutton within tabpage_3
- end type
- type dw_plan from u_dw_rbtnfilter within tabpage_3
- end type
- type tabpage_3 from userobject within tab_1
- st_plan st_plan
- cb_29 cb_29
- cb_28 cb_28
- cb_20 cb_20
- em_edate3 em_edate3
- st_5 st_5
- em_fdate3 em_fdate3
- cb_15 cb_15
- cb_14 cb_14
- cb_13 cb_13
- dw_plan dw_plan
- end type
- type tabpage_6 from userobject within tab_1
- end type
- type cb_6 from commandbutton within tabpage_6
- end type
- type st_1 from statictext within tabpage_6
- end type
- type em_fdate6 from editmask within tabpage_6
- end type
- type em_edate6 from editmask within tabpage_6
- end type
- type dw_oppose from u_dw_rbtnfilter within tabpage_6
- end type
- type tabpage_6 from userobject within tab_1
- cb_6 cb_6
- st_1 st_1
- em_fdate6 em_fdate6
- em_edate6 em_edate6
- dw_oppose dw_oppose
- end type
- type tabpage_9 from userobject within tab_1
- end type
- type st_sample from statictext within tabpage_9
- end type
- type cb_27 from commandbutton within tabpage_9
- end type
- type cb_26 from commandbutton within tabpage_9
- end type
- type dw_sample from u_dw_rbtnfilter within tabpage_9
- end type
- type cb_24 from commandbutton within tabpage_9
- end type
- type cb_23 from commandbutton within tabpage_9
- end type
- type cb_22 from commandbutton within tabpage_9
- end type
- type cb_19 from commandbutton within tabpage_9
- end type
- type em_edate9 from editmask within tabpage_9
- end type
- type st_2 from statictext within tabpage_9
- end type
- type em_fdate9 from editmask within tabpage_9
- end type
- type tabpage_9 from userobject within tab_1
- st_sample st_sample
- cb_27 cb_27
- cb_26 cb_26
- dw_sample dw_sample
- cb_24 cb_24
- cb_23 cb_23
- cb_22 cb_22
- cb_19 cb_19
- em_edate9 em_edate9
- st_2 st_2
- em_fdate9 em_fdate9
- end type
- type tabpage_4 from userobject within tab_1
- end type
- type dw_price from u_dw_rbtnfilter within tabpage_4
- end type
- type tabpage_4 from userobject within tab_1
- dw_price dw_price
- end type
- type tabpage_5 from userobject within tab_1
- end type
- type dw_task from u_dw_rbtnfilter within tabpage_5
- end type
- type tabpage_5 from userobject within tab_1
- dw_task dw_task
- end type
- type tabpage_12 from userobject within tab_1
- end type
- type dw_outware from u_dw_rbtnfilter within tabpage_12
- end type
- type tabpage_12 from userobject within tab_1
- dw_outware dw_outware
- end type
- type tabpage_10 from userobject within tab_1
- end type
- type dw_rev from u_dw_rbtnfilter within tabpage_10
- end type
- type cb_32 from commandbutton within tabpage_10
- end type
- type em_edate4 from editmask within tabpage_10
- end type
- type st_7 from statictext within tabpage_10
- end type
- type em_fdate4 from editmask within tabpage_10
- end type
- type tabpage_10 from userobject within tab_1
- dw_rev dw_rev
- cb_32 cb_32
- em_edate4 em_edate4
- st_7 st_7
- em_fdate4 em_fdate4
- end type
- type tabpage_11 from userobject within tab_1
- end type
- type dw_send from u_dw_rbtnfilter within tabpage_11
- end type
- type cb_33 from commandbutton within tabpage_11
- end type
- type em_edate5 from editmask within tabpage_11
- end type
- type st_8 from statictext within tabpage_11
- end type
- type em_fdate5 from editmask within tabpage_11
- end type
- type tabpage_11 from userobject within tab_1
- dw_send dw_send
- cb_33 cb_33
- em_edate5 em_edate5
- st_8 st_8
- em_fdate5 em_fdate5
- end type
- type tab_1 from tab within w_cust_crm
- tabpage_1 tabpage_1
- tabpage_8 tabpage_8
- tabpage_7 tabpage_7
- tabpage_2 tabpage_2
- tabpage_3 tabpage_3
- tabpage_6 tabpage_6
- tabpage_9 tabpage_9
- tabpage_4 tabpage_4
- tabpage_5 tabpage_5
- tabpage_12 tabpage_12
- tabpage_10 tabpage_10
- tabpage_11 tabpage_11
- end type
- type cb_3 from uo_imflatbutton within w_cust_crm
- end type
- type cb_4 from uo_imflatbutton within w_cust_crm
- end type
- type cb_5 from uo_imflatbutton within w_cust_crm
- end type
- type ddlb_1 from dropdownlistbox within w_cust_crm
- end type
- type ddlb_2 from dropdownlistbox within w_cust_crm
- end type
- type cb_audit from uo_imflatbutton within w_cust_crm
- end type
- type cb_other from uo_imflatbutton within w_cust_crm
- end type
- type st_10 from statictext within w_cust_crm
- end type
- type cbx_unsale from checkbox within w_cust_crm
- end type
- type em_unsale from editmask within w_cust_crm
- end type
- type cbx_untask from checkbox within w_cust_crm
- end type
- type em_untask from editmask within w_cust_crm
- end type
- type st_9 from statictext within w_cust_crm
- end type
- type st_11 from statictext within w_cust_crm
- end type
- type sle_tel_number from u_sleedit within w_cust_crm
- end type
- type ddlb_unsale from dropdownlistbox within w_cust_crm
- end type
- type ddlb_untask from dropdownlistbox within w_cust_crm
- end type
- end forward
- global type w_cust_crm from w_publ_easyq
- integer width = 4105
- string title = "客户关系管理"
- event ue_retr_rep ( )
- event ue_retr_plan ( )
- event ue_retr_interview ( )
- event ue_add_rep ( )
- event ue_mod_rep ( )
- event ue_del_rep ( )
- event ue_add_plan ( )
- event ue_mod_plan ( )
- event ue_del_plan ( )
- event ue_mod_interview ( )
- event ue_add_interview ( )
- event ue_del_interview ( )
- event ue_retr_price ( )
- event ue_retr_task ( )
- event ue_retr_oppose ( )
- event ue_retr_station ( )
- event ue_add_station ( )
- event ue_del_station ( )
- event ue_dft_station ( )
- event ue_set_cust_ok ( )
- event ue_set_cust_notok ( )
- event ue_set_cust_blacklist ( )
- event ue_retr_sample ( )
- event ue_del_sample ( )
- event ue_mod_sample ( )
- event ue_add_sample ( )
- event ue_retr_item ( )
- event ue_mod_item ( )
- event ue_fj_edit_sample ( )
- event ue_fj_view_sample ( )
- event ue_fj_view_plan ( )
- event ue_fj_view_interview ( )
- event ue_fj_edit_interview ( )
- event ue_fj_edit_plan ( )
- event ue_fj_edit_cust ( )
- event ue_fj_view_cust ( )
- event ue_fj_cnt_sample ( )
- event ue_fj_cnt_plan ( )
- event ue_fj_cnt_interview ( )
- event ue_email_send ( )
- event ue_email_view ( )
- event ue_retr_rev ( )
- event ue_retr_send ( )
- event ue_retr_outware ( )
- event ue_filter_cuscode ( )
- event ue_filter_telnumber ( )
- event ue_rq_cust ( )
- event ue_outrep_def ( )
- event ue_outrep_trans ( )
- event ue_outrep_p_custype ( )
- tv_1 tv_1
- tab_1 tab_1
- cb_3 cb_3
- cb_4 cb_4
- cb_5 cb_5
- ddlb_1 ddlb_1
- ddlb_2 ddlb_2
- cb_audit cb_audit
- cb_other cb_other
- st_10 st_10
- cbx_unsale cbx_unsale
- em_unsale em_unsale
- cbx_untask cbx_untask
- em_untask em_untask
- st_9 st_9
- st_11 st_11
- sle_tel_number sle_tel_number
- ddlb_unsale ddlb_unsale
- ddlb_untask ddlb_untask
- end type
- global w_cust_crm w_cust_crm
- type variables
- Int ins_inuse = 1,ins_state = -1
- long cur_cusareaid
- String ins_areaname = ''
- uo_crm uo_cus
- datawindow dw_task
- datawindow dw_price
- end variables
- forward prototypes
- public function integer wf_getflag (string arg_string)
- end prototypes
- event ue_retr_rep();Long ll_row,ll_cusid
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_1.dw_rep.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_1.dw_rep.Retrieve(ll_cusid)
- END IF
- end event
- event ue_retr_plan();Long ll_row,ll_cusid
- DateTime ld_fdate,ld_edate
- ld_fdate = DateTime(Date(tab_1.tabpage_3.em_fdate3.Text),Time(0))
- ld_edate = DateTime(Date(tab_1.tabpage_3.em_edate3.Text),Time('23:59:59'))
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_3.dw_plan.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_3.dw_plan.Retrieve(ll_cusid,ld_fdate,ld_edate)
- END IF
- end event
- event ue_retr_interview();Long ll_row,ll_cusid
- DateTime ld_fdate,ld_edate
- ld_fdate = DateTime(Date(tab_1.tabpage_2.em_fdate2.Text),Time(0))
- ld_edate = DateTime(Date(tab_1.tabpage_2.em_edate2.Text),Time('23:59:59'))
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_2.dw_interview.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_2.dw_interview.Retrieve(ll_cusid,ld_fdate,ld_edate)
- END IF
- end event
- event ue_add_rep();IF NOT f_power_ind(1266) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_rep s_rep
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- s_rep.repid = 0
- s_rep.cusid = dw_1.Object.cusid[ll_row]
- OpenWithParm(w_cust_rep_add,s_rep)
- THIS.TriggerEvent('ue_retr_rep')
- end event
- event ue_mod_rep();IF NOT f_power_ind(1266) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_rep s_rep
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- s_rep.cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_1.dw_rep.AcceptText()
- ll_row = tab_1.tabpage_1.dw_rep.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户联系人资料',information!,OK!)
- RETURN
- END IF
- s_rep.repid = tab_1.tabpage_1.dw_rep.Object.repid[ll_row]
- OpenWithParm(w_cust_rep_add,s_rep)
- THIS.TriggerEvent('ue_retr_rep')
- end event
- event ue_del_rep();IF NOT f_power_ind(1266) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row,ll_repid
- String arg_msg
- tab_1.tabpage_1.dw_rep.AcceptText()
- ll_row = tab_1.tabpage_1.dw_rep.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请选择要删除的联系人资料',information!,OK!)
- RETURN
- END IF
- IF MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
- ll_repid = tab_1.tabpage_1.dw_rep.Object.repid[ll_row]
- IF uo_cus.uof_del_rep(ll_repid,publ_operator,arg_msg,TRUE) = 0 THEN
- MessageBox('错误','删除联系人资料失败,'+arg_msg,stopsign!,OK!)
- RETURN
- END IF
- THIS.TriggerEvent('ue_retr_rep')
- end event
- event ue_add_plan();IF NOT f_power_ind(1264) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_plan s_plan
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- s_plan.planid = 0
- s_plan.cusid = dw_1.Object.cusid[ll_row]
- OpenWithParm(w_cust_plan_add,s_plan)
- THIS.TriggerEvent('ue_retr_plan')
- end event
- event ue_mod_plan();IF NOT f_power_ind(1264) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_plan s_plan
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- s_plan.cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_3.dw_plan.AcceptText()
- ll_row = tab_1.tabpage_3.dw_plan.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户联系人资料',information!,OK!)
- RETURN
- END IF
- s_plan.planid = tab_1.tabpage_3.dw_plan.Object.planid[ll_row]
- OpenWithParm(w_cust_plan_add,s_plan)
- THIS.TriggerEvent('ue_retr_plan')
- end event
- event ue_del_plan();IF NOT f_power_ind(1264) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row,ll_planid
- String arg_msg
- tab_1.tabpage_3.dw_plan.AcceptText()
- ll_row = tab_1.tabpage_3.dw_plan.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请选择要删除的客户工作计划资料',information!,OK!)
- RETURN
- END IF
- IF MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
- ll_planid = tab_1.tabpage_3.dw_plan.Object.planid[ll_row]
- IF uo_cus.uof_del_plan(ll_planid,publ_operator,arg_msg,TRUE) = 0 THEN
- MessageBox('错误','删除客户工作计划资料失败,'+arg_msg,stopsign!,OK!)
- RETURN
- END IF
- THIS.TriggerEvent('ue_retr_plan')
- end event
- event ue_mod_interview();IF NOT f_power_ind(1265) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_interview s_interview
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- s_interview.cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_2.dw_interview.AcceptText()
- ll_row = tab_1.tabpage_2.dw_interview.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户联系人资料',information!,OK!)
- RETURN
- END IF
- s_interview.interviewid = tab_1.tabpage_2.dw_interview.Object.interviewid[ll_row]
- OpenWithParm(w_cust_interview_add,s_interview)
- THIS.TriggerEvent('ue_retr_interview')
- end event
- event ue_add_interview();IF NOT f_power_ind(1265) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_interview s_interview
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- s_interview.interviewid = 0
- s_interview.cusid = dw_1.Object.cusid[ll_row]
- OpenWithParm(w_cust_interview_add,s_interview)
- THIS.TriggerEvent('ue_retr_interview')
- end event
- event ue_del_interview();
- If Not f_power_ind(1919) Then
- MessageBox('提示','你没有使用权限!',information!,OK!)
- Return
- End If
- Long ll_row,ll_interviewid
- String arg_msg
- DateTime ldt_opdate
- tab_1.tabpage_2.dw_interview.AcceptText()
- ll_row = tab_1.tabpage_2.dw_interview.GetRow()
- If ll_row <= 0 Then
- MessageBox('提示','请选择要删除的客户走访资料',information!,OK!)
- Return
- End If
- If MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 Then
- Return
- End If
- ll_interviewid = tab_1.tabpage_2.dw_interview.Object.interviewid[ll_row]
- ldt_opdate = tab_1.tabpage_2.dw_interview.Object.opdate[ll_row]
- If f_power_ind(1927) Then
- If not sys_power_issuper Then
- If DaysAfter(Date(ldt_opdate),Today()) > 3 Then
- MessageBox('提示','限制“建立时间”在3天以前的走访记录不能删除!',information!,OK!)
- Return
- End If
- End If
- End If
- If uo_cus.uof_del_interview(ll_interviewid,publ_operator,arg_msg,True) = 0 Then
- MessageBox('错误','删除客户走访资料失败,'+arg_msg,stopsign!,OK!)
- Return
- End If
- This.TriggerEvent('ue_retr_interview')
- end event
- event ue_retr_price();Long ll_row,ll_cusid
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_4.dw_price.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_4.dw_price.Retrieve(ll_cusid)
- END IF
- end event
- event ue_retr_task();Long ll_row,ll_cusid
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- dw_task.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- dw_task.Retrieve(ll_cusid)
- END IF
- end event
- event ue_retr_oppose();Long ll_row,ll_cusid
- DateTime ld_fdate,ld_edate
- ld_fdate = DateTime(Date(tab_1.tabpage_6.em_fdate6.Text),Time(0))
- ld_edate = DateTime(Date(tab_1.tabpage_6.em_edate6.Text),Time('23:59:59'))
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_6.dw_oppose.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_6.dw_oppose.Retrieve(ll_cusid,ld_fdate,ld_edate)
- END IF
- end event
- event ue_retr_station();Long ll_row,ll_cusid
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_7.dw_station.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_7.dw_station.Retrieve(ll_cusid)
- END IF
- end event
- event ue_add_station();IF NOT f_power_ind(1267) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_station s_station_1
- s_station s_station_2
- string arg_msg
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- IF NOT IsValid(w_station_edit) THEN
- s_edit_index_tran s_ch_tran
- s_ch_tran.if_retrieve_all = FALSE
- s_ch_tran.work_mode = 1
- s_ch_tran.arg_pkid = 0
- s_ch_tran.arg_string_code = ''
- s_ch_tran.if_select_all = FALSE
-
- OpenWithParm(w_station_edit,s_ch_tran) //调用
-
- s_station_2 = Message.PowerObjectParm //接受返回结构
-
- IF s_station_2.stationid = 0 THEN RETURN
-
- s_station_1.stationid = s_station_2.stationid
- s_station_1.cusid = dw_1.Object.cusid[ll_row]
- s_station_1.dftflag = 0
-
- IF uo_cus.uof_add_station(s_station_1,arg_msg,TRUE) = 0 THEN
- MessageBox('错误','建立客户货运部失败,'+arg_msg,stopsign!,OK!)
- RETURN
- END IF
- END IF
- THIS.TriggerEvent('ue_retr_station')
- end event
- event ue_del_station();IF NOT f_power_ind(1267) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row,ll_cusid,ll_stationid
- String arg_msg
- tab_1.tabpage_7.dw_station.AcceptText()
- ll_row = tab_1.tabpage_7.dw_station.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请选择要删除的货运部资料',information!,OK!)
- RETURN
- END IF
- IF MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
-
- ll_cusid = tab_1.tabpage_7.dw_station.Object.u_cust_station_cusid[ll_row]
- ll_stationid = tab_1.tabpage_7.dw_station.Object.stationid[ll_row]
- IF uo_cus.uof_del_station(ll_cusid,ll_stationid,arg_msg,TRUE) = 0 THEN
- MessageBox('错误','删除货运部资料失败,'+arg_msg,stopsign!,OK!)
- RETURN
- END IF
- THIS.TriggerEvent('ue_retr_station')
- end event
- event ue_dft_station();IF NOT f_power_ind(1267) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_station s_station_1
- String arg_msg
- tab_1.tabpage_7.dw_station.AcceptText()
- ll_row = tab_1.tabpage_7.dw_station.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请选择货运部资料',information!,OK!)
- RETURN
- END IF
- IF MessageBox ('询问',"是否确定设置当前货运部资料为默认?",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
-
- s_station_1.cusid = tab_1.tabpage_7.dw_station.Object.u_cust_station_cusid[ll_row]
- s_station_1.stationid = tab_1.tabpage_7.dw_station.Object.stationid[ll_row]
- IF uo_cus.uof_set_dft_station(s_station_1,arg_msg,TRUE) = 0 THEN
- MessageBox('错误','设置默认货运部资料失败,'+arg_msg,stopsign!,OK!)
- RETURN
- END IF
- THIS.TriggerEvent('ue_retr_station')
- end event
- event ue_set_cust_ok();IF NOT f_power_ind(1261) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long LS_id
- Long LS_LONG = 0
- String ls_code,arg_msg
- IF dw_1.GetRow() <= 0 THEN
- MessageBox('提示','没有操作目标记录!',information!,OK!)
- RETURN
- END IF
- IF MessageBox ("询问","是否确定要当前客户资料为正式客户资料?",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
- LS_id = dw_1.Object.cusid[dw_1.GetRow()]
- ls_code = dw_1.Object.cuscode[dw_1.GetRow()]
- IF uo_cus.uof_change_state(LS_id,1,arg_msg,TRUE) = 0 THEN
- MessageBox ("错误","设置正式客户资料操作失败!(请重试!)"+arg_msg,stopsign!,OK!)
- RETURN
- END IF
- f_setsysoplog('定义资料','客户定义资料设正式,ID:'+String(LS_id)+',code:'+ls_code,arg_msg,TRUE)
- cb_1.TriggerEvent(Clicked!)
- end event
- event ue_set_cust_notok();IF NOT f_power_ind(1262) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long LS_id
- Long LS_LONG = 0
- String ls_code,arg_msg
- IF dw_1.GetRow() <= 0 THEN
- MessageBox('提示','没有操作目标记录!',information!,OK!)
- RETURN
- END IF
- IF MessageBox ("询问","是否确定要当前客户资料为非正式客户资料?",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
- LS_id = dw_1.Object.cusid[dw_1.GetRow()]
- ls_code = dw_1.Object.cuscode[dw_1.GetRow()]
- IF uo_cus.uof_change_state(LS_id,0,arg_msg,TRUE) = 0 THEN
- MessageBox ("错误","设置非正式客户资料操作失败!(请重试!)"+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- f_setsysoplog('定义资料','客户定义资料设非正式,ID:'+String(LS_id)+',code:'+ls_code,arg_msg,TRUE)
- cb_1.TriggerEvent(Clicked!)
- end event
- event ue_set_cust_blacklist();IF NOT f_power_ind(1263) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long LS_id
- Long LS_LONG = 0
- String ls_code,arg_msg
- IF dw_1.GetRow() <= 0 THEN
- MessageBox('提示','没有操作目标记录!',information!,OK!)
- RETURN
- END IF
- IF MessageBox ("询问","是否确定要当前客户资料为黑名单客户资料?",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
- LS_id = dw_1.Object.cusid[dw_1.GetRow()]
- ls_code = dw_1.Object.cuscode[dw_1.GetRow()]
- IF uo_cus.uof_change_state(LS_id,2,arg_msg,TRUE) = 0 THEN
- MessageBox ("错误","设置黑名单客户资料操作失败!(请重试!)"+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- f_setsysoplog('定义资料','客户定义资料设黑名单,ID:'+String(LS_id)+',code:'+ls_code,arg_msg,TRUE)
- cb_1.TriggerEvent(Clicked!)
- end event
- event ue_retr_sample();Long ll_row,ll_cusid
- DateTime ld_fdate,ld_edate
- ld_fdate = DateTime(Date(tab_1.tabpage_9.em_fdate9.Text),Time(0))
- ld_edate = DateTime(Date(tab_1.tabpage_9.em_edate9.Text),Time('23:59:59'))
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_9.dw_sample.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_9.dw_sample.Retrieve(ll_cusid,ld_fdate,ld_edate)
- END IF
- end event
- event ue_del_sample();IF NOT f_power_ind(1268) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row,ll_sampleid
- String arg_msg
- tab_1.tabpage_9.dw_sample.AcceptText()
- ll_row = tab_1.tabpage_9.dw_sample.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请选择要删除的客户样版资料',information!,OK!)
- RETURN
- END IF
- IF MessageBox ('询问',"是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
- ll_sampleid = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ll_row]
- IF uo_cus.uof_del_sample(ll_sampleid,publ_operator,arg_msg,TRUE) = 0 THEN
- MessageBox('错误','删除客户样版资料失败,'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- THIS.TriggerEvent('ue_retr_sample')
- end event
- event ue_mod_sample();IF NOT f_power_ind(1268) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_sample s_sample
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- s_sample.cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_9.dw_sample.AcceptText()
- ll_row = tab_1.tabpage_9.dw_sample.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户样版资料',information!,OK!)
- RETURN
- END IF
- s_sample.sampleid = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ll_row]
- OpenWithParm(w_cust_sample_add,s_sample)
- THIS.TriggerEvent('ue_retr_sample')
- end event
- event ue_add_sample();IF NOT f_power_ind(1268) THEN
- MessageBox('提示','你没有使用权限!',information!,OK!)
- RETURN
- END IF
- Long ll_row
- s_cust_sample s_sample
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,OK!)
- RETURN
- END IF
- s_sample.sampleid = 0
- s_sample.cusid = dw_1.Object.cusid[ll_row]
- OpenWithParm(w_cust_sample_add,s_sample)
- THIS.TriggerEvent('ue_retr_sample')
- end event
- event ue_retr_item();Long ll_row,ll_cusid
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_8.dw_item.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_8.dw_item.Retrieve(ll_cusid)
- END IF
- end event
- event ue_mod_item();if not f_power_ind(1269) then
- messagebox('提示','你没有使用权限!',information!,OK!)
- return
- end if
- long ll_row,ll_row_cust
- long ll_itemid
- s_item_cust_spt arg_s_item
- string ls_dscrp,arg_msg
- dw_1.accepttext()
- ll_row_cust = dw_1.getrow()
- if ll_row_cust <= 0 then
- messagebox('提示','请先选择客户',information!,OK!)
- return
- end if
- tab_1.tabpage_8.dw_item.accepttext()
- ll_row = tab_1.tabpage_8.dw_item.getrow()
- if ll_row <= 0 then
- messagebox('提示','请先选择客户辅助项目资料',information!,OK!)
- return
- end if
- if tab_1.tabpage_8.dw_item.object.u_item_cust_spt_def_inputtype[ll_row] = 1 then
- s_inputbox s_objstru
- s_objstru.title = '请填入内容'
- s_objstru.old_text = tab_1.tabpage_8.dw_item.object.u_item_cust_spt_dscrp[ll_row]
- openwithparm(w_inputbox,s_objstru)
- else
- ll_itemid = tab_1.tabpage_8.dw_item.object.u_item_cust_spt_itemid[ll_row]
- openwithparm(w_item_cust_spt_mx_ch,ll_itemid)
- end if
- ls_dscrp = message.stringparm
- if trim(ls_dscrp) = '' then return
- arg_s_item.itemid = tab_1.tabpage_8.dw_item.object.u_item_cust_spt_itemid[ll_row]
- arg_s_item.relid = dw_1.object.cusid[ll_row_cust]
- arg_s_item.reltype = tab_1.tabpage_8.dw_item.object.u_item_cust_spt_reltype[ll_row]
- arg_s_item.dscrp = ls_dscrp
- if uo_cus.uof_add_item(arg_s_item,arg_msg,true) = 0 then
- messagebox ("错误",arg_msg+",保存操作失败!",stopsign!,ok!)
- return
- end if
- this.triggerevent('ue_retr_item')
- end event
- event ue_fj_edit_sample();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- ls_row = tab_1.tabpage_9.dw_sample.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- s_pic.f_long = 1201 //
- s_pic.f_string = ''
- s_pic.g_long = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ls_row]
- s_pic.d_long = 0 //relid_mx
- s_pic.d_string = '' //relcode_mx
- s_pic.e_long = 0 // scid
- s_pic.sqltransaction = sys_filedb_sqlca
- OpenWithParm(w_fj_bill_mng,s_pic)
- end event
- event ue_fj_view_sample();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- ls_row = tab_1.tabpage_9.dw_sample.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- s_pic.f_long = 1201 //
- s_pic.f_string = ''
- s_pic.g_long = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ls_row]
- s_pic.d_long = 0 //relid_mx
- s_pic.d_string = '' //relcode_mx
- s_pic.e_long = 0 // scid
- s_pic.sqltransaction = sys_filedb_sqlca
- OpenWithParm(w_fj_bill_view,s_pic)
- end event
- event ue_fj_view_plan();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- ls_row = tab_1.tabpage_3.dw_plan.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- s_pic.f_long = 1203 //
- s_pic.f_string = ''
- s_pic.g_long = tab_1.tabpage_3.dw_plan.Object.planid[ls_row]
- s_pic.d_long = 0 //relid_mx
- s_pic.d_string = '' //relcode_mx
- s_pic.e_long = 0 // scid
- s_pic.sqltransaction = sys_filedb_sqlca
- OpenWithParm(w_fj_bill_view,s_pic)
- end event
- event ue_fj_view_interview();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- ls_row = tab_1.tabpage_9.dw_sample.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- s_pic.f_long = 1202 //
- s_pic.f_string = ''
- s_pic.g_long = tab_1.tabpage_9.dw_sample.Object.interviewid[ls_row]
- s_pic.d_long = 0 //relid_mx
- s_pic.d_string = '' //relcode_mx
- s_pic.e_long = 0 // scid
- s_pic.sqltransaction = sys_filedb_sqlca
- OpenWithParm(w_fj_bill_view,s_pic)
- end event
- event ue_fj_edit_interview();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- ls_row = tab_1.tabpage_2.dw_interview.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- s_pic.f_long = 1202 //
- s_pic.f_string = ''
- s_pic.g_long = tab_1.tabpage_2.dw_interview.Object.interviewid[ls_row]
- s_pic.d_long = 0 //relid_mx
- s_pic.d_string = '' //relcode_mx
- s_pic.e_long = 0 // scid
- s_pic.sqltransaction = sys_filedb_sqlca
- OpenWithParm(w_fj_bill_mng,s_pic)
- end event
- event ue_fj_edit_plan();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- ls_row = tab_1.tabpage_3.dw_plan.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- s_pic.f_long = 1203 //
- s_pic.f_string = ''
- s_pic.g_long = tab_1.tabpage_3.dw_plan.Object.planid[ls_row]
- s_pic.d_long = 0 //relid_mx
- s_pic.d_string = '' //relcode_mx
- s_pic.e_long = 0 // scid
- s_pic.sqltransaction = sys_filedb_sqlca
- OpenWithParm(w_fj_bill_mng,s_pic)
- end event
- event ue_fj_edit_cust();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- ls_row = dw_1.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- s_pic.f_long = 105 //
- s_pic.f_string = ''
- s_pic.g_long = dw_1.Object.cusid[ls_row]
- s_pic.d_long = 0 //relid_mx
- s_pic.d_string = '' //relcode_mx
- s_pic.e_long = 0 // scid
- s_pic.sqltransaction = sys_filedb_sqlca
- OpenWithParm(w_fj_bill_mng,s_pic)
- end event
- event ue_fj_view_cust();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- ls_row = dw_1.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- s_pic.f_long = 105 //
- s_pic.f_string = ''
- s_pic.g_long = dw_1.Object.cusid[ls_row]
- s_pic.d_long = 0 //relid_mx
- s_pic.d_string = '' //relcode_mx
- s_pic.e_long = 0 // scid
- s_pic.sqltransaction = sys_filedb_sqlca
- OpenWithParm(w_fj_bill_view,s_pic)
- end event
- event ue_fj_cnt_sample();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- Long ll_fj_cnt,ll_fj_id
- ls_row = tab_1.tabpage_9.dw_sample.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- uo_fj_mng_billtype uo_fj_cnt
- uo_fj_cnt = CREATE uo_fj_mng_billtype
- ll_fj_id = tab_1.tabpage_9.dw_sample.Object.u_cust_sample_sampleid[ls_row]
- IF uo_fj_cnt.uf_check_billfj(1201,ll_fj_id,0,0,sys_filedb_sqlca,arg_msg,ll_fj_cnt) = 0 THEN
- MessageBox('错误','查询附件数失败,'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- tab_1.tabpage_9.st_sample.text = '附件数('+string(ll_fj_cnt)+')'
- DESTROY uo_fj_cnt
- end event
- event ue_fj_cnt_plan();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- Long ll_fj_cnt,ll_fj_id
- ls_row = tab_1.tabpage_3.dw_plan.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- uo_fj_mng_billtype uo_fj_cnt
- uo_fj_cnt = CREATE uo_fj_mng_billtype
- ll_fj_id = tab_1.tabpage_3.dw_plan.Object.planid[ls_row]
- IF uo_fj_cnt.uf_check_billfj(1203,ll_fj_id,0,0,sys_filedb_sqlca,arg_msg,ll_fj_cnt) = 0 THEN
- MessageBox('错误','查询附件数失败,'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- tab_1.tabpage_3.st_plan.text = '附件数('+string(ll_fj_cnt)+')'
- DESTROY uo_fj_cnt
- end event
- event ue_fj_cnt_interview();s_edit_index_tran s_pic
- Long ll_ConnectionID
- String arg_msg
- Long ls_row
- Long ll_fj_cnt,ll_fj_id
- ls_row = tab_1.tabpage_2.dw_interview.GetRow()
- IF ls_row <= 0 THEN
- RETURN
- END IF
- IF f_get_outerconnection(ll_ConnectionID,arg_msg) = 0 THEN
- MessageBox('错误','没有指定附件数据库连接'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- uo_fj_mng_billtype uo_fj_cnt
- uo_fj_cnt = CREATE uo_fj_mng_billtype
- ll_fj_id = tab_1.tabpage_2.dw_interview.Object.interviewid[ls_row]
- IF uo_fj_cnt.uf_check_billfj(1202,ll_fj_id,0,0,sys_filedb_sqlca,arg_msg,ll_fj_cnt) = 0 THEN
- MessageBox('错误','查询附件数失败,'+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- tab_1.tabpage_2.st_interview.Text = '附件数('+String(ll_fj_cnt)+')'
- DESTROY uo_fj_cnt
- end event
- event ue_email_send();IF dw_1.GetRow() = 0 THEN RETURN
- s_edit_index_tran s_tran //传递参数使用
- OpenWithParm(w_email_set,s_tran)
- s_email_set s_return
- Long ll_row
- s_return = Message.PowerObjectParm
- IF s_return.mailid > 0 THEN
- s_return.flag = 1
- s_return.reltype = 2
- s_return.revaddress = dw_1.object.email[dw_1.GetRow()]
- s_return.revuser = dw_1.object.cuscode[dw_1.GetRow()]
- OpenWithParm(w_email_send_new,s_return)
- END IF
- end event
- event ue_email_view();Long ll_ConnectionID
- String arg_msg
- IF f_get_outerconnection_email(ll_ConnectionID,arg_msg) <> 1 THEN
- MessageBox('系统提示','要使用邮件功能,请先定义邮件数据库')
- return
- END IF
- open(w_email_view)
- end event
- event ue_retr_rev();Long ll_ConnectionID
- String arg_msg
- IF sys_email_sqlca.DBHandle() <= 0 THEN
- tab_1.tabpage_10.dw_rev.Reset()
- RETURN
- END IF
- Long ll_row,ll_cusid
- DateTime ld_fdate,ld_edate
- ld_fdate = DateTime(Date(tab_1.tabpage_10.em_fdate4.Text),Time(0))
- ld_edate = DateTime(Date(tab_1.tabpage_10.em_edate4.Text),Time('23:59:59'))
- Long ll_mailid[]
- String ls_sendaddress[]
- String ls_send_str
- Long i ,j
- i = 0
- j = 0
- ll_row = dw_1.GetRow()
- IF ll_row > 0 THEN
- ll_cusid = dw_1.Object.cusid[ll_row]
- END IF
- String ls_emp
- Integer ls_empid,ls_count
- ls_emp = String(sys_empid)
- //FOR ls_count = 1 To UpperBound(sys_user_outrep)
- // ls_empid = 0
- // SELECT empid Into :ls_empid From u_rs_empinfo Where empname = :sys_user_outrep[ls_count];
- // IF Not IsNull(ls_empid) And ls_empid <> 0 THEN
- // ls_emp = ls_emp + ' , ' + String(ls_empid)
- // END IF
- //
- //NEXT
- //WHERE ( u_email_set.empid in ( :sys_empid) AND u_email_set.mailtype = 0)
- ls_empid = sys_empid
- DECLARE cur_mailid CURSOR FOR
- SELECT mailid
- FROM u_email_set
- WHERE ( u_email_set.empid = :ls_empid AND u_email_set.mailtype = 0)
- Or u_email_set.mailtype = 1;
-
- OPEN cur_mailid;
- i++
- FETCH cur_mailid Into :ll_mailid[i];
- DO WHILE sqlca.SQLCode = 0
- i++
- FETCH cur_mailid Into :ll_mailid[i];
- LOOP
- CLOSE cur_mailid;
- ////////////////// //
- FOR ls_count = 1 To UpperBound(sys_user_outrep)
- ls_empid = 0
- SELECT empid Into :ls_empid From u_rs_empinfo Where empname = :sys_user_outrep[ls_count];
- IF Not IsNull(ls_empid) And ls_empid <> 0 THEN
- OPEN cur_mailid;
- i++
- FETCH cur_mailid Into :ll_mailid[i];
-
- DO WHILE sqlca.SQLCode = 0
- i++
- FETCH cur_mailid Into :ll_mailid[i];
- LOOP
-
- CLOSE cur_mailid;
- END IF
- NEXT
- ///////////////// //
- DECLARE cur_address CURSOR FOR
- SELECT DISTINCT LOWER(email)
- FROM
- (SELECT email
- FROM u_cust
- WHERE cusid = :ll_cusid
- UNION ALL
- SELECT email
- FROM u_cust_rep
- WHERE cusid = :ll_cusid) a
- Where (email <> '');
-
- OPEN cur_address;
- FETCH cur_address Into :ls_send_str;
- DO WHILE sqlca.SQLCode = 0
-
- IF Trim(ls_send_str) <> '' THEN
- j++
-
- ls_sendaddress[j] = ls_send_str
- END IF
-
- FETCH cur_address Into :ls_send_str;
- LOOP
- CLOSE cur_address;
- j++
- ls_sendaddress[j] = 'XXXXXXXXXX'
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_10.dw_rev.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_10.dw_rev.Retrieve(ld_fdate,ld_edate,ll_mailid,ls_sendaddress)
- END IF
- end event
- event ue_retr_send();Long ll_ConnectionID
- String arg_msg
- IF sys_email_sqlca.DBHandle() <= 0 THEN
- tab_1.tabpage_11.dw_send.Reset()
- RETURN
- END IF
- Long ll_row,ll_cusid
- DateTime ld_fdate,ld_edate
- ld_fdate = DateTime(Date(tab_1.tabpage_11.em_fdate5.Text),Time(0))
- ld_edate = DateTime(Date(tab_1.tabpage_11.em_edate5.Text),Time('23:59:59'))
- Long ll_mailid[]
- String ls_sendaddress[]
- String ls_send_str
- Long i ,j
- i=0
- j = 0
- ll_row = dw_1.GetRow()
- IF ll_row > 0 THEN
- ll_cusid = dw_1.Object.cusid[ll_row]
- END IF
- String ls_emp
- long ls_empid,ls_count
- ls_emp = String(sys_empid)
- //for ls_count=1 to upperbound(sys_user_outrep)
- // ls_empid=0
- // select empid into :ls_empid from u_rs_empinfo where empname=:sys_user_outrep[ls_count];
- // if not isnull(ls_empid) and ls_empid<>0 then
- // ls_emp=ls_emp + ',' + string(ls_empid)
- // end if
- //
- //next
- // WHERE ( u_email_set.empid = :sys_empid AND u_email_set.mailtype = 0)
- //WHERE ( u_email_set.empid in(:ls_emp) AND u_email_set.mailtype = 0)
- ///////////
- ls_empid = sys_empid
- DECLARE cur_mailid CURSOR FOR
- SELECT mailid
- FROM u_email_set
- WHERE ( u_email_set.empid = :ls_empid AND u_email_set.mailtype = 0)
- Or u_email_set.mailtype = 1;
-
- OPEN cur_mailid;
- //IF sqlca.SQLCode <> 0 THEN
- // MessageBox("",sqlca.SQLErrText)
- //END IF
- i++
- FETCH cur_mailid Into :ll_mailid[i];
- //IF sqlca.SQLCode <> 0 THEN
- // MessageBox("",sqlca.SQLErrText)
- //END IF
- DO WHILE sqlca.SQLCode = 0
- i++
- FETCH cur_mailid Into :ll_mailid[i];
- LOOP
- CLOSE cur_mailid;
- //////////////// //
- FOR ls_count = 1 To UpperBound(sys_user_outrep)
- ls_empid = 0
- SELECT empid Into :ls_empid From u_rs_empinfo Where empname = :sys_user_outrep[ls_count];
- IF Not IsNull(ls_empid) And ls_empid <> 0 THEN
-
- //DECLARE cur_mailid CURSOR FOR
- // SELECT mailid
- // FROM u_email_set
- // WHERE ( u_email_set.empid = :sys_empid AND u_email_set.mailtype = 0)
- // OR u_email_set.mailtype = 1;
-
- OPEN cur_mailid;
- // IF sqlca.SQLCode <> 0 THEN
- // MessageBox("",sqlca.SQLErrText)
- // END IF
- i++
- FETCH cur_mailid Into :ll_mailid[i];
-
- // IF sqlca.SQLCode <> 0 THEN
- // MessageBox("",sqlca.SQLErrText)
- // END IF
-
- DO WHILE sqlca.SQLCode = 0
- i++
- FETCH cur_mailid Into :ll_mailid[i];
- LOOP
-
- CLOSE cur_mailid;
- END IF
- NEXT
- DECLARE cur_address CURSOR FOR
- SELECT DISTINCT LOWER(email)
- FROM
- (SELECT email
- FROM u_cust
- WHERE cusid = :ll_cusid
- UNION ALL
- SELECT email
- FROM u_cust_rep
- WHERE cusid = :ll_cusid) a
- Where (email <> '');
-
- OPEN cur_address;
- FETCH cur_address Into :ls_send_str;
- DO WHILE sqlca.SQLCode = 0
-
- IF Trim(ls_send_str) <> '' THEN
- j++
-
- ls_sendaddress[j] = ls_send_str
- END IF
-
- FETCH cur_address Into :ls_send_str;
- LOOP
- CLOSE cur_address;
- j++
- ls_sendaddress[j] = 'XXXXXXXXXX'
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_11.dw_send.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_11.dw_send.Retrieve(ld_fdate,ld_edate,ll_mailid,ls_sendaddress)
- END IF
- end event
- event ue_retr_outware();Long ll_row,ll_cusid
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- tab_1.tabpage_12.dw_outware.Reset()
- ELSE
- ll_cusid = dw_1.Object.cusid[ll_row]
- tab_1.tabpage_12.dw_outware.Retrieve(ll_cusid)
- END IF
- end event
- event ue_filter_cuscode();String obj_expr = ''
- IF Trim(sle_cust.Text) <> '' THEN
- IF Pos(Trim(sle_cust.Text),'%') = 0 THEN
- obj_expr = obj_expr+'( cuscode LIKE "%'+Trim(sle_cust.Text)+'%" )'
- obj_expr = obj_expr+' or (name LIKE "%'+Trim(sle_cust.Text)+'%" )'
- ELSE
- obj_expr = obj_expr+'( cuscode LIKE "'+Trim(sle_cust.Text)+'") '
- obj_expr = obj_expr+' or (name LIKE "'+Trim(sle_cust.Text)+'" )'
- END IF
- END IF
- dw_1.SetFilter(obj_expr)
- dw_1.SetRedraw(FALSE)
- dw_1.Filter()
- IF dw_1.RowCount() >= 1 THEN
- dw_1.SelectRow(0,FALSE)
- dw_1.SelectRow(1,TRUE)
- END IF
- dw_1.SetRedraw(TRUE)
- end event
- event ue_filter_telnumber();String obj_expr = ''
- IF trim(This.sle_tel_number.Text) <> '' THEN
- IF Pos(Trim(sle_tel_number.Text),'%') = 0 THEN
- obj_expr = obj_expr+"( tele LIKE '%"+Trim(sle_tel_number.Text)+"%')"
- obj_expr = obj_expr+" or (tele1 LIKE '%"+Trim(sle_tel_number.Text)+"%' )"
- obj_expr = obj_expr+" or (freight LIKE '%"+Trim(sle_tel_number.Text)+"%')"
- ELSE
- obj_expr = obj_expr+'( tele LIKE '+Trim(sle_tel_number.Text)+')'
- obj_expr = obj_expr+' or (tele1 LIKE '+Trim(sle_tel_number.Text)+')'
- obj_expr = obj_expr+' or (freight LIKE '+Trim(sle_tel_number.Text)+')'
- //obj_expr = obj_expr + ' or (cusid = (select top(1) cusid from u_cust_rep where officetel LIKE ' + Trim(sle_tel_number.Text) + ' or handtel like ' + Trim(sle_tel_number.Text) + '))'
- END IF
- END IF
- dw_1.SetFilter(obj_expr)
- dw_1.SetRedraw(FALSE)
- dw_1.Filter()
- IF dw_1.RowCount() >= 1 THEN
- dw_1.SelectRow(0,FALSE)
- dw_1.SelectRow(1,TRUE)
- else
- String ls_number
- IF Pos(Trim(sle_tel_number.Text),'%') = 0 THEN
- ls_number = '%' + trim(sle_tel_number.Text) + '%'
- else
- ls_number = trim(sle_tel_number.Text)
- end if
- // 查询u_cust_rep offictel, handtel 找出匹配电话号码,再关联cusID
- long ll_cusid = 0
- string ls_cuscode
- select top 1 cusid into :ll_cusid from u_cust_rep where officetel LIKE :ls_number or handtel LIKE :ls_number ;
-
- // 不存在相关的cusid
- if sqlca.sqlcode = 100 or isnull(ll_cusid) or ll_cusid = 0 then
- obj_expr = ' cuscode = ' + "'" +trim(sle_tel_number.Text) + "'"
- dw_1.SetFilter(obj_expr)
- dw_1.Filter()
- dw_1.SetRedraw(TRUE)
- return
- else
- select cuscode into :ls_cuscode from u_cust where cusid = :ll_cusid ;
- // 查询得到cusid 但找不到相关的名
- if sqlca.sqlcode <> 0 then
- MessageBox('IF', '网络或其他原因,查询cuscode 失败')
- return;
- else
- obj_expr = ' cuscode = ' + "'" +ls_cuscode + "'"
- dw_1.SetFilter(obj_expr)
- dw_1.Filter()
- IF dw_1.RowCount() >= 1 THEN
- dw_1.SelectRow(0,FALSE)
- dw_1.SelectRow(1,TRUE)
- end if
- end if
- end if
- // 再到u_cust 表查询得到相关信息
- END IF
- dw_1.SetRedraw(TRUE)
- end event
- event ue_rq_cust();Int rslt = 1
- Long ll_row
- Long ll_cusid
- Int li_state
- String ls_cusname, ls_custype, ls_dscrp
- String arg_msg
- DateTime ldt_rqdate
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('系统提示', '请选择客户')
- RETURN
- END IF
- ll_cusid = dw_1.Object.cusid[ll_row]
- ls_cusname = dw_1.Object.Name[ll_row]
- li_state = dw_1.Object.State[ll_row]
- ls_custype = dw_1.Object.custype[ll_row]
- IF li_state <> 0 THEN
- MessageBox('系统提示', '非公共客户不能申请')
- RETURN
- END IF
- IF MessageBox('确定', '是否确定要申请['+ls_cusname+']为准客户?', question!, yesno!) = 2 THEN RETURN
- ldt_rqdate = DateTime(Today(), Now())
- ls_dscrp = ""
- uo_custdef uo_cust
- uo_cust = Create uo_custdef
- uo_cust.commit_transaction = sqlca
- IF uo_cust.uof_add_cust_rq(ll_cusid, ls_custype, ldt_rqdate, ls_dscrp, arg_msg, True) = 0 THEN
- rslt = 0
- //goto ext
- END IF
- Destroy uo_cust
- IF rslt = 0 THEN
- MessageBox('系统提示', arg_msg)
- RETURN
- ELSE
- MessageBox('系统提示', '申请准客户成功')
- dw_1.Object.State[ll_row] = 3
- //RETURN
- END IF
- end event
- event ue_outrep_def();f_sys_main(118)
- end event
- event ue_outrep_trans;f_sys_main(139)
- end event
- event ue_outrep_p_custype();IF Not f_power_ind(1715,sys_msg_pow) THEN
- MessageBox(publ_operator,sys_msg_pow)
- RETURN
- END IF
- IF MessageBox('询问','是否确认要更新当前列表中公共客户的业务员?',question!,yesno!) = 2 THEN RETURN
- s_outrepdef INS_RT_STRU
- Open(w_outrepdef_edit_ch)
- Long rslt = 1
- String arg_msg
- String ls_outrep
- Long ll_i
- Long ll_cusid
- s_outrepdef s_outrep_ch
- s_outrep_ch = Message.PowerObjectParm
- IF s_outrep_ch.outrepname = '' THEN RETURN
- ls_outrep = s_outrep_ch.outrepname
- FOR ll_i = 1 To dw_1.RowCount()
-
- IF dw_1.Object.State[ll_i] = 1 THEN CONTINUE
- IF dw_1.Object.ch[ll_i] = 0 THEN CONTINUE
- ll_cusid = dw_1.Object.cusid[ll_i]
-
- UPDATE u_cust
- SET custype = :ls_outrep
- Where cusid = :ll_cusid;
- IF sqlca.SQLCode <> 0 THEN
- rslt = 0
- arg_msg = '第'+String(ll_i)+'行,更新业务员失败,'+sqlca.SQLErrText
- EXIT
- END IF
-
- NEXT
- IF rslt = 0 THEN
- ROLLBACK;
- MessageBox('Error','第'+String(ll_i)+'行,更新业务员失败')
- RETURN
- ELSE
- COMMIT;
- MessageBox('系统提示','更新成功!')
- cb_1.TriggerEvent(Clicked!)
- END IF
- end event
- public function integer wf_getflag (string arg_string);int reslt
-
- CHOOSE CASE arg_string
- CASE '='
- reslt = 0
- CASE '>='
- reslt = 1
- CASE '<='
- reslt = 2
- CASE '>'
- reslt = 3
- CASE '<'
- reslt = 4
- END CHOOSE
- return reslt
- end function
- on w_cust_crm.create
- int iCurrent
- call super::create
- this.tv_1=create tv_1
- this.tab_1=create tab_1
- this.cb_3=create cb_3
- this.cb_4=create cb_4
- this.cb_5=create cb_5
- this.ddlb_1=create ddlb_1
- this.ddlb_2=create ddlb_2
- this.cb_audit=create cb_audit
- this.cb_other=create cb_other
- this.st_10=create st_10
- this.cbx_unsale=create cbx_unsale
- this.em_unsale=create em_unsale
- this.cbx_untask=create cbx_untask
- this.em_untask=create em_untask
- this.st_9=create st_9
- this.st_11=create st_11
- this.sle_tel_number=create sle_tel_number
- this.ddlb_unsale=create ddlb_unsale
- this.ddlb_untask=create ddlb_untask
- iCurrent=UpperBound(this.Control)
- this.Control[iCurrent+1]=this.tv_1
- this.Control[iCurrent+2]=this.tab_1
- this.Control[iCurrent+3]=this.cb_3
- this.Control[iCurrent+4]=this.cb_4
- this.Control[iCurrent+5]=this.cb_5
- this.Control[iCurrent+6]=this.ddlb_1
- this.Control[iCurrent+7]=this.ddlb_2
- this.Control[iCurrent+8]=this.cb_audit
- this.Control[iCurrent+9]=this.cb_other
- this.Control[iCurrent+10]=this.st_10
- this.Control[iCurrent+11]=this.cbx_unsale
- this.Control[iCurrent+12]=this.em_unsale
- this.Control[iCurrent+13]=this.cbx_untask
- this.Control[iCurrent+14]=this.em_untask
- this.Control[iCurrent+15]=this.st_9
- this.Control[iCurrent+16]=this.st_11
- this.Control[iCurrent+17]=this.sle_tel_number
- this.Control[iCurrent+18]=this.ddlb_unsale
- this.Control[iCurrent+19]=this.ddlb_untask
- end on
- on w_cust_crm.destroy
- call super::destroy
- destroy(this.tv_1)
- destroy(this.tab_1)
- destroy(this.cb_3)
- destroy(this.cb_4)
- destroy(this.cb_5)
- destroy(this.ddlb_1)
- destroy(this.ddlb_2)
- destroy(this.cb_audit)
- destroy(this.cb_other)
- destroy(this.st_10)
- destroy(this.cbx_unsale)
- destroy(this.em_unsale)
- destroy(this.cbx_untask)
- destroy(this.em_untask)
- destroy(this.st_9)
- destroy(this.st_11)
- destroy(this.sle_tel_number)
- destroy(this.ddlb_unsale)
- destroy(this.ddlb_untask)
- end on
- event resize;ln_bar.EndX = THIS.Width
- ln_bar2.EndX = THIS.Width
- ln_1.EndX = THIS.Width
- ln_2.EndX = THIS.Width
- r_bar.Width = THIS.Width
- dw_1.Width = THIS.Width - dw_1.X - 40
- tab_1.Width = THIS.Width - tab_1.X - 40
- tab_1.Height = THIS.Height - tab_1.Y - 150
- tab_1.tabpage_1.dw_rep.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_2.dw_interview.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_3.dw_plan.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_4.dw_price.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_5.dw_task.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_6.dw_oppose.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_7.dw_station.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_8.dw_item.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_9.dw_sample.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_10.dw_rev.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_11.dw_send.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_12.dw_outware.Width = THIS.Width - tab_1.X - 80
- tab_1.tabpage_1.dw_rep.Height = THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_2.dw_interview.Height = THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_3.dw_plan.Height = THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_4.dw_price.Height = THIS.Height - ( 2300 - 548 )
- tab_1.tabpage_5.dw_task.Height = THIS.Height - ( 2300 - 548 )
- tab_1.tabpage_6.dw_oppose.Height = THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_7.dw_station.Height = THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_8.dw_item.Height = THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_9.dw_sample.Height = THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_10.dw_rev.Height= THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_11.dw_send.Height = THIS.Height - ( 2300 - 460 )
- tab_1.tabpage_12.dw_outware.Height = THIS.Height - ( 2300 - 548 )
- end event
- event ue_before_open;wf_init_dw1()
- wf_replacedw()
- s_edit_index_tran s_tran
- s_tran = Message.PowerObjectParm
- IF Not IsNull(s_tran) THEN
- if_power_sendout = s_tran.if_sendout
- if_power_print = s_tran.if_print
- sle_cust.text = trim(s_tran.arg_string_code)
- sle_tel_number.text = trim(s_tran.d_string) // 上送的电话号码
- END IF
- if_ue_sentdataout = if_power_sendout
- cb_psetup.enabled = if_power_print
- cb_2.enabled = if_power_print
- cbx_yl.enabled = if_power_print
- ddlb_yl.enabled = if_power_print
- uo_cus = CREATE uo_crm
- tab_1.tabpage_1.dw_rep.SetTransObject(sqlca)
- tab_1.tabpage_2.dw_interview.SetTransObject(sqlca)
- tab_1.tabpage_3.dw_plan.SetTransObject(sqlca)
- tab_1.tabpage_4.dw_price.SetTransObject(sqlca)
- tab_1.tabpage_5.dw_task.SetTransObject(sqlca)
- tab_1.tabpage_6.dw_oppose.SetTransObject(sqlca)
- tab_1.tabpage_7.dw_station.SetTransObject(sqlca)
- tab_1.tabpage_8.dw_item.SetTransObject(sqlca)
- tab_1.tabpage_9.dw_sample.SetTransObject(sqlca)
- tab_1.tabpage_10.dw_rev.SetTransObject(sys_email_sqlca)
- tab_1.tabpage_11.dw_send.SetTransObject(sys_email_sqlca)
- tab_1.tabpage_12.dw_outware.SetTransObject(sqlca)
- tab_1.tabpage_10.visible = true
- tab_1.tabpage_11.visible = true
- dw_task = tab_1.tabpage_5.dw_task
- dw_price= tab_1.tabpage_4.dw_price
- end event
- event close;call super::close;DESTROY uo_cus
- end event
- event ue_before_openretrieve;call super::ue_before_openretrieve;s_hide_col s_col,s_col2,s_col3
- s_col.col_1 = 'amt'
- s_col.col_2 = 'consignedqtyamt'
- s_col.col_3 = 'not_consignedqtyamt'
- f_hide_col(122,dw_task,s_col)
- s_col2.col_1 = 'u_cus_price_fprice'
- s_col2.col_2 = 'u_cus_price_zqrate'
- s_col2.col_3 = 'u_cus_price_price'
- s_col2.col_4 = 'u_mtrldef_price'
- f_hide_col(122,dw_price,s_col2)
- s_col3.col_1 = 'amt'
- s_col3.col_2 = 'saleqtyamt'
- f_hide_col(122,tab_1.tabpage_12.dw_outware,s_col3)
- end event
- event open;call super::open;This.TriggerEvent("ue_filter_cuscode")
- // 电话录音盒
- This.TriggerEvent("ue_filter_telnumber")
- end event
- type cb_func from w_publ_easyq`cb_func within w_cust_crm
- end type
- type cb_exit from w_publ_easyq`cb_exit within w_cust_crm
- integer x = 1330
- end type
- type cb_2 from w_publ_easyq`cb_2 within w_cust_crm
- integer x = 1029
- end type
- type cb_psetup from w_publ_easyq`cb_psetup within w_cust_crm
- integer x = 1408
- integer y = 580
- end type
- type cb_1 from w_publ_easyq`cb_1 within w_cust_crm
- end type
- event cb_1::clicked;call super::clicked;
- Int li_unsale, li_untask
- Long ll_daynum, ll_daynum_task
- long unsale_flag,untask_flag
- IF cbx_unsale.Checked THEN
- li_unsale = wf_getflag(ddlb_unsale.text)
- ll_daynum = Long(em_unsale.Text)
- ELSE
- li_unsale = -1
- ll_daynum = 0
- END IF
- IF cbx_untask.Checked THEN
- li_untask = wf_getflag(ddlb_untask.text)
- ll_daynum_task = Long(em_untask.Text)
- ELSE
- li_untask = -1
- ll_daynum_task = 0
- END IF
- dw_1.Retrieve(ins_inuse,ins_areaname,sys_areaid,ins_state,sys_user_outrep, sys_option_outrep,li_unsale,ll_daynum,li_untask,ll_daynum_task)
- Parent.TriggerEvent('ue_retr_rep')
- Parent.TriggerEvent('ue_retr_plan')
- Parent.TriggerEvent('ue_retr_interview')
- Parent.TriggerEvent('ue_retr_price')
- Parent.TriggerEvent('ue_retr_task')
- Parent.TriggerEvent('ue_retr_outware')
- Parent.TriggerEvent('ue_retr_oppose')
- Parent.TriggerEvent('ue_retr_station')
- Parent.TriggerEvent('ue_retr_item')
- Parent.TriggerEvent('ue_retr_sample')
- Parent.TriggerEvent('ue_retr_rev')
- Parent.TriggerEvent('ue_retr_send')
- end event
- type st_3 from w_publ_easyq`st_3 within w_cust_crm
- integer x = 5
- integer y = 196
- integer width = 261
- string text = "客户编号:"
- end type
- type st_4 from w_publ_easyq`st_4 within w_cust_crm
- integer x = 1111
- integer y = 328
- string text = ""
- end type
- type em_1 from w_publ_easyq`em_1 within w_cust_crm
- integer x = 1321
- integer y = 432
- end type
- type em_2 from w_publ_easyq`em_2 within w_cust_crm
- integer x = 1810
- integer y = 432
- end type
- type ddlb_yl from w_publ_easyq`ddlb_yl within w_cust_crm
- integer x = 2085
- integer y = 640
- end type
- type cbx_yl from w_publ_easyq`cbx_yl within w_cust_crm
- integer x = 1874
- integer y = 644
- end type
- event cbx_yl::clicked;long i = 0
- end event
- type dw_1 from w_publ_easyq`dw_1 within w_cust_crm
- integer x = 1001
- integer y = 288
- integer width = 2551
- integer height = 1200
- string dataobject = "dw_cust_crm_index"
- end type
- event dw_1::rowfocuschanged;call super::rowfocuschanged;IF currentrow > 0 THEN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- END IF
- PARENT.TriggerEvent('ue_retr_rep')
- PARENT.TriggerEvent('ue_retr_plan')
- PARENT.TriggerEvent('ue_retr_interview')
- PARENT.TriggerEvent('ue_retr_price')
- PARENT.TriggerEvent('ue_retr_task')
- PARENT.TriggerEvent('ue_retr_outware')
- PARENT.TriggerEvent('ue_retr_oppose')
- PARENT.TriggerEvent('ue_retr_station')
- PARENT.TriggerEvent('ue_retr_item')
- PARENT.TriggerEvent('ue_retr_sample')
- PARENT.TriggerEvent('ue_retr_rev')
- PARENT.TriggerEvent('ue_retr_send')
- end event
- event dw_1::clicked;call super::clicked;IF row > 0 THEN
- This.SelectRow(0,False)
- This.SetRow(row)
- This.SelectRow(row,True)
- END IF
- end event
- type sle_mtrl from w_publ_easyq`sle_mtrl within w_cust_crm
- end type
- type sle_cust from w_publ_easyq`sle_cust within w_cust_crm
- boolean visible = true
- integer x = 261
- integer y = 180
- integer width = 503
- integer height = 88
- end type
- type st_mtrl from w_publ_easyq`st_mtrl within w_cust_crm
- end type
- type st_cust from w_publ_easyq`st_cust within w_cust_crm
- end type
- type cbx_loginretr from w_publ_easyq`cbx_loginretr within w_cust_crm
- end type
- type pb_em1 from w_publ_easyq`pb_em1 within w_cust_crm
- boolean visible = false
- end type
- type pb_em2 from w_publ_easyq`pb_em2 within w_cust_crm
- boolean visible = false
- end type
- type pb_2 from w_publ_easyq`pb_2 within w_cust_crm
- boolean visible = false
- end type
- type cb_help from w_publ_easyq`cb_help within w_cust_crm
- integer x = 1179
- end type
- type cb_copyself from w_publ_easyq`cb_copyself within w_cust_crm
- boolean visible = false
- end type
- type gb_1 from w_publ_easyq`gb_1 within w_cust_crm
- integer x = 1577
- integer y = 448
- end type
- type ln_bar from w_publ_easyq`ln_bar within w_cust_crm
- end type
- type ln_bar2 from w_publ_easyq`ln_bar2 within w_cust_crm
- end type
- type r_bar from w_publ_easyq`r_bar within w_cust_crm
- end type
- type ln_1 from w_publ_easyq`ln_1 within w_cust_crm
- integer beginy = 280
- integer endy = 280
- end type
- type ln_2 from w_publ_easyq`ln_2 within w_cust_crm
- integer beginy = 284
- integer endy = 284
- end type
- type ln_3 from w_publ_easyq`ln_3 within w_cust_crm
- boolean visible = false
- end type
- type ln_4 from w_publ_easyq`ln_4 within w_cust_crm
- boolean visible = false
- end type
- type tv_1 from uo_tv_cusarea within w_cust_crm
- integer y = 288
- integer width = 997
- integer height = 1200
- integer taborder = 60
- boolean bringtotop = true
- integer textsize = -9
- fontcharset fontcharset = gb2312charset!
- fontfamily fontfamily = anyfont!
- string facename = "宋体"
- end type
- event selectionchanged;call super::selectionchanged;ins_areaname = THIS.uo_cur_info.areaname
- IF THIS.uo_cur_info.sonflag = 1 THEN
- cur_cusareaid = THIS.uo_cur_info.cusareaid
- ELSE
- cur_cusareaid = 0
- END IF
- ins_areaname = ins_areaname + '%'
- cb_1.TriggerEvent(Clicked!)
- end event
- type tab_1 from tab within w_cust_crm
- event create ( )
- event destroy ( )
- integer y = 1492
- integer width = 3543
- integer height = 728
- integer taborder = 80
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long backcolor = 134217739
- boolean raggedright = true
- boolean focusonbuttondown = true
- integer selectedtab = 1
- tabpage_1 tabpage_1
- tabpage_8 tabpage_8
- tabpage_7 tabpage_7
- tabpage_2 tabpage_2
- tabpage_3 tabpage_3
- tabpage_6 tabpage_6
- tabpage_9 tabpage_9
- tabpage_4 tabpage_4
- tabpage_5 tabpage_5
- tabpage_12 tabpage_12
- tabpage_10 tabpage_10
- tabpage_11 tabpage_11
- end type
- on tab_1.create
- this.tabpage_1=create tabpage_1
- this.tabpage_8=create tabpage_8
- this.tabpage_7=create tabpage_7
- this.tabpage_2=create tabpage_2
- this.tabpage_3=create tabpage_3
- this.tabpage_6=create tabpage_6
- this.tabpage_9=create tabpage_9
- this.tabpage_4=create tabpage_4
- this.tabpage_5=create tabpage_5
- this.tabpage_12=create tabpage_12
- this.tabpage_10=create tabpage_10
- this.tabpage_11=create tabpage_11
- this.Control[]={this.tabpage_1,&
- this.tabpage_8,&
- this.tabpage_7,&
- this.tabpage_2,&
- this.tabpage_3,&
- this.tabpage_6,&
- this.tabpage_9,&
- this.tabpage_4,&
- this.tabpage_5,&
- this.tabpage_12,&
- this.tabpage_10,&
- this.tabpage_11}
- end on
- on tab_1.destroy
- destroy(this.tabpage_1)
- destroy(this.tabpage_8)
- destroy(this.tabpage_7)
- destroy(this.tabpage_2)
- destroy(this.tabpage_3)
- destroy(this.tabpage_6)
- destroy(this.tabpage_9)
- destroy(this.tabpage_4)
- destroy(this.tabpage_5)
- destroy(this.tabpage_12)
- destroy(this.tabpage_10)
- destroy(this.tabpage_11)
- end on
- type tabpage_1 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "联系人"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- cb_12 cb_12
- cb_8 cb_8
- cb_7 cb_7
- dw_rep dw_rep
- end type
- on tabpage_1.create
- this.cb_12=create cb_12
- this.cb_8=create cb_8
- this.cb_7=create cb_7
- this.dw_rep=create dw_rep
- this.Control[]={this.cb_12,&
- this.cb_8,&
- this.cb_7,&
- this.dw_rep}
- end on
- on tabpage_1.destroy
- destroy(this.cb_12)
- destroy(this.cb_8)
- destroy(this.cb_7)
- destroy(this.dw_rep)
- end on
- type cb_12 from commandbutton within tabpage_1
- integer y = 4
- integer width = 192
- integer height = 72
- integer taborder = 30
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "增加"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_rep')
- end event
- type cb_8 from commandbutton within tabpage_1
- integer x = 192
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "修改"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_rep')
- end event
- type cb_7 from commandbutton within tabpage_1
- integer x = 398
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 30
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "删除"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_rep')
- end event
- type dw_rep from u_dw_rbtnfilter within tabpage_1
- integer y = 80
- integer width = 3506
- integer height = 528
- integer taborder = 20
- string dataobject = "dw_cust_crm_rep"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type tabpage_8 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "辅助项目"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- dw_item dw_item
- cb_25 cb_25
- end type
- on tabpage_8.create
- this.dw_item=create dw_item
- this.cb_25=create cb_25
- this.Control[]={this.dw_item,&
- this.cb_25}
- end on
- on tabpage_8.destroy
- destroy(this.dw_item)
- destroy(this.cb_25)
- end on
- type dw_item from u_dw_rbtnfilter within tabpage_8
- integer y = 80
- integer width = 3506
- integer height = 484
- integer taborder = 30
- string dataobject = "dw_cust_crm_item"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type cb_25 from commandbutton within tabpage_8
- integer x = 5
- integer y = 4
- integer width = 274
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "修改摘要"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_item')
- end event
- type tabpage_7 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "货运部"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- cb_18 cb_18
- cb_17 cb_17
- cb_16 cb_16
- dw_station dw_station
- end type
- on tabpage_7.create
- this.cb_18=create cb_18
- this.cb_17=create cb_17
- this.cb_16=create cb_16
- this.dw_station=create dw_station
- this.Control[]={this.cb_18,&
- this.cb_17,&
- this.cb_16,&
- this.dw_station}
- end on
- on tabpage_7.destroy
- destroy(this.cb_18)
- destroy(this.cb_17)
- destroy(this.cb_16)
- destroy(this.dw_station)
- end on
- type cb_18 from commandbutton within tabpage_7
- integer x = 192
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 50
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "删除"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_station')
- end event
- type cb_17 from commandbutton within tabpage_7
- integer x = 398
- integer y = 4
- integer width = 384
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "设默认货运部"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_dft_station')
- end event
- type cb_16 from commandbutton within tabpage_7
- integer y = 4
- integer width = 192
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "增加"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_station')
- end event
- type dw_station from u_dw_rbtnfilter within tabpage_7
- integer y = 80
- integer width = 3506
- integer height = 492
- integer taborder = 20
- string dataobject = "dw_cust_crm_station"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type tabpage_2 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "走访"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- st_interview st_interview
- cb_31 cb_31
- cb_30 cb_30
- cb_21 cb_21
- em_edate2 em_edate2
- st_6 st_6
- em_fdate2 em_fdate2
- cb_11 cb_11
- cb_10 cb_10
- cb_9 cb_9
- dw_interview dw_interview
- end type
- on tabpage_2.create
- this.st_interview=create st_interview
- this.cb_31=create cb_31
- this.cb_30=create cb_30
- this.cb_21=create cb_21
- this.em_edate2=create em_edate2
- this.st_6=create st_6
- this.em_fdate2=create em_fdate2
- this.cb_11=create cb_11
- this.cb_10=create cb_10
- this.cb_9=create cb_9
- this.dw_interview=create dw_interview
- this.Control[]={this.st_interview,&
- this.cb_31,&
- this.cb_30,&
- this.cb_21,&
- this.em_edate2,&
- this.st_6,&
- this.em_fdate2,&
- this.cb_11,&
- this.cb_10,&
- this.cb_9,&
- this.dw_interview}
- end on
- on tabpage_2.destroy
- destroy(this.st_interview)
- destroy(this.cb_31)
- destroy(this.cb_30)
- destroy(this.cb_21)
- destroy(this.em_edate2)
- destroy(this.st_6)
- destroy(this.em_fdate2)
- destroy(this.cb_11)
- destroy(this.cb_10)
- destroy(this.cb_9)
- destroy(this.dw_interview)
- end on
- type st_interview from statictext within tabpage_2
- boolean visible = false
- integer x = 1221
- integer y = 16
- integer width = 398
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 16711680
- long backcolor = 134217739
- string text = "附件数()"
- boolean focusrectangle = false
- end type
- type cb_31 from commandbutton within tabpage_2
- integer x = 901
- integer y = 4
- integer width = 297
- integer height = 72
- integer taborder = 50
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "添加附件"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_edit_interview')
- end event
- type cb_30 from commandbutton within tabpage_2
- integer x = 603
- integer y = 4
- integer width = 297
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "查看附件"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_view_interview')
- end event
- type cb_21 from commandbutton within tabpage_2
- integer x = 2565
- integer y = 4
- integer width = 169
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "刷新"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_interview')
- end event
- type em_edate2 from editmask within tabpage_2
- integer x = 2149
- integer width = 402
- integer height = 84
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type st_6 from statictext within tabpage_2
- integer x = 2043
- integer y = 24
- integer width = 82
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "~~"
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type em_fdate2 from editmask within tabpage_2
- integer x = 1637
- integer width = 402
- integer height = 84
- integer taborder = 10
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(RelativeDate ( Today(), -90 ),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type cb_11 from commandbutton within tabpage_2
- integer x = 398
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 50
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "删除"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_interview')
- end event
- type cb_10 from commandbutton within tabpage_2
- integer x = 192
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "修改"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_interview')
- end event
- type cb_9 from commandbutton within tabpage_2
- integer y = 4
- integer width = 192
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "增加"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_interview')
- end event
- type dw_interview from u_dw_rbtnfilter within tabpage_2
- integer y = 88
- integer width = 3506
- integer height = 484
- integer taborder = 20
- string dataobject = "dw_cust_crm_interview"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;//PARENT.GetParent().GetParent().TriggerEvent('ue_fj_cnt_interview')
- IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type tabpage_3 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "工作计划"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- st_plan st_plan
- cb_29 cb_29
- cb_28 cb_28
- cb_20 cb_20
- em_edate3 em_edate3
- st_5 st_5
- em_fdate3 em_fdate3
- cb_15 cb_15
- cb_14 cb_14
- cb_13 cb_13
- dw_plan dw_plan
- end type
- on tabpage_3.create
- this.st_plan=create st_plan
- this.cb_29=create cb_29
- this.cb_28=create cb_28
- this.cb_20=create cb_20
- this.em_edate3=create em_edate3
- this.st_5=create st_5
- this.em_fdate3=create em_fdate3
- this.cb_15=create cb_15
- this.cb_14=create cb_14
- this.cb_13=create cb_13
- this.dw_plan=create dw_plan
- this.Control[]={this.st_plan,&
- this.cb_29,&
- this.cb_28,&
- this.cb_20,&
- this.em_edate3,&
- this.st_5,&
- this.em_fdate3,&
- this.cb_15,&
- this.cb_14,&
- this.cb_13,&
- this.dw_plan}
- end on
- on tabpage_3.destroy
- destroy(this.st_plan)
- destroy(this.cb_29)
- destroy(this.cb_28)
- destroy(this.cb_20)
- destroy(this.em_edate3)
- destroy(this.st_5)
- destroy(this.em_fdate3)
- destroy(this.cb_15)
- destroy(this.cb_14)
- destroy(this.cb_13)
- destroy(this.dw_plan)
- end on
- type st_plan from statictext within tabpage_3
- boolean visible = false
- integer x = 1221
- integer y = 16
- integer width = 398
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 16711680
- long backcolor = 134217739
- string text = "附件数()"
- boolean focusrectangle = false
- end type
- type cb_29 from commandbutton within tabpage_3
- integer x = 901
- integer y = 4
- integer width = 297
- integer height = 72
- integer taborder = 50
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "添加附件"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_edit_plan')
- end event
- type cb_28 from commandbutton within tabpage_3
- integer x = 603
- integer y = 4
- integer width = 297
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "查看附件"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_view_plan')
- end event
- type cb_20 from commandbutton within tabpage_3
- integer x = 2693
- integer y = 4
- integer width = 169
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "刷新"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_plan')
- end event
- type em_edate3 from editmask within tabpage_3
- integer x = 2277
- integer width = 402
- integer height = 84
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(RelativeDate ( Today(), 30 ),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type st_5 from statictext within tabpage_3
- integer x = 2171
- integer y = 24
- integer width = 82
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "~~"
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type em_fdate3 from editmask within tabpage_3
- integer x = 1765
- integer width = 402
- integer height = 84
- integer taborder = 10
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(RelativeDate ( Today(), -7 ),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type cb_15 from commandbutton within tabpage_3
- integer x = 398
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 50
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "删除"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_plan')
- end event
- type cb_14 from commandbutton within tabpage_3
- integer x = 192
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "修改"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_plan')
- end event
- type cb_13 from commandbutton within tabpage_3
- integer y = 4
- integer width = 192
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "增加"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_plan')
- end event
- type dw_plan from u_dw_rbtnfilter within tabpage_3
- integer y = 88
- integer width = 3506
- integer height = 484
- integer taborder = 20
- string dataobject = "dw_cust_crm_plan"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;//PARENT.GetParent().GetParent().TriggerEvent('ue_fj_cnt_plan')
- IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type tabpage_6 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "投拆"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- cb_6 cb_6
- st_1 st_1
- em_fdate6 em_fdate6
- em_edate6 em_edate6
- dw_oppose dw_oppose
- end type
- on tabpage_6.create
- this.cb_6=create cb_6
- this.st_1=create st_1
- this.em_fdate6=create em_fdate6
- this.em_edate6=create em_edate6
- this.dw_oppose=create dw_oppose
- this.Control[]={this.cb_6,&
- this.st_1,&
- this.em_fdate6,&
- this.em_edate6,&
- this.dw_oppose}
- end on
- on tabpage_6.destroy
- destroy(this.cb_6)
- destroy(this.st_1)
- destroy(this.em_fdate6)
- destroy(this.em_edate6)
- destroy(this.dw_oppose)
- end on
- type cb_6 from commandbutton within tabpage_6
- integer x = 928
- integer y = 4
- integer width = 169
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "刷新"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_oppose')
- end event
- type st_1 from statictext within tabpage_6
- integer x = 407
- integer y = 24
- integer width = 82
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "~~"
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type em_fdate6 from editmask within tabpage_6
- integer width = 402
- integer height = 84
- integer taborder = 30
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(RelativeDate ( Today(), -90 ),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type em_edate6 from editmask within tabpage_6
- integer x = 512
- integer width = 402
- integer height = 84
- integer taborder = 30
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type dw_oppose from u_dw_rbtnfilter within tabpage_6
- integer y = 88
- integer width = 3506
- integer height = 484
- integer taborder = 20
- string dataobject = "dw_crm_oppsoe"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type tabpage_9 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "样版"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- st_sample st_sample
- cb_27 cb_27
- cb_26 cb_26
- dw_sample dw_sample
- cb_24 cb_24
- cb_23 cb_23
- cb_22 cb_22
- cb_19 cb_19
- em_edate9 em_edate9
- st_2 st_2
- em_fdate9 em_fdate9
- end type
- on tabpage_9.create
- this.st_sample=create st_sample
- this.cb_27=create cb_27
- this.cb_26=create cb_26
- this.dw_sample=create dw_sample
- this.cb_24=create cb_24
- this.cb_23=create cb_23
- this.cb_22=create cb_22
- this.cb_19=create cb_19
- this.em_edate9=create em_edate9
- this.st_2=create st_2
- this.em_fdate9=create em_fdate9
- this.Control[]={this.st_sample,&
- this.cb_27,&
- this.cb_26,&
- this.dw_sample,&
- this.cb_24,&
- this.cb_23,&
- this.cb_22,&
- this.cb_19,&
- this.em_edate9,&
- this.st_2,&
- this.em_fdate9}
- end on
- on tabpage_9.destroy
- destroy(this.st_sample)
- destroy(this.cb_27)
- destroy(this.cb_26)
- destroy(this.dw_sample)
- destroy(this.cb_24)
- destroy(this.cb_23)
- destroy(this.cb_22)
- destroy(this.cb_19)
- destroy(this.em_edate9)
- destroy(this.st_2)
- destroy(this.em_fdate9)
- end on
- type st_sample from statictext within tabpage_9
- boolean visible = false
- integer x = 1221
- integer y = 16
- integer width = 398
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 16711680
- long backcolor = 134217739
- string text = "附件数()"
- boolean focusrectangle = false
- end type
- type cb_27 from commandbutton within tabpage_9
- integer x = 901
- integer y = 4
- integer width = 297
- integer height = 72
- integer taborder = 50
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "添加附件"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_edit_sample')
- end event
- type cb_26 from commandbutton within tabpage_9
- integer x = 603
- integer y = 4
- integer width = 297
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "查看附件"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_fj_view_sample')
- end event
- type dw_sample from u_dw_rbtnfilter within tabpage_9
- integer y = 88
- integer width = 3506
- integer height = 484
- integer taborder = 30
- string dataobject = "dw_cust_crm_sample"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;//PARENT.GetParent().GetParent().TriggerEvent('ue_fj_cnt_sample')
- IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type cb_24 from commandbutton within tabpage_9
- integer x = 398
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 50
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "删除"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_del_sample')
- end event
- type cb_23 from commandbutton within tabpage_9
- integer x = 192
- integer y = 4
- integer width = 206
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "修改"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_mod_sample')
- end event
- type cb_22 from commandbutton within tabpage_9
- integer y = 4
- integer width = 192
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "增加"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_add_sample')
- end event
- type cb_19 from commandbutton within tabpage_9
- integer x = 2624
- integer y = 4
- integer width = 169
- integer height = 72
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "刷新"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_sample')
- end event
- type em_edate9 from editmask within tabpage_9
- integer x = 2208
- integer width = 402
- integer height = 84
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type st_2 from statictext within tabpage_9
- integer x = 2103
- integer y = 24
- integer width = 82
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "~~"
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type em_fdate9 from editmask within tabpage_9
- integer x = 1696
- integer width = 402
- integer height = 84
- integer taborder = 10
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(RelativeDate ( Today(), -365 ),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type tabpage_4 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "最新售价"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- dw_price dw_price
- end type
- on tabpage_4.create
- this.dw_price=create dw_price
- this.Control[]={this.dw_price}
- end on
- on tabpage_4.destroy
- destroy(this.dw_price)
- end on
- type dw_price from u_dw_rbtnfilter within tabpage_4
- integer width = 3506
- integer height = 612
- integer taborder = 20
- string dataobject = "dw_cust_crm_price"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type tabpage_5 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "订货历史"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- dw_task dw_task
- end type
- on tabpage_5.create
- this.dw_task=create dw_task
- this.Control[]={this.dw_task}
- end on
- on tabpage_5.destroy
- destroy(this.dw_task)
- end on
- type dw_task from u_dw_rbtnfilter within tabpage_5
- integer width = 3506
- integer height = 616
- integer taborder = 20
- string dataobject = "dw_cust_crm_task"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- event doubleclicked;call super::doubleclicked;//IF row > 0 THEN
- // String ls_code
- // Long ll_scid
- //
- // ll_scid = THIS.Object.u_saletask_scid[row]
- // ls_code = THIS.Object.u_saletask_taskcode[row]
- //
- // f_open_win(ll_scid,ls_code)
- //END IF
- //
- end event
- type tabpage_12 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "发货历史"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- dw_outware dw_outware
- end type
- on tabpage_12.create
- this.dw_outware=create dw_outware
- this.Control[]={this.dw_outware}
- end on
- on tabpage_12.destroy
- destroy(this.dw_outware)
- end on
- type dw_outware from u_dw_rbtnfilter within tabpage_12
- integer width = 3506
- integer height = 616
- string dataobject = "dw_cust_crm_outware"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event doubleclicked;call super::doubleclicked;//IF row > 0 THEN
- // String ls_code
- // Long ll_scid
- //
- // ll_scid = THIS.Object.u_saletask_scid[row]
- // ls_code = THIS.Object.u_saletask_taskcode[row]
- //
- // f_open_win(ll_scid,ls_code)
- //END IF
- //
- end event
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- type tabpage_10 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "邮件接收历史"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- dw_rev dw_rev
- cb_32 cb_32
- em_edate4 em_edate4
- st_7 st_7
- em_fdate4 em_fdate4
- end type
- on tabpage_10.create
- this.dw_rev=create dw_rev
- this.cb_32=create cb_32
- this.em_edate4=create em_edate4
- this.st_7=create st_7
- this.em_fdate4=create em_fdate4
- this.Control[]={this.dw_rev,&
- this.cb_32,&
- this.em_edate4,&
- this.st_7,&
- this.em_fdate4}
- end on
- on tabpage_10.destroy
- destroy(this.dw_rev)
- destroy(this.cb_32)
- destroy(this.em_edate4)
- destroy(this.st_7)
- destroy(this.em_fdate4)
- end on
- type dw_rev from u_dw_rbtnfilter within tabpage_10
- integer y = 88
- integer width = 3506
- integer height = 524
- integer taborder = 30
- string dataobject = "dw_email_crm_rev"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- event doubleclicked;call super::doubleclicked;IF dw_rev.GetRow() = 0 THEN RETURN
- s_email_set s_parm
- String ls_msg
- s_parm.sendid = dw_rev.Object.id[dw_rev.GetRow()]
- IF dw_rev.Object.u_email_msg_mailtype[dw_rev.GetRow()] = '发件' THEN
- OpenWithParm(w_email_send_new,s_parm)
- ELSE
-
- Long arr[]
- Long i
- FOR i = 1 To dw_rev.RowCount()
- arr[i] = dw_rev.Object.id[i]
- NEXT
- s_parm.arr = arr
- s_parm.cur = dw_rev.GetRow()
- s_parm.title="已接收的邮件"
- OpenWithParm(w_email_rev, s_parm)
- END IF
- end event
- type cb_32 from commandbutton within tabpage_10
- integer x = 928
- integer y = 4
- integer width = 169
- integer height = 72
- integer taborder = 50
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "刷新"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_rev')
- end event
- type em_edate4 from editmask within tabpage_10
- integer x = 512
- integer width = 402
- integer height = 84
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type st_7 from statictext within tabpage_10
- integer x = 407
- integer y = 24
- integer width = 82
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "~~"
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type em_fdate4 from editmask within tabpage_10
- integer width = 402
- integer height = 84
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(RelativeDate ( Today(), -90 ),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type tabpage_11 from userobject within tab_1
- integer x = 18
- integer y = 96
- integer width = 3506
- integer height = 616
- long backcolor = 134217739
- string text = "邮件发送历史"
- long tabtextcolor = 33554432
- long tabbackcolor = 134217739
- long picturemaskcolor = 536870912
- dw_send dw_send
- cb_33 cb_33
- em_edate5 em_edate5
- st_8 st_8
- em_fdate5 em_fdate5
- end type
- on tabpage_11.create
- this.dw_send=create dw_send
- this.cb_33=create cb_33
- this.em_edate5=create em_edate5
- this.st_8=create st_8
- this.em_fdate5=create em_fdate5
- this.Control[]={this.dw_send,&
- this.cb_33,&
- this.em_edate5,&
- this.st_8,&
- this.em_fdate5}
- end on
- on tabpage_11.destroy
- destroy(this.dw_send)
- destroy(this.cb_33)
- destroy(this.em_edate5)
- destroy(this.st_8)
- destroy(this.em_fdate5)
- end on
- type dw_send from u_dw_rbtnfilter within tabpage_11
- integer y = 88
- integer width = 3506
- integer height = 484
- integer taborder = 30
- string dataobject = "dw_email_crm_send"
- boolean hscrollbar = true
- boolean vscrollbar = true
- boolean hsplitscroll = true
- boolean rbutton_filter_use = true
- boolean titleclick_sort_use = true
- end type
- event rowfocuschanged;call super::rowfocuschanged;IF currentrow <= 0 THEN RETURN
- THIS.SelectRow(0,FALSE)
- THIS.SelectRow(currentrow,TRUE)
- end event
- event doubleclicked;call super::doubleclicked;IF dw_send.GetRow() = 0 THEN RETURN
- s_email_set s_parm
- String ls_msg
- Long arr[]
- Long i
- s_parm.sendid = dw_send.Object.id[dw_send.GetRow()]
-
-
- FOR i = 1 To dw_send.RowCount()
- arr[i] = dw_send.Object.id[i]
- NEXT
- s_parm.arr = arr
- s_parm.cur = dw_send.GetRow()
- s_parm.title="已发送的邮件"
- OpenWithParm(w_email_rev, s_parm)
- end event
- type cb_33 from commandbutton within tabpage_11
- integer x = 928
- integer y = 4
- integer width = 169
- integer height = 72
- integer taborder = 30
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- string text = "刷新"
- end type
- event clicked;PARENT.GetParent().GetParent().TriggerEvent('ue_retr_send')
- end event
- type em_edate5 from editmask within tabpage_11
- integer x = 512
- integer width = 402
- integer height = 84
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(Today(),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type st_8 from statictext within tabpage_11
- integer x = 407
- integer y = 24
- integer width = 82
- integer height = 48
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "~~"
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type em_fdate5 from editmask within tabpage_11
- integer width = 402
- integer height = 84
- integer taborder = 40
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "none"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- maskdatatype maskdatatype = datemask!
- string mask = "yyyy-mm-dd"
- boolean spin = true
- end type
- event constructor;THIS.Text = String(RelativeDate ( Today(), -90 ),'yyyy-mm-dd')
- end event
- event rbuttondown;s_calender_arg s_calender
- s_calender.PointerX = THIS.PointerX()
- s_calender.PointerY = THIS.PointerY()
- s_calender.X = THIS.X
- s_calender.Y = THIS.Y + tab_1.Y
- OpenWithParm(w_calendar,s_calender)
- THIS.Text = String(id_date_selected)
- end event
- type cb_3 from uo_imflatbutton within w_cust_crm
- integer x = 302
- integer width = 151
- integer height = 164
- integer taborder = 30
- boolean bringtotop = true
- string text = "增加"
- string normalpicname = "new.bmp"
- integer picsize = 16
- toolbaralignment pic_align = alignattop!
- boolean border = false
- end type
- event clicked;call super::clicked;IF NOT f_power_ind(1258) THEN
- MessageBox('提示','你没有使用权限!',information!,ok!)
- RETURN
- END IF
- Long ll_row
- s_custom s_cust
- s_cust.cusareaid = cur_cusareaid
- s_cust.cusid = 0
- OpenWithParm(w_cust_crm_add,s_cust)
- cb_1.TriggerEvent(Clicked!)
- end event
- type cb_4 from uo_imflatbutton within w_cust_crm
- integer x = 453
- integer width = 151
- integer height = 164
- integer taborder = 30
- boolean bringtotop = true
- string text = "修改"
- string normalpicname = "open.bmp"
- integer picsize = 16
- toolbaralignment pic_align = alignattop!
- boolean border = false
- end type
- event clicked;call super::clicked;IF NOT f_power_ind(1741) THEN
- MessageBox('提示','你没有使用权限!',information!,ok!)
- RETURN
- END IF
- Long ll_row
- s_custom s_cust
- dw_1.AcceptText()
- ll_row = dw_1.GetRow()
- IF ll_row <= 0 THEN
- MessageBox('提示','请先选择客户',information!,ok!)
- RETURN
- END IF
- s_cust.cusid = dw_1.Object.cusid[ll_row]
- OpenWithParm(w_cust_crm_add,s_cust)
- cb_1.TriggerEvent(Clicked!)
- end event
- type cb_5 from uo_imflatbutton within w_cust_crm
- integer x = 603
- integer width = 151
- integer height = 164
- integer taborder = 40
- boolean bringtotop = true
- string text = "删除"
- string normalpicname = "delete.bmp"
- integer picsize = 16
- toolbaralignment pic_align = alignattop!
- boolean border = false
- end type
- event clicked;call super::clicked;IF NOT f_power_ind(1259) THEN
- MessageBox('提示','你没有使用权限!',information!,ok!)
- RETURN
- END IF
- Long LS_id
- Long LS_LONG = 0
- String ls_code,arg_msg
- IF dw_1.GetRow() <= 0 THEN
- MessageBox('提示','没有操作目标记录!',information!,ok!)
- RETURN
- END IF
- IF MessageBox ("询问","是否确定要删除当前记录?(选择确定后记录将不可恢复)",Question!,YesNo! ) = 2 THEN
- RETURN
- END IF
- LS_id = dw_1.Object.cusid[dw_1.GetRow()]
- ls_code = dw_1.Object.cuscode[dw_1.GetRow()]
- if uo_cus.uof_del_cust(LS_id,arg_msg,true) = 0 then
- MessageBox ("错误","删除客户资料操作失败!(请重试!)"+arg_msg,stopsign!,ok!)
- RETURN
- END IF
- dw_1.SetRedraw (FALSE)
- dw_1.DeleteRow (0)
- dw_1.TriggerEvent (RowFocusChanged!)
- dw_1.SetRedraw (TRUE)
- f_setsysoplog('定义资料','客户定义资料删除,ID:'+String(LS_id)+',code:'+ls_code,arg_msg,TRUE)
- end event
- type ddlb_1 from dropdownlistbox within w_cust_crm
- integer x = 1938
- integer y = 184
- integer width = 261
- integer height = 300
- integer taborder = 50
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "有效"
- boolean sorted = false
- string item[] = {"[全部]","有效","无效"}
- borderstyle borderstyle = stylelowered!
- end type
- event selectionchanged;IF THIS.Text = '有效' THEN
- ins_inuse = 1
- ELSEIF THIS.Text = '无效' THEN
- ins_inuse = 0
- ELSE
- ins_inuse = -1
- END IF
- cb_1.TriggerEvent(Clicked!)
- end event
- type ddlb_2 from dropdownlistbox within w_cust_crm
- integer x = 1586
- integer y = 184
- integer width = 334
- integer height = 656
- integer taborder = 60
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "[全部]"
- boolean sorted = false
- string item[] = {"[全部]","公共","准客户","正式","黑名单"}
- borderstyle borderstyle = stylelowered!
- end type
- event selectionchanged;IF This.Text = '正式' THEN
- ins_state = 1
- ELSEIF This.Text = '公共' THEN
- ins_state = 0
- ELSEIF This.Text = '黑名单' THEN
- ins_state = 2
- ELSEIF This.Text = '准客户' THEN
- ins_state = 3
- ELSE
- ins_state = -1
- END IF
- cb_1.TriggerEvent(Clicked!)
- end event
- type cb_audit from uo_imflatbutton within w_cust_crm
- boolean visible = false
- integer x = 603
- integer width = 151
- integer height = 164
- integer taborder = 30
- boolean bringtotop = true
- string text = "设置"
- string normalpicname = "audit.bmp"
- integer picsize = 16
- toolbaralignment pic_align = alignattop!
- boolean border = false
- end type
- event clicked;call super::clicked;m_Dfc_Control_PopupMenu dmPopupMenu
- string menustr
- menustr="Text=设正式客户~tEvent=ue_set_cust_ok"
- menustr=menustr + "|" + "Text=设非正式客户~tEvent=ue_set_cust_notok"
- menustr=menustr + "|" + "Text=设黑名单客户~tEvent=ue_set_cust_blacklist"
- menustr=menustr + "|" + "Text=-"
- menustr=menustr + "|" + "Text=查看附件~tEvent=ue_fj_view_cust"
- menustr=menustr + "|" + "Text=添加附件~tEvent=ue_fj_edit_cust"
- if len(trim(menustr))<>0 then
- dmPopupMenu = Create m_Dfc_Control_PopupMenu
- dmPopupMenu.mf_BuildMenu(This, menustr)
- dmPopupMenu.mf_PopMenu()
- Destroy dmPopupMenu
- end if
- end event
- type cb_other from uo_imflatbutton within w_cust_crm
- integer x = 754
- integer width = 274
- integer height = 164
- integer taborder = 40
- boolean bringtotop = true
- string text = "辅助功能"
- string normalpicname = "other.bmp"
- integer picsize = 16
- toolbaralignment pic_align = alignattop!
- boolean border = false
- end type
- event clicked;call super::clicked;m_Dfc_Control_PopupMenu dmPopupMenu
- String menustr
- //menustr="Text=发送邮件~tEvent=ue_email_send"
- menustr = menustr + "|" + "Text=邮件管理~tEvent=ue_email_view"
- menustr = menustr + "|" + "Text=-"
- menustr = menustr + "|" + "Text=业务员设定~tEvent=ue_outrep_def"
- menustr = menustr + "|" + "Text=公共客户批设置业务员~tEvent=ue_outrep_p_custype"
- menustr = menustr + "|" + "Text=正式客户变更业务员~tEvent=ue_outrep_trans"
- menustr = menustr + "|" + "Text=-"
- menustr = menustr + "|" + "Text=申请准客户~tEvent=ue_rq_cust"
- IF Len(Trim(menustr)) <> 0 THEN
- dmPopupMenu = Create m_Dfc_Control_PopupMenu
- dmPopupMenu.mf_BuildMenu(This, menustr)
- dmPopupMenu.mf_PopMenu()
- Destroy dmPopupMenu
- END IF
- end event
- type st_10 from statictext within w_cust_crm
- integer x = 2999
- integer y = 204
- integer width = 96
- integer height = 60
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "天"
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type cbx_unsale from checkbox within w_cust_crm
- integer x = 2217
- integer y = 196
- integer width = 370
- integer height = 60
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "最后发货"
- end type
- type em_unsale from editmask within w_cust_crm
- integer x = 2793
- integer y = 192
- integer width = 201
- integer height = 84
- integer taborder = 30
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "90"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- string mask = "##0"
- end type
- type cbx_untask from checkbox within w_cust_crm
- integer x = 3118
- integer y = 196
- integer width = 370
- integer height = 60
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "最后订货"
- end type
- type em_untask from editmask within w_cust_crm
- integer x = 3698
- integer y = 200
- integer width = 201
- integer height = 84
- integer taborder = 60
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = "90"
- alignment alignment = center!
- borderstyle borderstyle = stylelowered!
- string mask = "##0"
- end type
- type st_9 from statictext within w_cust_crm
- integer x = 3904
- integer y = 212
- integer width = 96
- integer height = 60
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "天"
- alignment alignment = center!
- boolean focusrectangle = false
- end type
- type st_11 from statictext within w_cust_crm
- integer x = 768
- integer y = 196
- integer width = 320
- integer height = 60
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- long backcolor = 134217739
- string text = "电话号码含:"
- boolean focusrectangle = false
- end type
- type sle_tel_number from u_sleedit within w_cust_crm
- integer x = 1070
- integer y = 180
- integer taborder = 20
- boolean bringtotop = true
- end type
- event inputchanged;call super::inputchanged;PARENT.TRIGGEREVENT("ue_filter_telnumber")
- end event
- type ddlb_unsale from dropdownlistbox within w_cust_crm
- integer x = 2551
- integer y = 188
- integer width = 224
- integer height = 440
- integer taborder = 50
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = ">="
- boolean sorted = false
- string item[] = {">=",">","<=","<","="}
- borderstyle borderstyle = stylelowered!
- end type
- type ddlb_untask from dropdownlistbox within w_cust_crm
- integer x = 3447
- integer y = 196
- integer width = 224
- integer height = 424
- integer taborder = 70
- boolean bringtotop = true
- integer textsize = -9
- integer weight = 400
- fontcharset fontcharset = gb2312charset!
- fontpitch fontpitch = variable!
- string facename = "宋体"
- long textcolor = 33554432
- string text = ">="
- boolean sorted = false
- string item[] = {">=",">","<=","<","="}
- borderstyle borderstyle = stylelowered!
- end type
|