.bak_5.log 980 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788
  1. !SESSION 2018-06-21 08:47:35.535 -----------------------------------------------
  2. eclipse.buildId=4.4.2.M20150204-1700
  3. java.version=1.7.0_80
  4. java.vendor=Oracle Corporation
  5. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
  6. Framework arguments: -product org.eclipse.epp.package.jee.product
  7. Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
  8. This is a continuation of log file F:\zhcx\.metadata\.bak_4.log
  9. Created Time: 2018-06-21 09:21:32.606
  10. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:21:32.607
  11. !MESSAGE java.lang.NullPointerException
  12. !STACK 1
  13. JavaScript Model Exception: java.lang.NullPointerException
  14. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  15. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  16. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  17. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  18. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  19. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  20. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  21. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  22. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  23. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  24. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  25. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  26. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  27. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  28. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  29. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  30. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  31. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  32. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  33. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  34. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  35. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  36. Caused by: java.lang.NullPointerException
  37. Caused by: java.lang.NullPointerException
  38. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:32.607
  39. !MESSAGE java.lang.NullPointerException
  40. !STACK 0
  41. java.lang.NullPointerException
  42. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:33.966
  43. !MESSAGE Exception occurred during problem detection:
  44. ----------------------------------- SOURCE BEGIN -------------------------------------
  45. (function(){WdatePicker();})();
  46. (function(){WdatePicker();})();
  47. (function(){Data.get();})();
  48. (function(){Data.set();})();
  49. (function(){search();})();
  50. $(function(){
  51. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  52. getfp();
  53. });
  54. var Data = {
  55. "get" : function(){
  56. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  57. var tip = layer.load(2);
  58. var result="";
  59. var url = "getgyxml.do";
  60. $.ajax({
  61. "url" : url,
  62. "data" : {
  63. "start_date" : $("#dateBegin").val(),
  64. "end_date" : $("#dateEnd").val()
  65. },
  66. "type" : "POST",
  67. "dataType" : "json",
  68. "success" : function(data) {
  69. if(data != null && data != ""){
  70. if ( data.status =="success"){
  71. getfp();
  72. alert("获取成功!");
  73. }else {
  74. alert(data.status);
  75. }
  76. }else {
  77. alert("获取失败!");
  78. }
  79. },
  80. "complete": function(){
  81. layer.close(tip);
  82. }
  83. });
  84. }else {
  85. alert("请选择日期!");
  86. }
  87. },
  88. "set" : function(){
  89. if ( $("#fpid option:selected").text() !=""){
  90. var tip = layer.load(2);
  91. var gitem = $("#form1").serialize();
  92. var jrjc;
  93. if ($("#jrjc").prop('checked') == true){
  94. jrjc = $("#departmentId").val();
  95. }else {
  96. jrjc ='N'
  97. }
  98. var url = "saverk.do";
  99. $.ajax({
  100. "url" : url,
  101. "data" : {
  102. "gitem" : gitem,
  103. "jrjc" : jrjc
  104. },
  105. "type" : "POST",
  106. "dataType" : "json",
  107. "async" : true,
  108. "success" : function(data) {
  109. if(data.status ="success"){
  110. alert("入库成功!");
  111. window.location.reload();
  112. }else {
  113. alert(msg);
  114. }
  115. },
  116. "error": function(){
  117. alert("确认失败!");
  118. },
  119. "complete": function(){
  120. layer.close(tip);
  121. }
  122. });
  123. }else {
  124. alert("请选择发票!");
  125. }
  126. }
  127. }
  128. function getfp(){
  129. var tip = layer.load(2);
  130. var url = "getgyfp.do";
  131. $.ajax({
  132. "url" : url,
  133. "type" : "POST",
  134. "dataType" : "json",
  135. "async" : true,
  136. "success" : function(data) {
  137. if(data != null && data != ""){
  138. $("#fpid").empty();
  139. $("#fpid").append("_$tag_____________$tag____");
  140. for(var i = 0; i < data.length; i++){
  141. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  142. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  143. }
  144. }
  145. },
  146. "error" : function(msg){
  147. },
  148. "complete": function(){
  149. layer.close(tip);
  150. }
  151. });
  152. }
  153. $("#fpid").change(function(){
  154. var tip = layer.load(2);
  155. var url = "getgyrkxx.do";
  156. $.ajax({
  157. "url" : url,
  158. "data" : {
  159. "fpId" : $("#fpid").val()
  160. },
  161. "type" : "POST",
  162. "dataType" : "json",
  163. "async" : true,
  164. "success" : function(data) {
  165. $("#dataTable").html("");
  166. if(data != null && data != ""){
  167. var html = "";
  168. for(var i = 0; i < data.length; i++){
  169. var ID = data[i].id == null ? "" : data[i].id;
  170. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  171. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  172. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  173. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  174. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  175. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  176. var GOODS = data[i].goods == null ? "" : data[i].goods;
  177. var NAME = data[i].name == null ? "" : data[i].name;
  178. var SPEC = data[i].spec == null ? "" : data[i].spec;
  179. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  180. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  181. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  182. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  183. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  184. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  185. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  186. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  187. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  188. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  189. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  190. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  191. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  192. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  193. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  194. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  195. var invoice_type_cn =null;
  196. if (invoice_type =="00" ){
  197. invoice_type_cn="销售发票";
  198. }else if (invoice_type == "01") {
  199. invoice_type_cn="更正(对冲)发票";
  200. }else if (invoice_type == "02") {
  201. invoice_type_cn="其它类型发票";
  202. }
  203. html += "_$ta";
  204. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  205. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  206. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  207. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  208. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  209. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  210. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  211. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  212. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  213. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  214. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  215. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  216. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  217. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  218. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  219. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  220. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  221. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  222. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  223. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  224. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  225. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  226. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  227. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  228. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  229. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  230. html += "_$tag";
  231. }
  232. $("#dataTable").html(html);
  233. }else {
  234. $("#dataTable").html("");
  235. }
  236. },
  237. "error" : function(msg){
  238. },
  239. "complete": function(){
  240. layer.close(tip);
  241. }
  242. });
  243. });
  244. Date.prototype.Format = function (fmt) {
  245. var o = {
  246. "M+": this.getMonth() + 1, //月份
  247. "d+": this.getDate(), //日
  248. "h+": this.getHours(), //小时
  249. "m+": this.getMinutes(), //分
  250. "s+": this.getSeconds(), //秒
  251. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  252. "S": this.getMilliseconds() //毫秒
  253. };
  254. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  255. for (var k in o)
  256. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  257. return fmt;
  258. }
  259. $("#jrjc").change(function() {
  260. if ($("#jrjc").prop('checked') == true){
  261. $("#departmentId").removeAttr("disabled");
  262. }else {
  263. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  264. }
  265. });
  266. ----------------------------------- SOURCE END -------------------------------------
  267. !STACK 0
  268. java.lang.NullPointerException
  269. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:33.967
  270. !MESSAGE Error while processing working copy
  271. !STACK 1
  272. JavaScript Model Exception: java.lang.NullPointerException
  273. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  274. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  275. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  276. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  277. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  278. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  279. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  280. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  281. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  282. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  283. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  284. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  285. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  286. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  287. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  288. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  289. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  290. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  291. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  292. Caused by: java.lang.NullPointerException
  293. Caused by: java.lang.NullPointerException
  294. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:33.967
  295. !MESSAGE java.lang.NullPointerException
  296. !STACK 0
  297. java.lang.NullPointerException
  298. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:34.904
  299. !MESSAGE Exception occurred during problem detection:
  300. ----------------------------------- SOURCE BEGIN -------------------------------------
  301. (function(){WdatePicker();})();
  302. (function(){WdatePicker();})();
  303. (function(){Data.get();})();
  304. (function(){Data.set();})();
  305. (function(){search();})();
  306. $(function(){
  307. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  308. getfp();
  309. });
  310. var Data = {
  311. "get" : function(){
  312. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  313. var tip = layer.load(2);
  314. var result="";
  315. var url = "getgyxml.do";
  316. $.ajax({
  317. "url" : url,
  318. "data" : {
  319. "start_date" : $("#dateBegin").val(),
  320. "end_date" : $("#dateEnd").val()
  321. },
  322. "type" : "POST",
  323. "dataType" : "json",
  324. "success" : function(data) {
  325. if(data != null && data != ""){
  326. if ( data.status =="success"){
  327. getfp();
  328. alert("获取成功!");
  329. }else {
  330. alert(data.status);
  331. }
  332. }else {
  333. alert("获取失败!");
  334. }
  335. },
  336. "complete": function(){
  337. layer.close(tip);
  338. }
  339. });
  340. }else {
  341. alert("请选择日期!");
  342. }
  343. },
  344. "set" : function(){
  345. if ( $("#fpid option:selected").text() !=""){
  346. var tip = layer.load(2);
  347. var gitem = $("#form1").serialize();
  348. var jrjc;
  349. if ($("#jrjc").prop('checked') == true){
  350. jrjc = $("#departmentId").val();
  351. }else {
  352. jrjc ='N'
  353. }
  354. var url = "saverk.do";
  355. $.ajax({
  356. "url" : url,
  357. "data" : {
  358. "gitem" : gitem,
  359. "jrjc" : jrjc
  360. },
  361. "type" : "POST",
  362. "dataType" : "json",
  363. "async" : true,
  364. "success" : function(data) {
  365. if(data.status ="success"){
  366. alert("入库成功!");
  367. window.location.reload();
  368. }else {
  369. alert(msg);
  370. }
  371. },
  372. "error": function(){
  373. alert("确认失败!");
  374. },
  375. "complete": function(){
  376. layer.close(tip);
  377. }
  378. });
  379. }else {
  380. alert("请选择发票!");
  381. }
  382. }
  383. }
  384. function getfp(){
  385. var tip = layer.load(2);
  386. var url = "getgyfp.do";
  387. $.ajax({
  388. "url" : url,
  389. "type" : "POST",
  390. "dataType" : "json",
  391. "async" : true,
  392. "success" : function(data) {
  393. if(data != null && data != ""){
  394. $("#fpid").empty();
  395. $("#fpid").append("_$tag_____________$tag____");
  396. for(var i = 0; i < data.length; i++){
  397. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  398. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  399. }
  400. }
  401. },
  402. "error" : function(msg){
  403. },
  404. "complete": function(){
  405. layer.close(tip);
  406. }
  407. });
  408. }
  409. $("#fpid").change(function(){
  410. var tip = layer.load(2);
  411. var url = "getgyrkxx.do";
  412. $.ajax({
  413. "url" : url,
  414. "data" : {
  415. "fpId" : $("#fpid").val()
  416. },
  417. "type" : "POST",
  418. "dataType" : "json",
  419. "async" : true,
  420. "success" : function(data) {
  421. $("#dataTable").html("");
  422. if(data != null && data != ""){
  423. var html = "";
  424. for(var i = 0; i < data.length; i++){
  425. var ID = data[i].id == null ? "" : data[i].id;
  426. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  427. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  428. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  429. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  430. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  431. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  432. var GOODS = data[i].goods == null ? "" : data[i].goods;
  433. var NAME = data[i].name == null ? "" : data[i].name;
  434. var SPEC = data[i].spec == null ? "" : data[i].spec;
  435. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  436. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  437. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  438. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  439. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  440. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  441. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  442. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  443. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  444. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  445. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  446. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  447. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  448. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  449. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  450. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  451. var invoice_type_cn =null;
  452. if (invoice_type =="00" ){
  453. invoice_type_cn="销售发票";
  454. }else if (invoice_type == "01") {
  455. invoice_type_cn="更正(对冲)发票";
  456. }else if (invoice_type == "02") {
  457. invoice_type_cn="其它类型发票";
  458. }
  459. html += "_$ta";
  460. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  461. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  462. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  463. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  464. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  465. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  466. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  467. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  468. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  469. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  470. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  471. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  472. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  473. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  474. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  475. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  476. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  477. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  478. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  479. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  480. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  481. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  482. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  483. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  484. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  485. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  486. html += "_$tag";
  487. }
  488. $("#dataTable").html(html);
  489. }else {
  490. $("#dataTable").html("");
  491. }
  492. },
  493. "error" : function(msg){
  494. },
  495. "complete": function(){
  496. layer.close(tip);
  497. }
  498. });
  499. });
  500. Date.prototype.Format = function (fmt) {
  501. var o = {
  502. "M+": this.getMonth() + 1, //月份
  503. "d+": this.getDate(), //日
  504. "h+": this.getHours(), //小时
  505. "m+": this.getMinutes(), //分
  506. "s+": this.getSeconds(), //秒
  507. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  508. "S": this.getMilliseconds() //毫秒
  509. };
  510. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  511. for (var k in o)
  512. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  513. return fmt;
  514. }
  515. $("#jrjc").change(function() {
  516. if ($("#jrjc").prop('checked') == true){
  517. $("#departmentId").removeAttr("disabled");
  518. }else {
  519. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  520. }
  521. });
  522. ----------------------------------- SOURCE END -------------------------------------
  523. !STACK 0
  524. java.lang.NullPointerException
  525. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:35.387
  526. !MESSAGE Exception occurred during problem detection:
  527. ----------------------------------- SOURCE BEGIN -------------------------------------
  528. (function(){WdatePicker();})();
  529. (function(){WdatePicker();})();
  530. (function(){Data.get();})();
  531. (function(){Data.set();})();
  532. (function(){search();})();
  533. $(function(){
  534. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  535. getfp();
  536. });
  537. var Data = {
  538. "get" : function(){
  539. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  540. var tip = layer.load(2);
  541. var result="";
  542. var url = "getgyxml.do";
  543. $.ajax({
  544. "url" : url,
  545. "data" : {
  546. "start_date" : $("#dateBegin").val(),
  547. "end_date" : $("#dateEnd").val()
  548. },
  549. "type" : "POST",
  550. "dataType" : "json",
  551. "success" : function(data) {
  552. if(data != null && data != ""){
  553. if ( data.status =="success"){
  554. getfp();
  555. alert("获取成功!");
  556. }else {
  557. alert(data.status);
  558. }
  559. }else {
  560. alert("获取失败!");
  561. }
  562. },
  563. "complete": function(){
  564. layer.close(tip);
  565. }
  566. });
  567. }else {
  568. alert("请选择日期!");
  569. }
  570. },
  571. "set" : function(){
  572. if ( $("#fpid option:selected").text() !=""){
  573. var tip = layer.load(2);
  574. var gitem = $("#form1").serialize();
  575. var jrjc;
  576. if ($("#jrjc").prop('checked') == true){
  577. jrjc = $("#departmentId").val();
  578. }else {
  579. jrjc ='N'
  580. }
  581. var url = "saverk.do";
  582. $.ajax({
  583. "url" : url,
  584. "data" : {
  585. "gitem" : gitem,
  586. "jrjc" : jrjc
  587. },
  588. "type" : "POST",
  589. "dataType" : "json",
  590. "async" : true,
  591. "success" : function(data) {
  592. if(data.status ="success"){
  593. alert("入库成功!");
  594. window.location.reload();
  595. }else {
  596. alert(msg);
  597. }
  598. },
  599. "error": function(){
  600. alert("确认失败!");
  601. },
  602. "complete": function(){
  603. layer.close(tip);
  604. }
  605. });
  606. }else {
  607. alert("请选择发票!");
  608. }
  609. }
  610. }
  611. function getfp(){
  612. var tip = layer.load(2);
  613. var url = "getgyfp.do";
  614. $.ajax({
  615. "url" : url,
  616. "type" : "POST",
  617. "dataType" : "json",
  618. "async" : true,
  619. "success" : function(data) {
  620. if(data != null && data != ""){
  621. $("#fpid").empty();
  622. $("#fpid").append("_$tag_____________$tag____");
  623. for(var i = 0; i < data.length; i++){
  624. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  625. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  626. }
  627. }
  628. },
  629. "error" : function(msg){
  630. },
  631. "complete": function(){
  632. layer.close(tip);
  633. }
  634. });
  635. }
  636. $("#fpid").change(function(){
  637. var tip = layer.load(2);
  638. var url = "getgyrkxx.do";
  639. $.ajax({
  640. "url" : url,
  641. "data" : {
  642. "fpId" : $("#fpid").val()
  643. },
  644. "type" : "POST",
  645. "dataType" : "json",
  646. "async" : true,
  647. "success" : function(data) {
  648. $("#dataTable").html("");
  649. if(data != null && data != ""){
  650. var html = "";
  651. for(var i = 0; i < data.length; i++){
  652. var ID = data[i].id == null ? "" : data[i].id;
  653. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  654. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  655. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  656. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  657. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  658. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  659. var GOODS = data[i].goods == null ? "" : data[i].goods;
  660. var NAME = data[i].name == null ? "" : data[i].name;
  661. var SPEC = data[i].spec == null ? "" : data[i].spec;
  662. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  663. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  664. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  665. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  666. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  667. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  668. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  669. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  670. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  671. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  672. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  673. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  674. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  675. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  676. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  677. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  678. var invoice_type_cn =null;
  679. if (invoice_type =="00" ){
  680. invoice_type_cn="销售发票";
  681. }else if (invoice_type == "01") {
  682. invoice_type_cn="更正(对冲)发票";
  683. }else if (invoice_type == "02") {
  684. invoice_type_cn="其它类型发票";
  685. }
  686. html += "_$ta";
  687. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  688. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  689. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  690. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  691. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  692. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  693. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  694. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  695. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  696. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  697. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  698. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  699. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  700. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  701. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  702. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  703. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  704. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  705. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  706. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  707. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  708. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  709. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  710. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  711. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  712. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  713. html += "_$tag";
  714. }
  715. $("#dataTable").html(html);
  716. }else {
  717. $("#dataTable").html("");
  718. }
  719. },
  720. "error" : function(msg){
  721. },
  722. "complete": function(){
  723. layer.close(tip);
  724. }
  725. });
  726. });
  727. Date.prototype.Format = function (fmt) {
  728. var o = {
  729. "M+": this.getMonth() + 1, //月份
  730. "d+": this.getDate(), //日
  731. "h+": this.getHours(), //小时
  732. "m+": this.getMinutes(), //分
  733. "s+": this.getSeconds(), //秒
  734. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  735. "S": this.getMilliseconds() //毫秒
  736. };
  737. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  738. for (var k in o)
  739. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  740. return fmt;
  741. }
  742. $("#jrjc").change(function() {
  743. if ($("#jrjc").prop('checked') == true){
  744. $("#departmentId").removeAttr("disabled");
  745. }else {
  746. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  747. }
  748. });
  749. ----------------------------------- SOURCE END -------------------------------------
  750. !STACK 0
  751. java.lang.NullPointerException
  752. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:35.388
  753. !MESSAGE Error while processing working copy
  754. !STACK 1
  755. JavaScript Model Exception: java.lang.NullPointerException
  756. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  757. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  758. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  759. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  760. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  761. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  762. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  763. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  764. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  765. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  766. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  767. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  768. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  769. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  770. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  771. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  772. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  773. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  774. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  775. Caused by: java.lang.NullPointerException
  776. Caused by: java.lang.NullPointerException
  777. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:35.388
  778. !MESSAGE java.lang.NullPointerException
  779. !STACK 0
  780. java.lang.NullPointerException
  781. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:36.561
  782. !MESSAGE Exception occurred during problem detection:
  783. ----------------------------------- SOURCE BEGIN -------------------------------------
  784. (function(){WdatePicker();})();
  785. (function(){WdatePicker();})();
  786. (function(){Data.get();})();
  787. (function(){Data.set();})();
  788. (function(){search();})();
  789. $(function(){
  790. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  791. getfp();
  792. });
  793. var Data = {
  794. "get" : function(){
  795. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  796. var tip = layer.load(2);
  797. var result="";
  798. var url = "getgyxml.do";
  799. $.ajax({
  800. "url" : url,
  801. "data" : {
  802. "start_date" : $("#dateBegin").val(),
  803. "end_date" : $("#dateEnd").val()
  804. },
  805. "type" : "POST",
  806. "dataType" : "json",
  807. "success" : function(data) {
  808. if(data != null && data != ""){
  809. if ( data.status =="success"){
  810. getfp();
  811. alert("获取成功!");
  812. }else {
  813. alert(data.status);
  814. }
  815. }else {
  816. alert("获取失败!");
  817. }
  818. },
  819. "complete": function(){
  820. layer.close(tip);
  821. }
  822. });
  823. }else {
  824. alert("请选择日期!");
  825. }
  826. },
  827. "set" : function(){
  828. if ( $("#fpid option:selected").text() !=""){
  829. var tip = layer.load(2);
  830. var gitem = $("#form1").serialize();
  831. var jrjc;
  832. if ($("#jrjc").prop('checked') == true){
  833. jrjc = $("#departmentId").val();
  834. }else {
  835. jrjc ='N'
  836. }
  837. var url = "saverk.do";
  838. $.ajax({
  839. "url" : url,
  840. "data" : {
  841. "gitem" : gitem,
  842. "jrjc" : jrjc
  843. },
  844. "type" : "POST",
  845. "dataType" : "json",
  846. "async" : true,
  847. "success" : function(data) {
  848. if(data.status ="success"){
  849. alert("入库成功!");
  850. window.location.reload();
  851. }else {
  852. alert(msg);
  853. }
  854. },
  855. "error": function(){
  856. alert("确认失败!");
  857. },
  858. "complete": function(){
  859. layer.close(tip);
  860. }
  861. });
  862. }else {
  863. alert("请选择发票!");
  864. }
  865. }
  866. }
  867. function getfp(){
  868. var tip = layer.load(2);
  869. var url = "getgyfp.do";
  870. $.ajax({
  871. "url" : url,
  872. "type" : "POST",
  873. "dataType" : "json",
  874. "async" : true,
  875. "success" : function(data) {
  876. if(data != null && data != ""){
  877. $("#fpid").empty();
  878. $("#fpid").append("_$tag_____________$tag____");
  879. for(var i = 0; i < data.length; i++){
  880. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  881. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  882. }
  883. }
  884. },
  885. "error" : function(msg){
  886. },
  887. "complete": function(){
  888. layer.close(tip);
  889. }
  890. });
  891. }
  892. $("#fpid").change(function(){
  893. var tip = layer.load(2);
  894. var url = "getgyrkxx.do";
  895. $.ajax({
  896. "url" : url,
  897. "data" : {
  898. "fpId" : $("#fpid").val()
  899. },
  900. "type" : "POST",
  901. "dataType" : "json",
  902. "async" : true,
  903. "success" : function(data) {
  904. $("#dataTable").html("");
  905. if(data != null && data != ""){
  906. var html = "";
  907. for(var i = 0; i < data.length; i++){
  908. var ID = data[i].id == null ? "" : data[i].id;
  909. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  910. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  911. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  912. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  913. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  914. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  915. var GOODS = data[i].goods == null ? "" : data[i].goods;
  916. var NAME = data[i].name == null ? "" : data[i].name;
  917. var SPEC = data[i].spec == null ? "" : data[i].spec;
  918. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  919. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  920. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  921. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  922. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  923. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  924. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  925. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  926. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  927. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  928. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  929. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  930. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  931. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  932. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  933. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  934. var invoice_type_cn =null;
  935. if (invoice_type =="00" ){
  936. invoice_type_cn="销售发票";
  937. }else if (invoice_type == "01") {
  938. invoice_type_cn="更正(对冲)发票";
  939. }else if (invoice_type == "02") {
  940. invoice_type_cn="其它类型发票";
  941. }
  942. html += "_$ta";
  943. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  944. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  945. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  946. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  947. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  948. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  949. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  950. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  951. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  952. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  953. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  954. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  955. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  956. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  957. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  958. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  959. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  960. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  961. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  962. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  963. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  964. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  965. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  966. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  967. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  968. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  969. html += "_$tag";
  970. }
  971. $("#dataTable").html(html);
  972. }else {
  973. $("#dataTable").html("");
  974. }
  975. },
  976. "error" : function(msg){
  977. },
  978. "complete": function(){
  979. layer.close(tip);
  980. }
  981. });
  982. });
  983. Date.prototype.Format = function (fmt) {
  984. var o = {
  985. "M+": this.getMonth() + 1, //月份
  986. "d+": this.getDate(), //日
  987. "h+": this.getHours(), //小时
  988. "m+": this.getMinutes(), //分
  989. "s+": this.getSeconds(), //秒
  990. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  991. "S": this.getMilliseconds() //毫秒
  992. };
  993. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  994. for (var k in o)
  995. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  996. return fmt;
  997. }
  998. $("#jrjc").change(function() {
  999. if ($("#jrjc").prop('checked') == true){
  1000. $("#departmentId").removeAttr("disabled");
  1001. }else {
  1002. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1003. }
  1004. });
  1005. ----------------------------------- SOURCE END -------------------------------------
  1006. !STACK 0
  1007. java.lang.NullPointerException
  1008. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:37.771
  1009. !MESSAGE Exception occurred during problem detection:
  1010. ----------------------------------- SOURCE BEGIN -------------------------------------
  1011. (function(){WdatePicker();})();
  1012. (function(){WdatePicker();})();
  1013. (function(){Data.get();})();
  1014. (function(){Data.set();})();
  1015. (function(){search();})();
  1016. $(function(){
  1017. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1018. getfp();
  1019. });
  1020. var Data = {
  1021. "get" : function(){
  1022. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1023. var tip = layer.load(2);
  1024. var result="";
  1025. var url = "getgyxml.do";
  1026. $.ajax({
  1027. "url" : url,
  1028. "data" : {
  1029. "start_date" : $("#dateBegin").val(),
  1030. "end_date" : $("#dateEnd").val()
  1031. },
  1032. "type" : "POST",
  1033. "dataType" : "json",
  1034. "success" : function(data) {
  1035. if(data != null && data != ""){
  1036. if ( data.status =="success"){
  1037. getfp();
  1038. alert("获取成功!");
  1039. }else {
  1040. alert(data.status);
  1041. }
  1042. }else {
  1043. alert("获取失败!");
  1044. }
  1045. },
  1046. "complete": function(){
  1047. layer.close(tip);
  1048. }
  1049. });
  1050. }else {
  1051. alert("请选择日期!");
  1052. }
  1053. },
  1054. "set" : function(){
  1055. if ( $("#fpid option:selected").text() !=""){
  1056. var tip = layer.load(2);
  1057. var gitem = $("#form1").serialize();
  1058. var jrjc;
  1059. if ($("#jrjc").prop('checked') == true){
  1060. jrjc = $("#departmentId").val();
  1061. }else {
  1062. jrjc ='N'
  1063. }
  1064. var url = "saverk.do";
  1065. $.ajax({
  1066. "url" : url,
  1067. "data" : {
  1068. "gitem" : gitem,
  1069. "jrjc" : jrjc
  1070. },
  1071. "type" : "POST",
  1072. "dataType" : "json",
  1073. "async" : true,
  1074. "success" : function(data) {
  1075. if(data.status ="success"){
  1076. alert("入库成功!");
  1077. window.location.reload();
  1078. }else {
  1079. alert(msg);
  1080. }
  1081. },
  1082. "error": function(){
  1083. alert("确认失败!");
  1084. },
  1085. "complete": function(){
  1086. layer.close(tip);
  1087. }
  1088. });
  1089. }else {
  1090. alert("请选择发票!");
  1091. }
  1092. }
  1093. }
  1094. function getfp(){
  1095. var tip = layer.load(2);
  1096. var url = "getgyfp.do";
  1097. $.ajax({
  1098. "url" : url,
  1099. "type" : "POST",
  1100. "dataType" : "json",
  1101. "async" : true,
  1102. "success" : function(data) {
  1103. if(data != null && data != ""){
  1104. $("#fpid").empty();
  1105. $("#fpid").append("_$tag_____________$tag____");
  1106. for(var i = 0; i < data.length; i++){
  1107. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1108. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1109. }
  1110. }
  1111. },
  1112. "error" : function(msg){
  1113. },
  1114. "complete": function(){
  1115. layer.close(tip);
  1116. }
  1117. });
  1118. }
  1119. $("#fpid").change(function(){
  1120. var tip = layer.load(2);
  1121. var url = "getgyrkxx.do";
  1122. $.ajax({
  1123. "url" : url,
  1124. "data" : {
  1125. "fpId" : $("#fpid").val()
  1126. },
  1127. "type" : "POST",
  1128. "dataType" : "json",
  1129. "async" : true,
  1130. "success" : function(data) {
  1131. $("#dataTable").html("");
  1132. if(data != null && data != ""){
  1133. var html = "";
  1134. for(var i = 0; i < data.length; i++){
  1135. var ID = data[i].id == null ? "" : data[i].id;
  1136. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1137. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1138. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1139. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1140. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1141. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1142. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1143. var NAME = data[i].name == null ? "" : data[i].name;
  1144. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1145. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1146. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1147. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1148. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1149. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1150. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1151. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1152. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1153. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1154. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1155. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1156. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1157. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1158. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1159. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1160. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1161. var invoice_type_cn =null;
  1162. if (invoice_type =="00" ){
  1163. invoice_type_cn="销售发票";
  1164. }else if (invoice_type == "01") {
  1165. invoice_type_cn="更正(对冲)发票";
  1166. }else if (invoice_type == "02") {
  1167. invoice_type_cn="其它类型发票";
  1168. }
  1169. html += "_$ta";
  1170. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1171. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1172. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1173. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1174. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1175. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1176. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1177. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1178. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1179. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1180. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1181. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1182. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1183. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1184. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1185. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1186. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1187. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1188. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1189. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1190. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1191. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1192. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1193. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1194. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1195. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1196. html += "_$tag";
  1197. }
  1198. $("#dataTable").html(html);
  1199. }else {
  1200. $("#dataTable").html("");
  1201. }
  1202. },
  1203. "error" : function(msg){
  1204. },
  1205. "complete": function(){
  1206. layer.close(tip);
  1207. }
  1208. });
  1209. });
  1210. Date.prototype.Format = function (fmt) {
  1211. var o = {
  1212. "M+": this.getMonth() + 1, //月份
  1213. "d+": this.getDate(), //日
  1214. "h+": this.getHours(), //小时
  1215. "m+": this.getMinutes(), //分
  1216. "s+": this.getSeconds(), //秒
  1217. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1218. "S": this.getMilliseconds() //毫秒
  1219. };
  1220. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1221. for (var k in o)
  1222. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1223. return fmt;
  1224. }
  1225. $("#jrjc").change(function() {
  1226. if ($("#jrjc").prop('checked') == true){
  1227. $("#departmentId").removeAttr("disabled");
  1228. }else {
  1229. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1230. }
  1231. });
  1232. ----------------------------------- SOURCE END -------------------------------------
  1233. !STACK 0
  1234. java.lang.NullPointerException
  1235. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:21:37.772
  1236. !MESSAGE java.lang.NullPointerException
  1237. !STACK 1
  1238. JavaScript Model Exception: java.lang.NullPointerException
  1239. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1240. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  1241. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1242. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1243. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  1244. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  1245. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  1246. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  1247. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  1248. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  1249. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  1250. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  1251. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  1252. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  1253. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  1254. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  1255. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  1256. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  1257. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  1258. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  1259. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  1260. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  1261. Caused by: java.lang.NullPointerException
  1262. Caused by: java.lang.NullPointerException
  1263. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:37.772
  1264. !MESSAGE java.lang.NullPointerException
  1265. !STACK 0
  1266. java.lang.NullPointerException
  1267. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:38.395
  1268. !MESSAGE Exception occurred during problem detection:
  1269. ----------------------------------- SOURCE BEGIN -------------------------------------
  1270. (function(){WdatePicker();})();
  1271. (function(){WdatePicker();})();
  1272. (function(){Data.get();})();
  1273. (function(){Data.set();})();
  1274. (function(){search();})();
  1275. $(function(){
  1276. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1277. getfp();
  1278. });
  1279. var Data = {
  1280. "get" : function(){
  1281. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1282. var tip = layer.load(2);
  1283. var result="";
  1284. var url = "getgyxml.do";
  1285. $.ajax({
  1286. "url" : url,
  1287. "data" : {
  1288. "start_date" : $("#dateBegin").val(),
  1289. "end_date" : $("#dateEnd").val()
  1290. },
  1291. "type" : "POST",
  1292. "dataType" : "json",
  1293. "success" : function(data) {
  1294. if(data != null && data != ""){
  1295. if ( data.status =="success"){
  1296. getfp();
  1297. alert("获取成功!");
  1298. }else {
  1299. alert(data.status);
  1300. }
  1301. }else {
  1302. alert("获取失败!");
  1303. }
  1304. },
  1305. "complete": function(){
  1306. layer.close(tip);
  1307. }
  1308. });
  1309. }else {
  1310. alert("请选择日期!");
  1311. }
  1312. },
  1313. "set" : function(){
  1314. if ( $("#fpid option:selected").text() !=""){
  1315. var tip = layer.load(2);
  1316. var gitem = $("#form1").serialize();
  1317. var jrjc;
  1318. if ($("#jrjc").prop('checked') == true){
  1319. jrjc = $("#departmentId").val();
  1320. }else {
  1321. jrjc ='N'
  1322. }
  1323. var url = "saverk.do";
  1324. $.ajax({
  1325. "url" : url,
  1326. "data" : {
  1327. "gitem" : gitem,
  1328. "jrjc" : jrjc
  1329. },
  1330. "type" : "POST",
  1331. "dataType" : "json",
  1332. "async" : true,
  1333. "success" : function(data) {
  1334. if(data.status ="success"){
  1335. alert("入库成功!");
  1336. window.location.reload();
  1337. }else {
  1338. alert(msg);
  1339. }
  1340. },
  1341. "error": function(){
  1342. alert("确认失败!");
  1343. },
  1344. "complete": function(){
  1345. layer.close(tip);
  1346. }
  1347. });
  1348. }else {
  1349. alert("请选择发票!");
  1350. }
  1351. }
  1352. }
  1353. function getfp(){
  1354. var tip = layer.load(2);
  1355. var url = "getgyfp.do";
  1356. $.ajax({
  1357. "url" : url,
  1358. "type" : "POST",
  1359. "dataType" : "json",
  1360. "async" : true,
  1361. "success" : function(data) {
  1362. if(data != null && data != ""){
  1363. $("#fpid").empty();
  1364. $("#fpid").append("_$tag_____________$tag____");
  1365. for(var i = 0; i < data.length; i++){
  1366. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1367. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1368. }
  1369. }
  1370. },
  1371. "error" : function(msg){
  1372. },
  1373. "complete": function(){
  1374. layer.close(tip);
  1375. }
  1376. });
  1377. }
  1378. $("#fpid").change(function(){
  1379. var tip = layer.load(2);
  1380. var url = "getgyrkxx.do";
  1381. $.ajax({
  1382. "url" : url,
  1383. "data" : {
  1384. "fpId" : $("#fpid").val()
  1385. },
  1386. "type" : "POST",
  1387. "dataType" : "json",
  1388. "async" : true,
  1389. "success" : function(data) {
  1390. $("#dataTable").html("");
  1391. if(data != null && data != ""){
  1392. var html = "";
  1393. for(var i = 0; i < data.length; i++){
  1394. var ID = data[i].id == null ? "" : data[i].id;
  1395. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1396. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1397. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1398. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1399. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1400. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1401. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1402. var NAME = data[i].name == null ? "" : data[i].name;
  1403. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1404. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1405. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1406. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1407. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1408. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1409. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1410. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1411. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1412. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1413. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1414. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1415. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1416. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1417. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1418. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1419. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1420. var invoice_type_cn =null;
  1421. if (invoice_type =="00" ){
  1422. invoice_type_cn="销售发票";
  1423. }else if (invoice_type == "01") {
  1424. invoice_type_cn="更正(对冲)发票";
  1425. }else if (invoice_type == "02") {
  1426. invoice_type_cn="其它类型发票";
  1427. }
  1428. html += "_$ta";
  1429. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1430. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1431. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1432. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1433. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1434. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1435. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1436. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1437. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1438. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1439. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1440. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1441. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1442. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1443. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1444. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1445. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1446. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1447. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1448. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1449. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1450. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1451. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1452. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1453. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1454. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1455. html += "_$tag";
  1456. }
  1457. $("#dataTable").html(html);
  1458. }else {
  1459. $("#dataTable").html("");
  1460. }
  1461. },
  1462. "error" : function(msg){
  1463. },
  1464. "complete": function(){
  1465. layer.close(tip);
  1466. }
  1467. });
  1468. });
  1469. Date.prototype.Format = function (fmt) {
  1470. var o = {
  1471. "M+": this.getMonth() + 1, //月份
  1472. "d+": this.getDate(), //日
  1473. "h+": this.getHours(), //小时
  1474. "m+": this.getMinutes(), //分
  1475. "s+": this.getSeconds(), //秒
  1476. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1477. "S": this.getMilliseconds() //毫秒
  1478. };
  1479. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1480. for (var k in o)
  1481. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1482. return fmt;
  1483. }
  1484. $("#jrjc").change(function() {
  1485. if ($("#jrjc").prop('checked') == true){
  1486. $("#departmentId").removeAttr("disabled");
  1487. }else {
  1488. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1489. }
  1490. });
  1491. ----------------------------------- SOURCE END -------------------------------------
  1492. !STACK 0
  1493. java.lang.NullPointerException
  1494. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:38.396
  1495. !MESSAGE Error while processing working copy
  1496. !STACK 1
  1497. JavaScript Model Exception: java.lang.NullPointerException
  1498. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1499. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1500. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1501. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1502. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1503. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1504. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1505. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1506. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1507. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1508. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1509. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1510. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1511. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1512. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1513. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1514. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1515. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1516. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1517. Caused by: java.lang.NullPointerException
  1518. Caused by: java.lang.NullPointerException
  1519. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:38.396
  1520. !MESSAGE java.lang.NullPointerException
  1521. !STACK 0
  1522. java.lang.NullPointerException
  1523. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:39.326
  1524. !MESSAGE Exception occurred during problem detection:
  1525. ----------------------------------- SOURCE BEGIN -------------------------------------
  1526. (function(){WdatePicker();})();
  1527. (function(){WdatePicker();})();
  1528. (function(){Data.get();})();
  1529. (function(){Data.set();})();
  1530. (function(){search();})();
  1531. $(function(){
  1532. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1533. getfp();
  1534. });
  1535. var Data = {
  1536. "get" : function(){
  1537. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1538. var tip = layer.load(2);
  1539. var result="";
  1540. var url = "getgyxml.do";
  1541. $.ajax({
  1542. "url" : url,
  1543. "data" : {
  1544. "start_date" : $("#dateBegin").val(),
  1545. "end_date" : $("#dateEnd").val()
  1546. },
  1547. "type" : "POST",
  1548. "dataType" : "json",
  1549. "success" : function(data) {
  1550. if(data != null && data != ""){
  1551. if ( data.status =="success"){
  1552. getfp();
  1553. alert("获取成功!");
  1554. }else {
  1555. alert(data.status);
  1556. }
  1557. }else {
  1558. alert("获取失败!");
  1559. }
  1560. },
  1561. "complete": function(){
  1562. layer.close(tip);
  1563. }
  1564. });
  1565. }else {
  1566. alert("请选择日期!");
  1567. }
  1568. },
  1569. "set" : function(){
  1570. if ( $("#fpid option:selected").text() !=""){
  1571. var tip = layer.load(2);
  1572. var gitem = $("#form1").serialize();
  1573. var jrjc;
  1574. if ($("#jrjc").prop('checked') == true){
  1575. jrjc = $("#departmentId").val();
  1576. }else {
  1577. jrjc ='N'
  1578. }
  1579. var url = "saverk.do";
  1580. $.ajax({
  1581. "url" : url,
  1582. "data" : {
  1583. "gitem" : gitem,
  1584. "jrjc" : jrjc
  1585. },
  1586. "type" : "POST",
  1587. "dataType" : "json",
  1588. "async" : true,
  1589. "success" : function(data) {
  1590. if(data.status ="success"){
  1591. alert("入库成功!");
  1592. window.location.reload();
  1593. }else {
  1594. alert(msg);
  1595. }
  1596. },
  1597. "error": function(){
  1598. alert("确认失败!");
  1599. },
  1600. "complete": function(){
  1601. layer.close(tip);
  1602. }
  1603. });
  1604. }else {
  1605. alert("请选择发票!");
  1606. }
  1607. }
  1608. }
  1609. function getfp(){
  1610. var tip = layer.load(2);
  1611. var url = "getgyfp.do";
  1612. $.ajax({
  1613. "url" : url,
  1614. "type" : "POST",
  1615. "dataType" : "json",
  1616. "async" : true,
  1617. "success" : function(data) {
  1618. if(data != null && data != ""){
  1619. $("#fpid").empty();
  1620. $("#fpid").append("_$tag_____________$tag____");
  1621. for(var i = 0; i < data.length; i++){
  1622. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1623. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1624. }
  1625. }
  1626. },
  1627. "error" : function(msg){
  1628. },
  1629. "complete": function(){
  1630. layer.close(tip);
  1631. }
  1632. });
  1633. }
  1634. $("#fpid").change(function(){
  1635. var tip = layer.load(2);
  1636. var url = "getgyrkxx.do";
  1637. $.ajax({
  1638. "url" : url,
  1639. "data" : {
  1640. "fpId" : $("#fpid").val()
  1641. },
  1642. "type" : "POST",
  1643. "dataType" : "json",
  1644. "async" : true,
  1645. "success" : function(data) {
  1646. $("#dataTable").html("");
  1647. if(data != null && data != ""){
  1648. var html = "";
  1649. for(var i = 0; i < data.length; i++){
  1650. var ID = data[i].id == null ? "" : data[i].id;
  1651. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1652. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1653. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1654. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1655. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1656. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1657. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1658. var NAME = data[i].name == null ? "" : data[i].name;
  1659. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1660. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1661. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1662. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1663. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1664. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1665. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1666. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1667. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1668. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1669. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1670. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1671. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1672. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1673. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1674. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1675. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1676. var invoice_type_cn =null;
  1677. if (invoice_type =="00" ){
  1678. invoice_type_cn="销售发票";
  1679. }else if (invoice_type == "01") {
  1680. invoice_type_cn="更正(对冲)发票";
  1681. }else if (invoice_type == "02") {
  1682. invoice_type_cn="其它类型发票";
  1683. }
  1684. html += "_$ta";
  1685. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1686. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1687. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1688. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1689. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1690. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1691. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1692. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1693. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1694. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1695. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1696. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1697. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1698. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1699. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1700. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1701. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1702. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1703. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1704. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1705. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1706. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1707. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1708. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1709. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1710. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1711. html += "_$tag";
  1712. }
  1713. $("#dataTable").html(html);
  1714. }else {
  1715. $("#dataTable").html("");
  1716. }
  1717. },
  1718. "error" : function(msg){
  1719. },
  1720. "complete": function(){
  1721. layer.close(tip);
  1722. }
  1723. });
  1724. });
  1725. Date.prototype.Format = function (fmt) {
  1726. var o = {
  1727. "M+": this.getMonth() + 1, //月份
  1728. "d+": this.getDate(), //日
  1729. "h+": this.getHours(), //小时
  1730. "m+": this.getMinutes(), //分
  1731. "s+": this.getSeconds(), //秒
  1732. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1733. "S": this.getMilliseconds() //毫秒
  1734. };
  1735. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1736. for (var k in o)
  1737. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1738. return fmt;
  1739. }
  1740. $("#jrjc").change(function() {
  1741. if ($("#jrjc").prop('checked') == true){
  1742. $("#departmentId").removeAttr("disabled");
  1743. }else {
  1744. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1745. }
  1746. });
  1747. ----------------------------------- SOURCE END -------------------------------------
  1748. !STACK 0
  1749. java.lang.NullPointerException
  1750. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:43.655
  1751. !MESSAGE Exception occurred during problem detection:
  1752. ----------------------------------- SOURCE BEGIN -------------------------------------
  1753. (function(){WdatePicker();})();
  1754. (function(){WdatePicker();})();
  1755. (function(){Data.get();})();
  1756. (function(){Data.set();})();
  1757. (function(){search();})();
  1758. $(function(){
  1759. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1760. getfp();
  1761. });
  1762. var Data = {
  1763. "get" : function(){
  1764. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1765. var tip = layer.load(2);
  1766. var result="";
  1767. var url = "getgyxml.do";
  1768. $.ajax({
  1769. "url" : url,
  1770. "data" : {
  1771. "start_date" : $("#dateBegin").val(),
  1772. "end_date" : $("#dateEnd").val()
  1773. },
  1774. "type" : "POST",
  1775. "dataType" : "json",
  1776. "success" : function(data) {
  1777. if(data != null && data != ""){
  1778. if ( data.status =="success"){
  1779. getfp();
  1780. alert("获取成功!");
  1781. }else {
  1782. alert(data.status);
  1783. }
  1784. }else {
  1785. alert("获取失败!");
  1786. }
  1787. },
  1788. "complete": function(){
  1789. layer.close(tip);
  1790. }
  1791. });
  1792. }else {
  1793. alert("请选择日期!");
  1794. }
  1795. },
  1796. "set" : function(){
  1797. if ( $("#fpid option:selected").text() !=""){
  1798. var tip = layer.load(2);
  1799. var gitem = $("#form1").serialize();
  1800. var jrjc;
  1801. if ($("#jrjc").prop('checked') == true){
  1802. jrjc = $("#departmentId").val();
  1803. }else {
  1804. jrjc ='N'
  1805. }
  1806. var url = "saverk.do";
  1807. $.ajax({
  1808. "url" : url,
  1809. "data" : {
  1810. "gitem" : gitem,
  1811. "jrjc" : jrjc
  1812. },
  1813. "type" : "POST",
  1814. "dataType" : "json",
  1815. "async" : true,
  1816. "success" : function(data) {
  1817. if(data.status ="success"){
  1818. alert("入库成功!");
  1819. window.location.reload();
  1820. }else {
  1821. alert(msg);
  1822. }
  1823. },
  1824. "error": function(){
  1825. alert("确认失败!");
  1826. },
  1827. "complete": function(){
  1828. layer.close(tip);
  1829. }
  1830. });
  1831. }else {
  1832. alert("请选择发票!");
  1833. }
  1834. }
  1835. }
  1836. function getfp(){
  1837. var tip = layer.load(2);
  1838. var url = "getgyfp.do";
  1839. $.ajax({
  1840. "url" : url,
  1841. "type" : "POST",
  1842. "dataType" : "json",
  1843. "async" : true,
  1844. "success" : function(data) {
  1845. if(data != null && data != ""){
  1846. $("#fpid").empty();
  1847. $("#fpid").append("_$tag_____________$tag____");
  1848. for(var i = 0; i < data.length; i++){
  1849. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1850. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1851. }
  1852. }
  1853. },
  1854. "error" : function(msg){
  1855. },
  1856. "complete": function(){
  1857. layer.close(tip);
  1858. }
  1859. });
  1860. }
  1861. $("#fpid").change(function(){
  1862. var tip = layer.load(2);
  1863. var url = "getgyrkxx.do";
  1864. $.ajax({
  1865. "url" : url,
  1866. "data" : {
  1867. "fpId" : $("#fpid").val()
  1868. },
  1869. "type" : "POST",
  1870. "dataType" : "json",
  1871. "async" : true,
  1872. "success" : function(data) {
  1873. $("#dataTable").html("");
  1874. if(data != null && data != ""){
  1875. var html = "";
  1876. for(var i = 0; i < data.length; i++){
  1877. var ID = data[i].id == null ? "" : data[i].id;
  1878. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1879. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1880. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1881. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1882. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1883. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1884. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1885. var NAME = data[i].name == null ? "" : data[i].name;
  1886. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1887. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1888. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1889. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1890. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1891. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1892. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1893. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1894. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1895. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1896. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1897. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1898. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1899. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1900. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1901. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1902. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1903. var invoice_type_cn =null;
  1904. if (invoice_type =="00" ){
  1905. invoice_type_cn="销售发票";
  1906. }else if (invoice_type == "01") {
  1907. invoice_type_cn="更正(对冲)发票";
  1908. }else if (invoice_type == "02") {
  1909. invoice_type_cn="其它类型发票";
  1910. }
  1911. html += "_$ta";
  1912. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1913. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1914. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1915. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1916. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1917. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1918. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1919. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1920. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1921. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1922. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1923. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1924. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1925. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1926. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1927. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1928. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1929. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1930. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1931. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1932. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1933. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1934. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1935. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1936. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1937. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1938. html += "_$tag";
  1939. }
  1940. $("#dataTable").html(html);
  1941. }else {
  1942. $("#dataTable").html("");
  1943. }
  1944. },
  1945. "error" : function(msg){
  1946. },
  1947. "complete": function(){
  1948. layer.close(tip);
  1949. }
  1950. });
  1951. });
  1952. Date.prototype.Format = function (fmt) {
  1953. var o = {
  1954. "M+": this.getMonth() + 1, //月份
  1955. "d+": this.getDate(), //日
  1956. "h+": this.getHours(), //小时
  1957. "m+": this.getMinutes(), //分
  1958. "s+": this.getSeconds(), //秒
  1959. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1960. "S": this.getMilliseconds() //毫秒
  1961. };
  1962. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1963. for (var k in o)
  1964. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1965. return fmt;
  1966. }
  1967. $("#jrjc").change(function() {
  1968. if ($("#jrjc").prop('checked') == true){
  1969. $("#departmentId").removeAttr("disabled");
  1970. }else {
  1971. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1972. }
  1973. });
  1974. ----------------------------------- SOURCE END -------------------------------------
  1975. !STACK 0
  1976. java.lang.NullPointerException
  1977. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:43.655
  1978. !MESSAGE Error while processing working copy
  1979. !STACK 1
  1980. JavaScript Model Exception: java.lang.NullPointerException
  1981. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1982. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1983. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1984. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1985. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1986. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1987. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1988. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1989. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1990. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1991. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1992. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1993. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1994. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1995. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1996. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1997. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1998. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1999. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2000. Caused by: java.lang.NullPointerException
  2001. Caused by: java.lang.NullPointerException
  2002. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:43.655
  2003. !MESSAGE java.lang.NullPointerException
  2004. !STACK 0
  2005. java.lang.NullPointerException
  2006. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:44.685
  2007. !MESSAGE Exception occurred during problem detection:
  2008. ----------------------------------- SOURCE BEGIN -------------------------------------
  2009. (function(){WdatePicker();})();
  2010. (function(){WdatePicker();})();
  2011. (function(){Data.get();})();
  2012. (function(){Data.set();})();
  2013. (function(){search();})();
  2014. $(function(){
  2015. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2016. getfp();
  2017. });
  2018. var Data = {
  2019. "get" : function(){
  2020. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2021. var tip = layer.load(2);
  2022. var result="";
  2023. var url = "getgyxml.do";
  2024. $.ajax({
  2025. "url" : url,
  2026. "data" : {
  2027. "start_date" : $("#dateBegin").val(),
  2028. "end_date" : $("#dateEnd").val()
  2029. },
  2030. "type" : "POST",
  2031. "dataType" : "json",
  2032. "success" : function(data) {
  2033. if(data != null && data != ""){
  2034. if ( data.status =="success"){
  2035. getfp();
  2036. alert("获取成功!");
  2037. }else {
  2038. alert(data.status);
  2039. }
  2040. }else {
  2041. alert("获取失败!");
  2042. }
  2043. },
  2044. "complete": function(){
  2045. layer.close(tip);
  2046. }
  2047. });
  2048. }else {
  2049. alert("请选择日期!");
  2050. }
  2051. },
  2052. "set" : function(){
  2053. if ( $("#fpid option:selected").text() !=""){
  2054. var tip = layer.load(2);
  2055. var gitem = $("#form1").serialize();
  2056. var jrjc;
  2057. if ($("#jrjc").prop('checked') == true){
  2058. jrjc = $("#departmentId").val();
  2059. }else {
  2060. jrjc ='N'
  2061. }
  2062. var url = "saverk.do";
  2063. $.ajax({
  2064. "url" : url,
  2065. "data" : {
  2066. "gitem" : gitem,
  2067. "jrjc" : jrjc
  2068. },
  2069. "type" : "POST",
  2070. "dataType" : "json",
  2071. "async" : true,
  2072. "success" : function(data) {
  2073. if(data.status ="success"){
  2074. alert("入库成功!");
  2075. window.location.reload();
  2076. }else {
  2077. alert(msg);
  2078. }
  2079. },
  2080. "error": function(){
  2081. alert("确认失败!");
  2082. },
  2083. "complete": function(){
  2084. layer.close(tip);
  2085. }
  2086. });
  2087. }else {
  2088. alert("请选择发票!");
  2089. }
  2090. }
  2091. }
  2092. function getfp(){
  2093. var tip = layer.load(2);
  2094. var url = "getgyfp.do";
  2095. $.ajax({
  2096. "url" : url,
  2097. "type" : "POST",
  2098. "dataType" : "json",
  2099. "async" : true,
  2100. "success" : function(data) {
  2101. if(data != null && data != ""){
  2102. $("#fpid").empty();
  2103. $("#fpid").append("_$tag_____________$tag____");
  2104. for(var i = 0; i < data.length; i++){
  2105. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2106. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2107. }
  2108. }
  2109. },
  2110. "error" : function(msg){
  2111. },
  2112. "complete": function(){
  2113. layer.close(tip);
  2114. }
  2115. });
  2116. }
  2117. $("#fpid").change(function(){
  2118. var tip = layer.load(2);
  2119. var url = "getgyrkxx.do";
  2120. $.ajax({
  2121. "url" : url,
  2122. "data" : {
  2123. "fpId" : $("#fpid").val()
  2124. },
  2125. "type" : "POST",
  2126. "dataType" : "json",
  2127. "async" : true,
  2128. "success" : function(data) {
  2129. $("#dataTable").html("");
  2130. if(data != null && data != ""){
  2131. var html = "";
  2132. for(var i = 0; i < data.length; i++){
  2133. var ID = data[i].id == null ? "" : data[i].id;
  2134. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2135. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2136. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2137. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2138. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2139. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2140. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2141. var NAME = data[i].name == null ? "" : data[i].name;
  2142. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2143. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2144. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2145. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2146. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2147. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2148. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2149. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2150. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2151. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2152. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2153. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2154. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2155. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2156. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2157. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2158. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2159. var invoice_type_cn =null;
  2160. if (invoice_type =="00" ){
  2161. invoice_type_cn="销售发票";
  2162. }else if (invoice_type == "01") {
  2163. invoice_type_cn="更正(对冲)发票";
  2164. }else if (invoice_type == "02") {
  2165. invoice_type_cn="其它类型发票";
  2166. }
  2167. html += "_$ta";
  2168. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2169. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2170. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2171. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2172. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2173. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2174. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2175. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2176. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2177. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2178. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2179. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2180. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2181. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2182. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2183. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2184. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2185. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2186. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2187. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2188. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2189. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2190. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2191. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2192. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2193. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2194. html += "_$tag";
  2195. }
  2196. $("#dataTable").html(html);
  2197. }else {
  2198. $("#dataTable").html("");
  2199. }
  2200. },
  2201. "error" : function(msg){
  2202. },
  2203. "complete": function(){
  2204. layer.close(tip);
  2205. }
  2206. });
  2207. });
  2208. Date.prototype.Format = function (fmt) {
  2209. var o = {
  2210. "M+": this.getMonth() + 1, //月份
  2211. "d+": this.getDate(), //日
  2212. "h+": this.getHours(), //小时
  2213. "m+": this.getMinutes(), //分
  2214. "s+": this.getSeconds(), //秒
  2215. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2216. "S": this.getMilliseconds() //毫秒
  2217. };
  2218. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2219. for (var k in o)
  2220. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2221. return fmt;
  2222. }
  2223. $("#jrjc").change(function() {
  2224. if ($("#jrjc").prop('checked') == true){
  2225. $("#departmentId").removeAttr("disabled");
  2226. }else {
  2227. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2228. }
  2229. });
  2230. ----------------------------------- SOURCE END -------------------------------------
  2231. !STACK 0
  2232. java.lang.NullPointerException
  2233. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:45.095
  2234. !MESSAGE Exception occurred during problem detection:
  2235. ----------------------------------- SOURCE BEGIN -------------------------------------
  2236. (function(){WdatePicker();})();
  2237. (function(){WdatePicker();})();
  2238. (function(){Data.get();})();
  2239. (function(){Data.set();})();
  2240. (function(){search();})();
  2241. $(function(){
  2242. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2243. getfp();
  2244. });
  2245. var Data = {
  2246. "get" : function(){
  2247. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2248. var tip = layer.load(2);
  2249. var result="";
  2250. var url = "getgyxml.do";
  2251. $.ajax({
  2252. "url" : url,
  2253. "data" : {
  2254. "start_date" : $("#dateBegin").val(),
  2255. "end_date" : $("#dateEnd").val()
  2256. },
  2257. "type" : "POST",
  2258. "dataType" : "json",
  2259. "success" : function(data) {
  2260. if(data != null && data != ""){
  2261. if ( data.status =="success"){
  2262. getfp();
  2263. alert("获取成功!");
  2264. }else {
  2265. alert(data.status);
  2266. }
  2267. }else {
  2268. alert("获取失败!");
  2269. }
  2270. },
  2271. "complete": function(){
  2272. layer.close(tip);
  2273. }
  2274. });
  2275. }else {
  2276. alert("请选择日期!");
  2277. }
  2278. },
  2279. "set" : function(){
  2280. if ( $("#fpid option:selected").text() !=""){
  2281. var tip = layer.load(2);
  2282. var gitem = $("#form1").serialize();
  2283. var jrjc;
  2284. if ($("#jrjc").prop('checked') == true){
  2285. jrjc = $("#departmentId").val();
  2286. }else {
  2287. jrjc ='N'
  2288. }
  2289. var url = "saverk.do";
  2290. $.ajax({
  2291. "url" : url,
  2292. "data" : {
  2293. "gitem" : gitem,
  2294. "jrjc" : jrjc
  2295. },
  2296. "type" : "POST",
  2297. "dataType" : "json",
  2298. "async" : true,
  2299. "success" : function(data) {
  2300. if(data.status ="success"){
  2301. alert("入库成功!");
  2302. window.location.reload();
  2303. }else {
  2304. alert(msg);
  2305. }
  2306. },
  2307. "error": function(){
  2308. alert("确认失败!");
  2309. },
  2310. "complete": function(){
  2311. layer.close(tip);
  2312. }
  2313. });
  2314. }else {
  2315. alert("请选择发票!");
  2316. }
  2317. }
  2318. }
  2319. function getfp(){
  2320. var tip = layer.load(2);
  2321. var url = "getgyfp.do";
  2322. $.ajax({
  2323. "url" : url,
  2324. "type" : "POST",
  2325. "dataType" : "json",
  2326. "async" : true,
  2327. "success" : function(data) {
  2328. if(data != null && data != ""){
  2329. $("#fpid").empty();
  2330. $("#fpid").append("_$tag_____________$tag____");
  2331. for(var i = 0; i < data.length; i++){
  2332. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2333. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2334. }
  2335. }
  2336. },
  2337. "error" : function(msg){
  2338. },
  2339. "complete": function(){
  2340. layer.close(tip);
  2341. }
  2342. });
  2343. }
  2344. $("#fpid").change(function(){
  2345. var tip = layer.load(2);
  2346. var url = "getgyrkxx.do";
  2347. $.ajax({
  2348. "url" : url,
  2349. "data" : {
  2350. "fpId" : $("#fpid").val()
  2351. },
  2352. "type" : "POST",
  2353. "dataType" : "json",
  2354. "async" : true,
  2355. "success" : function(data) {
  2356. $("#dataTable").html("");
  2357. if(data != null && data != ""){
  2358. var html = "";
  2359. for(var i = 0; i < data.length; i++){
  2360. var ID = data[i].id == null ? "" : data[i].id;
  2361. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2362. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2363. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2364. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2365. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2366. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2367. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2368. var NAME = data[i].name == null ? "" : data[i].name;
  2369. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2370. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2371. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2372. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2373. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2374. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2375. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2376. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2377. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2378. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2379. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2380. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2381. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2382. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2383. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2384. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2385. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2386. var invoice_type_cn =null;
  2387. if (invoice_type =="00" ){
  2388. invoice_type_cn="销售发票";
  2389. }else if (invoice_type == "01") {
  2390. invoice_type_cn="更正(对冲)发票";
  2391. }else if (invoice_type == "02") {
  2392. invoice_type_cn="其它类型发票";
  2393. }
  2394. html += "_$ta";
  2395. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2396. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2397. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2398. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2399. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2400. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2401. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2402. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2403. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2404. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2405. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2406. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2407. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2408. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2409. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2410. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2411. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2412. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2413. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2414. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2415. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2416. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2417. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2418. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2419. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2420. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2421. html += "_$tag";
  2422. }
  2423. $("#dataTable").html(html);
  2424. }else {
  2425. $("#dataTable").html("");
  2426. }
  2427. },
  2428. "error" : function(msg){
  2429. },
  2430. "complete": function(){
  2431. layer.close(tip);
  2432. }
  2433. });
  2434. });
  2435. Date.prototype.Format = function (fmt) {
  2436. var o = {
  2437. "M+": this.getMonth() + 1, //月份
  2438. "d+": this.getDate(), //日
  2439. "h+": this.getHours(), //小时
  2440. "m+": this.getMinutes(), //分
  2441. "s+": this.getSeconds(), //秒
  2442. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2443. "S": this.getMilliseconds() //毫秒
  2444. };
  2445. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2446. for (var k in o)
  2447. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2448. return fmt;
  2449. }
  2450. $("#jrjc").change(function() {
  2451. if ($("#jrjc").prop('checked') == true){
  2452. $("#departmentId").removeAttr("disabled");
  2453. }else {
  2454. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2455. }
  2456. });
  2457. ----------------------------------- SOURCE END -------------------------------------
  2458. !STACK 0
  2459. java.lang.NullPointerException
  2460. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:45.095
  2461. !MESSAGE Error while processing working copy
  2462. !STACK 1
  2463. JavaScript Model Exception: java.lang.NullPointerException
  2464. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2465. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2466. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2467. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2468. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2469. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2470. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2471. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2472. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2473. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2474. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2475. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2476. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2477. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2478. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2479. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2480. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  2481. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  2482. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2483. Caused by: java.lang.NullPointerException
  2484. Caused by: java.lang.NullPointerException
  2485. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:45.095
  2486. !MESSAGE java.lang.NullPointerException
  2487. !STACK 0
  2488. java.lang.NullPointerException
  2489. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:46.121
  2490. !MESSAGE Exception occurred during problem detection:
  2491. ----------------------------------- SOURCE BEGIN -------------------------------------
  2492. (function(){WdatePicker();})();
  2493. (function(){WdatePicker();})();
  2494. (function(){Data.get();})();
  2495. (function(){Data.set();})();
  2496. (function(){search();})();
  2497. $(function(){
  2498. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2499. getfp();
  2500. });
  2501. var Data = {
  2502. "get" : function(){
  2503. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2504. var tip = layer.load(2);
  2505. var result="";
  2506. var url = "getgyxml.do";
  2507. $.ajax({
  2508. "url" : url,
  2509. "data" : {
  2510. "start_date" : $("#dateBegin").val(),
  2511. "end_date" : $("#dateEnd").val()
  2512. },
  2513. "type" : "POST",
  2514. "dataType" : "json",
  2515. "success" : function(data) {
  2516. if(data != null && data != ""){
  2517. if ( data.status =="success"){
  2518. getfp();
  2519. alert("获取成功!");
  2520. }else {
  2521. alert(data.status);
  2522. }
  2523. }else {
  2524. alert("获取失败!");
  2525. }
  2526. },
  2527. "complete": function(){
  2528. layer.close(tip);
  2529. }
  2530. });
  2531. }else {
  2532. alert("请选择日期!");
  2533. }
  2534. },
  2535. "set" : function(){
  2536. if ( $("#fpid option:selected").text() !=""){
  2537. var tip = layer.load(2);
  2538. var gitem = $("#form1").serialize();
  2539. var jrjc;
  2540. if ($("#jrjc").prop('checked') == true){
  2541. jrjc = $("#departmentId").val();
  2542. }else {
  2543. jrjc ='N'
  2544. }
  2545. var url = "saverk.do";
  2546. $.ajax({
  2547. "url" : url,
  2548. "data" : {
  2549. "gitem" : gitem,
  2550. "jrjc" : jrjc
  2551. },
  2552. "type" : "POST",
  2553. "dataType" : "json",
  2554. "async" : true,
  2555. "success" : function(data) {
  2556. if(data.status ="success"){
  2557. alert("入库成功!");
  2558. window.location.reload();
  2559. }else {
  2560. alert(msg);
  2561. }
  2562. },
  2563. "error": function(){
  2564. alert("确认失败!");
  2565. },
  2566. "complete": function(){
  2567. layer.close(tip);
  2568. }
  2569. });
  2570. }else {
  2571. alert("请选择发票!");
  2572. }
  2573. }
  2574. }
  2575. function getfp(){
  2576. var tip = layer.load(2);
  2577. var url = "getgyfp.do";
  2578. $.ajax({
  2579. "url" : url,
  2580. "type" : "POST",
  2581. "dataType" : "json",
  2582. "async" : true,
  2583. "success" : function(data) {
  2584. if(data != null && data != ""){
  2585. $("#fpid").empty();
  2586. $("#fpid").append("_$tag_____________$tag____");
  2587. for(var i = 0; i < data.length; i++){
  2588. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2589. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2590. }
  2591. }
  2592. },
  2593. "error" : function(msg){
  2594. },
  2595. "complete": function(){
  2596. layer.close(tip);
  2597. }
  2598. });
  2599. }
  2600. $("#fpid").change(function(){
  2601. var tip = layer.load(2);
  2602. var url = "getgyrkxx.do";
  2603. $.ajax({
  2604. "url" : url,
  2605. "data" : {
  2606. "fpId" : $("#fpid").val()
  2607. },
  2608. "type" : "POST",
  2609. "dataType" : "json",
  2610. "async" : true,
  2611. "success" : function(data) {
  2612. $("#dataTable").html("");
  2613. if(data != null && data != ""){
  2614. var html = "";
  2615. for(var i = 0; i < data.length; i++){
  2616. var ID = data[i].id == null ? "" : data[i].id;
  2617. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2618. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2619. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2620. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2621. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2622. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2623. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2624. var NAME = data[i].name == null ? "" : data[i].name;
  2625. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2626. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2627. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2628. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2629. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2630. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2631. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2632. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2633. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2634. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2635. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2636. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2637. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2638. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2639. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2640. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2641. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2642. var invoice_type_cn =null;
  2643. if (invoice_type =="00" ){
  2644. invoice_type_cn="销售发票";
  2645. }else if (invoice_type == "01") {
  2646. invoice_type_cn="更正(对冲)发票";
  2647. }else if (invoice_type == "02") {
  2648. invoice_type_cn="其它类型发票";
  2649. }
  2650. html += "_$ta";
  2651. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2652. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2653. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2654. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2655. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2656. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2657. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2658. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2659. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2660. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2661. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2662. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2663. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2664. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2665. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2666. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2667. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2668. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2669. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2670. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2671. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2672. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2673. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2674. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2675. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2676. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2677. html += "_$tag";
  2678. }
  2679. $("#dataTable").html(html);
  2680. }else {
  2681. $("#dataTable").html("");
  2682. }
  2683. },
  2684. "error" : function(msg){
  2685. },
  2686. "complete": function(){
  2687. layer.close(tip);
  2688. }
  2689. });
  2690. });
  2691. Date.prototype.Format = function (fmt) {
  2692. var o = {
  2693. "M+": this.getMonth() + 1, //月份
  2694. "d+": this.getDate(), //日
  2695. "h+": this.getHours(), //小时
  2696. "m+": this.getMinutes(), //分
  2697. "s+": this.getSeconds(), //秒
  2698. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2699. "S": this.getMilliseconds() //毫秒
  2700. };
  2701. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2702. for (var k in o)
  2703. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2704. return fmt;
  2705. }
  2706. $("#jrjc").change(function() {
  2707. if ($("#jrjc").prop('checked') == true){
  2708. $("#departmentId").removeAttr("disabled");
  2709. }else {
  2710. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2711. }
  2712. });
  2713. ----------------------------------- SOURCE END -------------------------------------
  2714. !STACK 0
  2715. java.lang.NullPointerException
  2716. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:47.373
  2717. !MESSAGE Exception occurred during problem detection:
  2718. ----------------------------------- SOURCE BEGIN -------------------------------------
  2719. (function(){WdatePicker();})();
  2720. (function(){WdatePicker();})();
  2721. (function(){Data.get();})();
  2722. (function(){Data.set();})();
  2723. (function(){search();})();
  2724. $(function(){
  2725. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2726. getfp();
  2727. });
  2728. var Data = {
  2729. "get" : function(){
  2730. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2731. var tip = layer.load(2);
  2732. var result="";
  2733. var url = "getgyxml.do";
  2734. $.ajax({
  2735. "url" : url,
  2736. "data" : {
  2737. "start_date" : $("#dateBegin").val(),
  2738. "end_date" : $("#dateEnd").val()
  2739. },
  2740. "type" : "POST",
  2741. "dataType" : "json",
  2742. "success" : function(data) {
  2743. if(data != null && data != ""){
  2744. if ( data.status =="success"){
  2745. getfp();
  2746. alert("获取成功!");
  2747. }else {
  2748. alert(data.status);
  2749. }
  2750. }else {
  2751. alert("获取失败!");
  2752. }
  2753. },
  2754. "complete": function(){
  2755. layer.close(tip);
  2756. }
  2757. });
  2758. }else {
  2759. alert("请选择日期!");
  2760. }
  2761. },
  2762. "set" : function(){
  2763. if ( $("#fpid option:selected").text() !=""){
  2764. var tip = layer.load(2);
  2765. var gitem = $("#form1").serialize();
  2766. var jrjc;
  2767. if ($("#jrjc").prop('checked') == true){
  2768. jrjc = $("#departmentId").val();
  2769. }else {
  2770. jrjc ='N'
  2771. }
  2772. var url = "saverk.do";
  2773. $.ajax({
  2774. "url" : url,
  2775. "data" : {
  2776. "gitem" : gitem,
  2777. "jrjc" : jrjc
  2778. },
  2779. "type" : "POST",
  2780. "dataType" : "json",
  2781. "async" : true,
  2782. "success" : function(data) {
  2783. if(data.status ="success"){
  2784. alert("入库成功!");
  2785. window.location.reload();
  2786. }else {
  2787. alert(msg);
  2788. }
  2789. },
  2790. "error": function(){
  2791. alert("确认失败!");
  2792. },
  2793. "complete": function(){
  2794. layer.close(tip);
  2795. }
  2796. });
  2797. }else {
  2798. alert("请选择发票!");
  2799. }
  2800. }
  2801. }
  2802. function getfp(){
  2803. var tip = layer.load(2);
  2804. var url = "getgyfp.do";
  2805. $.ajax({
  2806. "url" : url,
  2807. "type" : "POST",
  2808. "dataType" : "json",
  2809. "async" : true,
  2810. "success" : function(data) {
  2811. if(data != null && data != ""){
  2812. $("#fpid").empty();
  2813. $("#fpid").append("_$tag_____________$tag____");
  2814. for(var i = 0; i < data.length; i++){
  2815. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2816. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2817. }
  2818. }
  2819. },
  2820. "error" : function(msg){
  2821. },
  2822. "complete": function(){
  2823. layer.close(tip);
  2824. }
  2825. });
  2826. }
  2827. $("#fpid").change(function(){
  2828. var tip = layer.load(2);
  2829. var url = "getgyrkxx.do";
  2830. $.ajax({
  2831. "url" : url,
  2832. "data" : {
  2833. "fpId" : $("#fpid").val()
  2834. },
  2835. "type" : "POST",
  2836. "dataType" : "json",
  2837. "async" : true,
  2838. "success" : function(data) {
  2839. $("#dataTable").html("");
  2840. if(data != null && data != ""){
  2841. var html = "";
  2842. for(var i = 0; i < data.length; i++){
  2843. var ID = data[i].id == null ? "" : data[i].id;
  2844. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2845. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2846. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2847. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2848. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2849. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2850. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2851. var NAME = data[i].name == null ? "" : data[i].name;
  2852. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2853. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2854. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2855. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2856. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2857. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2858. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2859. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2860. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2861. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2862. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2863. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2864. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2865. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2866. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2867. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2868. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2869. var invoice_type_cn =null;
  2870. if (invoice_type =="00" ){
  2871. invoice_type_cn="销售发票";
  2872. }else if (invoice_type == "01") {
  2873. invoice_type_cn="更正(对冲)发票";
  2874. }else if (invoice_type == "02") {
  2875. invoice_type_cn="其它类型发票";
  2876. }
  2877. html += "_$ta";
  2878. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2879. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2880. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2881. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2882. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2883. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2884. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2885. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2886. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2887. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2888. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2889. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2890. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2891. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2892. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2893. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2894. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2895. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2896. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2897. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2898. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2899. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2900. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2901. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2902. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2903. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2904. html += "_$tag";
  2905. }
  2906. $("#dataTable").html(html);
  2907. }else {
  2908. $("#dataTable").html("");
  2909. }
  2910. },
  2911. "error" : function(msg){
  2912. },
  2913. "complete": function(){
  2914. layer.close(tip);
  2915. }
  2916. });
  2917. });
  2918. Date.prototype.Format = function (fmt) {
  2919. var o = {
  2920. "M+": this.getMonth() + 1, //月份
  2921. "d+": this.getDate(), //日
  2922. "h+": this.getHours(), //小时
  2923. "m+": this.getMinutes(), //分
  2924. "s+": this.getSeconds(), //秒
  2925. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2926. "S": this.getMilliseconds() //毫秒
  2927. };
  2928. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2929. for (var k in o)
  2930. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2931. return fmt;
  2932. }
  2933. $("#jrjc").change(function() {
  2934. if ($("#jrjc").prop('checked') == true){
  2935. $("#departmentId").removeAttr("disabled");
  2936. }else {
  2937. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2938. }
  2939. });
  2940. ----------------------------------- SOURCE END -------------------------------------
  2941. !STACK 0
  2942. java.lang.NullPointerException
  2943. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:47.374
  2944. !MESSAGE Error while processing working copy
  2945. !STACK 1
  2946. JavaScript Model Exception: java.lang.NullPointerException
  2947. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2948. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2949. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2950. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2951. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2952. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2953. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2954. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2955. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2956. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2957. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2958. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2959. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2960. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2961. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2962. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2963. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  2964. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  2965. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2966. Caused by: java.lang.NullPointerException
  2967. Caused by: java.lang.NullPointerException
  2968. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:47.374
  2969. !MESSAGE java.lang.NullPointerException
  2970. !STACK 0
  2971. java.lang.NullPointerException
  2972. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:48.405
  2973. !MESSAGE Exception occurred during problem detection:
  2974. ----------------------------------- SOURCE BEGIN -------------------------------------
  2975. (function(){WdatePicker();})();
  2976. (function(){WdatePicker();})();
  2977. (function(){Data.get();})();
  2978. (function(){Data.set();})();
  2979. (function(){search();})();
  2980. $(function(){
  2981. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2982. getfp();
  2983. });
  2984. var Data = {
  2985. "get" : function(){
  2986. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2987. var tip = layer.load(2);
  2988. var result="";
  2989. var url = "getgyxml.do";
  2990. $.ajax({
  2991. "url" : url,
  2992. "data" : {
  2993. "start_date" : $("#dateBegin").val(),
  2994. "end_date" : $("#dateEnd").val()
  2995. },
  2996. "type" : "POST",
  2997. "dataType" : "json",
  2998. "success" : function(data) {
  2999. if(data != null && data != ""){
  3000. if ( data.status =="success"){
  3001. getfp();
  3002. alert("获取成功!");
  3003. }else {
  3004. alert(data.status);
  3005. }
  3006. }else {
  3007. alert("获取失败!");
  3008. }
  3009. },
  3010. "complete": function(){
  3011. layer.close(tip);
  3012. }
  3013. });
  3014. }else {
  3015. alert("请选择日期!");
  3016. }
  3017. },
  3018. "set" : function(){
  3019. if ( $("#fpid option:selected").text() !=""){
  3020. var tip = layer.load(2);
  3021. var gitem = $("#form1").serialize();
  3022. var jrjc;
  3023. if ($("#jrjc").prop('checked') == true){
  3024. jrjc = $("#departmentId").val();
  3025. }else {
  3026. jrjc ='N'
  3027. }
  3028. var url = "saverk.do";
  3029. $.ajax({
  3030. "url" : url,
  3031. "data" : {
  3032. "gitem" : gitem,
  3033. "jrjc" : jrjc
  3034. },
  3035. "type" : "POST",
  3036. "dataType" : "json",
  3037. "async" : true,
  3038. "success" : function(data) {
  3039. if(data.status ="success"){
  3040. alert("入库成功!");
  3041. window.location.reload();
  3042. }else {
  3043. alert(msg);
  3044. }
  3045. },
  3046. "error": function(){
  3047. alert("确认失败!");
  3048. },
  3049. "complete": function(){
  3050. layer.close(tip);
  3051. }
  3052. });
  3053. }else {
  3054. alert("请选择发票!");
  3055. }
  3056. }
  3057. }
  3058. function getfp(){
  3059. var tip = layer.load(2);
  3060. var url = "getgyfp.do";
  3061. $.ajax({
  3062. "url" : url,
  3063. "type" : "POST",
  3064. "dataType" : "json",
  3065. "async" : true,
  3066. "success" : function(data) {
  3067. if(data != null && data != ""){
  3068. $("#fpid").empty();
  3069. $("#fpid").append("_$tag_____________$tag____");
  3070. for(var i = 0; i < data.length; i++){
  3071. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3072. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3073. }
  3074. }
  3075. },
  3076. "error" : function(msg){
  3077. },
  3078. "complete": function(){
  3079. layer.close(tip);
  3080. }
  3081. });
  3082. }
  3083. $("#fpid").change(function(){
  3084. var tip = layer.load(2);
  3085. var url = "getgyrkxx.do";
  3086. $.ajax({
  3087. "url" : url,
  3088. "data" : {
  3089. "fpId" : $("#fpid").val()
  3090. },
  3091. "type" : "POST",
  3092. "dataType" : "json",
  3093. "async" : true,
  3094. "success" : function(data) {
  3095. $("#dataTable").html("");
  3096. if(data != null && data != ""){
  3097. var html = "";
  3098. for(var i = 0; i < data.length; i++){
  3099. var ID = data[i].id == null ? "" : data[i].id;
  3100. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3101. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3102. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3103. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3104. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3105. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3106. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3107. var NAME = data[i].name == null ? "" : data[i].name;
  3108. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3109. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3110. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3111. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3112. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3113. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3114. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3115. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3116. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3117. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3118. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3119. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3120. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3121. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3122. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3123. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3124. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3125. var invoice_type_cn =null;
  3126. if (invoice_type =="00" ){
  3127. invoice_type_cn="销售发票";
  3128. }else if (invoice_type == "01") {
  3129. invoice_type_cn="更正(对冲)发票";
  3130. }else if (invoice_type == "02") {
  3131. invoice_type_cn="其它类型发票";
  3132. }
  3133. html += "_$ta";
  3134. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3135. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3136. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3137. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3138. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3139. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3140. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3141. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3142. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3143. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3144. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3145. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3146. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3147. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3148. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3149. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3150. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3151. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3152. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3153. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3154. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3155. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3156. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3157. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3158. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3159. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3160. html += "_$tag";
  3161. }
  3162. $("#dataTable").html(html);
  3163. }else {
  3164. $("#dataTable").html("");
  3165. }
  3166. },
  3167. "error" : function(msg){
  3168. },
  3169. "complete": function(){
  3170. layer.close(tip);
  3171. }
  3172. });
  3173. });
  3174. Date.prototype.Format = function (fmt) {
  3175. var o = {
  3176. "M+": this.getMonth() + 1, //月份
  3177. "d+": this.getDate(), //日
  3178. "h+": this.getHours(), //小时
  3179. "m+": this.getMinutes(), //分
  3180. "s+": this.getSeconds(), //秒
  3181. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3182. "S": this.getMilliseconds() //毫秒
  3183. };
  3184. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3185. for (var k in o)
  3186. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3187. return fmt;
  3188. }
  3189. $("#jrjc").change(function() {
  3190. if ($("#jrjc").prop('checked') == true){
  3191. $("#departmentId").removeAttr("disabled");
  3192. }else {
  3193. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3194. }
  3195. });
  3196. ----------------------------------- SOURCE END -------------------------------------
  3197. !STACK 0
  3198. java.lang.NullPointerException
  3199. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:50.231
  3200. !MESSAGE Exception occurred during problem detection:
  3201. ----------------------------------- SOURCE BEGIN -------------------------------------
  3202. (function(){WdatePicker();})();
  3203. (function(){WdatePicker();})();
  3204. (function(){Data.get();})();
  3205. (function(){Data.set();})();
  3206. (function(){search();})();
  3207. $(function(){
  3208. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3209. getfp();
  3210. });
  3211. var Data = {
  3212. "get" : function(){
  3213. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3214. var tip = layer.load(2);
  3215. var result="";
  3216. var url = "getgyxml.do";
  3217. $.ajax({
  3218. "url" : url,
  3219. "data" : {
  3220. "start_date" : $("#dateBegin").val(),
  3221. "end_date" : $("#dateEnd").val()
  3222. },
  3223. "type" : "POST",
  3224. "dataType" : "json",
  3225. "success" : function(data) {
  3226. if(data != null && data != ""){
  3227. if ( data.status =="success"){
  3228. getfp();
  3229. alert("获取成功!");
  3230. }else {
  3231. alert(data.status);
  3232. }
  3233. }else {
  3234. alert("获取失败!");
  3235. }
  3236. },
  3237. "complete": function(){
  3238. layer.close(tip);
  3239. }
  3240. });
  3241. }else {
  3242. alert("请选择日期!");
  3243. }
  3244. },
  3245. "set" : function(){
  3246. if ( $("#fpid option:selected").text() !=""){
  3247. var tip = layer.load(2);
  3248. var gitem = $("#form1").serialize();
  3249. var jrjc;
  3250. if ($("#jrjc").prop('checked') == true){
  3251. jrjc = $("#departmentId").val();
  3252. }else {
  3253. jrjc ='N'
  3254. }
  3255. var url = "saverk.do";
  3256. $.ajax({
  3257. "url" : url,
  3258. "data" : {
  3259. "gitem" : gitem,
  3260. "jrjc" : jrjc
  3261. },
  3262. "type" : "POST",
  3263. "dataType" : "json",
  3264. "async" : true,
  3265. "success" : function(data) {
  3266. if(data.status ="success"){
  3267. alert("入库成功!");
  3268. window.location.reload();
  3269. }else {
  3270. alert(msg);
  3271. }
  3272. },
  3273. "error": function(){
  3274. alert("确认失败!");
  3275. },
  3276. "complete": function(){
  3277. layer.close(tip);
  3278. }
  3279. });
  3280. }else {
  3281. alert("请选择发票!");
  3282. }
  3283. }
  3284. }
  3285. function getfp(){
  3286. var tip = layer.load(2);
  3287. var url = "getgyfp.do";
  3288. $.ajax({
  3289. "url" : url,
  3290. "type" : "POST",
  3291. "dataType" : "json",
  3292. "async" : true,
  3293. "success" : function(data) {
  3294. if(data != null && data != ""){
  3295. $("#fpid").empty();
  3296. $("#fpid").append("_$tag_____________$tag____");
  3297. for(var i = 0; i < data.length; i++){
  3298. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3299. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3300. }
  3301. }
  3302. },
  3303. "error" : function(msg){
  3304. },
  3305. "complete": function(){
  3306. layer.close(tip);
  3307. }
  3308. });
  3309. }
  3310. $("#fpid").change(function(){
  3311. var tip = layer.load(2);
  3312. var url = "getgyrkxx.do";
  3313. $.ajax({
  3314. "url" : url,
  3315. "data" : {
  3316. "fpId" : $("#fpid").val()
  3317. },
  3318. "type" : "POST",
  3319. "dataType" : "json",
  3320. "async" : true,
  3321. "success" : function(data) {
  3322. $("#dataTable").html("");
  3323. if(data != null && data != ""){
  3324. var html = "";
  3325. for(var i = 0; i < data.length; i++){
  3326. var ID = data[i].id == null ? "" : data[i].id;
  3327. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3328. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3329. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3330. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3331. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3332. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3333. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3334. var NAME = data[i].name == null ? "" : data[i].name;
  3335. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3336. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3337. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3338. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3339. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3340. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3341. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3342. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3343. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3344. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3345. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3346. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3347. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3348. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3349. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3350. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3351. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3352. var invoice_type_cn =null;
  3353. if (invoice_type =="00" ){
  3354. invoice_type_cn="销售发票";
  3355. }else if (invoice_type == "01") {
  3356. invoice_type_cn="更正(对冲)发票";
  3357. }else if (invoice_type == "02") {
  3358. invoice_type_cn="其它类型发票";
  3359. }
  3360. html += "_$ta";
  3361. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3362. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3363. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3364. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3365. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3366. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3367. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3368. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3369. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3370. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3371. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3372. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3373. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3374. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3375. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3376. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3377. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3378. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3379. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3380. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3381. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3382. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3383. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3384. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3385. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3386. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3387. html += "_$tag";
  3388. }
  3389. $("#dataTable").html(html);
  3390. }else {
  3391. $("#dataTable").html("");
  3392. }
  3393. },
  3394. "error" : function(msg){
  3395. },
  3396. "complete": function(){
  3397. layer.close(tip);
  3398. }
  3399. });
  3400. });
  3401. Date.prototype.Format = function (fmt) {
  3402. var o = {
  3403. "M+": this.getMonth() + 1, //月份
  3404. "d+": this.getDate(), //日
  3405. "h+": this.getHours(), //小时
  3406. "m+": this.getMinutes(), //分
  3407. "s+": this.getSeconds(), //秒
  3408. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3409. "S": this.getMilliseconds() //毫秒
  3410. };
  3411. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3412. for (var k in o)
  3413. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3414. return fmt;
  3415. }
  3416. $("#jrjc").change(function() {
  3417. if ($("#jrjc").prop('checked') == true){
  3418. $("#departmentId").removeAttr("disabled");
  3419. }else {
  3420. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3421. }
  3422. });
  3423. ----------------------------------- SOURCE END -------------------------------------
  3424. !STACK 0
  3425. java.lang.NullPointerException
  3426. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:50.232
  3427. !MESSAGE Error while processing working copy
  3428. !STACK 1
  3429. JavaScript Model Exception: java.lang.NullPointerException
  3430. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3431. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3432. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3433. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3434. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3435. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3436. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3437. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3438. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3439. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3440. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3441. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3442. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3443. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3444. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3445. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3446. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3447. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3448. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3449. Caused by: java.lang.NullPointerException
  3450. Caused by: java.lang.NullPointerException
  3451. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:50.232
  3452. !MESSAGE java.lang.NullPointerException
  3453. !STACK 0
  3454. java.lang.NullPointerException
  3455. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:51.291
  3456. !MESSAGE Exception occurred during problem detection:
  3457. ----------------------------------- SOURCE BEGIN -------------------------------------
  3458. (function(){WdatePicker();})();
  3459. (function(){WdatePicker();})();
  3460. (function(){Data.get();})();
  3461. (function(){Data.set();})();
  3462. (function(){search();})();
  3463. $(function(){
  3464. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3465. getfp();
  3466. });
  3467. var Data = {
  3468. "get" : function(){
  3469. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3470. var tip = layer.load(2);
  3471. var result="";
  3472. var url = "getgyxml.do";
  3473. $.ajax({
  3474. "url" : url,
  3475. "data" : {
  3476. "start_date" : $("#dateBegin").val(),
  3477. "end_date" : $("#dateEnd").val()
  3478. },
  3479. "type" : "POST",
  3480. "dataType" : "json",
  3481. "success" : function(data) {
  3482. if(data != null && data != ""){
  3483. if ( data.status =="success"){
  3484. getfp();
  3485. alert("获取成功!");
  3486. }else {
  3487. alert(data.status);
  3488. }
  3489. }else {
  3490. alert("获取失败!");
  3491. }
  3492. },
  3493. "complete": function(){
  3494. layer.close(tip);
  3495. }
  3496. });
  3497. }else {
  3498. alert("请选择日期!");
  3499. }
  3500. },
  3501. "set" : function(){
  3502. if ( $("#fpid option:selected").text() !=""){
  3503. var tip = layer.load(2);
  3504. var gitem = $("#form1").serialize();
  3505. var jrjc;
  3506. if ($("#jrjc").prop('checked') == true){
  3507. jrjc = $("#departmentId").val();
  3508. }else {
  3509. jrjc ='N'
  3510. }
  3511. var url = "saverk.do";
  3512. $.ajax({
  3513. "url" : url,
  3514. "data" : {
  3515. "gitem" : gitem,
  3516. "jrjc" : jrjc
  3517. },
  3518. "type" : "POST",
  3519. "dataType" : "json",
  3520. "async" : true,
  3521. "success" : function(data) {
  3522. if(data.status ="success"){
  3523. alert("入库成功!");
  3524. window.location.reload();
  3525. }else {
  3526. alert(msg);
  3527. }
  3528. },
  3529. "error": function(){
  3530. alert("确认失败!");
  3531. },
  3532. "complete": function(){
  3533. layer.close(tip);
  3534. }
  3535. });
  3536. }else {
  3537. alert("请选择发票!");
  3538. }
  3539. }
  3540. }
  3541. function getfp(){
  3542. var tip = layer.load(2);
  3543. var url = "getgyfp.do";
  3544. $.ajax({
  3545. "url" : url,
  3546. "type" : "POST",
  3547. "dataType" : "json",
  3548. "async" : true,
  3549. "success" : function(data) {
  3550. if(data != null && data != ""){
  3551. $("#fpid").empty();
  3552. $("#fpid").append("_$tag_____________$tag____");
  3553. for(var i = 0; i < data.length; i++){
  3554. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3555. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3556. }
  3557. }
  3558. },
  3559. "error" : function(msg){
  3560. },
  3561. "complete": function(){
  3562. layer.close(tip);
  3563. }
  3564. });
  3565. }
  3566. $("#fpid").change(function(){
  3567. var tip = layer.load(2);
  3568. var url = "getgyrkxx.do";
  3569. $.ajax({
  3570. "url" : url,
  3571. "data" : {
  3572. "fpId" : $("#fpid").val()
  3573. },
  3574. "type" : "POST",
  3575. "dataType" : "json",
  3576. "async" : true,
  3577. "success" : function(data) {
  3578. $("#dataTable").html("");
  3579. if(data != null && data != ""){
  3580. var html = "";
  3581. for(var i = 0; i < data.length; i++){
  3582. var ID = data[i].id == null ? "" : data[i].id;
  3583. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3584. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3585. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3586. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3587. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3588. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3589. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3590. var NAME = data[i].name == null ? "" : data[i].name;
  3591. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3592. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3593. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3594. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3595. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3596. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3597. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3598. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3599. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3600. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3601. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3602. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3603. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3604. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3605. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3606. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3607. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3608. var invoice_type_cn =null;
  3609. if (invoice_type =="00" ){
  3610. invoice_type_cn="销售发票";
  3611. }else if (invoice_type == "01") {
  3612. invoice_type_cn="更正(对冲)发票";
  3613. }else if (invoice_type == "02") {
  3614. invoice_type_cn="其它类型发票";
  3615. }
  3616. html += "_$ta";
  3617. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3618. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3619. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3620. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3621. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3622. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3623. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________________$tag";
  3624. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3625. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3626. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3627. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3628. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3629. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3630. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3631. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3632. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3633. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3634. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3635. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3636. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3637. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3638. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3639. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3640. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3641. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3642. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3643. html += "_$tag";
  3644. }
  3645. $("#dataTable").html(html);
  3646. }else {
  3647. $("#dataTable").html("");
  3648. }
  3649. },
  3650. "error" : function(msg){
  3651. },
  3652. "complete": function(){
  3653. layer.close(tip);
  3654. }
  3655. });
  3656. });
  3657. Date.prototype.Format = function (fmt) {
  3658. var o = {
  3659. "M+": this.getMonth() + 1, //月份
  3660. "d+": this.getDate(), //日
  3661. "h+": this.getHours(), //小时
  3662. "m+": this.getMinutes(), //分
  3663. "s+": this.getSeconds(), //秒
  3664. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3665. "S": this.getMilliseconds() //毫秒
  3666. };
  3667. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3668. for (var k in o)
  3669. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3670. return fmt;
  3671. }
  3672. $("#jrjc").change(function() {
  3673. if ($("#jrjc").prop('checked') == true){
  3674. $("#departmentId").removeAttr("disabled");
  3675. }else {
  3676. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3677. }
  3678. });
  3679. ----------------------------------- SOURCE END -------------------------------------
  3680. !STACK 0
  3681. java.lang.NullPointerException
  3682. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:52.345
  3683. !MESSAGE Exception occurred during problem detection:
  3684. ----------------------------------- SOURCE BEGIN -------------------------------------
  3685. (function(){WdatePicker();})();
  3686. (function(){WdatePicker();})();
  3687. (function(){Data.get();})();
  3688. (function(){Data.set();})();
  3689. (function(){search();})();
  3690. $(function(){
  3691. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3692. getfp();
  3693. });
  3694. var Data = {
  3695. "get" : function(){
  3696. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3697. var tip = layer.load(2);
  3698. var result="";
  3699. var url = "getgyxml.do";
  3700. $.ajax({
  3701. "url" : url,
  3702. "data" : {
  3703. "start_date" : $("#dateBegin").val(),
  3704. "end_date" : $("#dateEnd").val()
  3705. },
  3706. "type" : "POST",
  3707. "dataType" : "json",
  3708. "success" : function(data) {
  3709. if(data != null && data != ""){
  3710. if ( data.status =="success"){
  3711. getfp();
  3712. alert("获取成功!");
  3713. }else {
  3714. alert(data.status);
  3715. }
  3716. }else {
  3717. alert("获取失败!");
  3718. }
  3719. },
  3720. "complete": function(){
  3721. layer.close(tip);
  3722. }
  3723. });
  3724. }else {
  3725. alert("请选择日期!");
  3726. }
  3727. },
  3728. "set" : function(){
  3729. if ( $("#fpid option:selected").text() !=""){
  3730. var tip = layer.load(2);
  3731. var gitem = $("#form1").serialize();
  3732. var jrjc;
  3733. if ($("#jrjc").prop('checked') == true){
  3734. jrjc = $("#departmentId").val();
  3735. }else {
  3736. jrjc ='N'
  3737. }
  3738. var url = "saverk.do";
  3739. $.ajax({
  3740. "url" : url,
  3741. "data" : {
  3742. "gitem" : gitem,
  3743. "jrjc" : jrjc
  3744. },
  3745. "type" : "POST",
  3746. "dataType" : "json",
  3747. "async" : true,
  3748. "success" : function(data) {
  3749. if(data.status ="success"){
  3750. alert("入库成功!");
  3751. window.location.reload();
  3752. }else {
  3753. alert(msg);
  3754. }
  3755. },
  3756. "error": function(){
  3757. alert("确认失败!");
  3758. },
  3759. "complete": function(){
  3760. layer.close(tip);
  3761. }
  3762. });
  3763. }else {
  3764. alert("请选择发票!");
  3765. }
  3766. }
  3767. }
  3768. function getfp(){
  3769. var tip = layer.load(2);
  3770. var url = "getgyfp.do";
  3771. $.ajax({
  3772. "url" : url,
  3773. "type" : "POST",
  3774. "dataType" : "json",
  3775. "async" : true,
  3776. "success" : function(data) {
  3777. if(data != null && data != ""){
  3778. $("#fpid").empty();
  3779. $("#fpid").append("_$tag_____________$tag____");
  3780. for(var i = 0; i < data.length; i++){
  3781. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3782. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3783. }
  3784. }
  3785. },
  3786. "error" : function(msg){
  3787. },
  3788. "complete": function(){
  3789. layer.close(tip);
  3790. }
  3791. });
  3792. }
  3793. $("#fpid").change(function(){
  3794. var tip = layer.load(2);
  3795. var url = "getgyrkxx.do";
  3796. $.ajax({
  3797. "url" : url,
  3798. "data" : {
  3799. "fpId" : $("#fpid").val()
  3800. },
  3801. "type" : "POST",
  3802. "dataType" : "json",
  3803. "async" : true,
  3804. "success" : function(data) {
  3805. $("#dataTable").html("");
  3806. if(data != null && data != ""){
  3807. var html = "";
  3808. for(var i = 0; i < data.length; i++){
  3809. var ID = data[i].id == null ? "" : data[i].id;
  3810. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3811. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3812. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3813. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3814. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3815. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3816. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3817. var NAME = data[i].name == null ? "" : data[i].name;
  3818. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3819. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3820. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3821. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3822. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3823. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3824. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3825. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3826. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3827. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3828. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3829. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3830. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3831. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3832. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3833. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3834. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3835. var invoice_type_cn =null;
  3836. if (invoice_type =="00" ){
  3837. invoice_type_cn="销售发票";
  3838. }else if (invoice_type == "01") {
  3839. invoice_type_cn="更正(对冲)发票";
  3840. }else if (invoice_type == "02") {
  3841. invoice_type_cn="其它类型发票";
  3842. }
  3843. html += "_$ta";
  3844. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3845. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3846. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3847. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3848. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3849. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3850. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3851. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3852. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3853. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3854. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3855. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3856. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3857. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3858. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3859. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3860. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3861. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3862. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3863. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3864. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3865. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3866. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3867. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3868. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3869. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3870. html += "_$tag";
  3871. }
  3872. $("#dataTable").html(html);
  3873. }else {
  3874. $("#dataTable").html("");
  3875. }
  3876. },
  3877. "error" : function(msg){
  3878. },
  3879. "complete": function(){
  3880. layer.close(tip);
  3881. }
  3882. });
  3883. });
  3884. Date.prototype.Format = function (fmt) {
  3885. var o = {
  3886. "M+": this.getMonth() + 1, //月份
  3887. "d+": this.getDate(), //日
  3888. "h+": this.getHours(), //小时
  3889. "m+": this.getMinutes(), //分
  3890. "s+": this.getSeconds(), //秒
  3891. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3892. "S": this.getMilliseconds() //毫秒
  3893. };
  3894. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3895. for (var k in o)
  3896. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3897. return fmt;
  3898. }
  3899. $("#jrjc").change(function() {
  3900. if ($("#jrjc").prop('checked') == true){
  3901. $("#departmentId").removeAttr("disabled");
  3902. }else {
  3903. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3904. }
  3905. });
  3906. ----------------------------------- SOURCE END -------------------------------------
  3907. !STACK 0
  3908. java.lang.NullPointerException
  3909. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:21:52.345
  3910. !MESSAGE java.lang.NullPointerException
  3911. !STACK 1
  3912. JavaScript Model Exception: java.lang.NullPointerException
  3913. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3914. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3915. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3916. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3917. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3918. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3919. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3920. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3921. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3922. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3923. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3924. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3925. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3926. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3927. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3928. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3929. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3930. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3931. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3932. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3933. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3934. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3935. Caused by: java.lang.NullPointerException
  3936. Caused by: java.lang.NullPointerException
  3937. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:52.345
  3938. !MESSAGE java.lang.NullPointerException
  3939. !STACK 0
  3940. java.lang.NullPointerException
  3941. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:59.277
  3942. !MESSAGE Exception occurred during problem detection:
  3943. ----------------------------------- SOURCE BEGIN -------------------------------------
  3944. (function(){WdatePicker();})();
  3945. (function(){WdatePicker();})();
  3946. (function(){Data.get();})();
  3947. (function(){Data.set();})();
  3948. (function(){search();})();
  3949. $(function(){
  3950. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3951. getfp();
  3952. });
  3953. var Data = {
  3954. "get" : function(){
  3955. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3956. var tip = layer.load(2);
  3957. var result="";
  3958. var url = "getgyxml.do";
  3959. $.ajax({
  3960. "url" : url,
  3961. "data" : {
  3962. "start_date" : $("#dateBegin").val(),
  3963. "end_date" : $("#dateEnd").val()
  3964. },
  3965. "type" : "POST",
  3966. "dataType" : "json",
  3967. "success" : function(data) {
  3968. if(data != null && data != ""){
  3969. if ( data.status =="success"){
  3970. getfp();
  3971. alert("获取成功!");
  3972. }else {
  3973. alert(data.status);
  3974. }
  3975. }else {
  3976. alert("获取失败!");
  3977. }
  3978. },
  3979. "complete": function(){
  3980. layer.close(tip);
  3981. }
  3982. });
  3983. }else {
  3984. alert("请选择日期!");
  3985. }
  3986. },
  3987. "set" : function(){
  3988. if ( $("#fpid option:selected").text() !=""){
  3989. var tip = layer.load(2);
  3990. var gitem = $("#form1").serialize();
  3991. var jrjc;
  3992. if ($("#jrjc").prop('checked') == true){
  3993. jrjc = $("#departmentId").val();
  3994. }else {
  3995. jrjc ='N'
  3996. }
  3997. var url = "saverk.do";
  3998. $.ajax({
  3999. "url" : url,
  4000. "data" : {
  4001. "gitem" : gitem,
  4002. "jrjc" : jrjc
  4003. },
  4004. "type" : "POST",
  4005. "dataType" : "json",
  4006. "async" : true,
  4007. "success" : function(data) {
  4008. if(data.status ="success"){
  4009. alert("入库成功!");
  4010. window.location.reload();
  4011. }else {
  4012. alert(msg);
  4013. }
  4014. },
  4015. "error": function(){
  4016. alert("确认失败!");
  4017. },
  4018. "complete": function(){
  4019. layer.close(tip);
  4020. }
  4021. });
  4022. }else {
  4023. alert("请选择发票!");
  4024. }
  4025. }
  4026. }
  4027. function getfp(){
  4028. var tip = layer.load(2);
  4029. var url = "getgyfp.do";
  4030. $.ajax({
  4031. "url" : url,
  4032. "type" : "POST",
  4033. "dataType" : "json",
  4034. "async" : true,
  4035. "success" : function(data) {
  4036. if(data != null && data != ""){
  4037. $("#fpid").empty();
  4038. $("#fpid").append("_$tag_____________$tag____");
  4039. for(var i = 0; i < data.length; i++){
  4040. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4041. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4042. }
  4043. }
  4044. },
  4045. "error" : function(msg){
  4046. },
  4047. "complete": function(){
  4048. layer.close(tip);
  4049. }
  4050. });
  4051. }
  4052. $("#fpid").change(function(){
  4053. var tip = layer.load(2);
  4054. var url = "getgyrkxx.do";
  4055. $.ajax({
  4056. "url" : url,
  4057. "data" : {
  4058. "fpId" : $("#fpid").val()
  4059. },
  4060. "type" : "POST",
  4061. "dataType" : "json",
  4062. "async" : true,
  4063. "success" : function(data) {
  4064. $("#dataTable").html("");
  4065. if(data != null && data != ""){
  4066. var html = "";
  4067. for(var i = 0; i < data.length; i++){
  4068. var ID = data[i].id == null ? "" : data[i].id;
  4069. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4070. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4071. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4072. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4073. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4074. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4075. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4076. var NAME = data[i].name == null ? "" : data[i].name;
  4077. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4078. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4079. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4080. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4081. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4082. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4083. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4084. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4085. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4086. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4087. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4088. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4089. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4090. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4091. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4092. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4093. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4094. var invoice_type_cn =null;
  4095. if (invoice_type =="00" ){
  4096. invoice_type_cn="销售发票";
  4097. }else if (invoice_type == "01") {
  4098. invoice_type_cn="更正(对冲)发票";
  4099. }else if (invoice_type == "02") {
  4100. invoice_type_cn="其它类型发票";
  4101. }
  4102. html += "_$ta";
  4103. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4104. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4105. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4106. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4107. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4108. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4109. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4110. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4111. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4112. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4113. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4114. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4115. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4116. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4117. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4118. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4119. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4120. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4121. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4122. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4123. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4124. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4125. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4126. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4127. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4128. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4129. html += "_$tag";
  4130. }
  4131. $("#dataTable").html(html);
  4132. }else {
  4133. $("#dataTable").html("");
  4134. }
  4135. },
  4136. "error" : function(msg){
  4137. },
  4138. "complete": function(){
  4139. layer.close(tip);
  4140. }
  4141. });
  4142. });
  4143. Date.prototype.Format = function (fmt) {
  4144. var o = {
  4145. "M+": this.getMonth() + 1, //月份
  4146. "d+": this.getDate(), //日
  4147. "h+": this.getHours(), //小时
  4148. "m+": this.getMinutes(), //分
  4149. "s+": this.getSeconds(), //秒
  4150. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4151. "S": this.getMilliseconds() //毫秒
  4152. };
  4153. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4154. for (var k in o)
  4155. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4156. return fmt;
  4157. }
  4158. $("#jrjc").change(function() {
  4159. if ($("#jrjc").prop('checked') == true){
  4160. $("#departmentId").removeAttr("disabled");
  4161. }else {
  4162. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4163. }
  4164. });
  4165. ----------------------------------- SOURCE END -------------------------------------
  4166. !STACK 0
  4167. java.lang.NullPointerException
  4168. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:59.277
  4169. !MESSAGE Error while processing working copy
  4170. !STACK 1
  4171. JavaScript Model Exception: java.lang.NullPointerException
  4172. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4173. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4174. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4175. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4176. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4177. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4178. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4179. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4180. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4181. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4182. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4183. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4184. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4185. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4186. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4187. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4188. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4189. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4190. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4191. Caused by: java.lang.NullPointerException
  4192. Caused by: java.lang.NullPointerException
  4193. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:59.277
  4194. !MESSAGE java.lang.NullPointerException
  4195. !STACK 0
  4196. java.lang.NullPointerException
  4197. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:00.210
  4198. !MESSAGE Exception occurred during problem detection:
  4199. ----------------------------------- SOURCE BEGIN -------------------------------------
  4200. (function(){WdatePicker();})();
  4201. (function(){WdatePicker();})();
  4202. (function(){Data.get();})();
  4203. (function(){Data.set();})();
  4204. (function(){search();})();
  4205. $(function(){
  4206. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4207. getfp();
  4208. });
  4209. var Data = {
  4210. "get" : function(){
  4211. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4212. var tip = layer.load(2);
  4213. var result="";
  4214. var url = "getgyxml.do";
  4215. $.ajax({
  4216. "url" : url,
  4217. "data" : {
  4218. "start_date" : $("#dateBegin").val(),
  4219. "end_date" : $("#dateEnd").val()
  4220. },
  4221. "type" : "POST",
  4222. "dataType" : "json",
  4223. "success" : function(data) {
  4224. if(data != null && data != ""){
  4225. if ( data.status =="success"){
  4226. getfp();
  4227. alert("获取成功!");
  4228. }else {
  4229. alert(data.status);
  4230. }
  4231. }else {
  4232. alert("获取失败!");
  4233. }
  4234. },
  4235. "complete": function(){
  4236. layer.close(tip);
  4237. }
  4238. });
  4239. }else {
  4240. alert("请选择日期!");
  4241. }
  4242. },
  4243. "set" : function(){
  4244. if ( $("#fpid option:selected").text() !=""){
  4245. var tip = layer.load(2);
  4246. var gitem = $("#form1").serialize();
  4247. var jrjc;
  4248. if ($("#jrjc").prop('checked') == true){
  4249. jrjc = $("#departmentId").val();
  4250. }else {
  4251. jrjc ='N'
  4252. }
  4253. var url = "saverk.do";
  4254. $.ajax({
  4255. "url" : url,
  4256. "data" : {
  4257. "gitem" : gitem,
  4258. "jrjc" : jrjc
  4259. },
  4260. "type" : "POST",
  4261. "dataType" : "json",
  4262. "async" : true,
  4263. "success" : function(data) {
  4264. if(data.status ="success"){
  4265. alert("入库成功!");
  4266. window.location.reload();
  4267. }else {
  4268. alert(msg);
  4269. }
  4270. },
  4271. "error": function(){
  4272. alert("确认失败!");
  4273. },
  4274. "complete": function(){
  4275. layer.close(tip);
  4276. }
  4277. });
  4278. }else {
  4279. alert("请选择发票!");
  4280. }
  4281. }
  4282. }
  4283. function getfp(){
  4284. var tip = layer.load(2);
  4285. var url = "getgyfp.do";
  4286. $.ajax({
  4287. "url" : url,
  4288. "type" : "POST",
  4289. "dataType" : "json",
  4290. "async" : true,
  4291. "success" : function(data) {
  4292. if(data != null && data != ""){
  4293. $("#fpid").empty();
  4294. $("#fpid").append("_$tag_____________$tag____");
  4295. for(var i = 0; i < data.length; i++){
  4296. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4297. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4298. }
  4299. }
  4300. },
  4301. "error" : function(msg){
  4302. },
  4303. "complete": function(){
  4304. layer.close(tip);
  4305. }
  4306. });
  4307. }
  4308. $("#fpid").change(function(){
  4309. var tip = layer.load(2);
  4310. var url = "getgyrkxx.do";
  4311. $.ajax({
  4312. "url" : url,
  4313. "data" : {
  4314. "fpId" : $("#fpid").val()
  4315. },
  4316. "type" : "POST",
  4317. "dataType" : "json",
  4318. "async" : true,
  4319. "success" : function(data) {
  4320. $("#dataTable").html("");
  4321. if(data != null && data != ""){
  4322. var html = "";
  4323. for(var i = 0; i < data.length; i++){
  4324. var ID = data[i].id == null ? "" : data[i].id;
  4325. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4326. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4327. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4328. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4329. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4330. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4331. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4332. var NAME = data[i].name == null ? "" : data[i].name;
  4333. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4334. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4335. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4336. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4337. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4338. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4339. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4340. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4341. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4342. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4343. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4344. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4345. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4346. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4347. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4348. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4349. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4350. var invoice_type_cn =null;
  4351. if (invoice_type =="00" ){
  4352. invoice_type_cn="销售发票";
  4353. }else if (invoice_type == "01") {
  4354. invoice_type_cn="更正(对冲)发票";
  4355. }else if (invoice_type == "02") {
  4356. invoice_type_cn="其它类型发票";
  4357. }
  4358. html += "_$ta";
  4359. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4360. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4361. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4362. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4363. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4364. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4365. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4366. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4367. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4368. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4369. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4370. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4371. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4372. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4373. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4374. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4375. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4376. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4377. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4378. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4379. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4380. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4381. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4382. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4383. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4384. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4385. html += "_$tag";
  4386. }
  4387. $("#dataTable").html(html);
  4388. }else {
  4389. $("#dataTable").html("");
  4390. }
  4391. },
  4392. "error" : function(msg){
  4393. },
  4394. "complete": function(){
  4395. layer.close(tip);
  4396. }
  4397. });
  4398. });
  4399. Date.prototype.Format = function (fmt) {
  4400. var o = {
  4401. "M+": this.getMonth() + 1, //月份
  4402. "d+": this.getDate(), //日
  4403. "h+": this.getHours(), //小时
  4404. "m+": this.getMinutes(), //分
  4405. "s+": this.getSeconds(), //秒
  4406. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4407. "S": this.getMilliseconds() //毫秒
  4408. };
  4409. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4410. for (var k in o)
  4411. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4412. return fmt;
  4413. }
  4414. $("#jrjc").change(function() {
  4415. if ($("#jrjc").prop('checked') == true){
  4416. $("#departmentId").removeAttr("disabled");
  4417. }else {
  4418. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4419. }
  4420. });
  4421. ----------------------------------- SOURCE END -------------------------------------
  4422. !STACK 0
  4423. java.lang.NullPointerException
  4424. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:02.417
  4425. !MESSAGE Exception occurred during problem detection:
  4426. ----------------------------------- SOURCE BEGIN -------------------------------------
  4427. (function(){WdatePicker();})();
  4428. (function(){WdatePicker();})();
  4429. (function(){Data.get();})();
  4430. (function(){Data.set();})();
  4431. (function(){search();})();
  4432. $(function(){
  4433. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4434. getfp();
  4435. });
  4436. var Data = {
  4437. "get" : function(){
  4438. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4439. var tip = layer.load(2);
  4440. var result="";
  4441. var url = "getgyxml.do";
  4442. $.ajax({
  4443. "url" : url,
  4444. "data" : {
  4445. "start_date" : $("#dateBegin").val(),
  4446. "end_date" : $("#dateEnd").val()
  4447. },
  4448. "type" : "POST",
  4449. "dataType" : "json",
  4450. "success" : function(data) {
  4451. if(data != null && data != ""){
  4452. if ( data.status =="success"){
  4453. getfp();
  4454. alert("获取成功!");
  4455. }else {
  4456. alert(data.status);
  4457. }
  4458. }else {
  4459. alert("获取失败!");
  4460. }
  4461. },
  4462. "complete": function(){
  4463. layer.close(tip);
  4464. }
  4465. });
  4466. }else {
  4467. alert("请选择日期!");
  4468. }
  4469. },
  4470. "set" : function(){
  4471. if ( $("#fpid option:selected").text() !=""){
  4472. var tip = layer.load(2);
  4473. var gitem = $("#form1").serialize();
  4474. var jrjc;
  4475. if ($("#jrjc").prop('checked') == true){
  4476. jrjc = $("#departmentId").val();
  4477. }else {
  4478. jrjc ='N'
  4479. }
  4480. var url = "saverk.do";
  4481. $.ajax({
  4482. "url" : url,
  4483. "data" : {
  4484. "gitem" : gitem,
  4485. "jrjc" : jrjc
  4486. },
  4487. "type" : "POST",
  4488. "dataType" : "json",
  4489. "async" : true,
  4490. "success" : function(data) {
  4491. if(data.status ="success"){
  4492. alert("入库成功!");
  4493. window.location.reload();
  4494. }else {
  4495. alert(msg);
  4496. }
  4497. },
  4498. "error": function(){
  4499. alert("确认失败!");
  4500. },
  4501. "complete": function(){
  4502. layer.close(tip);
  4503. }
  4504. });
  4505. }else {
  4506. alert("请选择发票!");
  4507. }
  4508. }
  4509. }
  4510. function getfp(){
  4511. var tip = layer.load(2);
  4512. var url = "getgyfp.do";
  4513. $.ajax({
  4514. "url" : url,
  4515. "type" : "POST",
  4516. "dataType" : "json",
  4517. "async" : true,
  4518. "success" : function(data) {
  4519. if(data != null && data != ""){
  4520. $("#fpid").empty();
  4521. $("#fpid").append("_$tag_____________$tag____");
  4522. for(var i = 0; i < data.length; i++){
  4523. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4524. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4525. }
  4526. }
  4527. },
  4528. "error" : function(msg){
  4529. },
  4530. "complete": function(){
  4531. layer.close(tip);
  4532. }
  4533. });
  4534. }
  4535. $("#fpid").change(function(){
  4536. var tip = layer.load(2);
  4537. var url = "getgyrkxx.do";
  4538. $.ajax({
  4539. "url" : url,
  4540. "data" : {
  4541. "fpId" : $("#fpid").val()
  4542. },
  4543. "type" : "POST",
  4544. "dataType" : "json",
  4545. "async" : true,
  4546. "success" : function(data) {
  4547. $("#dataTable").html("");
  4548. if(data != null && data != ""){
  4549. var html = "";
  4550. for(var i = 0; i < data.length; i++){
  4551. var ID = data[i].id == null ? "" : data[i].id;
  4552. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4553. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4554. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4555. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4556. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4557. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4558. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4559. var NAME = data[i].name == null ? "" : data[i].name;
  4560. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4561. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4562. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4563. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4564. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4565. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4566. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4567. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4568. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4569. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4570. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4571. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4572. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4573. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4574. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4575. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4576. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4577. var invoice_type_cn =null;
  4578. if (invoice_type =="00" ){
  4579. invoice_type_cn="销售发票";
  4580. }else if (invoice_type == "01") {
  4581. invoice_type_cn="更正(对冲)发票";
  4582. }else if (invoice_type == "02") {
  4583. invoice_type_cn="其它类型发票";
  4584. }
  4585. html += "_$ta";
  4586. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4587. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4588. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4589. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4590. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4591. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4592. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4593. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4594. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4595. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4596. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4597. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4598. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4599. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4600. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4601. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4602. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4603. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4604. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4605. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4606. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4607. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4608. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4609. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4610. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4611. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4612. html += "_$tag";
  4613. }
  4614. $("#dataTable").html(html);
  4615. }else {
  4616. $("#dataTable").html("");
  4617. }
  4618. },
  4619. "error" : function(msg){
  4620. },
  4621. "complete": function(){
  4622. layer.close(tip);
  4623. }
  4624. });
  4625. });
  4626. Date.prototype.Format = function (fmt) {
  4627. var o = {
  4628. "M+": this.getMonth() + 1, //月份
  4629. "d+": this.getDate(), //日
  4630. "h+": this.getHours(), //小时
  4631. "m+": this.getMinutes(), //分
  4632. "s+": this.getSeconds(), //秒
  4633. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4634. "S": this.getMilliseconds() //毫秒
  4635. };
  4636. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4637. for (var k in o)
  4638. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4639. return fmt;
  4640. }
  4641. $("#jrjc").change(function() {
  4642. if ($("#jrjc").prop('checked') == true){
  4643. $("#departmentId").removeAttr("disabled");
  4644. }else {
  4645. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4646. }
  4647. });
  4648. ----------------------------------- SOURCE END -------------------------------------
  4649. !STACK 0
  4650. java.lang.NullPointerException
  4651. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:02.417
  4652. !MESSAGE Error while processing working copy
  4653. !STACK 1
  4654. JavaScript Model Exception: java.lang.NullPointerException
  4655. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4656. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4657. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4658. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4659. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4660. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4661. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4662. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4663. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4664. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4665. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4666. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4667. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4668. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4669. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4670. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4671. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4672. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4673. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4674. Caused by: java.lang.NullPointerException
  4675. Caused by: java.lang.NullPointerException
  4676. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:02.418
  4677. !MESSAGE java.lang.NullPointerException
  4678. !STACK 0
  4679. java.lang.NullPointerException
  4680. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:03.476
  4681. !MESSAGE Exception occurred during problem detection:
  4682. ----------------------------------- SOURCE BEGIN -------------------------------------
  4683. (function(){WdatePicker();})();
  4684. (function(){WdatePicker();})();
  4685. (function(){Data.get();})();
  4686. (function(){Data.set();})();
  4687. (function(){search();})();
  4688. $(function(){
  4689. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4690. getfp();
  4691. });
  4692. var Data = {
  4693. "get" : function(){
  4694. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4695. var tip = layer.load(2);
  4696. var result="";
  4697. var url = "getgyxml.do";
  4698. $.ajax({
  4699. "url" : url,
  4700. "data" : {
  4701. "start_date" : $("#dateBegin").val(),
  4702. "end_date" : $("#dateEnd").val()
  4703. },
  4704. "type" : "POST",
  4705. "dataType" : "json",
  4706. "success" : function(data) {
  4707. if(data != null && data != ""){
  4708. if ( data.status =="success"){
  4709. getfp();
  4710. alert("获取成功!");
  4711. }else {
  4712. alert(data.status);
  4713. }
  4714. }else {
  4715. alert("获取失败!");
  4716. }
  4717. },
  4718. "complete": function(){
  4719. layer.close(tip);
  4720. }
  4721. });
  4722. }else {
  4723. alert("请选择日期!");
  4724. }
  4725. },
  4726. "set" : function(){
  4727. if ( $("#fpid option:selected").text() !=""){
  4728. var tip = layer.load(2);
  4729. var gitem = $("#form1").serialize();
  4730. var jrjc;
  4731. if ($("#jrjc").prop('checked') == true){
  4732. jrjc = $("#departmentId").val();
  4733. }else {
  4734. jrjc ='N'
  4735. }
  4736. var url = "saverk.do";
  4737. $.ajax({
  4738. "url" : url,
  4739. "data" : {
  4740. "gitem" : gitem,
  4741. "jrjc" : jrjc
  4742. },
  4743. "type" : "POST",
  4744. "dataType" : "json",
  4745. "async" : true,
  4746. "success" : function(data) {
  4747. if(data.status ="success"){
  4748. alert("入库成功!");
  4749. window.location.reload();
  4750. }else {
  4751. alert(msg);
  4752. }
  4753. },
  4754. "error": function(){
  4755. alert("确认失败!");
  4756. },
  4757. "complete": function(){
  4758. layer.close(tip);
  4759. }
  4760. });
  4761. }else {
  4762. alert("请选择发票!");
  4763. }
  4764. }
  4765. }
  4766. function getfp(){
  4767. var tip = layer.load(2);
  4768. var url = "getgyfp.do";
  4769. $.ajax({
  4770. "url" : url,
  4771. "type" : "POST",
  4772. "dataType" : "json",
  4773. "async" : true,
  4774. "success" : function(data) {
  4775. if(data != null && data != ""){
  4776. $("#fpid").empty();
  4777. $("#fpid").append("_$tag_____________$tag____");
  4778. for(var i = 0; i < data.length; i++){
  4779. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4780. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4781. }
  4782. }
  4783. },
  4784. "error" : function(msg){
  4785. },
  4786. "complete": function(){
  4787. layer.close(tip);
  4788. }
  4789. });
  4790. }
  4791. $("#fpid").change(function(){
  4792. var tip = layer.load(2);
  4793. var url = "getgyrkxx.do";
  4794. $.ajax({
  4795. "url" : url,
  4796. "data" : {
  4797. "fpId" : $("#fpid").val()
  4798. },
  4799. "type" : "POST",
  4800. "dataType" : "json",
  4801. "async" : true,
  4802. "success" : function(data) {
  4803. $("#dataTable").html("");
  4804. if(data != null && data != ""){
  4805. var html = "";
  4806. for(var i = 0; i < data.length; i++){
  4807. var ID = data[i].id == null ? "" : data[i].id;
  4808. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4809. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4810. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4811. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4812. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4813. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4814. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4815. var NAME = data[i].name == null ? "" : data[i].name;
  4816. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4817. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4818. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4819. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4820. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4821. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4822. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4823. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4824. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4825. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4826. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4827. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4828. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4829. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4830. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4831. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4832. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4833. var invoice_type_cn =null;
  4834. if (invoice_type =="00" ){
  4835. invoice_type_cn="销售发票";
  4836. }else if (invoice_type == "01") {
  4837. invoice_type_cn="更正(对冲)发票";
  4838. }else if (invoice_type == "02") {
  4839. invoice_type_cn="其它类型发票";
  4840. }
  4841. html += "_$ta";
  4842. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4843. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4844. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4845. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4846. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4847. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4848. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4849. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4850. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4851. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4852. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4853. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4854. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4855. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4856. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4857. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4858. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4859. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4860. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4861. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4862. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4863. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4864. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4865. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4866. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4867. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4868. html += "_$tag";
  4869. }
  4870. $("#dataTable").html(html);
  4871. }else {
  4872. $("#dataTable").html("");
  4873. }
  4874. },
  4875. "error" : function(msg){
  4876. },
  4877. "complete": function(){
  4878. layer.close(tip);
  4879. }
  4880. });
  4881. });
  4882. Date.prototype.Format = function (fmt) {
  4883. var o = {
  4884. "M+": this.getMonth() + 1, //月份
  4885. "d+": this.getDate(), //日
  4886. "h+": this.getHours(), //小时
  4887. "m+": this.getMinutes(), //分
  4888. "s+": this.getSeconds(), //秒
  4889. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4890. "S": this.getMilliseconds() //毫秒
  4891. };
  4892. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4893. for (var k in o)
  4894. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4895. return fmt;
  4896. }
  4897. $("#jrjc").change(function() {
  4898. if ($("#jrjc").prop('checked') == true){
  4899. $("#departmentId").removeAttr("disabled");
  4900. }else {
  4901. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4902. }
  4903. });
  4904. ----------------------------------- SOURCE END -------------------------------------
  4905. !STACK 0
  4906. java.lang.NullPointerException
  4907. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:03.829
  4908. !MESSAGE Exception occurred during problem detection:
  4909. ----------------------------------- SOURCE BEGIN -------------------------------------
  4910. (function(){WdatePicker();})();
  4911. (function(){WdatePicker();})();
  4912. (function(){Data.get();})();
  4913. (function(){Data.set();})();
  4914. (function(){search();})();
  4915. $(function(){
  4916. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4917. getfp();
  4918. });
  4919. var Data = {
  4920. "get" : function(){
  4921. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4922. var tip = layer.load(2);
  4923. var result="";
  4924. var url = "getgyxml.do";
  4925. $.ajax({
  4926. "url" : url,
  4927. "data" : {
  4928. "start_date" : $("#dateBegin").val(),
  4929. "end_date" : $("#dateEnd").val()
  4930. },
  4931. "type" : "POST",
  4932. "dataType" : "json",
  4933. "success" : function(data) {
  4934. if(data != null && data != ""){
  4935. if ( data.status =="success"){
  4936. getfp();
  4937. alert("获取成功!");
  4938. }else {
  4939. alert(data.status);
  4940. }
  4941. }else {
  4942. alert("获取失败!");
  4943. }
  4944. },
  4945. "complete": function(){
  4946. layer.close(tip);
  4947. }
  4948. });
  4949. }else {
  4950. alert("请选择日期!");
  4951. }
  4952. },
  4953. "set" : function(){
  4954. if ( $("#fpid option:selected").text() !=""){
  4955. var tip = layer.load(2);
  4956. var gitem = $("#form1").serialize();
  4957. var jrjc;
  4958. if ($("#jrjc").prop('checked') == true){
  4959. jrjc = $("#departmentId").val();
  4960. }else {
  4961. jrjc ='N'
  4962. }
  4963. var url = "saverk.do";
  4964. $.ajax({
  4965. "url" : url,
  4966. "data" : {
  4967. "gitem" : gitem,
  4968. "jrjc" : jrjc
  4969. },
  4970. "type" : "POST",
  4971. "dataType" : "json",
  4972. "async" : true,
  4973. "success" : function(data) {
  4974. if(data.status ="success"){
  4975. alert("入库成功!");
  4976. window.location.reload();
  4977. }else {
  4978. alert(msg);
  4979. }
  4980. },
  4981. "error": function(){
  4982. alert("确认失败!");
  4983. },
  4984. "complete": function(){
  4985. layer.close(tip);
  4986. }
  4987. });
  4988. }else {
  4989. alert("请选择发票!");
  4990. }
  4991. }
  4992. }
  4993. function getfp(){
  4994. var tip = layer.load(2);
  4995. var url = "getgyfp.do";
  4996. $.ajax({
  4997. "url" : url,
  4998. "type" : "POST",
  4999. "dataType" : "json",
  5000. "async" : true,
  5001. "success" : function(data) {
  5002. if(data != null && data != ""){
  5003. $("#fpid").empty();
  5004. $("#fpid").append("_$tag_____________$tag____");
  5005. for(var i = 0; i < data.length; i++){
  5006. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5007. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5008. }
  5009. }
  5010. },
  5011. "error" : function(msg){
  5012. },
  5013. "complete": function(){
  5014. layer.close(tip);
  5015. }
  5016. });
  5017. }
  5018. $("#fpid").change(function(){
  5019. var tip = layer.load(2);
  5020. var url = "getgyrkxx.do";
  5021. $.ajax({
  5022. "url" : url,
  5023. "data" : {
  5024. "fpId" : $("#fpid").val()
  5025. },
  5026. "type" : "POST",
  5027. "dataType" : "json",
  5028. "async" : true,
  5029. "success" : function(data) {
  5030. $("#dataTable").html("");
  5031. if(data != null && data != ""){
  5032. var html = "";
  5033. for(var i = 0; i < data.length; i++){
  5034. var ID = data[i].id == null ? "" : data[i].id;
  5035. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5036. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5037. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5038. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5039. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5040. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5041. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5042. var NAME = data[i].name == null ? "" : data[i].name;
  5043. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5044. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5045. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5046. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5047. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5048. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5049. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5050. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5051. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5052. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5053. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5054. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5055. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5056. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5057. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5058. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5059. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5060. var invoice_type_cn =null;
  5061. if (invoice_type =="00" ){
  5062. invoice_type_cn="销售发票";
  5063. }else if (invoice_type == "01") {
  5064. invoice_type_cn="更正(对冲)发票";
  5065. }else if (invoice_type == "02") {
  5066. invoice_type_cn="其它类型发票";
  5067. }
  5068. html += "_$ta";
  5069. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5070. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5071. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5072. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5073. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5074. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5075. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5076. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5077. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5078. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5079. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5080. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5081. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5082. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5083. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5084. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5085. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5086. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5087. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5088. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5089. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5090. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5091. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5092. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5093. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5094. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5095. html += "_$tag";
  5096. }
  5097. $("#dataTable").html(html);
  5098. }else {
  5099. $("#dataTable").html("");
  5100. }
  5101. },
  5102. "error" : function(msg){
  5103. },
  5104. "complete": function(){
  5105. layer.close(tip);
  5106. }
  5107. });
  5108. });
  5109. Date.prototype.Format = function (fmt) {
  5110. var o = {
  5111. "M+": this.getMonth() + 1, //月份
  5112. "d+": this.getDate(), //日
  5113. "h+": this.getHours(), //小时
  5114. "m+": this.getMinutes(), //分
  5115. "s+": this.getSeconds(), //秒
  5116. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5117. "S": this.getMilliseconds() //毫秒
  5118. };
  5119. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5120. for (var k in o)
  5121. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5122. return fmt;
  5123. }
  5124. $("#jrjc").change(function() {
  5125. if ($("#jrjc").prop('checked') == true){
  5126. $("#departmentId").removeAttr("disabled");
  5127. }else {
  5128. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5129. }
  5130. });
  5131. ----------------------------------- SOURCE END -------------------------------------
  5132. !STACK 0
  5133. java.lang.NullPointerException
  5134. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:22:03.830
  5135. !MESSAGE java.lang.NullPointerException
  5136. !STACK 1
  5137. JavaScript Model Exception: java.lang.NullPointerException
  5138. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5139. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5140. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5141. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5142. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5143. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5144. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5145. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5146. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5147. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5148. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5149. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5150. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5151. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5152. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5153. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5154. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5155. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5156. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5157. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5158. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5159. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5160. Caused by: java.lang.NullPointerException
  5161. Caused by: java.lang.NullPointerException
  5162. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:03.830
  5163. !MESSAGE java.lang.NullPointerException
  5164. !STACK 0
  5165. java.lang.NullPointerException
  5166. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:06.261
  5167. !MESSAGE Exception occurred during problem detection:
  5168. ----------------------------------- SOURCE BEGIN -------------------------------------
  5169. (function(){WdatePicker();})();
  5170. (function(){WdatePicker();})();
  5171. (function(){Data.get();})();
  5172. (function(){Data.set();})();
  5173. (function(){search();})();
  5174. $(function(){
  5175. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5176. getfp();
  5177. });
  5178. var Data = {
  5179. "get" : function(){
  5180. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5181. var tip = layer.load(2);
  5182. var result="";
  5183. var url = "getgyxml.do";
  5184. $.ajax({
  5185. "url" : url,
  5186. "data" : {
  5187. "start_date" : $("#dateBegin").val(),
  5188. "end_date" : $("#dateEnd").val()
  5189. },
  5190. "type" : "POST",
  5191. "dataType" : "json",
  5192. "success" : function(data) {
  5193. if(data != null && data != ""){
  5194. if ( data.status =="success"){
  5195. getfp();
  5196. alert("获取成功!");
  5197. }else {
  5198. alert(data.status);
  5199. }
  5200. }else {
  5201. alert("获取失败!");
  5202. }
  5203. },
  5204. "complete": function(){
  5205. layer.close(tip);
  5206. }
  5207. });
  5208. }else {
  5209. alert("请选择日期!");
  5210. }
  5211. },
  5212. "set" : function(){
  5213. if ( $("#fpid option:selected").text() !=""){
  5214. var tip = layer.load(2);
  5215. var gitem = $("#form1").serialize();
  5216. var jrjc;
  5217. if ($("#jrjc").prop('checked') == true){
  5218. jrjc = $("#departmentId").val();
  5219. }else {
  5220. jrjc ='N'
  5221. }
  5222. var url = "saverk.do";
  5223. $.ajax({
  5224. "url" : url,
  5225. "data" : {
  5226. "gitem" : gitem,
  5227. "jrjc" : jrjc
  5228. },
  5229. "type" : "POST",
  5230. "dataType" : "json",
  5231. "async" : true,
  5232. "success" : function(data) {
  5233. if(data.status ="success"){
  5234. alert("入库成功!");
  5235. window.location.reload();
  5236. }else {
  5237. alert(msg);
  5238. }
  5239. },
  5240. "error": function(){
  5241. alert("确认失败!");
  5242. },
  5243. "complete": function(){
  5244. layer.close(tip);
  5245. }
  5246. });
  5247. }else {
  5248. alert("请选择发票!");
  5249. }
  5250. }
  5251. }
  5252. function getfp(){
  5253. var tip = layer.load(2);
  5254. var url = "getgyfp.do";
  5255. $.ajax({
  5256. "url" : url,
  5257. "type" : "POST",
  5258. "dataType" : "json",
  5259. "async" : true,
  5260. "success" : function(data) {
  5261. if(data != null && data != ""){
  5262. $("#fpid").empty();
  5263. $("#fpid").append("_$tag_____________$tag____");
  5264. for(var i = 0; i < data.length; i++){
  5265. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5266. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5267. }
  5268. }
  5269. },
  5270. "error" : function(msg){
  5271. },
  5272. "complete": function(){
  5273. layer.close(tip);
  5274. }
  5275. });
  5276. }
  5277. $("#fpid").change(function(){
  5278. var tip = layer.load(2);
  5279. var url = "getgyrkxx.do";
  5280. $.ajax({
  5281. "url" : url,
  5282. "data" : {
  5283. "fpId" : $("#fpid").val()
  5284. },
  5285. "type" : "POST",
  5286. "dataType" : "json",
  5287. "async" : true,
  5288. "success" : function(data) {
  5289. $("#dataTable").html("");
  5290. if(data != null && data != ""){
  5291. var html = "";
  5292. for(var i = 0; i < data.length; i++){
  5293. var ID = data[i].id == null ? "" : data[i].id;
  5294. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5295. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5296. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5297. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5298. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5299. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5300. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5301. var NAME = data[i].name == null ? "" : data[i].name;
  5302. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5303. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5304. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5305. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5306. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5307. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5308. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5309. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5310. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5311. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5312. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5313. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5314. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5315. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5316. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5317. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5318. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5319. var invoice_type_cn =null;
  5320. if (invoice_type =="00" ){
  5321. invoice_type_cn="销售发票";
  5322. }else if (invoice_type == "01") {
  5323. invoice_type_cn="更正(对冲)发票";
  5324. }else if (invoice_type == "02") {
  5325. invoice_type_cn="其它类型发票";
  5326. }
  5327. html += "_$ta";
  5328. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5329. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5330. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5331. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5332. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5333. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5334. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5335. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5336. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5337. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5338. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5339. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5340. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5341. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5342. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5343. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5344. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5345. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5346. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5347. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5348. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5349. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5350. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5351. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5352. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5353. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5354. html += "_$tag";
  5355. }
  5356. $("#dataTable").html(html);
  5357. }else {
  5358. $("#dataTable").html("");
  5359. }
  5360. },
  5361. "error" : function(msg){
  5362. },
  5363. "complete": function(){
  5364. layer.close(tip);
  5365. }
  5366. });
  5367. });
  5368. Date.prototype.Format = function (fmt) {
  5369. var o = {
  5370. "M+": this.getMonth() + 1, //月份
  5371. "d+": this.getDate(), //日
  5372. "h+": this.getHours(), //小时
  5373. "m+": this.getMinutes(), //分
  5374. "s+": this.getSeconds(), //秒
  5375. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5376. "S": this.getMilliseconds() //毫秒
  5377. };
  5378. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5379. for (var k in o)
  5380. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5381. return fmt;
  5382. }
  5383. $("#jrjc").change(function() {
  5384. if ($("#jrjc").prop('checked') == true){
  5385. $("#departmentId").removeAttr("disabled");
  5386. }else {
  5387. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5388. }
  5389. });
  5390. ----------------------------------- SOURCE END -------------------------------------
  5391. !STACK 0
  5392. java.lang.NullPointerException
  5393. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:22:06.262
  5394. !MESSAGE java.lang.NullPointerException
  5395. !STACK 1
  5396. JavaScript Model Exception: java.lang.NullPointerException
  5397. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5398. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5399. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5400. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5401. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5402. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5403. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5404. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5405. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5406. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5407. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5408. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5409. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5410. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5411. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5412. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5413. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5414. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5415. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5416. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5417. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5418. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5419. Caused by: java.lang.NullPointerException
  5420. Caused by: java.lang.NullPointerException
  5421. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:06.262
  5422. !MESSAGE java.lang.NullPointerException
  5423. !STACK 0
  5424. java.lang.NullPointerException
  5425. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:11.680
  5426. !MESSAGE Exception occurred during problem detection:
  5427. ----------------------------------- SOURCE BEGIN -------------------------------------
  5428. (function(){WdatePicker();})();
  5429. (function(){WdatePicker();})();
  5430. (function(){Data.get();})();
  5431. (function(){Data.set();})();
  5432. (function(){search();})();
  5433. $(function(){
  5434. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5435. getfp();
  5436. });
  5437. var Data = {
  5438. "get" : function(){
  5439. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5440. var tip = layer.load(2);
  5441. var result="";
  5442. var url = "getgyxml.do";
  5443. $.ajax({
  5444. "url" : url,
  5445. "data" : {
  5446. "start_date" : $("#dateBegin").val(),
  5447. "end_date" : $("#dateEnd").val()
  5448. },
  5449. "type" : "POST",
  5450. "dataType" : "json",
  5451. "success" : function(data) {
  5452. if(data != null && data != ""){
  5453. if ( data.status =="success"){
  5454. getfp();
  5455. alert("获取成功!");
  5456. }else {
  5457. alert(data.status);
  5458. }
  5459. }else {
  5460. alert("获取失败!");
  5461. }
  5462. },
  5463. "complete": function(){
  5464. layer.close(tip);
  5465. }
  5466. });
  5467. }else {
  5468. alert("请选择日期!");
  5469. }
  5470. },
  5471. "set" : function(){
  5472. if ( $("#fpid option:selected").text() !=""){
  5473. var tip = layer.load(2);
  5474. var gitem = $("#form1").serialize();
  5475. var jrjc;
  5476. if ($("#jrjc").prop('checked') == true){
  5477. jrjc = $("#departmentId").val();
  5478. }else {
  5479. jrjc ='N'
  5480. }
  5481. var url = "saverk.do";
  5482. $.ajax({
  5483. "url" : url,
  5484. "data" : {
  5485. "gitem" : gitem,
  5486. "jrjc" : jrjc
  5487. },
  5488. "type" : "POST",
  5489. "dataType" : "json",
  5490. "async" : true,
  5491. "success" : function(data) {
  5492. if(data.status ="success"){
  5493. alert("入库成功!");
  5494. window.location.reload();
  5495. }else {
  5496. alert(msg);
  5497. }
  5498. },
  5499. "error": function(){
  5500. alert("确认失败!");
  5501. },
  5502. "complete": function(){
  5503. layer.close(tip);
  5504. }
  5505. });
  5506. }else {
  5507. alert("请选择发票!");
  5508. }
  5509. }
  5510. }
  5511. function getfp(){
  5512. var tip = layer.load(2);
  5513. var url = "getgyfp.do";
  5514. $.ajax({
  5515. "url" : url,
  5516. "type" : "POST",
  5517. "dataType" : "json",
  5518. "async" : true,
  5519. "success" : function(data) {
  5520. if(data != null && data != ""){
  5521. $("#fpid").empty();
  5522. $("#fpid").append("_$tag_____________$tag____");
  5523. for(var i = 0; i < data.length; i++){
  5524. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5525. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5526. }
  5527. }
  5528. },
  5529. "error" : function(msg){
  5530. },
  5531. "complete": function(){
  5532. layer.close(tip);
  5533. }
  5534. });
  5535. }
  5536. $("#fpid").change(function(){
  5537. var tip = layer.load(2);
  5538. var url = "getgyrkxx.do";
  5539. $.ajax({
  5540. "url" : url,
  5541. "data" : {
  5542. "fpId" : $("#fpid").val()
  5543. },
  5544. "type" : "POST",
  5545. "dataType" : "json",
  5546. "async" : true,
  5547. "success" : function(data) {
  5548. $("#dataTable").html("");
  5549. if(data != null && data != ""){
  5550. var html = "";
  5551. for(var i = 0; i < data.length; i++){
  5552. var ID = data[i].id == null ? "" : data[i].id;
  5553. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5554. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5555. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5556. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5557. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5558. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5559. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5560. var NAME = data[i].name == null ? "" : data[i].name;
  5561. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5562. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5563. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5564. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5565. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5566. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5567. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5568. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5569. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5570. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5571. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5572. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5573. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5574. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5575. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5576. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5577. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5578. var invoice_type_cn =null;
  5579. if (invoice_type =="00" ){
  5580. invoice_type_cn="销售发票";
  5581. }else if (invoice_type == "01") {
  5582. invoice_type_cn="更正(对冲)发票";
  5583. }else if (invoice_type == "02") {
  5584. invoice_type_cn="其它类型发票";
  5585. }
  5586. html += "_$ta";
  5587. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5588. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5589. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5590. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5591. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5592. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5593. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5594. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5595. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5596. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5597. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5598. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5599. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5600. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5601. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5602. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5603. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5604. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5605. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5606. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5607. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5608. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5609. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5610. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5611. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5612. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5613. html += "_$tag";
  5614. }
  5615. $("#dataTable").html(html);
  5616. }else {
  5617. $("#dataTable").html("");
  5618. }
  5619. },
  5620. "error" : function(msg){
  5621. },
  5622. "complete": function(){
  5623. layer.close(tip);
  5624. }
  5625. });
  5626. });
  5627. Date.prototype.Format = function (fmt) {
  5628. var o = {
  5629. "M+": this.getMonth() + 1, //月份
  5630. "d+": this.getDate(), //日
  5631. "h+": this.getHours(), //小时
  5632. "m+": this.getMinutes(), //分
  5633. "s+": this.getSeconds(), //秒
  5634. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5635. "S": this.getMilliseconds() //毫秒
  5636. };
  5637. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5638. for (var k in o)
  5639. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5640. return fmt;
  5641. }
  5642. $("#jrjc").change(function() {
  5643. if ($("#jrjc").prop('checked') == true){
  5644. $("#departmentId").removeAttr("disabled");
  5645. }else {
  5646. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5647. }
  5648. });
  5649. ----------------------------------- SOURCE END -------------------------------------
  5650. !STACK 0
  5651. java.lang.NullPointerException
  5652. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:11.681
  5653. !MESSAGE Error while processing working copy
  5654. !STACK 1
  5655. JavaScript Model Exception: java.lang.NullPointerException
  5656. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5657. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5658. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5659. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5660. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5661. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5662. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5663. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5664. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5665. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5666. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5667. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5668. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5669. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5670. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5671. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5672. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5673. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5674. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5675. Caused by: java.lang.NullPointerException
  5676. Caused by: java.lang.NullPointerException
  5677. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:11.681
  5678. !MESSAGE java.lang.NullPointerException
  5679. !STACK 0
  5680. java.lang.NullPointerException
  5681. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:12.324
  5682. !MESSAGE Exception occurred during problem detection:
  5683. ----------------------------------- SOURCE BEGIN -------------------------------------
  5684. (function(){WdatePicker();})();
  5685. (function(){WdatePicker();})();
  5686. (function(){Data.get();})();
  5687. (function(){Data.set();})();
  5688. (function(){search();})();
  5689. $(function(){
  5690. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5691. getfp();
  5692. });
  5693. var Data = {
  5694. "get" : function(){
  5695. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5696. var tip = layer.load(2);
  5697. var result="";
  5698. var url = "getgyxml.do";
  5699. $.ajax({
  5700. "url" : url,
  5701. "data" : {
  5702. "start_date" : $("#dateBegin").val(),
  5703. "end_date" : $("#dateEnd").val()
  5704. },
  5705. "type" : "POST",
  5706. "dataType" : "json",
  5707. "success" : function(data) {
  5708. if(data != null && data != ""){
  5709. if ( data.status =="success"){
  5710. getfp();
  5711. alert("获取成功!");
  5712. }else {
  5713. alert(data.status);
  5714. }
  5715. }else {
  5716. alert("获取失败!");
  5717. }
  5718. },
  5719. "complete": function(){
  5720. layer.close(tip);
  5721. }
  5722. });
  5723. }else {
  5724. alert("请选择日期!");
  5725. }
  5726. },
  5727. "set" : function(){
  5728. if ( $("#fpid option:selected").text() !=""){
  5729. var tip = layer.load(2);
  5730. var gitem = $("#form1").serialize();
  5731. var jrjc;
  5732. if ($("#jrjc").prop('checked') == true){
  5733. jrjc = $("#departmentId").val();
  5734. }else {
  5735. jrjc ='N'
  5736. }
  5737. var url = "saverk.do";
  5738. $.ajax({
  5739. "url" : url,
  5740. "data" : {
  5741. "gitem" : gitem,
  5742. "jrjc" : jrjc
  5743. },
  5744. "type" : "POST",
  5745. "dataType" : "json",
  5746. "async" : true,
  5747. "success" : function(data) {
  5748. if(data.status ="success"){
  5749. alert("入库成功!");
  5750. window.location.reload();
  5751. }else {
  5752. alert(msg);
  5753. }
  5754. },
  5755. "error": function(){
  5756. alert("确认失败!");
  5757. },
  5758. "complete": function(){
  5759. layer.close(tip);
  5760. }
  5761. });
  5762. }else {
  5763. alert("请选择发票!");
  5764. }
  5765. }
  5766. }
  5767. function getfp(){
  5768. var tip = layer.load(2);
  5769. var url = "getgyfp.do";
  5770. $.ajax({
  5771. "url" : url,
  5772. "type" : "POST",
  5773. "dataType" : "json",
  5774. "async" : true,
  5775. "success" : function(data) {
  5776. if(data != null && data != ""){
  5777. $("#fpid").empty();
  5778. $("#fpid").append("_$tag_____________$tag____");
  5779. for(var i = 0; i < data.length; i++){
  5780. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5781. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5782. }
  5783. }
  5784. },
  5785. "error" : function(msg){
  5786. },
  5787. "complete": function(){
  5788. layer.close(tip);
  5789. }
  5790. });
  5791. }
  5792. $("#fpid").change(function(){
  5793. var tip = layer.load(2);
  5794. var url = "getgyrkxx.do";
  5795. $.ajax({
  5796. "url" : url,
  5797. "data" : {
  5798. "fpId" : $("#fpid").val()
  5799. },
  5800. "type" : "POST",
  5801. "dataType" : "json",
  5802. "async" : true,
  5803. "success" : function(data) {
  5804. $("#dataTable").html("");
  5805. if(data != null && data != ""){
  5806. var html = "";
  5807. for(var i = 0; i < data.length; i++){
  5808. var ID = data[i].id == null ? "" : data[i].id;
  5809. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5810. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5811. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5812. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5813. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5814. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5815. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5816. var NAME = data[i].name == null ? "" : data[i].name;
  5817. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5818. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5819. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5820. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5821. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5822. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5823. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5824. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5825. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5826. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5827. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5828. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5829. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5830. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5831. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5832. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5833. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5834. var invoice_type_cn =null;
  5835. if (invoice_type =="00" ){
  5836. invoice_type_cn="销售发票";
  5837. }else if (invoice_type == "01") {
  5838. invoice_type_cn="更正(对冲)发票";
  5839. }else if (invoice_type == "02") {
  5840. invoice_type_cn="其它类型发票";
  5841. }
  5842. html += "_$ta";
  5843. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5844. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5845. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5846. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5847. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5848. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5849. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5850. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5851. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5852. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5853. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5854. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5855. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5856. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5857. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5858. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5859. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5860. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5861. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5862. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5863. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5864. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5865. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5866. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5867. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5868. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5869. html += "_$tag";
  5870. }
  5871. $("#dataTable").html(html);
  5872. }else {
  5873. $("#dataTable").html("");
  5874. }
  5875. },
  5876. "error" : function(msg){
  5877. },
  5878. "complete": function(){
  5879. layer.close(tip);
  5880. }
  5881. });
  5882. });
  5883. Date.prototype.Format = function (fmt) {
  5884. var o = {
  5885. "M+": this.getMonth() + 1, //月份
  5886. "d+": this.getDate(), //日
  5887. "h+": this.getHours(), //小时
  5888. "m+": this.getMinutes(), //分
  5889. "s+": this.getSeconds(), //秒
  5890. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5891. "S": this.getMilliseconds() //毫秒
  5892. };
  5893. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5894. for (var k in o)
  5895. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5896. return fmt;
  5897. }
  5898. $("#jrjc").change(function() {
  5899. if ($("#jrjc").prop('checked') == true){
  5900. $("#departmentId").removeAttr("disabled");
  5901. }else {
  5902. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5903. }
  5904. });
  5905. ----------------------------------- SOURCE END -------------------------------------
  5906. !STACK 0
  5907. java.lang.NullPointerException
  5908. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:14.353
  5909. !MESSAGE Exception occurred during problem detection:
  5910. ----------------------------------- SOURCE BEGIN -------------------------------------
  5911. (function(){WdatePicker();})();
  5912. (function(){WdatePicker();})();
  5913. (function(){Data.get();})();
  5914. (function(){Data.set();})();
  5915. (function(){search();})();
  5916. $(function(){
  5917. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5918. getfp();
  5919. });
  5920. var Data = {
  5921. "get" : function(){
  5922. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5923. var tip = layer.load(2);
  5924. var result="";
  5925. var url = "getgyxml.do";
  5926. $.ajax({
  5927. "url" : url,
  5928. "data" : {
  5929. "start_date" : $("#dateBegin").val(),
  5930. "end_date" : $("#dateEnd").val()
  5931. },
  5932. "type" : "POST",
  5933. "dataType" : "json",
  5934. "success" : function(data) {
  5935. if(data != null && data != ""){
  5936. if ( data.status =="success"){
  5937. getfp();
  5938. alert("获取成功!");
  5939. }else {
  5940. alert(data.status);
  5941. }
  5942. }else {
  5943. alert("获取失败!");
  5944. }
  5945. },
  5946. "complete": function(){
  5947. layer.close(tip);
  5948. }
  5949. });
  5950. }else {
  5951. alert("请选择日期!");
  5952. }
  5953. },
  5954. "set" : function(){
  5955. if ( $("#fpid option:selected").text() !=""){
  5956. var tip = layer.load(2);
  5957. var gitem = $("#form1").serialize();
  5958. var jrjc;
  5959. if ($("#jrjc").prop('checked') == true){
  5960. jrjc = $("#departmentId").val();
  5961. }else {
  5962. jrjc ='N'
  5963. }
  5964. var url = "saverk.do";
  5965. $.ajax({
  5966. "url" : url,
  5967. "data" : {
  5968. "gitem" : gitem,
  5969. "jrjc" : jrjc
  5970. },
  5971. "type" : "POST",
  5972. "dataType" : "json",
  5973. "async" : true,
  5974. "success" : function(data) {
  5975. if(data.status ="success"){
  5976. alert("入库成功!");
  5977. window.location.reload();
  5978. }else {
  5979. alert(msg);
  5980. }
  5981. },
  5982. "error": function(){
  5983. alert("确认失败!");
  5984. },
  5985. "complete": function(){
  5986. layer.close(tip);
  5987. }
  5988. });
  5989. }else {
  5990. alert("请选择发票!");
  5991. }
  5992. }
  5993. }
  5994. function getfp(){
  5995. var tip = layer.load(2);
  5996. var url = "getgyfp.do";
  5997. $.ajax({
  5998. "url" : url,
  5999. "type" : "POST",
  6000. "dataType" : "json",
  6001. "async" : true,
  6002. "success" : function(data) {
  6003. if(data != null && data != ""){
  6004. $("#fpid").empty();
  6005. $("#fpid").append("_$tag_____________$tag____");
  6006. for(var i = 0; i < data.length; i++){
  6007. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6008. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6009. }
  6010. }
  6011. },
  6012. "error" : function(msg){
  6013. },
  6014. "complete": function(){
  6015. layer.close(tip);
  6016. }
  6017. });
  6018. }
  6019. $("#fpid").change(function(){
  6020. var tip = layer.load(2);
  6021. var url = "getgyrkxx.do";
  6022. $.ajax({
  6023. "url" : url,
  6024. "data" : {
  6025. "fpId" : $("#fpid").val()
  6026. },
  6027. "type" : "POST",
  6028. "dataType" : "json",
  6029. "async" : true,
  6030. "success" : function(data) {
  6031. $("#dataTable").html("");
  6032. if(data != null && data != ""){
  6033. var html = "";
  6034. for(var i = 0; i < data.length; i++){
  6035. var ID = data[i].id == null ? "" : data[i].id;
  6036. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6037. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6038. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6039. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6040. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6041. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6042. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6043. var NAME = data[i].name == null ? "" : data[i].name;
  6044. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6045. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6046. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6047. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6048. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6049. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6050. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6051. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6052. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6053. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6054. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6055. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6056. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6057. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6058. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6059. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6060. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6061. var invoice_type_cn =null;
  6062. if (invoice_type =="00" ){
  6063. invoice_type_cn="销售发票";
  6064. }else if (invoice_type == "01") {
  6065. invoice_type_cn="更正(对冲)发票";
  6066. }else if (invoice_type == "02") {
  6067. invoice_type_cn="其它类型发票";
  6068. }
  6069. html += "_$ta";
  6070. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6071. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6072. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6073. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6074. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6075. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6076. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6077. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6078. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6079. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6080. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6081. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6082. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6083. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6084. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6085. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6086. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6087. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6088. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6089. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6090. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6091. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6092. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6093. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6094. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6095. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6096. html += "_$tag";
  6097. }
  6098. $("#dataTable").html(html);
  6099. }else {
  6100. $("#dataTable").html("");
  6101. }
  6102. },
  6103. "error" : function(msg){
  6104. },
  6105. "complete": function(){
  6106. layer.close(tip);
  6107. }
  6108. });
  6109. });
  6110. Date.prototype.Format = function (fmt) {
  6111. var o = {
  6112. "M+": this.getMonth() + 1, //月份
  6113. "d+": this.getDate(), //日
  6114. "h+": this.getHours(), //小时
  6115. "m+": this.getMinutes(), //分
  6116. "s+": this.getSeconds(), //秒
  6117. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6118. "S": this.getMilliseconds() //毫秒
  6119. };
  6120. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6121. for (var k in o)
  6122. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6123. return fmt;
  6124. }
  6125. $("#jrjc").change(function() {
  6126. if ($("#jrjc").prop('checked') == true){
  6127. $("#departmentId").removeAttr("disabled");
  6128. }else {
  6129. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6130. }
  6131. });
  6132. ----------------------------------- SOURCE END -------------------------------------
  6133. !STACK 0
  6134. java.lang.NullPointerException
  6135. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:22:14.354
  6136. !MESSAGE java.lang.NullPointerException
  6137. !STACK 1
  6138. JavaScript Model Exception: java.lang.NullPointerException
  6139. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6140. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  6141. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6142. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6143. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  6144. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  6145. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  6146. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  6147. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  6148. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  6149. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  6150. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  6151. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  6152. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  6153. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  6154. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  6155. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  6156. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  6157. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  6158. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  6159. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  6160. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  6161. Caused by: java.lang.NullPointerException
  6162. Caused by: java.lang.NullPointerException
  6163. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:14.354
  6164. !MESSAGE java.lang.NullPointerException
  6165. !STACK 0
  6166. java.lang.NullPointerException
  6167. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:24.054
  6168. !MESSAGE Exception occurred during problem detection:
  6169. ----------------------------------- SOURCE BEGIN -------------------------------------
  6170. (function(){WdatePicker();})();
  6171. (function(){WdatePicker();})();
  6172. (function(){Data.get();})();
  6173. (function(){Data.set();})();
  6174. (function(){search();})();
  6175. $(function(){
  6176. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6177. getfp();
  6178. });
  6179. var Data = {
  6180. "get" : function(){
  6181. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6182. var tip = layer.load(2);
  6183. var result="";
  6184. var url = "getgyxml.do";
  6185. $.ajax({
  6186. "url" : url,
  6187. "data" : {
  6188. "start_date" : $("#dateBegin").val(),
  6189. "end_date" : $("#dateEnd").val()
  6190. },
  6191. "type" : "POST",
  6192. "dataType" : "json",
  6193. "success" : function(data) {
  6194. if(data != null && data != ""){
  6195. if ( data.status =="success"){
  6196. getfp();
  6197. alert("获取成功!");
  6198. }else {
  6199. alert(data.status);
  6200. }
  6201. }else {
  6202. alert("获取失败!");
  6203. }
  6204. },
  6205. "complete": function(){
  6206. layer.close(tip);
  6207. }
  6208. });
  6209. }else {
  6210. alert("请选择日期!");
  6211. }
  6212. },
  6213. "set" : function(){
  6214. if ( $("#fpid option:selected").text() !=""){
  6215. var tip = layer.load(2);
  6216. var gitem = $("#form1").serialize();
  6217. var jrjc;
  6218. if ($("#jrjc").prop('checked') == true){
  6219. jrjc = $("#departmentId").val();
  6220. }else {
  6221. jrjc ='N'
  6222. }
  6223. var url = "saverk.do";
  6224. $.ajax({
  6225. "url" : url,
  6226. "data" : {
  6227. "gitem" : gitem,
  6228. "jrjc" : jrjc
  6229. },
  6230. "type" : "POST",
  6231. "dataType" : "json",
  6232. "async" : true,
  6233. "success" : function(data) {
  6234. if(data.status ="success"){
  6235. alert("入库成功!");
  6236. window.location.reload();
  6237. }else {
  6238. alert(msg);
  6239. }
  6240. },
  6241. "error": function(){
  6242. alert("确认失败!");
  6243. },
  6244. "complete": function(){
  6245. layer.close(tip);
  6246. }
  6247. });
  6248. }else {
  6249. alert("请选择发票!");
  6250. }
  6251. }
  6252. }
  6253. function getfp(){
  6254. var tip = layer.load(2);
  6255. var url = "getgyfp.do";
  6256. $.ajax({
  6257. "url" : url,
  6258. "type" : "POST",
  6259. "dataType" : "json",
  6260. "async" : true,
  6261. "success" : function(data) {
  6262. if(data != null && data != ""){
  6263. $("#fpid").empty();
  6264. $("#fpid").append("_$tag_____________$tag____");
  6265. for(var i = 0; i < data.length; i++){
  6266. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6267. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6268. }
  6269. }
  6270. },
  6271. "error" : function(msg){
  6272. },
  6273. "complete": function(){
  6274. layer.close(tip);
  6275. }
  6276. });
  6277. }
  6278. $("#fpid").change(function(){
  6279. var tip = layer.load(2);
  6280. var url = "getgyrkxx.do";
  6281. $.ajax({
  6282. "url" : url,
  6283. "data" : {
  6284. "fpId" : $("#fpid").val()
  6285. },
  6286. "type" : "POST",
  6287. "dataType" : "json",
  6288. "async" : true,
  6289. "success" : function(data) {
  6290. $("#dataTable").html("");
  6291. if(data != null && data != ""){
  6292. var html = "";
  6293. for(var i = 0; i < data.length; i++){
  6294. var ID = data[i].id == null ? "" : data[i].id;
  6295. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6296. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6297. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6298. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6299. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6300. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6301. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6302. var NAME = data[i].name == null ? "" : data[i].name;
  6303. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6304. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6305. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6306. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6307. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6308. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6309. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6310. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6311. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6312. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6313. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6314. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6315. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6316. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6317. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6318. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6319. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6320. var invoice_type_cn =null;
  6321. if (invoice_type =="00" ){
  6322. invoice_type_cn="销售发票";
  6323. }else if (invoice_type == "01") {
  6324. invoice_type_cn="更正(对冲)发票";
  6325. }else if (invoice_type == "02") {
  6326. invoice_type_cn="其它类型发票";
  6327. }
  6328. html += "_$ta";
  6329. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6330. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6331. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6332. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6333. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6334. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6335. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6336. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6337. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6338. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6339. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6340. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6341. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6342. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6343. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6344. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6345. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6346. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6347. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6348. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6349. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6350. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6351. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6352. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6353. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6354. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6355. html += "_$tag";
  6356. }
  6357. $("#dataTable").html(html);
  6358. }else {
  6359. $("#dataTable").html("");
  6360. }
  6361. },
  6362. "error" : function(msg){
  6363. },
  6364. "complete": function(){
  6365. layer.close(tip);
  6366. }
  6367. });
  6368. });
  6369. Date.prototype.Format = function (fmt) {
  6370. var o = {
  6371. "M+": this.getMonth() + 1, //月份
  6372. "d+": this.getDate(), //日
  6373. "h+": this.getHours(), //小时
  6374. "m+": this.getMinutes(), //分
  6375. "s+": this.getSeconds(), //秒
  6376. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6377. "S": this.getMilliseconds() //毫秒
  6378. };
  6379. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6380. for (var k in o)
  6381. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6382. return fmt;
  6383. }
  6384. $("#jrjc").change(function() {
  6385. if ($("#jrjc").prop('checked') == true){
  6386. $("#departmentId").removeAttr("disabled");
  6387. }else {
  6388. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6389. }
  6390. });
  6391. ----------------------------------- SOURCE END -------------------------------------
  6392. !STACK 0
  6393. java.lang.NullPointerException
  6394. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:24.055
  6395. !MESSAGE Error while processing working copy
  6396. !STACK 1
  6397. JavaScript Model Exception: java.lang.NullPointerException
  6398. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6399. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6400. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6401. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6402. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6403. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6404. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6405. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6406. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6407. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6408. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6409. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6410. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6411. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6412. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6413. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6414. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6415. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6416. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6417. Caused by: java.lang.NullPointerException
  6418. Caused by: java.lang.NullPointerException
  6419. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:24.055
  6420. !MESSAGE java.lang.NullPointerException
  6421. !STACK 0
  6422. java.lang.NullPointerException
  6423. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:24.698
  6424. !MESSAGE Exception occurred during problem detection:
  6425. ----------------------------------- SOURCE BEGIN -------------------------------------
  6426. (function(){WdatePicker();})();
  6427. (function(){WdatePicker();})();
  6428. (function(){Data.get();})();
  6429. (function(){Data.set();})();
  6430. (function(){search();})();
  6431. $(function(){
  6432. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6433. getfp();
  6434. });
  6435. var Data = {
  6436. "get" : function(){
  6437. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6438. var tip = layer.load(2);
  6439. var result="";
  6440. var url = "getgyxml.do";
  6441. $.ajax({
  6442. "url" : url,
  6443. "data" : {
  6444. "start_date" : $("#dateBegin").val(),
  6445. "end_date" : $("#dateEnd").val()
  6446. },
  6447. "type" : "POST",
  6448. "dataType" : "json",
  6449. "success" : function(data) {
  6450. if(data != null && data != ""){
  6451. if ( data.status =="success"){
  6452. getfp();
  6453. alert("获取成功!");
  6454. }else {
  6455. alert(data.status);
  6456. }
  6457. }else {
  6458. alert("获取失败!");
  6459. }
  6460. },
  6461. "complete": function(){
  6462. layer.close(tip);
  6463. }
  6464. });
  6465. }else {
  6466. alert("请选择日期!");
  6467. }
  6468. },
  6469. "set" : function(){
  6470. if ( $("#fpid option:selected").text() !=""){
  6471. var tip = layer.load(2);
  6472. var gitem = $("#form1").serialize();
  6473. var jrjc;
  6474. if ($("#jrjc").prop('checked') == true){
  6475. jrjc = $("#departmentId").val();
  6476. }else {
  6477. jrjc ='N'
  6478. }
  6479. var url = "saverk.do";
  6480. $.ajax({
  6481. "url" : url,
  6482. "data" : {
  6483. "gitem" : gitem,
  6484. "jrjc" : jrjc
  6485. },
  6486. "type" : "POST",
  6487. "dataType" : "json",
  6488. "async" : true,
  6489. "success" : function(data) {
  6490. if(data.status ="success"){
  6491. alert("入库成功!");
  6492. window.location.reload();
  6493. }else {
  6494. alert(msg);
  6495. }
  6496. },
  6497. "error": function(){
  6498. alert("确认失败!");
  6499. },
  6500. "complete": function(){
  6501. layer.close(tip);
  6502. }
  6503. });
  6504. }else {
  6505. alert("请选择发票!");
  6506. }
  6507. }
  6508. }
  6509. function getfp(){
  6510. var tip = layer.load(2);
  6511. var url = "getgyfp.do";
  6512. $.ajax({
  6513. "url" : url,
  6514. "type" : "POST",
  6515. "dataType" : "json",
  6516. "async" : true,
  6517. "success" : function(data) {
  6518. if(data != null && data != ""){
  6519. $("#fpid").empty();
  6520. $("#fpid").append("_$tag_____________$tag____");
  6521. for(var i = 0; i < data.length; i++){
  6522. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6523. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6524. }
  6525. }
  6526. },
  6527. "error" : function(msg){
  6528. },
  6529. "complete": function(){
  6530. layer.close(tip);
  6531. }
  6532. });
  6533. }
  6534. $("#fpid").change(function(){
  6535. var tip = layer.load(2);
  6536. var url = "getgyrkxx.do";
  6537. $.ajax({
  6538. "url" : url,
  6539. "data" : {
  6540. "fpId" : $("#fpid").val()
  6541. },
  6542. "type" : "POST",
  6543. "dataType" : "json",
  6544. "async" : true,
  6545. "success" : function(data) {
  6546. $("#dataTable").html("");
  6547. if(data != null && data != ""){
  6548. var html = "";
  6549. for(var i = 0; i < data.length; i++){
  6550. var ID = data[i].id == null ? "" : data[i].id;
  6551. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6552. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6553. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6554. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6555. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6556. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6557. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6558. var NAME = data[i].name == null ? "" : data[i].name;
  6559. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6560. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6561. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6562. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6563. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6564. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6565. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6566. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6567. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6568. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6569. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6570. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6571. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6572. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6573. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6574. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6575. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6576. var invoice_type_cn =null;
  6577. if (invoice_type =="00" ){
  6578. invoice_type_cn="销售发票";
  6579. }else if (invoice_type == "01") {
  6580. invoice_type_cn="更正(对冲)发票";
  6581. }else if (invoice_type == "02") {
  6582. invoice_type_cn="其它类型发票";
  6583. }
  6584. html += "_$ta";
  6585. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6586. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6587. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6588. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6589. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6590. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6591. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6592. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6593. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6594. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6595. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6596. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6597. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6598. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6599. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6600. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6601. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6602. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6603. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6604. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6605. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6606. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6607. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6608. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6609. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6610. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6611. html += "_$tag";
  6612. }
  6613. $("#dataTable").html(html);
  6614. }else {
  6615. $("#dataTable").html("");
  6616. }
  6617. },
  6618. "error" : function(msg){
  6619. },
  6620. "complete": function(){
  6621. layer.close(tip);
  6622. }
  6623. });
  6624. });
  6625. Date.prototype.Format = function (fmt) {
  6626. var o = {
  6627. "M+": this.getMonth() + 1, //月份
  6628. "d+": this.getDate(), //日
  6629. "h+": this.getHours(), //小时
  6630. "m+": this.getMinutes(), //分
  6631. "s+": this.getSeconds(), //秒
  6632. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6633. "S": this.getMilliseconds() //毫秒
  6634. };
  6635. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6636. for (var k in o)
  6637. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6638. return fmt;
  6639. }
  6640. $("#jrjc").change(function() {
  6641. if ($("#jrjc").prop('checked') == true){
  6642. $("#departmentId").removeAttr("disabled");
  6643. }else {
  6644. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6645. }
  6646. });
  6647. ----------------------------------- SOURCE END -------------------------------------
  6648. !STACK 0
  6649. java.lang.NullPointerException
  6650. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:25.384
  6651. !MESSAGE Exception occurred during problem detection:
  6652. ----------------------------------- SOURCE BEGIN -------------------------------------
  6653. (function(){WdatePicker();})();
  6654. (function(){WdatePicker();})();
  6655. (function(){Data.get();})();
  6656. (function(){Data.set();})();
  6657. (function(){search();})();
  6658. $(function(){
  6659. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6660. getfp();
  6661. });
  6662. var Data = {
  6663. "get" : function(){
  6664. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6665. var tip = layer.load(2);
  6666. var result="";
  6667. var url = "getgyxml.do";
  6668. $.ajax({
  6669. "url" : url,
  6670. "data" : {
  6671. "start_date" : $("#dateBegin").val(),
  6672. "end_date" : $("#dateEnd").val()
  6673. },
  6674. "type" : "POST",
  6675. "dataType" : "json",
  6676. "success" : function(data) {
  6677. if(data != null && data != ""){
  6678. if ( data.status =="success"){
  6679. getfp();
  6680. alert("获取成功!");
  6681. }else {
  6682. alert(data.status);
  6683. }
  6684. }else {
  6685. alert("获取失败!");
  6686. }
  6687. },
  6688. "complete": function(){
  6689. layer.close(tip);
  6690. }
  6691. });
  6692. }else {
  6693. alert("请选择日期!");
  6694. }
  6695. },
  6696. "set" : function(){
  6697. if ( $("#fpid option:selected").text() !=""){
  6698. var tip = layer.load(2);
  6699. var gitem = $("#form1").serialize();
  6700. var jrjc;
  6701. if ($("#jrjc").prop('checked') == true){
  6702. jrjc = $("#departmentId").val();
  6703. }else {
  6704. jrjc ='N'
  6705. }
  6706. var url = "saverk.do";
  6707. $.ajax({
  6708. "url" : url,
  6709. "data" : {
  6710. "gitem" : gitem,
  6711. "jrjc" : jrjc
  6712. },
  6713. "type" : "POST",
  6714. "dataType" : "json",
  6715. "async" : true,
  6716. "success" : function(data) {
  6717. if(data.status ="success"){
  6718. alert("入库成功!");
  6719. window.location.reload();
  6720. }else {
  6721. alert(msg);
  6722. }
  6723. },
  6724. "error": function(){
  6725. alert("确认失败!");
  6726. },
  6727. "complete": function(){
  6728. layer.close(tip);
  6729. }
  6730. });
  6731. }else {
  6732. alert("请选择发票!");
  6733. }
  6734. }
  6735. }
  6736. function getfp(){
  6737. var tip = layer.load(2);
  6738. var url = "getgyfp.do";
  6739. $.ajax({
  6740. "url" : url,
  6741. "type" : "POST",
  6742. "dataType" : "json",
  6743. "async" : true,
  6744. "success" : function(data) {
  6745. if(data != null && data != ""){
  6746. $("#fpid").empty();
  6747. $("#fpid").append("_$tag_____________$tag____");
  6748. for(var i = 0; i < data.length; i++){
  6749. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6750. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6751. }
  6752. }
  6753. },
  6754. "error" : function(msg){
  6755. },
  6756. "complete": function(){
  6757. layer.close(tip);
  6758. }
  6759. });
  6760. }
  6761. $("#fpid").change(function(){
  6762. var tip = layer.load(2);
  6763. var url = "getgyrkxx.do";
  6764. $.ajax({
  6765. "url" : url,
  6766. "data" : {
  6767. "fpId" : $("#fpid").val()
  6768. },
  6769. "type" : "POST",
  6770. "dataType" : "json",
  6771. "async" : true,
  6772. "success" : function(data) {
  6773. $("#dataTable").html("");
  6774. if(data != null && data != ""){
  6775. var html = "";
  6776. for(var i = 0; i < data.length; i++){
  6777. var ID = data[i].id == null ? "" : data[i].id;
  6778. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6779. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6780. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6781. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6782. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6783. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6784. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6785. var NAME = data[i].name == null ? "" : data[i].name;
  6786. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6787. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6788. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6789. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6790. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6791. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6792. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6793. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6794. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6795. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6796. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6797. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6798. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6799. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6800. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6801. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6802. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6803. var invoice_type_cn =null;
  6804. if (invoice_type =="00" ){
  6805. invoice_type_cn="销售发票";
  6806. }else if (invoice_type == "01") {
  6807. invoice_type_cn="更正(对冲)发票";
  6808. }else if (invoice_type == "02") {
  6809. invoice_type_cn="其它类型发票";
  6810. }
  6811. html += "_$ta";
  6812. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6813. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6814. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6815. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6816. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6817. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6818. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6819. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6820. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6821. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6822. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6823. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6824. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6825. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6826. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6827. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6828. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6829. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6830. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6831. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6832. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6833. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6834. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6835. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6836. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6837. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6838. html += "_$tag";
  6839. }
  6840. $("#dataTable").html(html);
  6841. }else {
  6842. $("#dataTable").html("");
  6843. }
  6844. },
  6845. "error" : function(msg){
  6846. },
  6847. "complete": function(){
  6848. layer.close(tip);
  6849. }
  6850. });
  6851. });
  6852. Date.prototype.Format = function (fmt) {
  6853. var o = {
  6854. "M+": this.getMonth() + 1, //月份
  6855. "d+": this.getDate(), //日
  6856. "h+": this.getHours(), //小时
  6857. "m+": this.getMinutes(), //分
  6858. "s+": this.getSeconds(), //秒
  6859. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6860. "S": this.getMilliseconds() //毫秒
  6861. };
  6862. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6863. for (var k in o)
  6864. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6865. return fmt;
  6866. }
  6867. $("#jrjc").change(function() {
  6868. if ($("#jrjc").prop('checked') == true){
  6869. $("#departmentId").removeAttr("disabled");
  6870. }else {
  6871. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6872. }
  6873. });
  6874. ----------------------------------- SOURCE END -------------------------------------
  6875. !STACK 0
  6876. java.lang.NullPointerException
  6877. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:25.384
  6878. !MESSAGE Error while processing working copy
  6879. !STACK 1
  6880. JavaScript Model Exception: java.lang.NullPointerException
  6881. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6882. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6883. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6884. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6885. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6886. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6887. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6888. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6889. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6890. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6891. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6892. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6893. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6894. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6895. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6896. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6897. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6898. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6899. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6900. Caused by: java.lang.NullPointerException
  6901. Caused by: java.lang.NullPointerException
  6902. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:25.384
  6903. !MESSAGE java.lang.NullPointerException
  6904. !STACK 0
  6905. java.lang.NullPointerException
  6906. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:26.317
  6907. !MESSAGE Exception occurred during problem detection:
  6908. ----------------------------------- SOURCE BEGIN -------------------------------------
  6909. (function(){WdatePicker();})();
  6910. (function(){WdatePicker();})();
  6911. (function(){Data.get();})();
  6912. (function(){Data.set();})();
  6913. (function(){search();})();
  6914. $(function(){
  6915. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6916. getfp();
  6917. });
  6918. var Data = {
  6919. "get" : function(){
  6920. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6921. var tip = layer.load(2);
  6922. var result="";
  6923. var url = "getgyxml.do";
  6924. $.ajax({
  6925. "url" : url,
  6926. "data" : {
  6927. "start_date" : $("#dateBegin").val(),
  6928. "end_date" : $("#dateEnd").val()
  6929. },
  6930. "type" : "POST",
  6931. "dataType" : "json",
  6932. "success" : function(data) {
  6933. if(data != null && data != ""){
  6934. if ( data.status =="success"){
  6935. getfp();
  6936. alert("获取成功!");
  6937. }else {
  6938. alert(data.status);
  6939. }
  6940. }else {
  6941. alert("获取失败!");
  6942. }
  6943. },
  6944. "complete": function(){
  6945. layer.close(tip);
  6946. }
  6947. });
  6948. }else {
  6949. alert("请选择日期!");
  6950. }
  6951. },
  6952. "set" : function(){
  6953. if ( $("#fpid option:selected").text() !=""){
  6954. var tip = layer.load(2);
  6955. var gitem = $("#form1").serialize();
  6956. var jrjc;
  6957. if ($("#jrjc").prop('checked') == true){
  6958. jrjc = $("#departmentId").val();
  6959. }else {
  6960. jrjc ='N'
  6961. }
  6962. var url = "saverk.do";
  6963. $.ajax({
  6964. "url" : url,
  6965. "data" : {
  6966. "gitem" : gitem,
  6967. "jrjc" : jrjc
  6968. },
  6969. "type" : "POST",
  6970. "dataType" : "json",
  6971. "async" : true,
  6972. "success" : function(data) {
  6973. if(data.status ="success"){
  6974. alert("入库成功!");
  6975. window.location.reload();
  6976. }else {
  6977. alert(msg);
  6978. }
  6979. },
  6980. "error": function(){
  6981. alert("确认失败!");
  6982. },
  6983. "complete": function(){
  6984. layer.close(tip);
  6985. }
  6986. });
  6987. }else {
  6988. alert("请选择发票!");
  6989. }
  6990. }
  6991. }
  6992. function getfp(){
  6993. var tip = layer.load(2);
  6994. var url = "getgyfp.do";
  6995. $.ajax({
  6996. "url" : url,
  6997. "type" : "POST",
  6998. "dataType" : "json",
  6999. "async" : true,
  7000. "success" : function(data) {
  7001. if(data != null && data != ""){
  7002. $("#fpid").empty();
  7003. $("#fpid").append("_$tag_____________$tag____");
  7004. for(var i = 0; i < data.length; i++){
  7005. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7006. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7007. }
  7008. }
  7009. },
  7010. "error" : function(msg){
  7011. },
  7012. "complete": function(){
  7013. layer.close(tip);
  7014. }
  7015. });
  7016. }
  7017. $("#fpid").change(function(){
  7018. var tip = layer.load(2);
  7019. var url = "getgyrkxx.do";
  7020. $.ajax({
  7021. "url" : url,
  7022. "data" : {
  7023. "fpId" : $("#fpid").val()
  7024. },
  7025. "type" : "POST",
  7026. "dataType" : "json",
  7027. "async" : true,
  7028. "success" : function(data) {
  7029. $("#dataTable").html("");
  7030. if(data != null && data != ""){
  7031. var html = "";
  7032. for(var i = 0; i < data.length; i++){
  7033. var ID = data[i].id == null ? "" : data[i].id;
  7034. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7035. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7036. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7037. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7038. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7039. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7040. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7041. var NAME = data[i].name == null ? "" : data[i].name;
  7042. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7043. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7044. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7045. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7046. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7047. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7048. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7049. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7050. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7051. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7052. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7053. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7054. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7055. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7056. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7057. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7058. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7059. var invoice_type_cn =null;
  7060. if (invoice_type =="00" ){
  7061. invoice_type_cn="销售发票";
  7062. }else if (invoice_type == "01") {
  7063. invoice_type_cn="更正(对冲)发票";
  7064. }else if (invoice_type == "02") {
  7065. invoice_type_cn="其它类型发票";
  7066. }
  7067. html += "_$ta";
  7068. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7069. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7070. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7071. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7072. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7073. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7074. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7075. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7076. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7077. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7078. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7079. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7080. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7081. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7082. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7083. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7084. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7085. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7086. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7087. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7088. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7089. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7090. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7091. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7092. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7093. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7094. html += "_$tag";
  7095. }
  7096. $("#dataTable").html(html);
  7097. }else {
  7098. $("#dataTable").html("");
  7099. }
  7100. },
  7101. "error" : function(msg){
  7102. },
  7103. "complete": function(){
  7104. layer.close(tip);
  7105. }
  7106. });
  7107. });
  7108. Date.prototype.Format = function (fmt) {
  7109. var o = {
  7110. "M+": this.getMonth() + 1, //月份
  7111. "d+": this.getDate(), //日
  7112. "h+": this.getHours(), //小时
  7113. "m+": this.getMinutes(), //分
  7114. "s+": this.getSeconds(), //秒
  7115. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7116. "S": this.getMilliseconds() //毫秒
  7117. };
  7118. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7119. for (var k in o)
  7120. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7121. return fmt;
  7122. }
  7123. $("#jrjc").change(function() {
  7124. if ($("#jrjc").prop('checked') == true){
  7125. $("#departmentId").removeAttr("disabled");
  7126. }else {
  7127. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7128. }
  7129. });
  7130. ----------------------------------- SOURCE END -------------------------------------
  7131. !STACK 0
  7132. java.lang.NullPointerException
  7133. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:27.920
  7134. !MESSAGE Exception occurred during problem detection:
  7135. ----------------------------------- SOURCE BEGIN -------------------------------------
  7136. (function(){WdatePicker();})();
  7137. (function(){WdatePicker();})();
  7138. (function(){Data.get();})();
  7139. (function(){Data.set();})();
  7140. (function(){search();})();
  7141. $(function(){
  7142. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7143. getfp();
  7144. });
  7145. var Data = {
  7146. "get" : function(){
  7147. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7148. var tip = layer.load(2);
  7149. var result="";
  7150. var url = "getgyxml.do";
  7151. $.ajax({
  7152. "url" : url,
  7153. "data" : {
  7154. "start_date" : $("#dateBegin").val(),
  7155. "end_date" : $("#dateEnd").val()
  7156. },
  7157. "type" : "POST",
  7158. "dataType" : "json",
  7159. "success" : function(data) {
  7160. if(data != null && data != ""){
  7161. if ( data.status =="success"){
  7162. getfp();
  7163. alert("获取成功!");
  7164. }else {
  7165. alert(data.status);
  7166. }
  7167. }else {
  7168. alert("获取失败!");
  7169. }
  7170. },
  7171. "complete": function(){
  7172. layer.close(tip);
  7173. }
  7174. });
  7175. }else {
  7176. alert("请选择日期!");
  7177. }
  7178. },
  7179. "set" : function(){
  7180. if ( $("#fpid option:selected").text() !=""){
  7181. var tip = layer.load(2);
  7182. var gitem = $("#form1").serialize();
  7183. var jrjc;
  7184. if ($("#jrjc").prop('checked') == true){
  7185. jrjc = $("#departmentId").val();
  7186. }else {
  7187. jrjc ='N'
  7188. }
  7189. var url = "saverk.do";
  7190. $.ajax({
  7191. "url" : url,
  7192. "data" : {
  7193. "gitem" : gitem,
  7194. "jrjc" : jrjc
  7195. },
  7196. "type" : "POST",
  7197. "dataType" : "json",
  7198. "async" : true,
  7199. "success" : function(data) {
  7200. if(data.status ="success"){
  7201. alert("入库成功!");
  7202. window.location.reload();
  7203. }else {
  7204. alert(msg);
  7205. }
  7206. },
  7207. "error": function(){
  7208. alert("确认失败!");
  7209. },
  7210. "complete": function(){
  7211. layer.close(tip);
  7212. }
  7213. });
  7214. }else {
  7215. alert("请选择发票!");
  7216. }
  7217. }
  7218. }
  7219. function getfp(){
  7220. var tip = layer.load(2);
  7221. var url = "getgyfp.do";
  7222. $.ajax({
  7223. "url" : url,
  7224. "type" : "POST",
  7225. "dataType" : "json",
  7226. "async" : true,
  7227. "success" : function(data) {
  7228. if(data != null && data != ""){
  7229. $("#fpid").empty();
  7230. $("#fpid").append("_$tag_____________$tag____");
  7231. for(var i = 0; i < data.length; i++){
  7232. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7233. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7234. }
  7235. }
  7236. },
  7237. "error" : function(msg){
  7238. },
  7239. "complete": function(){
  7240. layer.close(tip);
  7241. }
  7242. });
  7243. }
  7244. $("#fpid").change(function(){
  7245. var tip = layer.load(2);
  7246. var url = "getgyrkxx.do";
  7247. $.ajax({
  7248. "url" : url,
  7249. "data" : {
  7250. "fpId" : $("#fpid").val()
  7251. },
  7252. "type" : "POST",
  7253. "dataType" : "json",
  7254. "async" : true,
  7255. "success" : function(data) {
  7256. $("#dataTable").html("");
  7257. if(data != null && data != ""){
  7258. var html = "";
  7259. for(var i = 0; i < data.length; i++){
  7260. var ID = data[i].id == null ? "" : data[i].id;
  7261. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7262. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7263. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7264. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7265. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7266. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7267. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7268. var NAME = data[i].name == null ? "" : data[i].name;
  7269. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7270. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7271. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7272. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7273. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7274. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7275. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7276. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7277. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7278. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7279. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7280. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7281. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7282. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7283. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7284. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7285. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7286. var invoice_type_cn =null;
  7287. if (invoice_type =="00" ){
  7288. invoice_type_cn="销售发票";
  7289. }else if (invoice_type == "01") {
  7290. invoice_type_cn="更正(对冲)发票";
  7291. }else if (invoice_type == "02") {
  7292. invoice_type_cn="其它类型发票";
  7293. }
  7294. html += "_$ta";
  7295. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7296. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7297. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7298. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7299. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7300. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7301. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7302. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7303. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7304. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7305. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7306. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7307. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7308. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7309. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7310. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7311. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7312. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7313. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7314. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7315. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7316. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7317. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7318. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7319. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7320. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7321. html += "_$tag";
  7322. }
  7323. $("#dataTable").html(html);
  7324. }else {
  7325. $("#dataTable").html("");
  7326. }
  7327. },
  7328. "error" : function(msg){
  7329. },
  7330. "complete": function(){
  7331. layer.close(tip);
  7332. }
  7333. });
  7334. });
  7335. Date.prototype.Format = function (fmt) {
  7336. var o = {
  7337. "M+": this.getMonth() + 1, //月份
  7338. "d+": this.getDate(), //日
  7339. "h+": this.getHours(), //小时
  7340. "m+": this.getMinutes(), //分
  7341. "s+": this.getSeconds(), //秒
  7342. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7343. "S": this.getMilliseconds() //毫秒
  7344. };
  7345. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7346. for (var k in o)
  7347. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7348. return fmt;
  7349. }
  7350. $("#jrjc").change(function() {
  7351. if ($("#jrjc").prop('checked') == true){
  7352. $("#departmentId").removeAttr("disabled");
  7353. }else {
  7354. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7355. }
  7356. });
  7357. ----------------------------------- SOURCE END -------------------------------------
  7358. !STACK 0
  7359. java.lang.NullPointerException
  7360. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:27.920
  7361. !MESSAGE Error while processing working copy
  7362. !STACK 1
  7363. JavaScript Model Exception: java.lang.NullPointerException
  7364. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7365. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7366. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7367. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7368. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7369. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7370. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7371. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7372. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7373. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7374. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7375. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7376. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7377. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7378. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7379. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7380. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7381. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7382. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7383. Caused by: java.lang.NullPointerException
  7384. Caused by: java.lang.NullPointerException
  7385. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:27.920
  7386. !MESSAGE java.lang.NullPointerException
  7387. !STACK 0
  7388. java.lang.NullPointerException
  7389. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:28.950
  7390. !MESSAGE Exception occurred during problem detection:
  7391. ----------------------------------- SOURCE BEGIN -------------------------------------
  7392. (function(){WdatePicker();})();
  7393. (function(){WdatePicker();})();
  7394. (function(){Data.get();})();
  7395. (function(){Data.set();})();
  7396. (function(){search();})();
  7397. $(function(){
  7398. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7399. getfp();
  7400. });
  7401. var Data = {
  7402. "get" : function(){
  7403. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7404. var tip = layer.load(2);
  7405. var result="";
  7406. var url = "getgyxml.do";
  7407. $.ajax({
  7408. "url" : url,
  7409. "data" : {
  7410. "start_date" : $("#dateBegin").val(),
  7411. "end_date" : $("#dateEnd").val()
  7412. },
  7413. "type" : "POST",
  7414. "dataType" : "json",
  7415. "success" : function(data) {
  7416. if(data != null && data != ""){
  7417. if ( data.status =="success"){
  7418. getfp();
  7419. alert("获取成功!");
  7420. }else {
  7421. alert(data.status);
  7422. }
  7423. }else {
  7424. alert("获取失败!");
  7425. }
  7426. },
  7427. "complete": function(){
  7428. layer.close(tip);
  7429. }
  7430. });
  7431. }else {
  7432. alert("请选择日期!");
  7433. }
  7434. },
  7435. "set" : function(){
  7436. if ( $("#fpid option:selected").text() !=""){
  7437. var tip = layer.load(2);
  7438. var gitem = $("#form1").serialize();
  7439. var jrjc;
  7440. if ($("#jrjc").prop('checked') == true){
  7441. jrjc = $("#departmentId").val();
  7442. }else {
  7443. jrjc ='N'
  7444. }
  7445. var url = "saverk.do";
  7446. $.ajax({
  7447. "url" : url,
  7448. "data" : {
  7449. "gitem" : gitem,
  7450. "jrjc" : jrjc
  7451. },
  7452. "type" : "POST",
  7453. "dataType" : "json",
  7454. "async" : true,
  7455. "success" : function(data) {
  7456. if(data.status ="success"){
  7457. alert("入库成功!");
  7458. window.location.reload();
  7459. }else {
  7460. alert(msg);
  7461. }
  7462. },
  7463. "error": function(){
  7464. alert("确认失败!");
  7465. },
  7466. "complete": function(){
  7467. layer.close(tip);
  7468. }
  7469. });
  7470. }else {
  7471. alert("请选择发票!");
  7472. }
  7473. }
  7474. }
  7475. function getfp(){
  7476. var tip = layer.load(2);
  7477. var url = "getgyfp.do";
  7478. $.ajax({
  7479. "url" : url,
  7480. "type" : "POST",
  7481. "dataType" : "json",
  7482. "async" : true,
  7483. "success" : function(data) {
  7484. if(data != null && data != ""){
  7485. $("#fpid").empty();
  7486. $("#fpid").append("_$tag_____________$tag____");
  7487. for(var i = 0; i < data.length; i++){
  7488. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7489. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7490. }
  7491. }
  7492. },
  7493. "error" : function(msg){
  7494. },
  7495. "complete": function(){
  7496. layer.close(tip);
  7497. }
  7498. });
  7499. }
  7500. $("#fpid").change(function(){
  7501. var tip = layer.load(2);
  7502. var url = "getgyrkxx.do";
  7503. $.ajax({
  7504. "url" : url,
  7505. "data" : {
  7506. "fpId" : $("#fpid").val()
  7507. },
  7508. "type" : "POST",
  7509. "dataType" : "json",
  7510. "async" : true,
  7511. "success" : function(data) {
  7512. $("#dataTable").html("");
  7513. if(data != null && data != ""){
  7514. var html = "";
  7515. for(var i = 0; i < data.length; i++){
  7516. var ID = data[i].id == null ? "" : data[i].id;
  7517. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7518. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7519. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7520. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7521. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7522. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7523. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7524. var NAME = data[i].name == null ? "" : data[i].name;
  7525. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7526. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7527. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7528. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7529. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7530. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7531. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7532. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7533. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7534. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7535. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7536. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7537. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7538. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7539. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7540. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7541. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7542. var invoice_type_cn =null;
  7543. if (invoice_type =="00" ){
  7544. invoice_type_cn="销售发票";
  7545. }else if (invoice_type == "01") {
  7546. invoice_type_cn="更正(对冲)发票";
  7547. }else if (invoice_type == "02") {
  7548. invoice_type_cn="其它类型发票";
  7549. }
  7550. html += "_$ta";
  7551. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7552. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7553. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7554. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7555. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7556. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7557. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7558. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7559. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7560. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7561. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7562. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7563. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7564. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7565. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7566. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7567. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7568. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7569. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7570. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7571. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7572. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7573. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7574. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7575. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7576. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7577. html += "_$tag";
  7578. }
  7579. $("#dataTable").html(html);
  7580. }else {
  7581. $("#dataTable").html("");
  7582. }
  7583. },
  7584. "error" : function(msg){
  7585. },
  7586. "complete": function(){
  7587. layer.close(tip);
  7588. }
  7589. });
  7590. });
  7591. Date.prototype.Format = function (fmt) {
  7592. var o = {
  7593. "M+": this.getMonth() + 1, //月份
  7594. "d+": this.getDate(), //日
  7595. "h+": this.getHours(), //小时
  7596. "m+": this.getMinutes(), //分
  7597. "s+": this.getSeconds(), //秒
  7598. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7599. "S": this.getMilliseconds() //毫秒
  7600. };
  7601. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7602. for (var k in o)
  7603. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7604. return fmt;
  7605. }
  7606. $("#jrjc").change(function() {
  7607. if ($("#jrjc").prop('checked') == true){
  7608. $("#departmentId").removeAttr("disabled");
  7609. }else {
  7610. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7611. }
  7612. });
  7613. ----------------------------------- SOURCE END -------------------------------------
  7614. !STACK 0
  7615. java.lang.NullPointerException
  7616. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:29.527
  7617. !MESSAGE Exception occurred during problem detection:
  7618. ----------------------------------- SOURCE BEGIN -------------------------------------
  7619. (function(){WdatePicker();})();
  7620. (function(){WdatePicker();})();
  7621. (function(){Data.get();})();
  7622. (function(){Data.set();})();
  7623. (function(){search();})();
  7624. $(function(){
  7625. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7626. getfp();
  7627. });
  7628. var Data = {
  7629. "get" : function(){
  7630. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7631. var tip = layer.load(2);
  7632. var result="";
  7633. var url = "getgyxml.do";
  7634. $.ajax({
  7635. "url" : url,
  7636. "data" : {
  7637. "start_date" : $("#dateBegin").val(),
  7638. "end_date" : $("#dateEnd").val()
  7639. },
  7640. "type" : "POST",
  7641. "dataType" : "json",
  7642. "success" : function(data) {
  7643. if(data != null && data != ""){
  7644. if ( data.status =="success"){
  7645. getfp();
  7646. alert("获取成功!");
  7647. }else {
  7648. alert(data.status);
  7649. }
  7650. }else {
  7651. alert("获取失败!");
  7652. }
  7653. },
  7654. "complete": function(){
  7655. layer.close(tip);
  7656. }
  7657. });
  7658. }else {
  7659. alert("请选择日期!");
  7660. }
  7661. },
  7662. "set" : function(){
  7663. if ( $("#fpid option:selected").text() !=""){
  7664. var tip = layer.load(2);
  7665. var gitem = $("#form1").serialize();
  7666. var jrjc;
  7667. if ($("#jrjc").prop('checked') == true){
  7668. jrjc = $("#departmentId").val();
  7669. }else {
  7670. jrjc ='N'
  7671. }
  7672. var url = "saverk.do";
  7673. $.ajax({
  7674. "url" : url,
  7675. "data" : {
  7676. "gitem" : gitem,
  7677. "jrjc" : jrjc
  7678. },
  7679. "type" : "POST",
  7680. "dataType" : "json",
  7681. "async" : true,
  7682. "success" : function(data) {
  7683. if(data.status ="success"){
  7684. alert("入库成功!");
  7685. window.location.reload();
  7686. }else {
  7687. alert(msg);
  7688. }
  7689. },
  7690. "error": function(){
  7691. alert("确认失败!");
  7692. },
  7693. "complete": function(){
  7694. layer.close(tip);
  7695. }
  7696. });
  7697. }else {
  7698. alert("请选择发票!");
  7699. }
  7700. }
  7701. }
  7702. function getfp(){
  7703. var tip = layer.load(2);
  7704. var url = "getgyfp.do";
  7705. $.ajax({
  7706. "url" : url,
  7707. "type" : "POST",
  7708. "dataType" : "json",
  7709. "async" : true,
  7710. "success" : function(data) {
  7711. if(data != null && data != ""){
  7712. $("#fpid").empty();
  7713. $("#fpid").append("_$tag_____________$tag____");
  7714. for(var i = 0; i < data.length; i++){
  7715. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7716. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7717. }
  7718. }
  7719. },
  7720. "error" : function(msg){
  7721. },
  7722. "complete": function(){
  7723. layer.close(tip);
  7724. }
  7725. });
  7726. }
  7727. $("#fpid").change(function(){
  7728. var tip = layer.load(2);
  7729. var url = "getgyrkxx.do";
  7730. $.ajax({
  7731. "url" : url,
  7732. "data" : {
  7733. "fpId" : $("#fpid").val()
  7734. },
  7735. "type" : "POST",
  7736. "dataType" : "json",
  7737. "async" : true,
  7738. "success" : function(data) {
  7739. $("#dataTable").html("");
  7740. if(data != null && data != ""){
  7741. var html = "";
  7742. for(var i = 0; i < data.length; i++){
  7743. var ID = data[i].id == null ? "" : data[i].id;
  7744. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7745. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7746. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7747. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7748. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7749. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7750. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7751. var NAME = data[i].name == null ? "" : data[i].name;
  7752. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7753. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7754. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7755. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7756. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7757. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7758. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7759. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7760. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7761. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7762. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7763. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7764. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7765. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7766. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7767. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7768. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7769. var invoice_type_cn =null;
  7770. if (invoice_type =="00" ){
  7771. invoice_type_cn="销售发票";
  7772. }else if (invoice_type == "01") {
  7773. invoice_type_cn="更正(对冲)发票";
  7774. }else if (invoice_type == "02") {
  7775. invoice_type_cn="其它类型发票";
  7776. }
  7777. html += "_$ta";
  7778. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7779. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7780. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7781. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7782. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7783. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7784. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7785. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7786. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7787. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7788. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7789. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7790. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7791. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7792. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7793. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7794. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7795. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7796. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7797. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7798. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7799. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7800. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7801. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7802. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7803. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7804. html += "_$tag";
  7805. }
  7806. $("#dataTable").html(html);
  7807. }else {
  7808. $("#dataTable").html("");
  7809. }
  7810. },
  7811. "error" : function(msg){
  7812. },
  7813. "complete": function(){
  7814. layer.close(tip);
  7815. }
  7816. });
  7817. });
  7818. Date.prototype.Format = function (fmt) {
  7819. var o = {
  7820. "M+": this.getMonth() + 1, //月份
  7821. "d+": this.getDate(), //日
  7822. "h+": this.getHours(), //小时
  7823. "m+": this.getMinutes(), //分
  7824. "s+": this.getSeconds(), //秒
  7825. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7826. "S": this.getMilliseconds() //毫秒
  7827. };
  7828. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7829. for (var k in o)
  7830. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7831. return fmt;
  7832. }
  7833. $("#jrjc").change(function() {
  7834. if ($("#jrjc").prop('checked') == true){
  7835. $("#departmentId").removeAttr("disabled");
  7836. }else {
  7837. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7838. }
  7839. });
  7840. ----------------------------------- SOURCE END -------------------------------------
  7841. !STACK 0
  7842. java.lang.NullPointerException
  7843. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:29.527
  7844. !MESSAGE Error while processing working copy
  7845. !STACK 1
  7846. JavaScript Model Exception: java.lang.NullPointerException
  7847. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7848. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7849. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7850. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7851. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7852. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7853. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7854. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7855. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7856. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7857. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7858. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7859. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7860. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7861. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7862. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7863. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7864. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7865. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7866. Caused by: java.lang.NullPointerException
  7867. Caused by: java.lang.NullPointerException
  7868. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:29.528
  7869. !MESSAGE java.lang.NullPointerException
  7870. !STACK 0
  7871. java.lang.NullPointerException
  7872. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:30.567
  7873. !MESSAGE Exception occurred during problem detection:
  7874. ----------------------------------- SOURCE BEGIN -------------------------------------
  7875. (function(){WdatePicker();})();
  7876. (function(){WdatePicker();})();
  7877. (function(){Data.get();})();
  7878. (function(){Data.set();})();
  7879. (function(){search();})();
  7880. $(function(){
  7881. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7882. getfp();
  7883. });
  7884. var Data = {
  7885. "get" : function(){
  7886. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7887. var tip = layer.load(2);
  7888. var result="";
  7889. var url = "getgyxml.do";
  7890. $.ajax({
  7891. "url" : url,
  7892. "data" : {
  7893. "start_date" : $("#dateBegin").val(),
  7894. "end_date" : $("#dateEnd").val()
  7895. },
  7896. "type" : "POST",
  7897. "dataType" : "json",
  7898. "success" : function(data) {
  7899. if(data != null && data != ""){
  7900. if ( data.status =="success"){
  7901. getfp();
  7902. alert("获取成功!");
  7903. }else {
  7904. alert(data.status);
  7905. }
  7906. }else {
  7907. alert("获取失败!");
  7908. }
  7909. },
  7910. "complete": function(){
  7911. layer.close(tip);
  7912. }
  7913. });
  7914. }else {
  7915. alert("请选择日期!");
  7916. }
  7917. },
  7918. "set" : function(){
  7919. if ( $("#fpid option:selected").text() !=""){
  7920. var tip = layer.load(2);
  7921. var gitem = $("#form1").serialize();
  7922. var jrjc;
  7923. if ($("#jrjc").prop('checked') == true){
  7924. jrjc = $("#departmentId").val();
  7925. }else {
  7926. jrjc ='N'
  7927. }
  7928. var url = "saverk.do";
  7929. $.ajax({
  7930. "url" : url,
  7931. "data" : {
  7932. "gitem" : gitem,
  7933. "jrjc" : jrjc
  7934. },
  7935. "type" : "POST",
  7936. "dataType" : "json",
  7937. "async" : true,
  7938. "success" : function(data) {
  7939. if(data.status ="success"){
  7940. alert("入库成功!");
  7941. window.location.reload();
  7942. }else {
  7943. alert(msg);
  7944. }
  7945. },
  7946. "error": function(){
  7947. alert("确认失败!");
  7948. },
  7949. "complete": function(){
  7950. layer.close(tip);
  7951. }
  7952. });
  7953. }else {
  7954. alert("请选择发票!");
  7955. }
  7956. }
  7957. }
  7958. function getfp(){
  7959. var tip = layer.load(2);
  7960. var url = "getgyfp.do";
  7961. $.ajax({
  7962. "url" : url,
  7963. "type" : "POST",
  7964. "dataType" : "json",
  7965. "async" : true,
  7966. "success" : function(data) {
  7967. if(data != null && data != ""){
  7968. $("#fpid").empty();
  7969. $("#fpid").append("_$tag_____________$tag____");
  7970. for(var i = 0; i < data.length; i++){
  7971. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7972. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7973. }
  7974. }
  7975. },
  7976. "error" : function(msg){
  7977. },
  7978. "complete": function(){
  7979. layer.close(tip);
  7980. }
  7981. });
  7982. }
  7983. $("#fpid").change(function(){
  7984. var tip = layer.load(2);
  7985. var url = "getgyrkxx.do";
  7986. $.ajax({
  7987. "url" : url,
  7988. "data" : {
  7989. "fpId" : $("#fpid").val()
  7990. },
  7991. "type" : "POST",
  7992. "dataType" : "json",
  7993. "async" : true,
  7994. "success" : function(data) {
  7995. $("#dataTable").html("");
  7996. if(data != null && data != ""){
  7997. var html = "";
  7998. for(var i = 0; i < data.length; i++){
  7999. var ID = data[i].id == null ? "" : data[i].id;
  8000. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8001. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8002. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8003. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8004. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8005. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8006. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8007. var NAME = data[i].name == null ? "" : data[i].name;
  8008. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8009. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8010. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8011. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8012. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8013. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8014. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8015. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8016. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8017. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8018. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8019. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8020. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8021. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8022. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8023. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8024. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8025. var invoice_type_cn =null;
  8026. if (invoice_type =="00" ){
  8027. invoice_type_cn="销售发票";
  8028. }else if (invoice_type == "01") {
  8029. invoice_type_cn="更正(对冲)发票";
  8030. }else if (invoice_type == "02") {
  8031. invoice_type_cn="其它类型发票";
  8032. }
  8033. html += "_$ta";
  8034. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8035. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8036. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8037. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8038. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8039. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8040. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8041. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8042. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8043. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8044. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8045. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8046. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8047. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8048. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8049. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8050. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8051. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8052. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8053. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8054. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8055. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8056. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8057. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8058. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8059. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8060. html += "_$tag";
  8061. }
  8062. $("#dataTable").html(html);
  8063. }else {
  8064. $("#dataTable").html("");
  8065. }
  8066. },
  8067. "error" : function(msg){
  8068. },
  8069. "complete": function(){
  8070. layer.close(tip);
  8071. }
  8072. });
  8073. });
  8074. Date.prototype.Format = function (fmt) {
  8075. var o = {
  8076. "M+": this.getMonth() + 1, //月份
  8077. "d+": this.getDate(), //日
  8078. "h+": this.getHours(), //小时
  8079. "m+": this.getMinutes(), //分
  8080. "s+": this.getSeconds(), //秒
  8081. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8082. "S": this.getMilliseconds() //毫秒
  8083. };
  8084. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8085. for (var k in o)
  8086. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8087. return fmt;
  8088. }
  8089. $("#jrjc").change(function() {
  8090. if ($("#jrjc").prop('checked') == true){
  8091. $("#departmentId").removeAttr("disabled");
  8092. }else {
  8093. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8094. }
  8095. });
  8096. ----------------------------------- SOURCE END -------------------------------------
  8097. !STACK 0
  8098. java.lang.NullPointerException
  8099. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:30.937
  8100. !MESSAGE Exception occurred during problem detection:
  8101. ----------------------------------- SOURCE BEGIN -------------------------------------
  8102. (function(){WdatePicker();})();
  8103. (function(){WdatePicker();})();
  8104. (function(){Data.get();})();
  8105. (function(){Data.set();})();
  8106. (function(){search();})();
  8107. $(function(){
  8108. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8109. getfp();
  8110. });
  8111. var Data = {
  8112. "get" : function(){
  8113. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8114. var tip = layer.load(2);
  8115. var result="";
  8116. var url = "getgyxml.do";
  8117. $.ajax({
  8118. "url" : url,
  8119. "data" : {
  8120. "start_date" : $("#dateBegin").val(),
  8121. "end_date" : $("#dateEnd").val()
  8122. },
  8123. "type" : "POST",
  8124. "dataType" : "json",
  8125. "success" : function(data) {
  8126. if(data != null && data != ""){
  8127. if ( data.status =="success"){
  8128. getfp();
  8129. alert("获取成功!");
  8130. }else {
  8131. alert(data.status);
  8132. }
  8133. }else {
  8134. alert("获取失败!");
  8135. }
  8136. },
  8137. "complete": function(){
  8138. layer.close(tip);
  8139. }
  8140. });
  8141. }else {
  8142. alert("请选择日期!");
  8143. }
  8144. },
  8145. "set" : function(){
  8146. if ( $("#fpid option:selected").text() !=""){
  8147. var tip = layer.load(2);
  8148. var gitem = $("#form1").serialize();
  8149. var jrjc;
  8150. if ($("#jrjc").prop('checked') == true){
  8151. jrjc = $("#departmentId").val();
  8152. }else {
  8153. jrjc ='N'
  8154. }
  8155. var url = "saverk.do";
  8156. $.ajax({
  8157. "url" : url,
  8158. "data" : {
  8159. "gitem" : gitem,
  8160. "jrjc" : jrjc
  8161. },
  8162. "type" : "POST",
  8163. "dataType" : "json",
  8164. "async" : true,
  8165. "success" : function(data) {
  8166. if(data.status ="success"){
  8167. alert("入库成功!");
  8168. window.location.reload();
  8169. }else {
  8170. alert(msg);
  8171. }
  8172. },
  8173. "error": function(){
  8174. alert("确认失败!");
  8175. },
  8176. "complete": function(){
  8177. layer.close(tip);
  8178. }
  8179. });
  8180. }else {
  8181. alert("请选择发票!");
  8182. }
  8183. }
  8184. }
  8185. function getfp(){
  8186. var tip = layer.load(2);
  8187. var url = "getgyfp.do";
  8188. $.ajax({
  8189. "url" : url,
  8190. "type" : "POST",
  8191. "dataType" : "json",
  8192. "async" : true,
  8193. "success" : function(data) {
  8194. if(data != null && data != ""){
  8195. $("#fpid").empty();
  8196. $("#fpid").append("_$tag_____________$tag____");
  8197. for(var i = 0; i < data.length; i++){
  8198. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8199. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8200. }
  8201. }
  8202. },
  8203. "error" : function(msg){
  8204. },
  8205. "complete": function(){
  8206. layer.close(tip);
  8207. }
  8208. });
  8209. }
  8210. $("#fpid").change(function(){
  8211. var tip = layer.load(2);
  8212. var url = "getgyrkxx.do";
  8213. $.ajax({
  8214. "url" : url,
  8215. "data" : {
  8216. "fpId" : $("#fpid").val()
  8217. },
  8218. "type" : "POST",
  8219. "dataType" : "json",
  8220. "async" : true,
  8221. "success" : function(data) {
  8222. $("#dataTable").html("");
  8223. if(data != null && data != ""){
  8224. var html = "";
  8225. for(var i = 0; i < data.length; i++){
  8226. var ID = data[i].id == null ? "" : data[i].id;
  8227. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8228. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8229. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8230. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8231. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8232. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8233. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8234. var NAME = data[i].name == null ? "" : data[i].name;
  8235. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8236. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8237. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8238. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8239. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8240. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8241. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8242. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8243. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8244. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8245. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8246. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8247. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8248. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8249. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8250. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8251. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8252. var invoice_type_cn =null;
  8253. if (invoice_type =="00" ){
  8254. invoice_type_cn="销售发票";
  8255. }else if (invoice_type == "01") {
  8256. invoice_type_cn="更正(对冲)发票";
  8257. }else if (invoice_type == "02") {
  8258. invoice_type_cn="其它类型发票";
  8259. }
  8260. html += "_$ta";
  8261. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8262. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8263. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8264. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8265. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8266. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8267. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8268. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8269. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8270. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8271. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8272. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8273. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8274. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8275. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8276. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8277. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8278. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8279. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8280. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8281. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8282. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8283. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8284. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8285. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8286. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8287. html += "_$tag";
  8288. }
  8289. $("#dataTable").html(html);
  8290. }else {
  8291. $("#dataTable").html("");
  8292. }
  8293. },
  8294. "error" : function(msg){
  8295. },
  8296. "complete": function(){
  8297. layer.close(tip);
  8298. }
  8299. });
  8300. });
  8301. Date.prototype.Format = function (fmt) {
  8302. var o = {
  8303. "M+": this.getMonth() + 1, //月份
  8304. "d+": this.getDate(), //日
  8305. "h+": this.getHours(), //小时
  8306. "m+": this.getMinutes(), //分
  8307. "s+": this.getSeconds(), //秒
  8308. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8309. "S": this.getMilliseconds() //毫秒
  8310. };
  8311. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8312. for (var k in o)
  8313. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8314. return fmt;
  8315. }
  8316. $("#jrjc").change(function() {
  8317. if ($("#jrjc").prop('checked') == true){
  8318. $("#departmentId").removeAttr("disabled");
  8319. }else {
  8320. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8321. }
  8322. });
  8323. ----------------------------------- SOURCE END -------------------------------------
  8324. !STACK 0
  8325. java.lang.NullPointerException
  8326. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:22:30.938
  8327. !MESSAGE java.lang.NullPointerException
  8328. !STACK 1
  8329. JavaScript Model Exception: java.lang.NullPointerException
  8330. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8331. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8332. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8333. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8334. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8335. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8336. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8337. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8338. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8339. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8340. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8341. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8342. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8343. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8344. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8345. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8346. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8347. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8348. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8349. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8350. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8351. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8352. Caused by: java.lang.NullPointerException
  8353. Caused by: java.lang.NullPointerException
  8354. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:30.938
  8355. !MESSAGE java.lang.NullPointerException
  8356. !STACK 0
  8357. java.lang.NullPointerException
  8358. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:32.308
  8359. !MESSAGE Exception occurred during problem detection:
  8360. ----------------------------------- SOURCE BEGIN -------------------------------------
  8361. (function(){WdatePicker();})();
  8362. (function(){WdatePicker();})();
  8363. (function(){Data.get();})();
  8364. (function(){Data.set();})();
  8365. (function(){search();})();
  8366. $(function(){
  8367. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8368. getfp();
  8369. });
  8370. var Data = {
  8371. "get" : function(){
  8372. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8373. var tip = layer.load(2);
  8374. var result="";
  8375. var url = "getgyxml.do";
  8376. $.ajax({
  8377. "url" : url,
  8378. "data" : {
  8379. "start_date" : $("#dateBegin").val(),
  8380. "end_date" : $("#dateEnd").val()
  8381. },
  8382. "type" : "POST",
  8383. "dataType" : "json",
  8384. "success" : function(data) {
  8385. if(data != null && data != ""){
  8386. if ( data.status =="success"){
  8387. getfp();
  8388. alert("获取成功!");
  8389. }else {
  8390. alert(data.status);
  8391. }
  8392. }else {
  8393. alert("获取失败!");
  8394. }
  8395. },
  8396. "complete": function(){
  8397. layer.close(tip);
  8398. }
  8399. });
  8400. }else {
  8401. alert("请选择日期!");
  8402. }
  8403. },
  8404. "set" : function(){
  8405. if ( $("#fpid option:selected").text() !=""){
  8406. var tip = layer.load(2);
  8407. var gitem = $("#form1").serialize();
  8408. var jrjc;
  8409. if ($("#jrjc").prop('checked') == true){
  8410. jrjc = $("#departmentId").val();
  8411. }else {
  8412. jrjc ='N'
  8413. }
  8414. var url = "saverk.do";
  8415. $.ajax({
  8416. "url" : url,
  8417. "data" : {
  8418. "gitem" : gitem,
  8419. "jrjc" : jrjc
  8420. },
  8421. "type" : "POST",
  8422. "dataType" : "json",
  8423. "async" : true,
  8424. "success" : function(data) {
  8425. if(data.status ="success"){
  8426. alert("入库成功!");
  8427. window.location.reload();
  8428. }else {
  8429. alert(msg);
  8430. }
  8431. },
  8432. "error": function(){
  8433. alert("确认失败!");
  8434. },
  8435. "complete": function(){
  8436. layer.close(tip);
  8437. }
  8438. });
  8439. }else {
  8440. alert("请选择发票!");
  8441. }
  8442. }
  8443. }
  8444. function getfp(){
  8445. var tip = layer.load(2);
  8446. var url = "getgyfp.do";
  8447. $.ajax({
  8448. "url" : url,
  8449. "type" : "POST",
  8450. "dataType" : "json",
  8451. "async" : true,
  8452. "success" : function(data) {
  8453. if(data != null && data != ""){
  8454. $("#fpid").empty();
  8455. $("#fpid").append("_$tag_____________$tag____");
  8456. for(var i = 0; i < data.length; i++){
  8457. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8458. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8459. }
  8460. }
  8461. },
  8462. "error" : function(msg){
  8463. },
  8464. "complete": function(){
  8465. layer.close(tip);
  8466. }
  8467. });
  8468. }
  8469. $("#fpid").change(function(){
  8470. var tip = layer.load(2);
  8471. var url = "getgyrkxx.do";
  8472. $.ajax({
  8473. "url" : url,
  8474. "data" : {
  8475. "fpId" : $("#fpid").val()
  8476. },
  8477. "type" : "POST",
  8478. "dataType" : "json",
  8479. "async" : true,
  8480. "success" : function(data) {
  8481. $("#dataTable").html("");
  8482. if(data != null && data != ""){
  8483. var html = "";
  8484. for(var i = 0; i < data.length; i++){
  8485. var ID = data[i].id == null ? "" : data[i].id;
  8486. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8487. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8488. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8489. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8490. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8491. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8492. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8493. var NAME = data[i].name == null ? "" : data[i].name;
  8494. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8495. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8496. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8497. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8498. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8499. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8500. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8501. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8502. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8503. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8504. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8505. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8506. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8507. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8508. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8509. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8510. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8511. var invoice_type_cn =null;
  8512. if (invoice_type =="00" ){
  8513. invoice_type_cn="销售发票";
  8514. }else if (invoice_type == "01") {
  8515. invoice_type_cn="更正(对冲)发票";
  8516. }else if (invoice_type == "02") {
  8517. invoice_type_cn="其它类型发票";
  8518. }
  8519. html += "_$ta";
  8520. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8521. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8522. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8523. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8524. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8525. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8526. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8527. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8528. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8529. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8530. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8531. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8532. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8533. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8534. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8535. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8536. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8537. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8538. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8539. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8540. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8541. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8542. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8543. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8544. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8545. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8546. html += "_$tag";
  8547. }
  8548. $("#dataTable").html(html);
  8549. }else {
  8550. $("#dataTable").html("");
  8551. }
  8552. },
  8553. "error" : function(msg){
  8554. },
  8555. "complete": function(){
  8556. layer.close(tip);
  8557. }
  8558. });
  8559. });
  8560. Date.prototype.Format = function (fmt) {
  8561. var o = {
  8562. "M+": this.getMonth() + 1, //月份
  8563. "d+": this.getDate(), //日
  8564. "h+": this.getHours(), //小时
  8565. "m+": this.getMinutes(), //分
  8566. "s+": this.getSeconds(), //秒
  8567. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8568. "S": this.getMilliseconds() //毫秒
  8569. };
  8570. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8571. for (var k in o)
  8572. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8573. return fmt;
  8574. }
  8575. $("#jrjc").change(function() {
  8576. if ($("#jrjc").prop('checked') == true){
  8577. $("#departmentId").removeAttr("disabled");
  8578. }else {
  8579. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8580. }
  8581. });
  8582. ----------------------------------- SOURCE END -------------------------------------
  8583. !STACK 0
  8584. java.lang.NullPointerException
  8585. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:22:32.309
  8586. !MESSAGE java.lang.NullPointerException
  8587. !STACK 1
  8588. JavaScript Model Exception: java.lang.NullPointerException
  8589. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8590. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8591. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8592. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8593. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8594. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8595. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8596. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8597. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8598. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8599. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8600. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8601. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8602. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8603. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8604. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8605. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8606. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8607. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8608. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8609. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8610. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8611. Caused by: java.lang.NullPointerException
  8612. Caused by: java.lang.NullPointerException
  8613. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:32.309
  8614. !MESSAGE java.lang.NullPointerException
  8615. !STACK 0
  8616. java.lang.NullPointerException
  8617. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:36.308
  8618. !MESSAGE Exception occurred during problem detection:
  8619. ----------------------------------- SOURCE BEGIN -------------------------------------
  8620. (function(){WdatePicker();})();
  8621. (function(){WdatePicker();})();
  8622. (function(){Data.get();})();
  8623. (function(){Data.set();})();
  8624. (function(){search();})();
  8625. $(function(){
  8626. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8627. getfp();
  8628. });
  8629. var Data = {
  8630. "get" : function(){
  8631. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8632. var tip = layer.load(2);
  8633. var result="";
  8634. var url = "getgyxml.do";
  8635. $.ajax({
  8636. "url" : url,
  8637. "data" : {
  8638. "start_date" : $("#dateBegin").val(),
  8639. "end_date" : $("#dateEnd").val()
  8640. },
  8641. "type" : "POST",
  8642. "dataType" : "json",
  8643. "success" : function(data) {
  8644. if(data != null && data != ""){
  8645. if ( data.status =="success"){
  8646. getfp();
  8647. alert("获取成功!");
  8648. }else {
  8649. alert(data.status);
  8650. }
  8651. }else {
  8652. alert("获取失败!");
  8653. }
  8654. },
  8655. "complete": function(){
  8656. layer.close(tip);
  8657. }
  8658. });
  8659. }else {
  8660. alert("请选择日期!");
  8661. }
  8662. },
  8663. "set" : function(){
  8664. if ( $("#fpid option:selected").text() !=""){
  8665. var tip = layer.load(2);
  8666. var gitem = $("#form1").serialize();
  8667. var jrjc;
  8668. if ($("#jrjc").prop('checked') == true){
  8669. jrjc = $("#departmentId").val();
  8670. }else {
  8671. jrjc ='N'
  8672. }
  8673. var url = "saverk.do";
  8674. $.ajax({
  8675. "url" : url,
  8676. "data" : {
  8677. "gitem" : gitem,
  8678. "jrjc" : jrjc
  8679. },
  8680. "type" : "POST",
  8681. "dataType" : "json",
  8682. "async" : true,
  8683. "success" : function(data) {
  8684. if(data.status ="success"){
  8685. alert("入库成功!");
  8686. window.location.reload();
  8687. }else {
  8688. alert(msg);
  8689. }
  8690. },
  8691. "error": function(){
  8692. alert("确认失败!");
  8693. },
  8694. "complete": function(){
  8695. layer.close(tip);
  8696. }
  8697. });
  8698. }else {
  8699. alert("请选择发票!");
  8700. }
  8701. }
  8702. }
  8703. function getfp(){
  8704. var tip = layer.load(2);
  8705. var url = "getgyfp.do";
  8706. $.ajax({
  8707. "url" : url,
  8708. "type" : "POST",
  8709. "dataType" : "json",
  8710. "async" : true,
  8711. "success" : function(data) {
  8712. if(data != null && data != ""){
  8713. $("#fpid").empty();
  8714. $("#fpid").append("_$tag_____________$tag____");
  8715. for(var i = 0; i < data.length; i++){
  8716. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8717. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8718. }
  8719. }
  8720. },
  8721. "error" : function(msg){
  8722. },
  8723. "complete": function(){
  8724. layer.close(tip);
  8725. }
  8726. });
  8727. }
  8728. $("#fpid").change(function(){
  8729. var tip = layer.load(2);
  8730. var url = "getgyrkxx.do";
  8731. $.ajax({
  8732. "url" : url,
  8733. "data" : {
  8734. "fpId" : $("#fpid").val()
  8735. },
  8736. "type" : "POST",
  8737. "dataType" : "json",
  8738. "async" : true,
  8739. "success" : function(data) {
  8740. $("#dataTable").html("");
  8741. if(data != null && data != ""){
  8742. var html = "";
  8743. for(var i = 0; i < data.length; i++){
  8744. var ID = data[i].id == null ? "" : data[i].id;
  8745. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8746. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8747. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8748. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8749. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8750. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8751. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8752. var NAME = data[i].name == null ? "" : data[i].name;
  8753. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8754. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8755. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8756. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8757. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8758. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8759. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8760. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8761. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8762. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8763. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8764. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8765. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8766. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8767. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8768. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8769. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8770. var invoice_type_cn =null;
  8771. if (invoice_type =="00" ){
  8772. invoice_type_cn="销售发票";
  8773. }else if (invoice_type == "01") {
  8774. invoice_type_cn="更正(对冲)发票";
  8775. }else if (invoice_type == "02") {
  8776. invoice_type_cn="其它类型发票";
  8777. }
  8778. html += "_$ta";
  8779. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8780. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8781. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8782. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8783. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8784. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8785. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8786. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8787. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8788. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8789. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8790. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8791. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8792. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8793. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8794. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8795. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8796. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8797. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8798. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8799. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8800. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8801. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8802. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8803. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8804. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8805. html += "_$tag";
  8806. }
  8807. $("#dataTable").html(html);
  8808. }else {
  8809. $("#dataTable").html("");
  8810. }
  8811. },
  8812. "error" : function(msg){
  8813. },
  8814. "complete": function(){
  8815. layer.close(tip);
  8816. }
  8817. });
  8818. });
  8819. Date.prototype.Format = function (fmt) {
  8820. var o = {
  8821. "M+": this.getMonth() + 1, //月份
  8822. "d+": this.getDate(), //日
  8823. "h+": this.getHours(), //小时
  8824. "m+": this.getMinutes(), //分
  8825. "s+": this.getSeconds(), //秒
  8826. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8827. "S": this.getMilliseconds() //毫秒
  8828. };
  8829. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8830. for (var k in o)
  8831. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8832. return fmt;
  8833. }
  8834. $("#jrjc").change(function() {
  8835. if ($("#jrjc").prop('checked') == true){
  8836. $("#departmentId").removeAttr("disabled");
  8837. }else {
  8838. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8839. }
  8840. });
  8841. ----------------------------------- SOURCE END -------------------------------------
  8842. !STACK 0
  8843. java.lang.NullPointerException
  8844. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:36.308
  8845. !MESSAGE Error while processing working copy
  8846. !STACK 1
  8847. JavaScript Model Exception: java.lang.NullPointerException
  8848. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8849. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8850. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8851. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8852. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8853. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8854. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8855. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8856. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8857. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8858. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8859. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8860. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8861. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8862. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8863. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8864. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8865. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8866. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8867. Caused by: java.lang.NullPointerException
  8868. Caused by: java.lang.NullPointerException
  8869. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:36.308
  8870. !MESSAGE java.lang.NullPointerException
  8871. !STACK 0
  8872. java.lang.NullPointerException
  8873. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:37.475
  8874. !MESSAGE Exception occurred during problem detection:
  8875. ----------------------------------- SOURCE BEGIN -------------------------------------
  8876. (function(){WdatePicker();})();
  8877. (function(){WdatePicker();})();
  8878. (function(){Data.get();})();
  8879. (function(){Data.set();})();
  8880. (function(){search();})();
  8881. $(function(){
  8882. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8883. getfp();
  8884. });
  8885. var Data = {
  8886. "get" : function(){
  8887. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8888. var tip = layer.load(2);
  8889. var result="";
  8890. var url = "getgyxml.do";
  8891. $.ajax({
  8892. "url" : url,
  8893. "data" : {
  8894. "start_date" : $("#dateBegin").val(),
  8895. "end_date" : $("#dateEnd").val()
  8896. },
  8897. "type" : "POST",
  8898. "dataType" : "json",
  8899. "success" : function(data) {
  8900. if(data != null && data != ""){
  8901. if ( data.status =="success"){
  8902. getfp();
  8903. alert("获取成功!");
  8904. }else {
  8905. alert(data.status);
  8906. }
  8907. }else {
  8908. alert("获取失败!");
  8909. }
  8910. },
  8911. "complete": function(){
  8912. layer.close(tip);
  8913. }
  8914. });
  8915. }else {
  8916. alert("请选择日期!");
  8917. }
  8918. },
  8919. "set" : function(){
  8920. if ( $("#fpid option:selected").text() !=""){
  8921. var tip = layer.load(2);
  8922. var gitem = $("#form1").serialize();
  8923. var jrjc;
  8924. if ($("#jrjc").prop('checked') == true){
  8925. jrjc = $("#departmentId").val();
  8926. }else {
  8927. jrjc ='N'
  8928. }
  8929. var url = "saverk.do";
  8930. $.ajax({
  8931. "url" : url,
  8932. "data" : {
  8933. "gitem" : gitem,
  8934. "jrjc" : jrjc
  8935. },
  8936. "type" : "POST",
  8937. "dataType" : "json",
  8938. "async" : true,
  8939. "success" : function(data) {
  8940. if(data.status ="success"){
  8941. alert("入库成功!");
  8942. window.location.reload();
  8943. }else {
  8944. alert(msg);
  8945. }
  8946. },
  8947. "error": function(){
  8948. alert("确认失败!");
  8949. },
  8950. "complete": function(){
  8951. layer.close(tip);
  8952. }
  8953. });
  8954. }else {
  8955. alert("请选择发票!");
  8956. }
  8957. }
  8958. }
  8959. function getfp(){
  8960. var tip = layer.load(2);
  8961. var url = "getgyfp.do";
  8962. $.ajax({
  8963. "url" : url,
  8964. "type" : "POST",
  8965. "dataType" : "json",
  8966. "async" : true,
  8967. "success" : function(data) {
  8968. if(data != null && data != ""){
  8969. $("#fpid").empty();
  8970. $("#fpid").append("_$tag_____________$tag____");
  8971. for(var i = 0; i < data.length; i++){
  8972. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8973. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8974. }
  8975. }
  8976. },
  8977. "error" : function(msg){
  8978. },
  8979. "complete": function(){
  8980. layer.close(tip);
  8981. }
  8982. });
  8983. }
  8984. $("#fpid").change(function(){
  8985. var tip = layer.load(2);
  8986. var url = "getgyrkxx.do";
  8987. $.ajax({
  8988. "url" : url,
  8989. "data" : {
  8990. "fpId" : $("#fpid").val()
  8991. },
  8992. "type" : "POST",
  8993. "dataType" : "json",
  8994. "async" : true,
  8995. "success" : function(data) {
  8996. $("#dataTable").html("");
  8997. if(data != null && data != ""){
  8998. var html = "";
  8999. for(var i = 0; i < data.length; i++){
  9000. var ID = data[i].id == null ? "" : data[i].id;
  9001. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9002. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9003. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9004. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9005. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9006. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9007. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9008. var NAME = data[i].name == null ? "" : data[i].name;
  9009. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9010. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9011. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9012. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9013. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9014. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9015. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9016. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9017. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9018. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9019. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9020. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9021. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9022. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9023. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9024. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9025. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9026. var invoice_type_cn =null;
  9027. if (invoice_type =="00" ){
  9028. invoice_type_cn="销售发票";
  9029. }else if (invoice_type == "01") {
  9030. invoice_type_cn="更正(对冲)发票";
  9031. }else if (invoice_type == "02") {
  9032. invoice_type_cn="其它类型发票";
  9033. }
  9034. html += "_$ta";
  9035. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9036. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9037. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9038. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9039. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9040. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9041. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9042. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9043. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9044. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9045. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9046. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9047. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9048. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9049. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9050. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9051. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9052. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9053. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9054. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9055. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9056. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9057. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9058. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9059. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9060. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9061. html += "_$tag";
  9062. }
  9063. $("#dataTable").html(html);
  9064. }else {
  9065. $("#dataTable").html("");
  9066. }
  9067. },
  9068. "error" : function(msg){
  9069. },
  9070. "complete": function(){
  9071. layer.close(tip);
  9072. }
  9073. });
  9074. });
  9075. Date.prototype.Format = function (fmt) {
  9076. var o = {
  9077. "M+": this.getMonth() + 1, //月份
  9078. "d+": this.getDate(), //日
  9079. "h+": this.getHours(), //小时
  9080. "m+": this.getMinutes(), //分
  9081. "s+": this.getSeconds(), //秒
  9082. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9083. "S": this.getMilliseconds() //毫秒
  9084. };
  9085. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9086. for (var k in o)
  9087. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9088. return fmt;
  9089. }
  9090. $("#jrjc").change(function() {
  9091. if ($("#jrjc").prop('checked') == true){
  9092. $("#departmentId").removeAttr("disabled");
  9093. }else {
  9094. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9095. }
  9096. });
  9097. ----------------------------------- SOURCE END -------------------------------------
  9098. !STACK 0
  9099. java.lang.NullPointerException
  9100. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:38.257
  9101. !MESSAGE Exception occurred during problem detection:
  9102. ----------------------------------- SOURCE BEGIN -------------------------------------
  9103. (function(){WdatePicker();})();
  9104. (function(){WdatePicker();})();
  9105. (function(){Data.get();})();
  9106. (function(){Data.set();})();
  9107. (function(){search();})();
  9108. $(function(){
  9109. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9110. getfp();
  9111. });
  9112. var Data = {
  9113. "get" : function(){
  9114. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9115. var tip = layer.load(2);
  9116. var result="";
  9117. var url = "getgyxml.do";
  9118. $.ajax({
  9119. "url" : url,
  9120. "data" : {
  9121. "start_date" : $("#dateBegin").val(),
  9122. "end_date" : $("#dateEnd").val()
  9123. },
  9124. "type" : "POST",
  9125. "dataType" : "json",
  9126. "success" : function(data) {
  9127. if(data != null && data != ""){
  9128. if ( data.status =="success"){
  9129. getfp();
  9130. alert("获取成功!");
  9131. }else {
  9132. alert(data.status);
  9133. }
  9134. }else {
  9135. alert("获取失败!");
  9136. }
  9137. },
  9138. "complete": function(){
  9139. layer.close(tip);
  9140. }
  9141. });
  9142. }else {
  9143. alert("请选择日期!");
  9144. }
  9145. },
  9146. "set" : function(){
  9147. if ( $("#fpid option:selected").text() !=""){
  9148. var tip = layer.load(2);
  9149. var gitem = $("#form1").serialize();
  9150. var jrjc;
  9151. if ($("#jrjc").prop('checked') == true){
  9152. jrjc = $("#departmentId").val();
  9153. }else {
  9154. jrjc ='N'
  9155. }
  9156. var url = "saverk.do";
  9157. $.ajax({
  9158. "url" : url,
  9159. "data" : {
  9160. "gitem" : gitem,
  9161. "jrjc" : jrjc
  9162. },
  9163. "type" : "POST",
  9164. "dataType" : "json",
  9165. "async" : true,
  9166. "success" : function(data) {
  9167. if(data.status ="success"){
  9168. alert("入库成功!");
  9169. window.location.reload();
  9170. }else {
  9171. alert(msg);
  9172. }
  9173. },
  9174. "error": function(){
  9175. alert("确认失败!");
  9176. },
  9177. "complete": function(){
  9178. layer.close(tip);
  9179. }
  9180. });
  9181. }else {
  9182. alert("请选择发票!");
  9183. }
  9184. }
  9185. }
  9186. function getfp(){
  9187. var tip = layer.load(2);
  9188. var url = "getgyfp.do";
  9189. $.ajax({
  9190. "url" : url,
  9191. "type" : "POST",
  9192. "dataType" : "json",
  9193. "async" : true,
  9194. "success" : function(data) {
  9195. if(data != null && data != ""){
  9196. $("#fpid").empty();
  9197. $("#fpid").append("_$tag_____________$tag____");
  9198. for(var i = 0; i < data.length; i++){
  9199. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9200. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9201. }
  9202. }
  9203. },
  9204. "error" : function(msg){
  9205. },
  9206. "complete": function(){
  9207. layer.close(tip);
  9208. }
  9209. });
  9210. }
  9211. $("#fpid").change(function(){
  9212. var tip = layer.load(2);
  9213. var url = "getgyrkxx.do";
  9214. $.ajax({
  9215. "url" : url,
  9216. "data" : {
  9217. "fpId" : $("#fpid").val()
  9218. },
  9219. "type" : "POST",
  9220. "dataType" : "json",
  9221. "async" : true,
  9222. "success" : function(data) {
  9223. $("#dataTable").html("");
  9224. if(data != null && data != ""){
  9225. var html = "";
  9226. for(var i = 0; i < data.length; i++){
  9227. var ID = data[i].id == null ? "" : data[i].id;
  9228. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9229. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9230. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9231. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9232. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9233. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9234. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9235. var NAME = data[i].name == null ? "" : data[i].name;
  9236. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9237. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9238. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9239. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9240. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9241. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9242. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9243. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9244. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9245. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9246. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9247. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9248. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9249. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9250. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9251. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9252. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9253. var invoice_type_cn =null;
  9254. if (invoice_type =="00" ){
  9255. invoice_type_cn="销售发票";
  9256. }else if (invoice_type == "01") {
  9257. invoice_type_cn="更正(对冲)发票";
  9258. }else if (invoice_type == "02") {
  9259. invoice_type_cn="其它类型发票";
  9260. }
  9261. html += "_$ta";
  9262. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9263. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9264. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9265. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9266. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9267. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9268. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9269. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9270. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9271. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9272. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9273. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9274. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9275. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9276. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9277. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9278. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9279. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9280. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9281. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9282. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9283. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9284. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9285. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9286. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9287. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9288. html += "_$tag";
  9289. }
  9290. $("#dataTable").html(html);
  9291. }else {
  9292. $("#dataTable").html("");
  9293. }
  9294. },
  9295. "error" : function(msg){
  9296. },
  9297. "complete": function(){
  9298. layer.close(tip);
  9299. }
  9300. });
  9301. });
  9302. Date.prototype.Format = function (fmt) {
  9303. var o = {
  9304. "M+": this.getMonth() + 1, //月份
  9305. "d+": this.getDate(), //日
  9306. "h+": this.getHours(), //小时
  9307. "m+": this.getMinutes(), //分
  9308. "s+": this.getSeconds(), //秒
  9309. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9310. "S": this.getMilliseconds() //毫秒
  9311. };
  9312. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9313. for (var k in o)
  9314. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9315. return fmt;
  9316. }
  9317. $("#jrjc").change(function() {
  9318. if ($("#jrjc").prop('checked') == true){
  9319. $("#departmentId").removeAttr("disabled");
  9320. }else {
  9321. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9322. }
  9323. });
  9324. ----------------------------------- SOURCE END -------------------------------------
  9325. !STACK 0
  9326. java.lang.NullPointerException
  9327. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:38.258
  9328. !MESSAGE Error while processing working copy
  9329. !STACK 1
  9330. JavaScript Model Exception: java.lang.NullPointerException
  9331. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9332. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9333. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9334. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9335. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9336. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9337. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9338. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9339. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9340. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9341. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9342. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9343. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9344. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9345. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9346. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9347. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9348. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9349. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9350. Caused by: java.lang.NullPointerException
  9351. Caused by: java.lang.NullPointerException
  9352. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:38.258
  9353. !MESSAGE java.lang.NullPointerException
  9354. !STACK 0
  9355. java.lang.NullPointerException
  9356. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:39.395
  9357. !MESSAGE Exception occurred during problem detection:
  9358. ----------------------------------- SOURCE BEGIN -------------------------------------
  9359. (function(){WdatePicker();})();
  9360. (function(){WdatePicker();})();
  9361. (function(){Data.get();})();
  9362. (function(){Data.set();})();
  9363. (function(){search();})();
  9364. $(function(){
  9365. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9366. getfp();
  9367. });
  9368. var Data = {
  9369. "get" : function(){
  9370. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9371. var tip = layer.load(2);
  9372. var result="";
  9373. var url = "getgyxml.do";
  9374. $.ajax({
  9375. "url" : url,
  9376. "data" : {
  9377. "start_date" : $("#dateBegin").val(),
  9378. "end_date" : $("#dateEnd").val()
  9379. },
  9380. "type" : "POST",
  9381. "dataType" : "json",
  9382. "success" : function(data) {
  9383. if(data != null && data != ""){
  9384. if ( data.status =="success"){
  9385. getfp();
  9386. alert("获取成功!");
  9387. }else {
  9388. alert(data.status);
  9389. }
  9390. }else {
  9391. alert("获取失败!");
  9392. }
  9393. },
  9394. "complete": function(){
  9395. layer.close(tip);
  9396. }
  9397. });
  9398. }else {
  9399. alert("请选择日期!");
  9400. }
  9401. },
  9402. "set" : function(){
  9403. if ( $("#fpid option:selected").text() !=""){
  9404. var tip = layer.load(2);
  9405. var gitem = $("#form1").serialize();
  9406. var jrjc;
  9407. if ($("#jrjc").prop('checked') == true){
  9408. jrjc = $("#departmentId").val();
  9409. }else {
  9410. jrjc ='N'
  9411. }
  9412. var url = "saverk.do";
  9413. $.ajax({
  9414. "url" : url,
  9415. "data" : {
  9416. "gitem" : gitem,
  9417. "jrjc" : jrjc
  9418. },
  9419. "type" : "POST",
  9420. "dataType" : "json",
  9421. "async" : true,
  9422. "success" : function(data) {
  9423. if(data.status ="success"){
  9424. alert("入库成功!");
  9425. window.location.reload();
  9426. }else {
  9427. alert(msg);
  9428. }
  9429. },
  9430. "error": function(){
  9431. alert("确认失败!");
  9432. },
  9433. "complete": function(){
  9434. layer.close(tip);
  9435. }
  9436. });
  9437. }else {
  9438. alert("请选择发票!");
  9439. }
  9440. }
  9441. }
  9442. function getfp(){
  9443. var tip = layer.load(2);
  9444. var url = "getgyfp.do";
  9445. $.ajax({
  9446. "url" : url,
  9447. "type" : "POST",
  9448. "dataType" : "json",
  9449. "async" : true,
  9450. "success" : function(data) {
  9451. if(data != null && data != ""){
  9452. $("#fpid").empty();
  9453. $("#fpid").append("_$tag_____________$tag____");
  9454. for(var i = 0; i < data.length; i++){
  9455. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9456. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9457. }
  9458. }
  9459. },
  9460. "error" : function(msg){
  9461. },
  9462. "complete": function(){
  9463. layer.close(tip);
  9464. }
  9465. });
  9466. }
  9467. $("#fpid").change(function(){
  9468. var tip = layer.load(2);
  9469. var url = "getgyrkxx.do";
  9470. $.ajax({
  9471. "url" : url,
  9472. "data" : {
  9473. "fpId" : $("#fpid").val()
  9474. },
  9475. "type" : "POST",
  9476. "dataType" : "json",
  9477. "async" : true,
  9478. "success" : function(data) {
  9479. $("#dataTable").html("");
  9480. if(data != null && data != ""){
  9481. var html = "";
  9482. for(var i = 0; i < data.length; i++){
  9483. var ID = data[i].id == null ? "" : data[i].id;
  9484. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9485. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9486. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9487. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9488. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9489. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9490. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9491. var NAME = data[i].name == null ? "" : data[i].name;
  9492. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9493. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9494. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9495. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9496. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9497. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9498. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9499. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9500. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9501. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9502. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9503. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9504. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9505. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9506. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9507. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9508. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9509. var invoice_type_cn =null;
  9510. if (invoice_type =="00" ){
  9511. invoice_type_cn="销售发票";
  9512. }else if (invoice_type == "01") {
  9513. invoice_type_cn="更正(对冲)发票";
  9514. }else if (invoice_type == "02") {
  9515. invoice_type_cn="其它类型发票";
  9516. }
  9517. html += "_$ta";
  9518. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9519. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9520. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9521. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9522. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9523. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9524. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9525. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9526. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9527. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9528. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9529. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9530. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9531. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9532. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9533. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9534. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9535. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  9536. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9537. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9538. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9539. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9540. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9541. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9542. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9543. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9544. html += "_$tag";
  9545. }
  9546. $("#dataTable").html(html);
  9547. }else {
  9548. $("#dataTable").html("");
  9549. }
  9550. },
  9551. "error" : function(msg){
  9552. },
  9553. "complete": function(){
  9554. layer.close(tip);
  9555. }
  9556. });
  9557. });
  9558. Date.prototype.Format = function (fmt) {
  9559. var o = {
  9560. "M+": this.getMonth() + 1, //月份
  9561. "d+": this.getDate(), //日
  9562. "h+": this.getHours(), //小时
  9563. "m+": this.getMinutes(), //分
  9564. "s+": this.getSeconds(), //秒
  9565. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9566. "S": this.getMilliseconds() //毫秒
  9567. };
  9568. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9569. for (var k in o)
  9570. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9571. return fmt;
  9572. }
  9573. $("#jrjc").change(function() {
  9574. if ($("#jrjc").prop('checked') == true){
  9575. $("#departmentId").removeAttr("disabled");
  9576. }else {
  9577. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9578. }
  9579. });
  9580. ----------------------------------- SOURCE END -------------------------------------
  9581. !STACK 0
  9582. java.lang.NullPointerException
  9583. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:40.098
  9584. !MESSAGE Exception occurred during problem detection:
  9585. ----------------------------------- SOURCE BEGIN -------------------------------------
  9586. (function(){WdatePicker();})();
  9587. (function(){WdatePicker();})();
  9588. (function(){Data.get();})();
  9589. (function(){Data.set();})();
  9590. (function(){search();})();
  9591. $(function(){
  9592. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9593. getfp();
  9594. });
  9595. var Data = {
  9596. "get" : function(){
  9597. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9598. var tip = layer.load(2);
  9599. var result="";
  9600. var url = "getgyxml.do";
  9601. $.ajax({
  9602. "url" : url,
  9603. "data" : {
  9604. "start_date" : $("#dateBegin").val(),
  9605. "end_date" : $("#dateEnd").val()
  9606. },
  9607. "type" : "POST",
  9608. "dataType" : "json",
  9609. "success" : function(data) {
  9610. if(data != null && data != ""){
  9611. if ( data.status =="success"){
  9612. getfp();
  9613. alert("获取成功!");
  9614. }else {
  9615. alert(data.status);
  9616. }
  9617. }else {
  9618. alert("获取失败!");
  9619. }
  9620. },
  9621. "complete": function(){
  9622. layer.close(tip);
  9623. }
  9624. });
  9625. }else {
  9626. alert("请选择日期!");
  9627. }
  9628. },
  9629. "set" : function(){
  9630. if ( $("#fpid option:selected").text() !=""){
  9631. var tip = layer.load(2);
  9632. var gitem = $("#form1").serialize();
  9633. var jrjc;
  9634. if ($("#jrjc").prop('checked') == true){
  9635. jrjc = $("#departmentId").val();
  9636. }else {
  9637. jrjc ='N'
  9638. }
  9639. var url = "saverk.do";
  9640. $.ajax({
  9641. "url" : url,
  9642. "data" : {
  9643. "gitem" : gitem,
  9644. "jrjc" : jrjc
  9645. },
  9646. "type" : "POST",
  9647. "dataType" : "json",
  9648. "async" : true,
  9649. "success" : function(data) {
  9650. if(data.status ="success"){
  9651. alert("入库成功!");
  9652. window.location.reload();
  9653. }else {
  9654. alert(msg);
  9655. }
  9656. },
  9657. "error": function(){
  9658. alert("确认失败!");
  9659. },
  9660. "complete": function(){
  9661. layer.close(tip);
  9662. }
  9663. });
  9664. }else {
  9665. alert("请选择发票!");
  9666. }
  9667. }
  9668. }
  9669. function getfp(){
  9670. var tip = layer.load(2);
  9671. var url = "getgyfp.do";
  9672. $.ajax({
  9673. "url" : url,
  9674. "type" : "POST",
  9675. "dataType" : "json",
  9676. "async" : true,
  9677. "success" : function(data) {
  9678. if(data != null && data != ""){
  9679. $("#fpid").empty();
  9680. $("#fpid").append("_$tag_____________$tag____");
  9681. for(var i = 0; i < data.length; i++){
  9682. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9683. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9684. }
  9685. }
  9686. },
  9687. "error" : function(msg){
  9688. },
  9689. "complete": function(){
  9690. layer.close(tip);
  9691. }
  9692. });
  9693. }
  9694. $("#fpid").change(function(){
  9695. var tip = layer.load(2);
  9696. var url = "getgyrkxx.do";
  9697. $.ajax({
  9698. "url" : url,
  9699. "data" : {
  9700. "fpId" : $("#fpid").val()
  9701. },
  9702. "type" : "POST",
  9703. "dataType" : "json",
  9704. "async" : true,
  9705. "success" : function(data) {
  9706. $("#dataTable").html("");
  9707. if(data != null && data != ""){
  9708. var html = "";
  9709. for(var i = 0; i < data.length; i++){
  9710. var ID = data[i].id == null ? "" : data[i].id;
  9711. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9712. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9713. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9714. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9715. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9716. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9717. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9718. var NAME = data[i].name == null ? "" : data[i].name;
  9719. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9720. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9721. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9722. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9723. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9724. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9725. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9726. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9727. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9728. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9729. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9730. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9731. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9732. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9733. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9734. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9735. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9736. var invoice_type_cn =null;
  9737. if (invoice_type =="00" ){
  9738. invoice_type_cn="销售发票";
  9739. }else if (invoice_type == "01") {
  9740. invoice_type_cn="更正(对冲)发票";
  9741. }else if (invoice_type == "02") {
  9742. invoice_type_cn="其它类型发票";
  9743. }
  9744. html += "_$ta";
  9745. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9746. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9747. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9748. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9749. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9750. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9751. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9752. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9753. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9754. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9755. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9756. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9757. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9758. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9759. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9760. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9761. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9762. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9763. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9764. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9765. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9766. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9767. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9768. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9769. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9770. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9771. html += "_$tag";
  9772. }
  9773. $("#dataTable").html(html);
  9774. }else {
  9775. $("#dataTable").html("");
  9776. }
  9777. },
  9778. "error" : function(msg){
  9779. },
  9780. "complete": function(){
  9781. layer.close(tip);
  9782. }
  9783. });
  9784. });
  9785. Date.prototype.Format = function (fmt) {
  9786. var o = {
  9787. "M+": this.getMonth() + 1, //月份
  9788. "d+": this.getDate(), //日
  9789. "h+": this.getHours(), //小时
  9790. "m+": this.getMinutes(), //分
  9791. "s+": this.getSeconds(), //秒
  9792. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9793. "S": this.getMilliseconds() //毫秒
  9794. };
  9795. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9796. for (var k in o)
  9797. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9798. return fmt;
  9799. }
  9800. $("#jrjc").change(function() {
  9801. if ($("#jrjc").prop('checked') == true){
  9802. $("#departmentId").removeAttr("disabled");
  9803. }else {
  9804. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9805. }
  9806. });
  9807. ----------------------------------- SOURCE END -------------------------------------
  9808. !STACK 0
  9809. java.lang.NullPointerException
  9810. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:22:40.099
  9811. !MESSAGE java.lang.NullPointerException
  9812. !STACK 1
  9813. JavaScript Model Exception: java.lang.NullPointerException
  9814. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9815. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  9816. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9817. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9818. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  9819. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  9820. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  9821. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  9822. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  9823. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  9824. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  9825. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  9826. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  9827. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  9828. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  9829. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  9830. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  9831. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  9832. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  9833. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  9834. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  9835. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  9836. Caused by: java.lang.NullPointerException
  9837. Caused by: java.lang.NullPointerException
  9838. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:40.099
  9839. !MESSAGE java.lang.NullPointerException
  9840. !STACK 0
  9841. java.lang.NullPointerException
  9842. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:48.686
  9843. !MESSAGE Exception occurred during problem detection:
  9844. ----------------------------------- SOURCE BEGIN -------------------------------------
  9845. (function(){WdatePicker();})();
  9846. (function(){WdatePicker();})();
  9847. (function(){Data.get();})();
  9848. (function(){Data.set();})();
  9849. (function(){search();})();
  9850. $(function(){
  9851. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9852. getfp();
  9853. });
  9854. var Data = {
  9855. "get" : function(){
  9856. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9857. var tip = layer.load(2);
  9858. var result="";
  9859. var url = "getgyxml.do";
  9860. $.ajax({
  9861. "url" : url,
  9862. "data" : {
  9863. "start_date" : $("#dateBegin").val(),
  9864. "end_date" : $("#dateEnd").val()
  9865. },
  9866. "type" : "POST",
  9867. "dataType" : "json",
  9868. "success" : function(data) {
  9869. if(data != null && data != ""){
  9870. if ( data.status =="success"){
  9871. getfp();
  9872. alert("获取成功!");
  9873. }else {
  9874. alert(data.status);
  9875. }
  9876. }else {
  9877. alert("获取失败!");
  9878. }
  9879. },
  9880. "complete": function(){
  9881. layer.close(tip);
  9882. }
  9883. });
  9884. }else {
  9885. alert("请选择日期!");
  9886. }
  9887. },
  9888. "set" : function(){
  9889. if ( $("#fpid option:selected").text() !=""){
  9890. var tip = layer.load(2);
  9891. var gitem = $("#form1").serialize();
  9892. var jrjc;
  9893. if ($("#jrjc").prop('checked') == true){
  9894. jrjc = $("#departmentId").val();
  9895. }else {
  9896. jrjc ='N'
  9897. }
  9898. var url = "saverk.do";
  9899. $.ajax({
  9900. "url" : url,
  9901. "data" : {
  9902. "gitem" : gitem,
  9903. "jrjc" : jrjc
  9904. },
  9905. "type" : "POST",
  9906. "dataType" : "json",
  9907. "async" : true,
  9908. "success" : function(data) {
  9909. if(data.status ="success"){
  9910. alert("入库成功!");
  9911. window.location.reload();
  9912. }else {
  9913. alert(msg);
  9914. }
  9915. },
  9916. "error": function(){
  9917. alert("确认失败!");
  9918. },
  9919. "complete": function(){
  9920. layer.close(tip);
  9921. }
  9922. });
  9923. }else {
  9924. alert("请选择发票!");
  9925. }
  9926. }
  9927. }
  9928. function getfp(){
  9929. var tip = layer.load(2);
  9930. var url = "getgyfp.do";
  9931. $.ajax({
  9932. "url" : url,
  9933. "type" : "POST",
  9934. "dataType" : "json",
  9935. "async" : true,
  9936. "success" : function(data) {
  9937. if(data != null && data != ""){
  9938. $("#fpid").empty();
  9939. $("#fpid").append("_$tag_____________$tag____");
  9940. for(var i = 0; i < data.length; i++){
  9941. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9942. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9943. }
  9944. }
  9945. },
  9946. "error" : function(msg){
  9947. },
  9948. "complete": function(){
  9949. layer.close(tip);
  9950. }
  9951. });
  9952. }
  9953. $("#fpid").change(function(){
  9954. var tip = layer.load(2);
  9955. var url = "getgyrkxx.do";
  9956. $.ajax({
  9957. "url" : url,
  9958. "data" : {
  9959. "fpId" : $("#fpid").val()
  9960. },
  9961. "type" : "POST",
  9962. "dataType" : "json",
  9963. "async" : true,
  9964. "success" : function(data) {
  9965. $("#dataTable").html("");
  9966. if(data != null && data != ""){
  9967. var html = "";
  9968. for(var i = 0; i < data.length; i++){
  9969. var ID = data[i].id == null ? "" : data[i].id;
  9970. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9971. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9972. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9973. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9974. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9975. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9976. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9977. var NAME = data[i].name == null ? "" : data[i].name;
  9978. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9979. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9980. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9981. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9982. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9983. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9984. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9985. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9986. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9987. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9988. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9989. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9990. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9991. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9992. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9993. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9994. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9995. var invoice_type_cn =null;
  9996. if (invoice_type =="00" ){
  9997. invoice_type_cn="销售发票";
  9998. }else if (invoice_type == "01") {
  9999. invoice_type_cn="更正(对冲)发票";
  10000. }else if (invoice_type == "02") {
  10001. invoice_type_cn="其它类型发票";
  10002. }
  10003. html += "_$ta";
  10004. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10005. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10006. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10007. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10008. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10009. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10010. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10011. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10012. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10013. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10014. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10015. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10016. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10017. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10018. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10019. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10020. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10021. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10022. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10023. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10024. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10025. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10026. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10027. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10028. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10029. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10030. html += "_$tag";
  10031. }
  10032. $("#dataTable").html(html);
  10033. }else {
  10034. $("#dataTable").html("");
  10035. }
  10036. },
  10037. "error" : function(msg){
  10038. },
  10039. "complete": function(){
  10040. layer.close(tip);
  10041. }
  10042. });
  10043. });
  10044. Date.prototype.Format = function (fmt) {
  10045. var o = {
  10046. "M+": this.getMonth() + 1, //月份
  10047. "d+": this.getDate(), //日
  10048. "h+": this.getHours(), //小时
  10049. "m+": this.getMinutes(), //分
  10050. "s+": this.getSeconds(), //秒
  10051. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10052. "S": this.getMilliseconds() //毫秒
  10053. };
  10054. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10055. for (var k in o)
  10056. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10057. return fmt;
  10058. }
  10059. $("#jrjc").change(function() {
  10060. if ($("#jrjc").prop('checked') == true){
  10061. $("#departmentId").removeAttr("disabled");
  10062. }else {
  10063. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10064. }
  10065. });
  10066. ----------------------------------- SOURCE END -------------------------------------
  10067. !STACK 0
  10068. java.lang.NullPointerException
  10069. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:48.687
  10070. !MESSAGE Error while processing working copy
  10071. !STACK 1
  10072. JavaScript Model Exception: java.lang.NullPointerException
  10073. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10074. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10075. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10076. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10077. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10078. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10079. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10080. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10081. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10082. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10083. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10084. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10085. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10086. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10087. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10088. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10089. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10090. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10091. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10092. Caused by: java.lang.NullPointerException
  10093. Caused by: java.lang.NullPointerException
  10094. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:48.687
  10095. !MESSAGE java.lang.NullPointerException
  10096. !STACK 0
  10097. java.lang.NullPointerException
  10098. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:49.602
  10099. !MESSAGE Exception occurred during problem detection:
  10100. ----------------------------------- SOURCE BEGIN -------------------------------------
  10101. (function(){WdatePicker();})();
  10102. (function(){WdatePicker();})();
  10103. (function(){Data.get();})();
  10104. (function(){Data.set();})();
  10105. (function(){search();})();
  10106. $(function(){
  10107. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10108. getfp();
  10109. });
  10110. var Data = {
  10111. "get" : function(){
  10112. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10113. var tip = layer.load(2);
  10114. var result="";
  10115. var url = "getgyxml.do";
  10116. $.ajax({
  10117. "url" : url,
  10118. "data" : {
  10119. "start_date" : $("#dateBegin").val(),
  10120. "end_date" : $("#dateEnd").val()
  10121. },
  10122. "type" : "POST",
  10123. "dataType" : "json",
  10124. "success" : function(data) {
  10125. if(data != null && data != ""){
  10126. if ( data.status =="success"){
  10127. getfp();
  10128. alert("获取成功!");
  10129. }else {
  10130. alert(data.status);
  10131. }
  10132. }else {
  10133. alert("获取失败!");
  10134. }
  10135. },
  10136. "complete": function(){
  10137. layer.close(tip);
  10138. }
  10139. });
  10140. }else {
  10141. alert("请选择日期!");
  10142. }
  10143. },
  10144. "set" : function(){
  10145. if ( $("#fpid option:selected").text() !=""){
  10146. var tip = layer.load(2);
  10147. var gitem = $("#form1").serialize();
  10148. var jrjc;
  10149. if ($("#jrjc").prop('checked') == true){
  10150. jrjc = $("#departmentId").val();
  10151. }else {
  10152. jrjc ='N'
  10153. }
  10154. var url = "saverk.do";
  10155. $.ajax({
  10156. "url" : url,
  10157. "data" : {
  10158. "gitem" : gitem,
  10159. "jrjc" : jrjc
  10160. },
  10161. "type" : "POST",
  10162. "dataType" : "json",
  10163. "async" : true,
  10164. "success" : function(data) {
  10165. if(data.status ="success"){
  10166. alert("入库成功!");
  10167. window.location.reload();
  10168. }else {
  10169. alert(msg);
  10170. }
  10171. },
  10172. "error": function(){
  10173. alert("确认失败!");
  10174. },
  10175. "complete": function(){
  10176. layer.close(tip);
  10177. }
  10178. });
  10179. }else {
  10180. alert("请选择发票!");
  10181. }
  10182. }
  10183. }
  10184. function getfp(){
  10185. var tip = layer.load(2);
  10186. var url = "getgyfp.do";
  10187. $.ajax({
  10188. "url" : url,
  10189. "type" : "POST",
  10190. "dataType" : "json",
  10191. "async" : true,
  10192. "success" : function(data) {
  10193. if(data != null && data != ""){
  10194. $("#fpid").empty();
  10195. $("#fpid").append("_$tag_____________$tag____");
  10196. for(var i = 0; i < data.length; i++){
  10197. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10198. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10199. }
  10200. }
  10201. },
  10202. "error" : function(msg){
  10203. },
  10204. "complete": function(){
  10205. layer.close(tip);
  10206. }
  10207. });
  10208. }
  10209. $("#fpid").change(function(){
  10210. var tip = layer.load(2);
  10211. var url = "getgyrkxx.do";
  10212. $.ajax({
  10213. "url" : url,
  10214. "data" : {
  10215. "fpId" : $("#fpid").val()
  10216. },
  10217. "type" : "POST",
  10218. "dataType" : "json",
  10219. "async" : true,
  10220. "success" : function(data) {
  10221. $("#dataTable").html("");
  10222. if(data != null && data != ""){
  10223. var html = "";
  10224. for(var i = 0; i < data.length; i++){
  10225. var ID = data[i].id == null ? "" : data[i].id;
  10226. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10227. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10228. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10229. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10230. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10231. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10232. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10233. var NAME = data[i].name == null ? "" : data[i].name;
  10234. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10235. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10236. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10237. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10238. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10239. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10240. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10241. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10242. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10243. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10244. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10245. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10246. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10247. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10248. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10249. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10250. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10251. var invoice_type_cn =null;
  10252. if (invoice_type =="00" ){
  10253. invoice_type_cn="销售发票";
  10254. }else if (invoice_type == "01") {
  10255. invoice_type_cn="更正(对冲)发票";
  10256. }else if (invoice_type == "02") {
  10257. invoice_type_cn="其它类型发票";
  10258. }
  10259. html += "_$ta";
  10260. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10261. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10262. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10263. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10264. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10265. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10266. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10268. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10269. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10270. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10271. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10272. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10273. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10274. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10275. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10276. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10277. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10278. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10279. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10280. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10281. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10282. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10283. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10284. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10285. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10286. html += "_$tag";
  10287. }
  10288. $("#dataTable").html(html);
  10289. }else {
  10290. $("#dataTable").html("");
  10291. }
  10292. },
  10293. "error" : function(msg){
  10294. },
  10295. "complete": function(){
  10296. layer.close(tip);
  10297. }
  10298. });
  10299. });
  10300. Date.prototype.Format = function (fmt) {
  10301. var o = {
  10302. "M+": this.getMonth() + 1, //月份
  10303. "d+": this.getDate(), //日
  10304. "h+": this.getHours(), //小时
  10305. "m+": this.getMinutes(), //分
  10306. "s+": this.getSeconds(), //秒
  10307. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10308. "S": this.getMilliseconds() //毫秒
  10309. };
  10310. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10311. for (var k in o)
  10312. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10313. return fmt;
  10314. }
  10315. $("#jrjc").change(function() {
  10316. if ($("#jrjc").prop('checked') == true){
  10317. $("#departmentId").removeAttr("disabled");
  10318. }else {
  10319. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10320. }
  10321. });
  10322. ----------------------------------- SOURCE END -------------------------------------
  10323. !STACK 0
  10324. java.lang.NullPointerException
  10325. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:50.557
  10326. !MESSAGE Exception occurred during problem detection:
  10327. ----------------------------------- SOURCE BEGIN -------------------------------------
  10328. (function(){WdatePicker();})();
  10329. (function(){WdatePicker();})();
  10330. (function(){Data.get();})();
  10331. (function(){Data.set();})();
  10332. (function(){search();})();
  10333. $(function(){
  10334. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10335. getfp();
  10336. });
  10337. var Data = {
  10338. "get" : function(){
  10339. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10340. var tip = layer.load(2);
  10341. var result="";
  10342. var url = "getgyxml.do";
  10343. $.ajax({
  10344. "url" : url,
  10345. "data" : {
  10346. "start_date" : $("#dateBegin").val(),
  10347. "end_date" : $("#dateEnd").val()
  10348. },
  10349. "type" : "POST",
  10350. "dataType" : "json",
  10351. "success" : function(data) {
  10352. if(data != null && data != ""){
  10353. if ( data.status =="success"){
  10354. getfp();
  10355. alert("获取成功!");
  10356. }else {
  10357. alert(data.status);
  10358. }
  10359. }else {
  10360. alert("获取失败!");
  10361. }
  10362. },
  10363. "complete": function(){
  10364. layer.close(tip);
  10365. }
  10366. });
  10367. }else {
  10368. alert("请选择日期!");
  10369. }
  10370. },
  10371. "set" : function(){
  10372. if ( $("#fpid option:selected").text() !=""){
  10373. var tip = layer.load(2);
  10374. var gitem = $("#form1").serialize();
  10375. var jrjc;
  10376. if ($("#jrjc").prop('checked') == true){
  10377. jrjc = $("#departmentId").val();
  10378. }else {
  10379. jrjc ='N'
  10380. }
  10381. var url = "saverk.do";
  10382. $.ajax({
  10383. "url" : url,
  10384. "data" : {
  10385. "gitem" : gitem,
  10386. "jrjc" : jrjc
  10387. },
  10388. "type" : "POST",
  10389. "dataType" : "json",
  10390. "async" : true,
  10391. "success" : function(data) {
  10392. if(data.status ="success"){
  10393. alert("入库成功!");
  10394. window.location.reload();
  10395. }else {
  10396. alert(msg);
  10397. }
  10398. },
  10399. "error": function(){
  10400. alert("确认失败!");
  10401. },
  10402. "complete": function(){
  10403. layer.close(tip);
  10404. }
  10405. });
  10406. }else {
  10407. alert("请选择发票!");
  10408. }
  10409. }
  10410. }
  10411. function getfp(){
  10412. var tip = layer.load(2);
  10413. var url = "getgyfp.do";
  10414. $.ajax({
  10415. "url" : url,
  10416. "type" : "POST",
  10417. "dataType" : "json",
  10418. "async" : true,
  10419. "success" : function(data) {
  10420. if(data != null && data != ""){
  10421. $("#fpid").empty();
  10422. $("#fpid").append("_$tag_____________$tag____");
  10423. for(var i = 0; i < data.length; i++){
  10424. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10425. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10426. }
  10427. }
  10428. },
  10429. "error" : function(msg){
  10430. },
  10431. "complete": function(){
  10432. layer.close(tip);
  10433. }
  10434. });
  10435. }
  10436. $("#fpid").change(function(){
  10437. var tip = layer.load(2);
  10438. var url = "getgyrkxx.do";
  10439. $.ajax({
  10440. "url" : url,
  10441. "data" : {
  10442. "fpId" : $("#fpid").val()
  10443. },
  10444. "type" : "POST",
  10445. "dataType" : "json",
  10446. "async" : true,
  10447. "success" : function(data) {
  10448. $("#dataTable").html("");
  10449. if(data != null && data != ""){
  10450. var html = "";
  10451. for(var i = 0; i < data.length; i++){
  10452. var ID = data[i].id == null ? "" : data[i].id;
  10453. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10454. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10455. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10456. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10457. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10458. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10459. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10460. var NAME = data[i].name == null ? "" : data[i].name;
  10461. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10462. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10463. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10464. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10465. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10466. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10467. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10468. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10469. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10470. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10471. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10472. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10473. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10474. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10475. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10476. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10477. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10478. var invoice_type_cn =null;
  10479. if (invoice_type =="00" ){
  10480. invoice_type_cn="销售发票";
  10481. }else if (invoice_type == "01") {
  10482. invoice_type_cn="更正(对冲)发票";
  10483. }else if (invoice_type == "02") {
  10484. invoice_type_cn="其它类型发票";
  10485. }
  10486. html += "_$ta";
  10487. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10488. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10489. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10490. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10491. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10492. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10493. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10494. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10495. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10496. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10497. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10498. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10499. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10500. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10501. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10502. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10503. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10504. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10505. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10506. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10507. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10508. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10509. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10510. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10511. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10512. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10513. html += "_$tag";
  10514. }
  10515. $("#dataTable").html(html);
  10516. }else {
  10517. $("#dataTable").html("");
  10518. }
  10519. },
  10520. "error" : function(msg){
  10521. },
  10522. "complete": function(){
  10523. layer.close(tip);
  10524. }
  10525. });
  10526. });
  10527. Date.prototype.Format = function (fmt) {
  10528. var o = {
  10529. "M+": this.getMonth() + 1, //月份
  10530. "d+": this.getDate(), //日
  10531. "h+": this.getHours(), //小时
  10532. "m+": this.getMinutes(), //分
  10533. "s+": this.getSeconds(), //秒
  10534. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10535. "S": this.getMilliseconds() //毫秒
  10536. };
  10537. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10538. for (var k in o)
  10539. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10540. return fmt;
  10541. }
  10542. $("#jrjc").change(function() {
  10543. if ($("#jrjc").prop('checked') == true){
  10544. $("#departmentId").removeAttr("disabled");
  10545. }else {
  10546. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10547. }
  10548. });
  10549. ----------------------------------- SOURCE END -------------------------------------
  10550. !STACK 0
  10551. java.lang.NullPointerException
  10552. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:50.557
  10553. !MESSAGE Error while processing working copy
  10554. !STACK 1
  10555. JavaScript Model Exception: java.lang.NullPointerException
  10556. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10557. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10558. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10559. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10560. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10561. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10562. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10563. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10564. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10565. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10566. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10567. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10568. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10569. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10570. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10571. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10572. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10573. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10574. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10575. Caused by: java.lang.NullPointerException
  10576. Caused by: java.lang.NullPointerException
  10577. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:50.557
  10578. !MESSAGE java.lang.NullPointerException
  10579. !STACK 0
  10580. java.lang.NullPointerException
  10581. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:51.662
  10582. !MESSAGE Exception occurred during problem detection:
  10583. ----------------------------------- SOURCE BEGIN -------------------------------------
  10584. (function(){WdatePicker();})();
  10585. (function(){WdatePicker();})();
  10586. (function(){Data.get();})();
  10587. (function(){Data.set();})();
  10588. (function(){search();})();
  10589. $(function(){
  10590. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10591. getfp();
  10592. });
  10593. var Data = {
  10594. "get" : function(){
  10595. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10596. var tip = layer.load(2);
  10597. var result="";
  10598. var url = "getgyxml.do";
  10599. $.ajax({
  10600. "url" : url,
  10601. "data" : {
  10602. "start_date" : $("#dateBegin").val(),
  10603. "end_date" : $("#dateEnd").val()
  10604. },
  10605. "type" : "POST",
  10606. "dataType" : "json",
  10607. "success" : function(data) {
  10608. if(data != null && data != ""){
  10609. if ( data.status =="success"){
  10610. getfp();
  10611. alert("获取成功!");
  10612. }else {
  10613. alert(data.status);
  10614. }
  10615. }else {
  10616. alert("获取失败!");
  10617. }
  10618. },
  10619. "complete": function(){
  10620. layer.close(tip);
  10621. }
  10622. });
  10623. }else {
  10624. alert("请选择日期!");
  10625. }
  10626. },
  10627. "set" : function(){
  10628. if ( $("#fpid option:selected").text() !=""){
  10629. var tip = layer.load(2);
  10630. var gitem = $("#form1").serialize();
  10631. var jrjc;
  10632. if ($("#jrjc").prop('checked') == true){
  10633. jrjc = $("#departmentId").val();
  10634. }else {
  10635. jrjc ='N'
  10636. }
  10637. var url = "saverk.do";
  10638. $.ajax({
  10639. "url" : url,
  10640. "data" : {
  10641. "gitem" : gitem,
  10642. "jrjc" : jrjc
  10643. },
  10644. "type" : "POST",
  10645. "dataType" : "json",
  10646. "async" : true,
  10647. "success" : function(data) {
  10648. if(data.status ="success"){
  10649. alert("入库成功!");
  10650. window.location.reload();
  10651. }else {
  10652. alert(msg);
  10653. }
  10654. },
  10655. "error": function(){
  10656. alert("确认失败!");
  10657. },
  10658. "complete": function(){
  10659. layer.close(tip);
  10660. }
  10661. });
  10662. }else {
  10663. alert("请选择发票!");
  10664. }
  10665. }
  10666. }
  10667. function getfp(){
  10668. var tip = layer.load(2);
  10669. var url = "getgyfp.do";
  10670. $.ajax({
  10671. "url" : url,
  10672. "type" : "POST",
  10673. "dataType" : "json",
  10674. "async" : true,
  10675. "success" : function(data) {
  10676. if(data != null && data != ""){
  10677. $("#fpid").empty();
  10678. $("#fpid").append("_$tag_____________$tag____");
  10679. for(var i = 0; i < data.length; i++){
  10680. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10681. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10682. }
  10683. }
  10684. },
  10685. "error" : function(msg){
  10686. },
  10687. "complete": function(){
  10688. layer.close(tip);
  10689. }
  10690. });
  10691. }
  10692. $("#fpid").change(function(){
  10693. var tip = layer.load(2);
  10694. var url = "getgyrkxx.do";
  10695. $.ajax({
  10696. "url" : url,
  10697. "data" : {
  10698. "fpId" : $("#fpid").val()
  10699. },
  10700. "type" : "POST",
  10701. "dataType" : "json",
  10702. "async" : true,
  10703. "success" : function(data) {
  10704. $("#dataTable").html("");
  10705. if(data != null && data != ""){
  10706. var html = "";
  10707. for(var i = 0; i < data.length; i++){
  10708. var ID = data[i].id == null ? "" : data[i].id;
  10709. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10710. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10711. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10712. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10713. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10714. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10715. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10716. var NAME = data[i].name == null ? "" : data[i].name;
  10717. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10718. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10719. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10720. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10721. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10722. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10723. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10724. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10725. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10726. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10727. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10728. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10729. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10730. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10731. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10732. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10733. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10734. var invoice_type_cn =null;
  10735. if (invoice_type =="00" ){
  10736. invoice_type_cn="销售发票";
  10737. }else if (invoice_type == "01") {
  10738. invoice_type_cn="更正(对冲)发票";
  10739. }else if (invoice_type == "02") {
  10740. invoice_type_cn="其它类型发票";
  10741. }
  10742. html += "_$ta";
  10743. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10744. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10745. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10746. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10747. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10748. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10749. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10750. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10751. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10752. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10753. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10754. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10755. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10756. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10757. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10758. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10759. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10760. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10761. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10762. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10763. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10764. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10765. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10766. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10767. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10768. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10769. html += "_$tag";
  10770. }
  10771. $("#dataTable").html(html);
  10772. }else {
  10773. $("#dataTable").html("");
  10774. }
  10775. },
  10776. "error" : function(msg){
  10777. },
  10778. "complete": function(){
  10779. layer.close(tip);
  10780. }
  10781. });
  10782. });
  10783. Date.prototype.Format = function (fmt) {
  10784. var o = {
  10785. "M+": this.getMonth() + 1, //月份
  10786. "d+": this.getDate(), //日
  10787. "h+": this.getHours(), //小时
  10788. "m+": this.getMinutes(), //分
  10789. "s+": this.getSeconds(), //秒
  10790. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10791. "S": this.getMilliseconds() //毫秒
  10792. };
  10793. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10794. for (var k in o)
  10795. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10796. return fmt;
  10797. }
  10798. $("#jrjc").change(function() {
  10799. if ($("#jrjc").prop('checked') == true){
  10800. $("#departmentId").removeAttr("disabled");
  10801. }else {
  10802. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10803. }
  10804. });
  10805. ----------------------------------- SOURCE END -------------------------------------
  10806. !STACK 0
  10807. java.lang.NullPointerException
  10808. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:57.209
  10809. !MESSAGE Exception occurred during problem detection:
  10810. ----------------------------------- SOURCE BEGIN -------------------------------------
  10811. (function(){WdatePicker();})();
  10812. (function(){WdatePicker();})();
  10813. (function(){Data.get();})();
  10814. (function(){Data.set();})();
  10815. (function(){search();})();
  10816. $(function(){
  10817. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10818. getfp();
  10819. });
  10820. var Data = {
  10821. "get" : function(){
  10822. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10823. var tip = layer.load(2);
  10824. var result="";
  10825. var url = "getgyxml.do";
  10826. $.ajax({
  10827. "url" : url,
  10828. "data" : {
  10829. "start_date" : $("#dateBegin").val(),
  10830. "end_date" : $("#dateEnd").val()
  10831. },
  10832. "type" : "POST",
  10833. "dataType" : "json",
  10834. "success" : function(data) {
  10835. if(data != null && data != ""){
  10836. if ( data.status =="success"){
  10837. getfp();
  10838. alert("获取成功!");
  10839. }else {
  10840. alert(data.status);
  10841. }
  10842. }else {
  10843. alert("获取失败!");
  10844. }
  10845. },
  10846. "complete": function(){
  10847. layer.close(tip);
  10848. }
  10849. });
  10850. }else {
  10851. alert("请选择日期!");
  10852. }
  10853. },
  10854. "set" : function(){
  10855. if ( $("#fpid option:selected").text() !=""){
  10856. var tip = layer.load(2);
  10857. var gitem = $("#form1").serialize();
  10858. var jrjc;
  10859. if ($("#jrjc").prop('checked') == true){
  10860. jrjc = $("#departmentId").val();
  10861. }else {
  10862. jrjc ='N'
  10863. }
  10864. var url = "saverk.do";
  10865. $.ajax({
  10866. "url" : url,
  10867. "data" : {
  10868. "gitem" : gitem,
  10869. "jrjc" : jrjc
  10870. },
  10871. "type" : "POST",
  10872. "dataType" : "json",
  10873. "async" : true,
  10874. "success" : function(data) {
  10875. if(data.status ="success"){
  10876. alert("入库成功!");
  10877. window.location.reload();
  10878. }else {
  10879. alert(msg);
  10880. }
  10881. },
  10882. "error": function(){
  10883. alert("确认失败!");
  10884. },
  10885. "complete": function(){
  10886. layer.close(tip);
  10887. }
  10888. });
  10889. }else {
  10890. alert("请选择发票!");
  10891. }
  10892. }
  10893. }
  10894. function getfp(){
  10895. var tip = layer.load(2);
  10896. var url = "getgyfp.do";
  10897. $.ajax({
  10898. "url" : url,
  10899. "type" : "POST",
  10900. "dataType" : "json",
  10901. "async" : true,
  10902. "success" : function(data) {
  10903. if(data != null && data != ""){
  10904. $("#fpid").empty();
  10905. $("#fpid").append("_$tag_____________$tag____");
  10906. for(var i = 0; i < data.length; i++){
  10907. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10908. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10909. }
  10910. }
  10911. },
  10912. "error" : function(msg){
  10913. },
  10914. "complete": function(){
  10915. layer.close(tip);
  10916. }
  10917. });
  10918. }
  10919. $("#fpid").change(function(){
  10920. var tip = layer.load(2);
  10921. var url = "getgyrkxx.do";
  10922. $.ajax({
  10923. "url" : url,
  10924. "data" : {
  10925. "fpId" : $("#fpid").val()
  10926. },
  10927. "type" : "POST",
  10928. "dataType" : "json",
  10929. "async" : true,
  10930. "success" : function(data) {
  10931. $("#dataTable").html("");
  10932. if(data != null && data != ""){
  10933. var html = "";
  10934. for(var i = 0; i < data.length; i++){
  10935. var ID = data[i].id == null ? "" : data[i].id;
  10936. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10937. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10938. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10939. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10940. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10941. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10942. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10943. var NAME = data[i].name == null ? "" : data[i].name;
  10944. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10945. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10946. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10947. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10948. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10949. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10950. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10951. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10952. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10953. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10954. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10955. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10956. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10957. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10958. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10959. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10960. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10961. var invoice_type_cn =null;
  10962. if (invoice_type =="00" ){
  10963. invoice_type_cn="销售发票";
  10964. }else if (invoice_type == "01") {
  10965. invoice_type_cn="更正(对冲)发票";
  10966. }else if (invoice_type == "02") {
  10967. invoice_type_cn="其它类型发票";
  10968. }
  10969. html += "_$ta";
  10970. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10971. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10972. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10973. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10974. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10975. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10976. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10977. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10978. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10979. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10980. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10981. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10982. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10983. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10984. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10985. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10986. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10987. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10988. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10989. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10990. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10991. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10992. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10993. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10994. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10995. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10996. html += "_$tag";
  10997. }
  10998. $("#dataTable").html(html);
  10999. }else {
  11000. $("#dataTable").html("");
  11001. }
  11002. },
  11003. "error" : function(msg){
  11004. },
  11005. "complete": function(){
  11006. layer.close(tip);
  11007. }
  11008. });
  11009. });
  11010. Date.prototype.Format = function (fmt) {
  11011. var o = {
  11012. "M+": this.getMonth() + 1, //月份
  11013. "d+": this.getDate(), //日
  11014. "h+": this.getHours(), //小时
  11015. "m+": this.getMinutes(), //分
  11016. "s+": this.getSeconds(), //秒
  11017. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11018. "S": this.getMilliseconds() //毫秒
  11019. };
  11020. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11021. for (var k in o)
  11022. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11023. return fmt;
  11024. }
  11025. $("#jrjc").change(function() {
  11026. if ($("#jrjc").prop('checked') == true){
  11027. $("#departmentId").removeAttr("disabled");
  11028. }else {
  11029. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11030. }
  11031. });
  11032. ----------------------------------- SOURCE END -------------------------------------
  11033. !STACK 0
  11034. java.lang.NullPointerException
  11035. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:57.210
  11036. !MESSAGE Error while processing working copy
  11037. !STACK 1
  11038. JavaScript Model Exception: java.lang.NullPointerException
  11039. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11040. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11041. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11042. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11043. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11044. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11045. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11046. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11047. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11048. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11049. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11050. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11051. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11052. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11053. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11054. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11055. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11056. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11057. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11058. Caused by: java.lang.NullPointerException
  11059. Caused by: java.lang.NullPointerException
  11060. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:57.210
  11061. !MESSAGE java.lang.NullPointerException
  11062. !STACK 0
  11063. java.lang.NullPointerException
  11064. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:58.249
  11065. !MESSAGE Exception occurred during problem detection:
  11066. ----------------------------------- SOURCE BEGIN -------------------------------------
  11067. (function(){WdatePicker();})();
  11068. (function(){WdatePicker();})();
  11069. (function(){Data.get();})();
  11070. (function(){Data.set();})();
  11071. (function(){search();})();
  11072. $(function(){
  11073. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11074. getfp();
  11075. });
  11076. var Data = {
  11077. "get" : function(){
  11078. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11079. var tip = layer.load(2);
  11080. var result="";
  11081. var url = "getgyxml.do";
  11082. $.ajax({
  11083. "url" : url,
  11084. "data" : {
  11085. "start_date" : $("#dateBegin").val(),
  11086. "end_date" : $("#dateEnd").val()
  11087. },
  11088. "type" : "POST",
  11089. "dataType" : "json",
  11090. "success" : function(data) {
  11091. if(data != null && data != ""){
  11092. if ( data.status =="success"){
  11093. getfp();
  11094. alert("获取成功!");
  11095. }else {
  11096. alert(data.status);
  11097. }
  11098. }else {
  11099. alert("获取失败!");
  11100. }
  11101. },
  11102. "complete": function(){
  11103. layer.close(tip);
  11104. }
  11105. });
  11106. }else {
  11107. alert("请选择日期!");
  11108. }
  11109. },
  11110. "set" : function(){
  11111. if ( $("#fpid option:selected").text() !=""){
  11112. var tip = layer.load(2);
  11113. var gitem = $("#form1").serialize();
  11114. var jrjc;
  11115. if ($("#jrjc").prop('checked') == true){
  11116. jrjc = $("#departmentId").val();
  11117. }else {
  11118. jrjc ='N'
  11119. }
  11120. var url = "saverk.do";
  11121. $.ajax({
  11122. "url" : url,
  11123. "data" : {
  11124. "gitem" : gitem,
  11125. "jrjc" : jrjc
  11126. },
  11127. "type" : "POST",
  11128. "dataType" : "json",
  11129. "async" : true,
  11130. "success" : function(data) {
  11131. if(data.status ="success"){
  11132. alert("入库成功!");
  11133. window.location.reload();
  11134. }else {
  11135. alert(msg);
  11136. }
  11137. },
  11138. "error": function(){
  11139. alert("确认失败!");
  11140. },
  11141. "complete": function(){
  11142. layer.close(tip);
  11143. }
  11144. });
  11145. }else {
  11146. alert("请选择发票!");
  11147. }
  11148. }
  11149. }
  11150. function getfp(){
  11151. var tip = layer.load(2);
  11152. var url = "getgyfp.do";
  11153. $.ajax({
  11154. "url" : url,
  11155. "type" : "POST",
  11156. "dataType" : "json",
  11157. "async" : true,
  11158. "success" : function(data) {
  11159. if(data != null && data != ""){
  11160. $("#fpid").empty();
  11161. $("#fpid").append("_$tag_____________$tag____");
  11162. for(var i = 0; i < data.length; i++){
  11163. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11164. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11165. }
  11166. }
  11167. },
  11168. "error" : function(msg){
  11169. },
  11170. "complete": function(){
  11171. layer.close(tip);
  11172. }
  11173. });
  11174. }
  11175. $("#fpid").change(function(){
  11176. var tip = layer.load(2);
  11177. var url = "getgyrkxx.do";
  11178. $.ajax({
  11179. "url" : url,
  11180. "data" : {
  11181. "fpId" : $("#fpid").val()
  11182. },
  11183. "type" : "POST",
  11184. "dataType" : "json",
  11185. "async" : true,
  11186. "success" : function(data) {
  11187. $("#dataTable").html("");
  11188. if(data != null && data != ""){
  11189. var html = "";
  11190. for(var i = 0; i < data.length; i++){
  11191. var ID = data[i].id == null ? "" : data[i].id;
  11192. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11193. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11194. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11195. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11196. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11197. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11198. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11199. var NAME = data[i].name == null ? "" : data[i].name;
  11200. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11201. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11202. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11203. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11204. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11205. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11206. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11207. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11208. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11209. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11210. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11211. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11212. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11213. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11214. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11215. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11216. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11217. var invoice_type_cn =null;
  11218. if (invoice_type =="00" ){
  11219. invoice_type_cn="销售发票";
  11220. }else if (invoice_type == "01") {
  11221. invoice_type_cn="更正(对冲)发票";
  11222. }else if (invoice_type == "02") {
  11223. invoice_type_cn="其它类型发票";
  11224. }
  11225. html += "_$ta";
  11226. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11227. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11228. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11229. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11230. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11231. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11232. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11233. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11234. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11235. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11236. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11237. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11238. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11239. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11240. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11241. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11242. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11243. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11244. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11245. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11246. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11247. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11248. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11249. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11250. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11251. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11252. html += "_$tag";
  11253. }
  11254. $("#dataTable").html(html);
  11255. }else {
  11256. $("#dataTable").html("");
  11257. }
  11258. },
  11259. "error" : function(msg){
  11260. },
  11261. "complete": function(){
  11262. layer.close(tip);
  11263. }
  11264. });
  11265. });
  11266. Date.prototype.Format = function (fmt) {
  11267. var o = {
  11268. "M+": this.getMonth() + 1, //月份
  11269. "d+": this.getDate(), //日
  11270. "h+": this.getHours(), //小时
  11271. "m+": this.getMinutes(), //分
  11272. "s+": this.getSeconds(), //秒
  11273. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11274. "S": this.getMilliseconds() //毫秒
  11275. };
  11276. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11277. for (var k in o)
  11278. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11279. return fmt;
  11280. }
  11281. $("#jrjc").change(function() {
  11282. if ($("#jrjc").prop('checked') == true){
  11283. $("#departmentId").removeAttr("disabled");
  11284. }else {
  11285. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11286. }
  11287. });
  11288. ----------------------------------- SOURCE END -------------------------------------
  11289. !STACK 0
  11290. java.lang.NullPointerException
  11291. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:22:59.397
  11292. !MESSAGE Exception occurred during problem detection:
  11293. ----------------------------------- SOURCE BEGIN -------------------------------------
  11294. (function(){WdatePicker();})();
  11295. (function(){WdatePicker();})();
  11296. (function(){Data.get();})();
  11297. (function(){Data.set();})();
  11298. (function(){search();})();
  11299. $(function(){
  11300. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11301. getfp();
  11302. });
  11303. var Data = {
  11304. "get" : function(){
  11305. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11306. var tip = layer.load(2);
  11307. var result="";
  11308. var url = "getgyxml.do";
  11309. $.ajax({
  11310. "url" : url,
  11311. "data" : {
  11312. "start_date" : $("#dateBegin").val(),
  11313. "end_date" : $("#dateEnd").val()
  11314. },
  11315. "type" : "POST",
  11316. "dataType" : "json",
  11317. "success" : function(data) {
  11318. if(data != null && data != ""){
  11319. if ( data.status =="success"){
  11320. getfp();
  11321. alert("获取成功!");
  11322. }else {
  11323. alert(data.status);
  11324. }
  11325. }else {
  11326. alert("获取失败!");
  11327. }
  11328. },
  11329. "complete": function(){
  11330. layer.close(tip);
  11331. }
  11332. });
  11333. }else {
  11334. alert("请选择日期!");
  11335. }
  11336. },
  11337. "set" : function(){
  11338. if ( $("#fpid option:selected").text() !=""){
  11339. var tip = layer.load(2);
  11340. var gitem = $("#form1").serialize();
  11341. var jrjc;
  11342. if ($("#jrjc").prop('checked') == true){
  11343. jrjc = $("#departmentId").val();
  11344. }else {
  11345. jrjc ='N'
  11346. }
  11347. var url = "saverk.do";
  11348. $.ajax({
  11349. "url" : url,
  11350. "data" : {
  11351. "gitem" : gitem,
  11352. "jrjc" : jrjc
  11353. },
  11354. "type" : "POST",
  11355. "dataType" : "json",
  11356. "async" : true,
  11357. "success" : function(data) {
  11358. if(data.status ="success"){
  11359. alert("入库成功!");
  11360. window.location.reload();
  11361. }else {
  11362. alert(msg);
  11363. }
  11364. },
  11365. "error": function(){
  11366. alert("确认失败!");
  11367. },
  11368. "complete": function(){
  11369. layer.close(tip);
  11370. }
  11371. });
  11372. }else {
  11373. alert("请选择发票!");
  11374. }
  11375. }
  11376. }
  11377. function getfp(){
  11378. var tip = layer.load(2);
  11379. var url = "getgyfp.do";
  11380. $.ajax({
  11381. "url" : url,
  11382. "type" : "POST",
  11383. "dataType" : "json",
  11384. "async" : true,
  11385. "success" : function(data) {
  11386. if(data != null && data != ""){
  11387. $("#fpid").empty();
  11388. $("#fpid").append("_$tag_____________$tag____");
  11389. for(var i = 0; i < data.length; i++){
  11390. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11391. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11392. }
  11393. }
  11394. },
  11395. "error" : function(msg){
  11396. },
  11397. "complete": function(){
  11398. layer.close(tip);
  11399. }
  11400. });
  11401. }
  11402. $("#fpid").change(function(){
  11403. var tip = layer.load(2);
  11404. var url = "getgyrkxx.do";
  11405. $.ajax({
  11406. "url" : url,
  11407. "data" : {
  11408. "fpId" : $("#fpid").val()
  11409. },
  11410. "type" : "POST",
  11411. "dataType" : "json",
  11412. "async" : true,
  11413. "success" : function(data) {
  11414. $("#dataTable").html("");
  11415. if(data != null && data != ""){
  11416. var html = "";
  11417. for(var i = 0; i < data.length; i++){
  11418. var ID = data[i].id == null ? "" : data[i].id;
  11419. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11420. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11421. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11422. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11423. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11424. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11425. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11426. var NAME = data[i].name == null ? "" : data[i].name;
  11427. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11428. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11429. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11430. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11431. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11432. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11433. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11434. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11435. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11436. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11437. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11438. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11439. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11440. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11441. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11442. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11443. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11444. var invoice_type_cn =null;
  11445. if (invoice_type =="00" ){
  11446. invoice_type_cn="销售发票";
  11447. }else if (invoice_type == "01") {
  11448. invoice_type_cn="更正(对冲)发票";
  11449. }else if (invoice_type == "02") {
  11450. invoice_type_cn="其它类型发票";
  11451. }
  11452. html += "_$ta";
  11453. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11454. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11455. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11456. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11457. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11458. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11459. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11460. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11461. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11462. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11463. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11464. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11465. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11466. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11467. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11468. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11469. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11470. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11471. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11472. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11473. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11474. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11475. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11476. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11477. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11478. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11479. html += "_$tag";
  11480. }
  11481. $("#dataTable").html(html);
  11482. }else {
  11483. $("#dataTable").html("");
  11484. }
  11485. },
  11486. "error" : function(msg){
  11487. },
  11488. "complete": function(){
  11489. layer.close(tip);
  11490. }
  11491. });
  11492. });
  11493. Date.prototype.Format = function (fmt) {
  11494. var o = {
  11495. "M+": this.getMonth() + 1, //月份
  11496. "d+": this.getDate(), //日
  11497. "h+": this.getHours(), //小时
  11498. "m+": this.getMinutes(), //分
  11499. "s+": this.getSeconds(), //秒
  11500. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11501. "S": this.getMilliseconds() //毫秒
  11502. };
  11503. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11504. for (var k in o)
  11505. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11506. return fmt;
  11507. }
  11508. $("#jrjc").change(function() {
  11509. if ($("#jrjc").prop('checked') == true){
  11510. $("#departmentId").removeAttr("disabled");
  11511. }else {
  11512. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11513. }
  11514. });
  11515. ----------------------------------- SOURCE END -------------------------------------
  11516. !STACK 0
  11517. java.lang.NullPointerException
  11518. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:22:59.398
  11519. !MESSAGE java.lang.NullPointerException
  11520. !STACK 1
  11521. JavaScript Model Exception: java.lang.NullPointerException
  11522. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11523. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  11524. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11525. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11526. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  11527. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  11528. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  11529. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  11530. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  11531. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  11532. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  11533. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  11534. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  11535. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  11536. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  11537. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  11538. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  11539. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  11540. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  11541. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  11542. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  11543. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  11544. Caused by: java.lang.NullPointerException
  11545. Caused by: java.lang.NullPointerException
  11546. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:22:59.398
  11547. !MESSAGE java.lang.NullPointerException
  11548. !STACK 0
  11549. java.lang.NullPointerException
  11550. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:10.808
  11551. !MESSAGE Exception occurred during problem detection:
  11552. ----------------------------------- SOURCE BEGIN -------------------------------------
  11553. (function(){WdatePicker();})();
  11554. (function(){WdatePicker();})();
  11555. (function(){Data.get();})();
  11556. (function(){Data.set();})();
  11557. (function(){search();})();
  11558. $(function(){
  11559. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11560. getfp();
  11561. });
  11562. var Data = {
  11563. "get" : function(){
  11564. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11565. var tip = layer.load(2);
  11566. var result="";
  11567. var url = "getgyxml.do";
  11568. $.ajax({
  11569. "url" : url,
  11570. "data" : {
  11571. "start_date" : $("#dateBegin").val(),
  11572. "end_date" : $("#dateEnd").val()
  11573. },
  11574. "type" : "POST",
  11575. "dataType" : "json",
  11576. "success" : function(data) {
  11577. if(data != null && data != ""){
  11578. if ( data.status =="success"){
  11579. getfp();
  11580. alert("获取成功!");
  11581. }else {
  11582. alert(data.status);
  11583. }
  11584. }else {
  11585. alert("获取失败!");
  11586. }
  11587. },
  11588. "complete": function(){
  11589. layer.close(tip);
  11590. }
  11591. });
  11592. }else {
  11593. alert("请选择日期!");
  11594. }
  11595. },
  11596. "set" : function(){
  11597. if ( $("#fpid option:selected").text() !=""){
  11598. var tip = layer.load(2);
  11599. var gitem = $("#form1").serialize();
  11600. var jrjc;
  11601. if ($("#jrjc").prop('checked') == true){
  11602. jrjc = $("#departmentId").val();
  11603. }else {
  11604. jrjc ='N'
  11605. }
  11606. var url = "saverk.do";
  11607. $.ajax({
  11608. "url" : url,
  11609. "data" : {
  11610. "gitem" : gitem,
  11611. "jrjc" : jrjc
  11612. },
  11613. "type" : "POST",
  11614. "dataType" : "json",
  11615. "async" : true,
  11616. "success" : function(data) {
  11617. if(data.status ="success"){
  11618. alert("入库成功!");
  11619. window.location.reload();
  11620. }else {
  11621. alert(msg);
  11622. }
  11623. },
  11624. "error": function(){
  11625. alert("确认失败!");
  11626. },
  11627. "complete": function(){
  11628. layer.close(tip);
  11629. }
  11630. });
  11631. }else {
  11632. alert("请选择发票!");
  11633. }
  11634. }
  11635. }
  11636. function getfp(){
  11637. var tip = layer.load(2);
  11638. var url = "getgyfp.do";
  11639. $.ajax({
  11640. "url" : url,
  11641. "type" : "POST",
  11642. "dataType" : "json",
  11643. "async" : true,
  11644. "success" : function(data) {
  11645. if(data != null && data != ""){
  11646. $("#fpid").empty();
  11647. $("#fpid").append("_$tag_____________$tag____");
  11648. for(var i = 0; i < data.length; i++){
  11649. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11650. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11651. }
  11652. }
  11653. },
  11654. "error" : function(msg){
  11655. },
  11656. "complete": function(){
  11657. layer.close(tip);
  11658. }
  11659. });
  11660. }
  11661. $("#fpid").change(function(){
  11662. var tip = layer.load(2);
  11663. var url = "getgyrkxx.do";
  11664. $.ajax({
  11665. "url" : url,
  11666. "data" : {
  11667. "fpId" : $("#fpid").val()
  11668. },
  11669. "type" : "POST",
  11670. "dataType" : "json",
  11671. "async" : true,
  11672. "success" : function(data) {
  11673. $("#dataTable").html("");
  11674. if(data != null && data != ""){
  11675. var html = "";
  11676. for(var i = 0; i < data.length; i++){
  11677. var ID = data[i].id == null ? "" : data[i].id;
  11678. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11679. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11680. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11681. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11682. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11683. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11684. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11685. var NAME = data[i].name == null ? "" : data[i].name;
  11686. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11687. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11688. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11689. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11690. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11691. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11692. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11693. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11694. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11695. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11696. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11697. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11698. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11699. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11700. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11701. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11702. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11703. var invoice_type_cn =null;
  11704. if (invoice_type =="00" ){
  11705. invoice_type_cn="销售发票";
  11706. }else if (invoice_type == "01") {
  11707. invoice_type_cn="更正(对冲)发票";
  11708. }else if (invoice_type == "02") {
  11709. invoice_type_cn="其它类型发票";
  11710. }
  11711. html += "_$ta";
  11712. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11713. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11714. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11715. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11716. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11717. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11718. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11719. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11720. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11721. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11722. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11723. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11724. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11725. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11726. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11727. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11728. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11729. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11730. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11731. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11732. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11733. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11734. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11735. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11736. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11737. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11738. html += "_$tag";
  11739. }
  11740. $("#dataTable").html(html);
  11741. }else {
  11742. $("#dataTable").html("");
  11743. }
  11744. },
  11745. "error" : function(msg){
  11746. },
  11747. "complete": function(){
  11748. layer.close(tip);
  11749. }
  11750. });
  11751. });
  11752. Date.prototype.Format = function (fmt) {
  11753. var o = {
  11754. "M+": this.getMonth() + 1, //月份
  11755. "d+": this.getDate(), //日
  11756. "h+": this.getHours(), //小时
  11757. "m+": this.getMinutes(), //分
  11758. "s+": this.getSeconds(), //秒
  11759. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11760. "S": this.getMilliseconds() //毫秒
  11761. };
  11762. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11763. for (var k in o)
  11764. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11765. return fmt;
  11766. }
  11767. $("#jrjc").change(function() {
  11768. if ($("#jrjc").prop('checked') == true){
  11769. $("#departmentId").removeAttr("disabled");
  11770. }else {
  11771. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11772. }
  11773. });
  11774. ----------------------------------- SOURCE END -------------------------------------
  11775. !STACK 0
  11776. java.lang.NullPointerException
  11777. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:23:10.808
  11778. !MESSAGE java.lang.NullPointerException
  11779. !STACK 1
  11780. JavaScript Model Exception: java.lang.NullPointerException
  11781. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11782. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  11783. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11784. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11785. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  11786. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  11787. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  11788. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  11789. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  11790. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  11791. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  11792. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  11793. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  11794. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  11795. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  11796. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  11797. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  11798. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  11799. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  11800. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  11801. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  11802. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  11803. Caused by: java.lang.NullPointerException
  11804. Caused by: java.lang.NullPointerException
  11805. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:23:10.808
  11806. !MESSAGE java.lang.NullPointerException
  11807. !STACK 0
  11808. java.lang.NullPointerException
  11809. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:12.485
  11810. !MESSAGE Exception occurred during problem detection:
  11811. ----------------------------------- SOURCE BEGIN -------------------------------------
  11812. (function(){WdatePicker();})();
  11813. (function(){WdatePicker();})();
  11814. (function(){Data.get();})();
  11815. (function(){Data.set();})();
  11816. (function(){search();})();
  11817. $(function(){
  11818. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11819. getfp();
  11820. });
  11821. var Data = {
  11822. "get" : function(){
  11823. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11824. var tip = layer.load(2);
  11825. var result="";
  11826. var url = "getgyxml.do";
  11827. $.ajax({
  11828. "url" : url,
  11829. "data" : {
  11830. "start_date" : $("#dateBegin").val(),
  11831. "end_date" : $("#dateEnd").val()
  11832. },
  11833. "type" : "POST",
  11834. "dataType" : "json",
  11835. "success" : function(data) {
  11836. if(data != null && data != ""){
  11837. if ( data.status =="success"){
  11838. getfp();
  11839. alert("获取成功!");
  11840. }else {
  11841. alert(data.status);
  11842. }
  11843. }else {
  11844. alert("获取失败!");
  11845. }
  11846. },
  11847. "complete": function(){
  11848. layer.close(tip);
  11849. }
  11850. });
  11851. }else {
  11852. alert("请选择日期!");
  11853. }
  11854. },
  11855. "set" : function(){
  11856. if ( $("#fpid option:selected").text() !=""){
  11857. var tip = layer.load(2);
  11858. var gitem = $("#form1").serialize();
  11859. var jrjc;
  11860. if ($("#jrjc").prop('checked') == true){
  11861. jrjc = $("#departmentId").val();
  11862. }else {
  11863. jrjc ='N'
  11864. }
  11865. var url = "saverk.do";
  11866. $.ajax({
  11867. "url" : url,
  11868. "data" : {
  11869. "gitem" : gitem,
  11870. "jrjc" : jrjc
  11871. },
  11872. "type" : "POST",
  11873. "dataType" : "json",
  11874. "async" : true,
  11875. "success" : function(data) {
  11876. if(data.status ="success"){
  11877. alert("入库成功!");
  11878. window.location.reload();
  11879. }else {
  11880. alert(msg);
  11881. }
  11882. },
  11883. "error": function(){
  11884. alert("确认失败!");
  11885. },
  11886. "complete": function(){
  11887. layer.close(tip);
  11888. }
  11889. });
  11890. }else {
  11891. alert("请选择发票!");
  11892. }
  11893. }
  11894. }
  11895. function getfp(){
  11896. var tip = layer.load(2);
  11897. var url = "getgyfp.do";
  11898. $.ajax({
  11899. "url" : url,
  11900. "type" : "POST",
  11901. "dataType" : "json",
  11902. "async" : true,
  11903. "success" : function(data) {
  11904. if(data != null && data != ""){
  11905. $("#fpid").empty();
  11906. $("#fpid").append("_$tag_____________$tag____");
  11907. for(var i = 0; i < data.length; i++){
  11908. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11909. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11910. }
  11911. }
  11912. },
  11913. "error" : function(msg){
  11914. },
  11915. "complete": function(){
  11916. layer.close(tip);
  11917. }
  11918. });
  11919. }
  11920. $("#fpid").change(function(){
  11921. var tip = layer.load(2);
  11922. var url = "getgyrkxx.do";
  11923. $.ajax({
  11924. "url" : url,
  11925. "data" : {
  11926. "fpId" : $("#fpid").val()
  11927. },
  11928. "type" : "POST",
  11929. "dataType" : "json",
  11930. "async" : true,
  11931. "success" : function(data) {
  11932. $("#dataTable").html("");
  11933. if(data != null && data != ""){
  11934. var html = "";
  11935. for(var i = 0; i < data.length; i++){
  11936. var ID = data[i].id == null ? "" : data[i].id;
  11937. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11938. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11939. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11940. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11941. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11942. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11943. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11944. var NAME = data[i].name == null ? "" : data[i].name;
  11945. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11946. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11947. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11948. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11949. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11950. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11951. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11952. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11953. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11954. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11955. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11956. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11957. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11958. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11959. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11960. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11961. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11962. var invoice_type_cn =null;
  11963. if (invoice_type =="00" ){
  11964. invoice_type_cn="销售发票";
  11965. }else if (invoice_type == "01") {
  11966. invoice_type_cn="更正(对冲)发票";
  11967. }else if (invoice_type == "02") {
  11968. invoice_type_cn="其它类型发票";
  11969. }
  11970. html += "_$ta";
  11971. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11972. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11973. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11974. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11975. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11976. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11977. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11978. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11979. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11980. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11981. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11982. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11983. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11984. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11985. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11986. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11988. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11989. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11990. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11991. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11992. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11993. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11994. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11995. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11996. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11997. html += "_$tag";
  11998. }
  11999. $("#dataTable").html(html);
  12000. }else {
  12001. $("#dataTable").html("");
  12002. }
  12003. },
  12004. "error" : function(msg){
  12005. },
  12006. "complete": function(){
  12007. layer.close(tip);
  12008. }
  12009. });
  12010. });
  12011. Date.prototype.Format = function (fmt) {
  12012. var o = {
  12013. "M+": this.getMonth() + 1, //月份
  12014. "d+": this.getDate(), //日
  12015. "h+": this.getHours(), //小时
  12016. "m+": this.getMinutes(), //分
  12017. "s+": this.getSeconds(), //秒
  12018. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12019. "S": this.getMilliseconds() //毫秒
  12020. };
  12021. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12022. for (var k in o)
  12023. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12024. return fmt;
  12025. }
  12026. $("#jrjc").change(function() {
  12027. if ($("#jrjc").prop('checked') == true){
  12028. $("#departmentId").removeAttr("disabled");
  12029. }else {
  12030. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12031. }
  12032. });
  12033. ----------------------------------- SOURCE END -------------------------------------
  12034. !STACK 0
  12035. java.lang.NullPointerException
  12036. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:23:12.485
  12037. !MESSAGE java.lang.NullPointerException
  12038. !STACK 1
  12039. JavaScript Model Exception: java.lang.NullPointerException
  12040. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12041. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  12042. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12043. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12044. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  12045. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  12046. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  12047. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  12048. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  12049. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  12050. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  12051. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  12052. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  12053. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  12054. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  12055. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  12056. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  12057. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  12058. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  12059. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  12060. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  12061. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  12062. Caused by: java.lang.NullPointerException
  12063. Caused by: java.lang.NullPointerException
  12064. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:23:12.485
  12065. !MESSAGE java.lang.NullPointerException
  12066. !STACK 0
  12067. java.lang.NullPointerException
  12068. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:16.916
  12069. !MESSAGE Exception occurred during problem detection:
  12070. ----------------------------------- SOURCE BEGIN -------------------------------------
  12071. (function(){WdatePicker();})();
  12072. (function(){WdatePicker();})();
  12073. (function(){Data.get();})();
  12074. (function(){Data.set();})();
  12075. (function(){search();})();
  12076. $(function(){
  12077. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12078. getfp();
  12079. });
  12080. var Data = {
  12081. "get" : function(){
  12082. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12083. var tip = layer.load(2);
  12084. var result="";
  12085. var url = "getgyxml.do";
  12086. $.ajax({
  12087. "url" : url,
  12088. "data" : {
  12089. "start_date" : $("#dateBegin").val(),
  12090. "end_date" : $("#dateEnd").val()
  12091. },
  12092. "type" : "POST",
  12093. "dataType" : "json",
  12094. "success" : function(data) {
  12095. if(data != null && data != ""){
  12096. if ( data.status =="success"){
  12097. getfp();
  12098. alert("获取成功!");
  12099. }else {
  12100. alert(data.status);
  12101. }
  12102. }else {
  12103. alert("获取失败!");
  12104. }
  12105. },
  12106. "complete": function(){
  12107. layer.close(tip);
  12108. }
  12109. });
  12110. }else {
  12111. alert("请选择日期!");
  12112. }
  12113. },
  12114. "set" : function(){
  12115. if ( $("#fpid option:selected").text() !=""){
  12116. var tip = layer.load(2);
  12117. var gitem = $("#form1").serialize();
  12118. var jrjc;
  12119. if ($("#jrjc").prop('checked') == true){
  12120. jrjc = $("#departmentId").val();
  12121. }else {
  12122. jrjc ='N'
  12123. }
  12124. var url = "saverk.do";
  12125. $.ajax({
  12126. "url" : url,
  12127. "data" : {
  12128. "gitem" : gitem,
  12129. "jrjc" : jrjc
  12130. },
  12131. "type" : "POST",
  12132. "dataType" : "json",
  12133. "async" : true,
  12134. "success" : function(data) {
  12135. if(data.status ="success"){
  12136. alert("入库成功!");
  12137. window.location.reload();
  12138. }else {
  12139. alert(msg);
  12140. }
  12141. },
  12142. "error": function(){
  12143. alert("确认失败!");
  12144. },
  12145. "complete": function(){
  12146. layer.close(tip);
  12147. }
  12148. });
  12149. }else {
  12150. alert("请选择发票!");
  12151. }
  12152. }
  12153. }
  12154. function getfp(){
  12155. var tip = layer.load(2);
  12156. var url = "getgyfp.do";
  12157. $.ajax({
  12158. "url" : url,
  12159. "type" : "POST",
  12160. "dataType" : "json",
  12161. "async" : true,
  12162. "success" : function(data) {
  12163. if(data != null && data != ""){
  12164. $("#fpid").empty();
  12165. $("#fpid").append("_$tag_____________$tag____");
  12166. for(var i = 0; i < data.length; i++){
  12167. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12168. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12169. }
  12170. }
  12171. },
  12172. "error" : function(msg){
  12173. },
  12174. "complete": function(){
  12175. layer.close(tip);
  12176. }
  12177. });
  12178. }
  12179. $("#fpid").change(function(){
  12180. var tip = layer.load(2);
  12181. var url = "getgyrkxx.do";
  12182. $.ajax({
  12183. "url" : url,
  12184. "data" : {
  12185. "fpId" : $("#fpid").val()
  12186. },
  12187. "type" : "POST",
  12188. "dataType" : "json",
  12189. "async" : true,
  12190. "success" : function(data) {
  12191. $("#dataTable").html("");
  12192. if(data != null && data != ""){
  12193. var html = "";
  12194. for(var i = 0; i < data.length; i++){
  12195. var ID = data[i].id == null ? "" : data[i].id;
  12196. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12197. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12198. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12199. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12200. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12201. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12202. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12203. var NAME = data[i].name == null ? "" : data[i].name;
  12204. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12205. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12206. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12207. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12208. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12209. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12210. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12211. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12212. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12213. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12214. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12215. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12216. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12217. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12218. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12219. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12220. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12221. var invoice_type_cn =null;
  12222. if (invoice_type =="00" ){
  12223. invoice_type_cn="销售发票";
  12224. }else if (invoice_type == "01") {
  12225. invoice_type_cn="更正(对冲)发票";
  12226. }else if (invoice_type == "02") {
  12227. invoice_type_cn="其它类型发票";
  12228. }
  12229. html += "_$ta";
  12230. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12231. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12232. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12233. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12234. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12235. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12236. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12237. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12238. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12239. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12240. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12241. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12242. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12243. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12244. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12245. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12246. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12247. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12248. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12249. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12250. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12251. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12252. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12253. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12254. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12255. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12256. html += "_$tag";
  12257. }
  12258. $("#dataTable").html(html);
  12259. }else {
  12260. $("#dataTable").html("");
  12261. }
  12262. },
  12263. "error" : function(msg){
  12264. },
  12265. "complete": function(){
  12266. layer.close(tip);
  12267. }
  12268. });
  12269. });
  12270. Date.prototype.Format = function (fmt) {
  12271. var o = {
  12272. "M+": this.getMonth() + 1, //月份
  12273. "d+": this.getDate(), //日
  12274. "h+": this.getHours(), //小时
  12275. "m+": this.getMinutes(), //分
  12276. "s+": this.getSeconds(), //秒
  12277. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12278. "S": this.getMilliseconds() //毫秒
  12279. };
  12280. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12281. for (var k in o)
  12282. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12283. return fmt;
  12284. }
  12285. $("#jrjc").change(function() {
  12286. if ($("#jrjc").prop('checked') == true){
  12287. $("#departmentId").removeAttr("disabled");
  12288. }else {
  12289. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12290. }
  12291. });
  12292. ----------------------------------- SOURCE END -------------------------------------
  12293. !STACK 0
  12294. java.lang.NullPointerException
  12295. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:16.917
  12296. !MESSAGE Error while processing working copy
  12297. !STACK 1
  12298. JavaScript Model Exception: java.lang.NullPointerException
  12299. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12300. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12301. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12302. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12303. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12304. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12305. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12306. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12307. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12308. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12309. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12310. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12311. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12312. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12313. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12314. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12315. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12316. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12317. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12318. Caused by: java.lang.NullPointerException
  12319. Caused by: java.lang.NullPointerException
  12320. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:23:16.917
  12321. !MESSAGE java.lang.NullPointerException
  12322. !STACK 0
  12323. java.lang.NullPointerException
  12324. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:17.539
  12325. !MESSAGE Exception occurred during problem detection:
  12326. ----------------------------------- SOURCE BEGIN -------------------------------------
  12327. (function(){WdatePicker();})();
  12328. (function(){WdatePicker();})();
  12329. (function(){Data.get();})();
  12330. (function(){Data.set();})();
  12331. (function(){search();})();
  12332. $(function(){
  12333. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12334. getfp();
  12335. });
  12336. var Data = {
  12337. "get" : function(){
  12338. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12339. var tip = layer.load(2);
  12340. var result="";
  12341. var url = "getgyxml.do";
  12342. $.ajax({
  12343. "url" : url,
  12344. "data" : {
  12345. "start_date" : $("#dateBegin").val(),
  12346. "end_date" : $("#dateEnd").val()
  12347. },
  12348. "type" : "POST",
  12349. "dataType" : "json",
  12350. "success" : function(data) {
  12351. if(data != null && data != ""){
  12352. if ( data.status =="success"){
  12353. getfp();
  12354. alert("获取成功!");
  12355. }else {
  12356. alert(data.status);
  12357. }
  12358. }else {
  12359. alert("获取失败!");
  12360. }
  12361. },
  12362. "complete": function(){
  12363. layer.close(tip);
  12364. }
  12365. });
  12366. }else {
  12367. alert("请选择日期!");
  12368. }
  12369. },
  12370. "set" : function(){
  12371. if ( $("#fpid option:selected").text() !=""){
  12372. var tip = layer.load(2);
  12373. var gitem = $("#form1").serialize();
  12374. var jrjc;
  12375. if ($("#jrjc").prop('checked') == true){
  12376. jrjc = $("#departmentId").val();
  12377. }else {
  12378. jrjc ='N'
  12379. }
  12380. var url = "saverk.do";
  12381. $.ajax({
  12382. "url" : url,
  12383. "data" : {
  12384. "gitem" : gitem,
  12385. "jrjc" : jrjc
  12386. },
  12387. "type" : "POST",
  12388. "dataType" : "json",
  12389. "async" : true,
  12390. "success" : function(data) {
  12391. if(data.status ="success"){
  12392. alert("入库成功!");
  12393. window.location.reload();
  12394. }else {
  12395. alert(msg);
  12396. }
  12397. },
  12398. "error": function(){
  12399. alert("确认失败!");
  12400. },
  12401. "complete": function(){
  12402. layer.close(tip);
  12403. }
  12404. });
  12405. }else {
  12406. alert("请选择发票!");
  12407. }
  12408. }
  12409. }
  12410. function getfp(){
  12411. var tip = layer.load(2);
  12412. var url = "getgyfp.do";
  12413. $.ajax({
  12414. "url" : url,
  12415. "type" : "POST",
  12416. "dataType" : "json",
  12417. "async" : true,
  12418. "success" : function(data) {
  12419. if(data != null && data != ""){
  12420. $("#fpid").empty();
  12421. $("#fpid").append("_$tag_____________$tag____");
  12422. for(var i = 0; i < data.length; i++){
  12423. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12424. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12425. }
  12426. }
  12427. },
  12428. "error" : function(msg){
  12429. },
  12430. "complete": function(){
  12431. layer.close(tip);
  12432. }
  12433. });
  12434. }
  12435. $("#fpid").change(function(){
  12436. var tip = layer.load(2);
  12437. var url = "getgyrkxx.do";
  12438. $.ajax({
  12439. "url" : url,
  12440. "data" : {
  12441. "fpId" : $("#fpid").val()
  12442. },
  12443. "type" : "POST",
  12444. "dataType" : "json",
  12445. "async" : true,
  12446. "success" : function(data) {
  12447. $("#dataTable").html("");
  12448. if(data != null && data != ""){
  12449. var html = "";
  12450. for(var i = 0; i < data.length; i++){
  12451. var ID = data[i].id == null ? "" : data[i].id;
  12452. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12453. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12454. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12455. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12456. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12457. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12458. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12459. var NAME = data[i].name == null ? "" : data[i].name;
  12460. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12461. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12462. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12463. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12464. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12465. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12466. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12467. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12468. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12469. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12470. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12471. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12472. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12473. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12474. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12475. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12476. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12477. var invoice_type_cn =null;
  12478. if (invoice_type =="00" ){
  12479. invoice_type_cn="销售发票";
  12480. }else if (invoice_type == "01") {
  12481. invoice_type_cn="更正(对冲)发票";
  12482. }else if (invoice_type == "02") {
  12483. invoice_type_cn="其它类型发票";
  12484. }
  12485. html += "_$ta";
  12486. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12487. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12488. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12489. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12490. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12491. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12492. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12493. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12494. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12495. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12496. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12497. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12498. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12499. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12500. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12501. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12502. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12503. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12504. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12505. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12506. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12507. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12508. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12509. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12510. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12511. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12512. html += "_$tag";
  12513. }
  12514. $("#dataTable").html(html);
  12515. }else {
  12516. $("#dataTable").html("");
  12517. }
  12518. },
  12519. "error" : function(msg){
  12520. },
  12521. "complete": function(){
  12522. layer.close(tip);
  12523. }
  12524. });
  12525. });
  12526. Date.prototype.Format = function (fmt) {
  12527. var o = {
  12528. "M+": this.getMonth() + 1, //月份
  12529. "d+": this.getDate(), //日
  12530. "h+": this.getHours(), //小时
  12531. "m+": this.getMinutes(), //分
  12532. "s+": this.getSeconds(), //秒
  12533. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12534. "S": this.getMilliseconds() //毫秒
  12535. };
  12536. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12537. for (var k in o)
  12538. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12539. return fmt;
  12540. }
  12541. $("#jrjc").change(function() {
  12542. if ($("#jrjc").prop('checked') == true){
  12543. $("#departmentId").removeAttr("disabled");
  12544. }else {
  12545. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12546. }
  12547. });
  12548. ----------------------------------- SOURCE END -------------------------------------
  12549. !STACK 0
  12550. java.lang.NullPointerException
  12551. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:29.386
  12552. !MESSAGE Exception occurred during problem detection:
  12553. ----------------------------------- SOURCE BEGIN -------------------------------------
  12554. (function(){WdatePicker();})();
  12555. (function(){WdatePicker();})();
  12556. (function(){Data.get();})();
  12557. (function(){Data.set();})();
  12558. (function(){search();})();
  12559. $(function(){
  12560. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12561. getfp();
  12562. });
  12563. var Data = {
  12564. "get" : function(){
  12565. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12566. var tip = layer.load(2);
  12567. var result="";
  12568. var url = "getgyxml.do";
  12569. $.ajax({
  12570. "url" : url,
  12571. "data" : {
  12572. "start_date" : $("#dateBegin").val(),
  12573. "end_date" : $("#dateEnd").val()
  12574. },
  12575. "type" : "POST",
  12576. "dataType" : "json",
  12577. "success" : function(data) {
  12578. if(data != null && data != ""){
  12579. if ( data.status =="success"){
  12580. getfp();
  12581. alert("获取成功!");
  12582. }else {
  12583. alert(data.status);
  12584. }
  12585. }else {
  12586. alert("获取失败!");
  12587. }
  12588. },
  12589. "complete": function(){
  12590. layer.close(tip);
  12591. }
  12592. });
  12593. }else {
  12594. alert("请选择日期!");
  12595. }
  12596. },
  12597. "set" : function(){
  12598. if ( $("#fpid option:selected").text() !=""){
  12599. var tip = layer.load(2);
  12600. var gitem = $("#form1").serialize();
  12601. var jrjc;
  12602. if ($("#jrjc").prop('checked') == true){
  12603. jrjc = $("#departmentId").val();
  12604. }else {
  12605. jrjc ='N'
  12606. }
  12607. var url = "saverk.do";
  12608. $.ajax({
  12609. "url" : url,
  12610. "data" : {
  12611. "gitem" : gitem,
  12612. "jrjc" : jrjc
  12613. },
  12614. "type" : "POST",
  12615. "dataType" : "json",
  12616. "async" : true,
  12617. "success" : function(data) {
  12618. if(data.status ="success"){
  12619. alert("入库成功!");
  12620. window.location.reload();
  12621. }else {
  12622. alert(msg);
  12623. }
  12624. },
  12625. "error": function(){
  12626. alert("确认失败!");
  12627. },
  12628. "complete": function(){
  12629. layer.close(tip);
  12630. }
  12631. });
  12632. }else {
  12633. alert("请选择发票!");
  12634. }
  12635. }
  12636. }
  12637. function getfp(){
  12638. var tip = layer.load(2);
  12639. var url = "getgyfp.do";
  12640. $.ajax({
  12641. "url" : url,
  12642. "type" : "POST",
  12643. "dataType" : "json",
  12644. "async" : true,
  12645. "success" : function(data) {
  12646. if(data != null && data != ""){
  12647. $("#fpid").empty();
  12648. $("#fpid").append("_$tag_____________$tag____");
  12649. for(var i = 0; i < data.length; i++){
  12650. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12651. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12652. }
  12653. }
  12654. },
  12655. "error" : function(msg){
  12656. },
  12657. "complete": function(){
  12658. layer.close(tip);
  12659. }
  12660. });
  12661. }
  12662. $("#fpid").change(function(){
  12663. var tip = layer.load(2);
  12664. var url = "getgyrkxx.do";
  12665. $.ajax({
  12666. "url" : url,
  12667. "data" : {
  12668. "fpId" : $("#fpid").val()
  12669. },
  12670. "type" : "POST",
  12671. "dataType" : "json",
  12672. "async" : true,
  12673. "success" : function(data) {
  12674. $("#dataTable").html("");
  12675. if(data != null && data != ""){
  12676. var html = "";
  12677. for(var i = 0; i < data.length; i++){
  12678. var ID = data[i].id == null ? "" : data[i].id;
  12679. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12680. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12681. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12682. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12683. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12684. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12685. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12686. var NAME = data[i].name == null ? "" : data[i].name;
  12687. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12688. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12689. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12690. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12691. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12692. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12693. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12694. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12695. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12696. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12697. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12698. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12699. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12700. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12701. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12702. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12703. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12704. var invoice_type_cn =null;
  12705. if (invoice_type =="00" ){
  12706. invoice_type_cn="销售发票";
  12707. }else if (invoice_type == "01") {
  12708. invoice_type_cn="更正(对冲)发票";
  12709. }else if (invoice_type == "02") {
  12710. invoice_type_cn="其它类型发票";
  12711. }
  12712. html += "_$ta";
  12713. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12714. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12715. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12716. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12717. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12718. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12719. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12720. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12721. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12722. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12723. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12724. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12725. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12726. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12727. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12728. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12729. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12730. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12731. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12732. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12733. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12734. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12735. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12736. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12737. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12738. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12739. html += "_$tag";
  12740. }
  12741. $("#dataTable").html(html);
  12742. }else {
  12743. $("#dataTable").html("");
  12744. }
  12745. },
  12746. "error" : function(msg){
  12747. },
  12748. "complete": function(){
  12749. layer.close(tip);
  12750. }
  12751. });
  12752. });
  12753. Date.prototype.Format = function (fmt) {
  12754. var o = {
  12755. "M+": this.getMonth() + 1, //月份
  12756. "d+": this.getDate(), //日
  12757. "h+": this.getHours(), //小时
  12758. "m+": this.getMinutes(), //分
  12759. "s+": this.getSeconds(), //秒
  12760. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12761. "S": this.getMilliseconds() //毫秒
  12762. };
  12763. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12764. for (var k in o)
  12765. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12766. return fmt;
  12767. }
  12768. $("#jrjc").change(function() {
  12769. if ($("#jrjc").prop('checked') == true){
  12770. $("#departmentId").removeAttr("disabled");
  12771. }else {
  12772. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12773. }
  12774. });
  12775. ----------------------------------- SOURCE END -------------------------------------
  12776. !STACK 0
  12777. java.lang.NullPointerException
  12778. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:29.387
  12779. !MESSAGE Error while processing working copy
  12780. !STACK 1
  12781. JavaScript Model Exception: java.lang.NullPointerException
  12782. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12783. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12784. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12785. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12786. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12787. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12788. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12789. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12790. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12791. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12792. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12793. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12794. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12795. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12796. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12797. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12798. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12799. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12800. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12801. Caused by: java.lang.NullPointerException
  12802. Caused by: java.lang.NullPointerException
  12803. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:23:29.387
  12804. !MESSAGE java.lang.NullPointerException
  12805. !STACK 0
  12806. java.lang.NullPointerException
  12807. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:30.301
  12808. !MESSAGE Exception occurred during problem detection:
  12809. ----------------------------------- SOURCE BEGIN -------------------------------------
  12810. (function(){WdatePicker();})();
  12811. (function(){WdatePicker();})();
  12812. (function(){Data.get();})();
  12813. (function(){Data.set();})();
  12814. (function(){search();})();
  12815. $(function(){
  12816. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12817. getfp();
  12818. });
  12819. var Data = {
  12820. "get" : function(){
  12821. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12822. var tip = layer.load(2);
  12823. var result="";
  12824. var url = "getgyxml.do";
  12825. $.ajax({
  12826. "url" : url,
  12827. "data" : {
  12828. "start_date" : $("#dateBegin").val(),
  12829. "end_date" : $("#dateEnd").val()
  12830. },
  12831. "type" : "POST",
  12832. "dataType" : "json",
  12833. "success" : function(data) {
  12834. if(data != null && data != ""){
  12835. if ( data.status =="success"){
  12836. getfp();
  12837. alert("获取成功!");
  12838. }else {
  12839. alert(data.status);
  12840. }
  12841. }else {
  12842. alert("获取失败!");
  12843. }
  12844. },
  12845. "complete": function(){
  12846. layer.close(tip);
  12847. }
  12848. });
  12849. }else {
  12850. alert("请选择日期!");
  12851. }
  12852. },
  12853. "set" : function(){
  12854. if ( $("#fpid option:selected").text() !=""){
  12855. var tip = layer.load(2);
  12856. var gitem = $("#form1").serialize();
  12857. var jrjc;
  12858. if ($("#jrjc").prop('checked') == true){
  12859. jrjc = $("#departmentId").val();
  12860. }else {
  12861. jrjc ='N'
  12862. }
  12863. var url = "saverk.do";
  12864. $.ajax({
  12865. "url" : url,
  12866. "data" : {
  12867. "gitem" : gitem,
  12868. "jrjc" : jrjc
  12869. },
  12870. "type" : "POST",
  12871. "dataType" : "json",
  12872. "async" : true,
  12873. "success" : function(data) {
  12874. if(data.status ="success"){
  12875. alert("入库成功!");
  12876. window.location.reload();
  12877. }else {
  12878. alert(msg);
  12879. }
  12880. },
  12881. "error": function(){
  12882. alert("确认失败!");
  12883. },
  12884. "complete": function(){
  12885. layer.close(tip);
  12886. }
  12887. });
  12888. }else {
  12889. alert("请选择发票!");
  12890. }
  12891. }
  12892. }
  12893. function getfp(){
  12894. var tip = layer.load(2);
  12895. var url = "getgyfp.do";
  12896. $.ajax({
  12897. "url" : url,
  12898. "type" : "POST",
  12899. "dataType" : "json",
  12900. "async" : true,
  12901. "success" : function(data) {
  12902. if(data != null && data != ""){
  12903. $("#fpid").empty();
  12904. $("#fpid").append("_$tag_____________$tag____");
  12905. for(var i = 0; i < data.length; i++){
  12906. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12907. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12908. }
  12909. }
  12910. },
  12911. "error" : function(msg){
  12912. },
  12913. "complete": function(){
  12914. layer.close(tip);
  12915. }
  12916. });
  12917. }
  12918. $("#fpid").change(function(){
  12919. var tip = layer.load(2);
  12920. var url = "getgyrkxx.do";
  12921. $.ajax({
  12922. "url" : url,
  12923. "data" : {
  12924. "fpId" : $("#fpid").val()
  12925. },
  12926. "type" : "POST",
  12927. "dataType" : "json",
  12928. "async" : true,
  12929. "success" : function(data) {
  12930. $("#dataTable").html("");
  12931. if(data != null && data != ""){
  12932. var html = "";
  12933. for(var i = 0; i < data.length; i++){
  12934. var ID = data[i].id == null ? "" : data[i].id;
  12935. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12936. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12937. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12938. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12939. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12940. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12941. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12942. var NAME = data[i].name == null ? "" : data[i].name;
  12943. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12944. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12945. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12946. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12947. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12948. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12949. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12950. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12951. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12952. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12953. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12954. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12955. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12956. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12957. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12958. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12959. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12960. var invoice_type_cn =null;
  12961. if (invoice_type =="00" ){
  12962. invoice_type_cn="销售发票";
  12963. }else if (invoice_type == "01") {
  12964. invoice_type_cn="更正(对冲)发票";
  12965. }else if (invoice_type == "02") {
  12966. invoice_type_cn="其它类型发票";
  12967. }
  12968. html += "_$ta";
  12969. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12970. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12971. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12972. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12973. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12974. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12975. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12976. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12977. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12978. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12979. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12980. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12981. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12982. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12983. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12984. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12985. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12986. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12988. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12989. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12990. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12991. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12992. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12993. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12994. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12995. html += "_$tag";
  12996. }
  12997. $("#dataTable").html(html);
  12998. }else {
  12999. $("#dataTable").html("");
  13000. }
  13001. },
  13002. "error" : function(msg){
  13003. },
  13004. "complete": function(){
  13005. layer.close(tip);
  13006. }
  13007. });
  13008. });
  13009. Date.prototype.Format = function (fmt) {
  13010. var o = {
  13011. "M+": this.getMonth() + 1, //月份
  13012. "d+": this.getDate(), //日
  13013. "h+": this.getHours(), //小时
  13014. "m+": this.getMinutes(), //分
  13015. "s+": this.getSeconds(), //秒
  13016. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13017. "S": this.getMilliseconds() //毫秒
  13018. };
  13019. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13020. for (var k in o)
  13021. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13022. return fmt;
  13023. }
  13024. $("#jrjc").change(function() {
  13025. if ($("#jrjc").prop('checked') == true){
  13026. $("#departmentId").removeAttr("disabled");
  13027. }else {
  13028. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13029. }
  13030. });
  13031. ----------------------------------- SOURCE END -------------------------------------
  13032. !STACK 0
  13033. java.lang.NullPointerException
  13034. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:30.743
  13035. !MESSAGE Exception occurred during problem detection:
  13036. ----------------------------------- SOURCE BEGIN -------------------------------------
  13037. (function(){WdatePicker();})();
  13038. (function(){WdatePicker();})();
  13039. (function(){Data.get();})();
  13040. (function(){Data.set();})();
  13041. (function(){search();})();
  13042. $(function(){
  13043. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13044. getfp();
  13045. });
  13046. var Data = {
  13047. "get" : function(){
  13048. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13049. var tip = layer.load(2);
  13050. var result="";
  13051. var url = "getgyxml.do";
  13052. $.ajax({
  13053. "url" : url,
  13054. "data" : {
  13055. "start_date" : $("#dateBegin").val(),
  13056. "end_date" : $("#dateEnd").val()
  13057. },
  13058. "type" : "POST",
  13059. "dataType" : "json",
  13060. "success" : function(data) {
  13061. if(data != null && data != ""){
  13062. if ( data.status =="success"){
  13063. getfp();
  13064. alert("获取成功!");
  13065. }else {
  13066. alert(data.status);
  13067. }
  13068. }else {
  13069. alert("获取失败!");
  13070. }
  13071. },
  13072. "complete": function(){
  13073. layer.close(tip);
  13074. }
  13075. });
  13076. }else {
  13077. alert("请选择日期!");
  13078. }
  13079. },
  13080. "set" : function(){
  13081. if ( $("#fpid option:selected").text() !=""){
  13082. var tip = layer.load(2);
  13083. var gitem = $("#form1").serialize();
  13084. var jrjc;
  13085. if ($("#jrjc").prop('checked') == true){
  13086. jrjc = $("#departmentId").val();
  13087. }else {
  13088. jrjc ='N'
  13089. }
  13090. var url = "saverk.do";
  13091. $.ajax({
  13092. "url" : url,
  13093. "data" : {
  13094. "gitem" : gitem,
  13095. "jrjc" : jrjc
  13096. },
  13097. "type" : "POST",
  13098. "dataType" : "json",
  13099. "async" : true,
  13100. "success" : function(data) {
  13101. if(data.status ="success"){
  13102. alert("入库成功!");
  13103. window.location.reload();
  13104. }else {
  13105. alert(msg);
  13106. }
  13107. },
  13108. "error": function(){
  13109. alert("确认失败!");
  13110. },
  13111. "complete": function(){
  13112. layer.close(tip);
  13113. }
  13114. });
  13115. }else {
  13116. alert("请选择发票!");
  13117. }
  13118. }
  13119. }
  13120. function getfp(){
  13121. var tip = layer.load(2);
  13122. var url = "getgyfp.do";
  13123. $.ajax({
  13124. "url" : url,
  13125. "type" : "POST",
  13126. "dataType" : "json",
  13127. "async" : true,
  13128. "success" : function(data) {
  13129. if(data != null && data != ""){
  13130. $("#fpid").empty();
  13131. $("#fpid").append("_$tag_____________$tag____");
  13132. for(var i = 0; i < data.length; i++){
  13133. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13134. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13135. }
  13136. }
  13137. },
  13138. "error" : function(msg){
  13139. },
  13140. "complete": function(){
  13141. layer.close(tip);
  13142. }
  13143. });
  13144. }
  13145. $("#fpid").change(function(){
  13146. var tip = layer.load(2);
  13147. var url = "getgyrkxx.do";
  13148. $.ajax({
  13149. "url" : url,
  13150. "data" : {
  13151. "fpId" : $("#fpid").val()
  13152. },
  13153. "type" : "POST",
  13154. "dataType" : "json",
  13155. "async" : true,
  13156. "success" : function(data) {
  13157. $("#dataTable").html("");
  13158. if(data != null && data != ""){
  13159. var html = "";
  13160. for(var i = 0; i < data.length; i++){
  13161. var ID = data[i].id == null ? "" : data[i].id;
  13162. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13163. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13164. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13165. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13166. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13167. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13168. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13169. var NAME = data[i].name == null ? "" : data[i].name;
  13170. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13171. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13172. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13173. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13174. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13175. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13176. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13177. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13178. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13179. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13180. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13181. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13182. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13183. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13184. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13185. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13186. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13187. var invoice_type_cn =null;
  13188. if (invoice_type =="00" ){
  13189. invoice_type_cn="销售发票";
  13190. }else if (invoice_type == "01") {
  13191. invoice_type_cn="更正(对冲)发票";
  13192. }else if (invoice_type == "02") {
  13193. invoice_type_cn="其它类型发票";
  13194. }
  13195. html += "_$ta";
  13196. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13197. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13198. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13199. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13200. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13201. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13202. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13203. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13204. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13205. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13206. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13207. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13208. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13209. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13210. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13211. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13212. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13213. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13214. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13215. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13216. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13217. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13218. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13219. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13220. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13221. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13222. html += "_$tag";
  13223. }
  13224. $("#dataTable").html(html);
  13225. }else {
  13226. $("#dataTable").html("");
  13227. }
  13228. },
  13229. "error" : function(msg){
  13230. },
  13231. "complete": function(){
  13232. layer.close(tip);
  13233. }
  13234. });
  13235. });
  13236. Date.prototype.Format = function (fmt) {
  13237. var o = {
  13238. "M+": this.getMonth() + 1, //月份
  13239. "d+": this.getDate(), //日
  13240. "h+": this.getHours(), //小时
  13241. "m+": this.getMinutes(), //分
  13242. "s+": this.getSeconds(), //秒
  13243. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13244. "S": this.getMilliseconds() //毫秒
  13245. };
  13246. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13247. for (var k in o)
  13248. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13249. return fmt;
  13250. }
  13251. $("#jrjc").change(function() {
  13252. if ($("#jrjc").prop('checked') == true){
  13253. $("#departmentId").removeAttr("disabled");
  13254. }else {
  13255. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13256. }
  13257. });
  13258. ----------------------------------- SOURCE END -------------------------------------
  13259. !STACK 0
  13260. java.lang.NullPointerException
  13261. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:30.743
  13262. !MESSAGE Error while processing working copy
  13263. !STACK 1
  13264. JavaScript Model Exception: java.lang.NullPointerException
  13265. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13266. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13267. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13268. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13269. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13270. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13271. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13272. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13273. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13274. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13275. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13276. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13277. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13278. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13279. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13280. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13281. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13282. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13283. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13284. Caused by: java.lang.NullPointerException
  13285. Caused by: java.lang.NullPointerException
  13286. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:23:30.744
  13287. !MESSAGE java.lang.NullPointerException
  13288. !STACK 0
  13289. java.lang.NullPointerException
  13290. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:31.377
  13291. !MESSAGE Exception occurred during problem detection:
  13292. ----------------------------------- SOURCE BEGIN -------------------------------------
  13293. (function(){WdatePicker();})();
  13294. (function(){WdatePicker();})();
  13295. (function(){Data.get();})();
  13296. (function(){Data.set();})();
  13297. (function(){search();})();
  13298. $(function(){
  13299. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13300. getfp();
  13301. });
  13302. var Data = {
  13303. "get" : function(){
  13304. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13305. var tip = layer.load(2);
  13306. var result="";
  13307. var url = "getgyxml.do";
  13308. $.ajax({
  13309. "url" : url,
  13310. "data" : {
  13311. "start_date" : $("#dateBegin").val(),
  13312. "end_date" : $("#dateEnd").val()
  13313. },
  13314. "type" : "POST",
  13315. "dataType" : "json",
  13316. "success" : function(data) {
  13317. if(data != null && data != ""){
  13318. if ( data.status =="success"){
  13319. getfp();
  13320. alert("获取成功!");
  13321. }else {
  13322. alert(data.status);
  13323. }
  13324. }else {
  13325. alert("获取失败!");
  13326. }
  13327. },
  13328. "complete": function(){
  13329. layer.close(tip);
  13330. }
  13331. });
  13332. }else {
  13333. alert("请选择日期!");
  13334. }
  13335. },
  13336. "set" : function(){
  13337. if ( $("#fpid option:selected").text() !=""){
  13338. var tip = layer.load(2);
  13339. var gitem = $("#form1").serialize();
  13340. var jrjc;
  13341. if ($("#jrjc").prop('checked') == true){
  13342. jrjc = $("#departmentId").val();
  13343. }else {
  13344. jrjc ='N'
  13345. }
  13346. var url = "saverk.do";
  13347. $.ajax({
  13348. "url" : url,
  13349. "data" : {
  13350. "gitem" : gitem,
  13351. "jrjc" : jrjc
  13352. },
  13353. "type" : "POST",
  13354. "dataType" : "json",
  13355. "async" : true,
  13356. "success" : function(data) {
  13357. if(data.status ="success"){
  13358. alert("入库成功!");
  13359. window.location.reload();
  13360. }else {
  13361. alert(msg);
  13362. }
  13363. },
  13364. "error": function(){
  13365. alert("确认失败!");
  13366. },
  13367. "complete": function(){
  13368. layer.close(tip);
  13369. }
  13370. });
  13371. }else {
  13372. alert("请选择发票!");
  13373. }
  13374. }
  13375. }
  13376. function getfp(){
  13377. var tip = layer.load(2);
  13378. var url = "getgyfp.do";
  13379. $.ajax({
  13380. "url" : url,
  13381. "type" : "POST",
  13382. "dataType" : "json",
  13383. "async" : true,
  13384. "success" : function(data) {
  13385. if(data != null && data != ""){
  13386. $("#fpid").empty();
  13387. $("#fpid").append("_$tag_____________$tag____");
  13388. for(var i = 0; i < data.length; i++){
  13389. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13390. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13391. }
  13392. }
  13393. },
  13394. "error" : function(msg){
  13395. },
  13396. "complete": function(){
  13397. layer.close(tip);
  13398. }
  13399. });
  13400. }
  13401. $("#fpid").change(function(){
  13402. var tip = layer.load(2);
  13403. var url = "getgyrkxx.do";
  13404. $.ajax({
  13405. "url" : url,
  13406. "data" : {
  13407. "fpId" : $("#fpid").val()
  13408. },
  13409. "type" : "POST",
  13410. "dataType" : "json",
  13411. "async" : true,
  13412. "success" : function(data) {
  13413. $("#dataTable").html("");
  13414. if(data != null && data != ""){
  13415. var html = "";
  13416. for(var i = 0; i < data.length; i++){
  13417. var ID = data[i].id == null ? "" : data[i].id;
  13418. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13419. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13420. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13421. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13422. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13423. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13424. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13425. var NAME = data[i].name == null ? "" : data[i].name;
  13426. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13427. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13428. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13429. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13430. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13431. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13432. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13433. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13434. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13435. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13436. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13437. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13438. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13439. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13440. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13441. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13442. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13443. var invoice_type_cn =null;
  13444. if (invoice_type =="00" ){
  13445. invoice_type_cn="销售发票";
  13446. }else if (invoice_type == "01") {
  13447. invoice_type_cn="更正(对冲)发票";
  13448. }else if (invoice_type == "02") {
  13449. invoice_type_cn="其它类型发票";
  13450. }
  13451. html += "_$ta";
  13452. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13453. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13454. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13455. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13456. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13457. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13458. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13459. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13460. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13461. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13462. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13463. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13464. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13465. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13466. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13467. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13468. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13469. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13470. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13471. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13472. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13473. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13474. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13475. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13476. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13477. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13478. html += "_$tag";
  13479. }
  13480. $("#dataTable").html(html);
  13481. }else {
  13482. $("#dataTable").html("");
  13483. }
  13484. },
  13485. "error" : function(msg){
  13486. },
  13487. "complete": function(){
  13488. layer.close(tip);
  13489. }
  13490. });
  13491. });
  13492. Date.prototype.Format = function (fmt) {
  13493. var o = {
  13494. "M+": this.getMonth() + 1, //月份
  13495. "d+": this.getDate(), //日
  13496. "h+": this.getHours(), //小时
  13497. "m+": this.getMinutes(), //分
  13498. "s+": this.getSeconds(), //秒
  13499. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13500. "S": this.getMilliseconds() //毫秒
  13501. };
  13502. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13503. for (var k in o)
  13504. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13505. return fmt;
  13506. }
  13507. $("#jrjc").change(function() {
  13508. if ($("#jrjc").prop('checked') == true){
  13509. $("#departmentId").removeAttr("disabled");
  13510. }else {
  13511. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13512. }
  13513. });
  13514. ----------------------------------- SOURCE END -------------------------------------
  13515. !STACK 0
  13516. java.lang.NullPointerException
  13517. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:33.018
  13518. !MESSAGE Exception occurred during problem detection:
  13519. ----------------------------------- SOURCE BEGIN -------------------------------------
  13520. (function(){WdatePicker();})();
  13521. (function(){WdatePicker();})();
  13522. (function(){Data.get();})();
  13523. (function(){Data.set();})();
  13524. (function(){search();})();
  13525. $(function(){
  13526. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13527. getfp();
  13528. });
  13529. var Data = {
  13530. "get" : function(){
  13531. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13532. var tip = layer.load(2);
  13533. var result="";
  13534. var url = "getgyxml.do";
  13535. $.ajax({
  13536. "url" : url,
  13537. "data" : {
  13538. "start_date" : $("#dateBegin").val(),
  13539. "end_date" : $("#dateEnd").val()
  13540. },
  13541. "type" : "POST",
  13542. "dataType" : "json",
  13543. "success" : function(data) {
  13544. if(data != null && data != ""){
  13545. if ( data.status =="success"){
  13546. getfp();
  13547. alert("获取成功!");
  13548. }else {
  13549. alert(data.status);
  13550. }
  13551. }else {
  13552. alert("获取失败!");
  13553. }
  13554. },
  13555. "complete": function(){
  13556. layer.close(tip);
  13557. }
  13558. });
  13559. }else {
  13560. alert("请选择日期!");
  13561. }
  13562. },
  13563. "set" : function(){
  13564. if ( $("#fpid option:selected").text() !=""){
  13565. var tip = layer.load(2);
  13566. var gitem = $("#form1").serialize();
  13567. var jrjc;
  13568. if ($("#jrjc").prop('checked') == true){
  13569. jrjc = $("#departmentId").val();
  13570. }else {
  13571. jrjc ='N'
  13572. }
  13573. var url = "saverk.do";
  13574. $.ajax({
  13575. "url" : url,
  13576. "data" : {
  13577. "gitem" : gitem,
  13578. "jrjc" : jrjc
  13579. },
  13580. "type" : "POST",
  13581. "dataType" : "json",
  13582. "async" : true,
  13583. "success" : function(data) {
  13584. if(data.status ="success"){
  13585. alert("入库成功!");
  13586. window.location.reload();
  13587. }else {
  13588. alert(msg);
  13589. }
  13590. },
  13591. "error": function(){
  13592. alert("确认失败!");
  13593. },
  13594. "complete": function(){
  13595. layer.close(tip);
  13596. }
  13597. });
  13598. }else {
  13599. alert("请选择发票!");
  13600. }
  13601. }
  13602. }
  13603. function getfp(){
  13604. var tip = layer.load(2);
  13605. var url = "getgyfp.do";
  13606. $.ajax({
  13607. "url" : url,
  13608. "type" : "POST",
  13609. "dataType" : "json",
  13610. "async" : true,
  13611. "success" : function(data) {
  13612. if(data != null && data != ""){
  13613. $("#fpid").empty();
  13614. $("#fpid").append("_$tag_____________$tag____");
  13615. for(var i = 0; i < data.length; i++){
  13616. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13617. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13618. }
  13619. }
  13620. },
  13621. "error" : function(msg){
  13622. },
  13623. "complete": function(){
  13624. layer.close(tip);
  13625. }
  13626. });
  13627. }
  13628. $("#fpid").change(function(){
  13629. var tip = layer.load(2);
  13630. var url = "getgyrkxx.do";
  13631. $.ajax({
  13632. "url" : url,
  13633. "data" : {
  13634. "fpId" : $("#fpid").val()
  13635. },
  13636. "type" : "POST",
  13637. "dataType" : "json",
  13638. "async" : true,
  13639. "success" : function(data) {
  13640. $("#dataTable").html("");
  13641. if(data != null && data != ""){
  13642. var html = "";
  13643. for(var i = 0; i < data.length; i++){
  13644. var ID = data[i].id == null ? "" : data[i].id;
  13645. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13646. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13647. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13648. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13649. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13650. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13651. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13652. var NAME = data[i].name == null ? "" : data[i].name;
  13653. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13654. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13655. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13656. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13657. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13658. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13659. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13660. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13661. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13662. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13663. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13664. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13665. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13666. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13667. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13668. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13669. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13670. var invoice_type_cn =null;
  13671. if (invoice_type =="00" ){
  13672. invoice_type_cn="销售发票";
  13673. }else if (invoice_type == "01") {
  13674. invoice_type_cn="更正(对冲)发票";
  13675. }else if (invoice_type == "02") {
  13676. invoice_type_cn="其它类型发票";
  13677. }
  13678. html += "_$ta";
  13679. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13680. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13681. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13682. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13683. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13684. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13685. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13686. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13687. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13688. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13689. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13690. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13691. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13692. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13693. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13694. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13695. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13696. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13697. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13698. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13699. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13700. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13701. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13702. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13703. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13704. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13705. html += "_$tag";
  13706. }
  13707. $("#dataTable").html(html);
  13708. }else {
  13709. $("#dataTable").html("");
  13710. }
  13711. },
  13712. "error" : function(msg){
  13713. },
  13714. "complete": function(){
  13715. layer.close(tip);
  13716. }
  13717. });
  13718. });
  13719. Date.prototype.Format = function (fmt) {
  13720. var o = {
  13721. "M+": this.getMonth() + 1, //月份
  13722. "d+": this.getDate(), //日
  13723. "h+": this.getHours(), //小时
  13724. "m+": this.getMinutes(), //分
  13725. "s+": this.getSeconds(), //秒
  13726. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13727. "S": this.getMilliseconds() //毫秒
  13728. };
  13729. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13730. for (var k in o)
  13731. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13732. return fmt;
  13733. }
  13734. $("#jrjc").change(function() {
  13735. if ($("#jrjc").prop('checked') == true){
  13736. $("#departmentId").removeAttr("disabled");
  13737. }else {
  13738. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13739. }
  13740. });
  13741. ----------------------------------- SOURCE END -------------------------------------
  13742. !STACK 0
  13743. java.lang.NullPointerException
  13744. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:33.018
  13745. !MESSAGE Error while processing working copy
  13746. !STACK 1
  13747. JavaScript Model Exception: java.lang.NullPointerException
  13748. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13749. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13750. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13751. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13752. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13753. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13754. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13755. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13756. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13757. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13758. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13759. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13760. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13761. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13762. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13763. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13764. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13765. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13766. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13767. Caused by: java.lang.NullPointerException
  13768. Caused by: java.lang.NullPointerException
  13769. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:23:33.019
  13770. !MESSAGE java.lang.NullPointerException
  13771. !STACK 0
  13772. java.lang.NullPointerException
  13773. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:33.656
  13774. !MESSAGE Exception occurred during problem detection:
  13775. ----------------------------------- SOURCE BEGIN -------------------------------------
  13776. (function(){WdatePicker();})();
  13777. (function(){WdatePicker();})();
  13778. (function(){Data.get();})();
  13779. (function(){Data.set();})();
  13780. (function(){search();})();
  13781. $(function(){
  13782. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13783. getfp();
  13784. });
  13785. var Data = {
  13786. "get" : function(){
  13787. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13788. var tip = layer.load(2);
  13789. var result="";
  13790. var url = "getgyxml.do";
  13791. $.ajax({
  13792. "url" : url,
  13793. "data" : {
  13794. "start_date" : $("#dateBegin").val(),
  13795. "end_date" : $("#dateEnd").val()
  13796. },
  13797. "type" : "POST",
  13798. "dataType" : "json",
  13799. "success" : function(data) {
  13800. if(data != null && data != ""){
  13801. if ( data.status =="success"){
  13802. getfp();
  13803. alert("获取成功!");
  13804. }else {
  13805. alert(data.status);
  13806. }
  13807. }else {
  13808. alert("获取失败!");
  13809. }
  13810. },
  13811. "complete": function(){
  13812. layer.close(tip);
  13813. }
  13814. });
  13815. }else {
  13816. alert("请选择日期!");
  13817. }
  13818. },
  13819. "set" : function(){
  13820. if ( $("#fpid option:selected").text() !=""){
  13821. var tip = layer.load(2);
  13822. var gitem = $("#form1").serialize();
  13823. var jrjc;
  13824. if ($("#jrjc").prop('checked') == true){
  13825. jrjc = $("#departmentId").val();
  13826. }else {
  13827. jrjc ='N'
  13828. }
  13829. var url = "saverk.do";
  13830. $.ajax({
  13831. "url" : url,
  13832. "data" : {
  13833. "gitem" : gitem,
  13834. "jrjc" : jrjc
  13835. },
  13836. "type" : "POST",
  13837. "dataType" : "json",
  13838. "async" : true,
  13839. "success" : function(data) {
  13840. if(data.status ="success"){
  13841. alert("入库成功!");
  13842. window.location.reload();
  13843. }else {
  13844. alert(msg);
  13845. }
  13846. },
  13847. "error": function(){
  13848. alert("确认失败!");
  13849. },
  13850. "complete": function(){
  13851. layer.close(tip);
  13852. }
  13853. });
  13854. }else {
  13855. alert("请选择发票!");
  13856. }
  13857. }
  13858. }
  13859. function getfp(){
  13860. var tip = layer.load(2);
  13861. var url = "getgyfp.do";
  13862. $.ajax({
  13863. "url" : url,
  13864. "type" : "POST",
  13865. "dataType" : "json",
  13866. "async" : true,
  13867. "success" : function(data) {
  13868. if(data != null && data != ""){
  13869. $("#fpid").empty();
  13870. $("#fpid").append("_$tag_____________$tag____");
  13871. for(var i = 0; i < data.length; i++){
  13872. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13873. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13874. }
  13875. }
  13876. },
  13877. "error" : function(msg){
  13878. },
  13879. "complete": function(){
  13880. layer.close(tip);
  13881. }
  13882. });
  13883. }
  13884. $("#fpid").change(function(){
  13885. var tip = layer.load(2);
  13886. var url = "getgyrkxx.do";
  13887. $.ajax({
  13888. "url" : url,
  13889. "data" : {
  13890. "fpId" : $("#fpid").val()
  13891. },
  13892. "type" : "POST",
  13893. "dataType" : "json",
  13894. "async" : true,
  13895. "success" : function(data) {
  13896. $("#dataTable").html("");
  13897. if(data != null && data != ""){
  13898. var html = "";
  13899. for(var i = 0; i < data.length; i++){
  13900. var ID = data[i].id == null ? "" : data[i].id;
  13901. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13902. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13903. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13904. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13905. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13906. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13907. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13908. var NAME = data[i].name == null ? "" : data[i].name;
  13909. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13910. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13911. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13912. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13913. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13914. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13915. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13916. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13917. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13918. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13919. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13920. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13921. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13922. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13923. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13924. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13925. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13926. var invoice_type_cn =null;
  13927. if (invoice_type =="00" ){
  13928. invoice_type_cn="销售发票";
  13929. }else if (invoice_type == "01") {
  13930. invoice_type_cn="更正(对冲)发票";
  13931. }else if (invoice_type == "02") {
  13932. invoice_type_cn="其它类型发票";
  13933. }
  13934. html += "_$ta";
  13935. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13936. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13937. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13938. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13939. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13940. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13941. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13942. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13943. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13944. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13945. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13946. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13947. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13948. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13949. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13950. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13951. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13952. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13953. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13954. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13955. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13956. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13957. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13958. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13959. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13960. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13961. html += "_$tag";
  13962. }
  13963. $("#dataTable").html(html);
  13964. }else {
  13965. $("#dataTable").html("");
  13966. }
  13967. },
  13968. "error" : function(msg){
  13969. },
  13970. "complete": function(){
  13971. layer.close(tip);
  13972. }
  13973. });
  13974. });
  13975. Date.prototype.Format = function (fmt) {
  13976. var o = {
  13977. "M+": this.getMonth() + 1, //月份
  13978. "d+": this.getDate(), //日
  13979. "h+": this.getHours(), //小时
  13980. "m+": this.getMinutes(), //分
  13981. "s+": this.getSeconds(), //秒
  13982. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13983. "S": this.getMilliseconds() //毫秒
  13984. };
  13985. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13986. for (var k in o)
  13987. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13988. return fmt;
  13989. }
  13990. $("#jrjc").change(function() {
  13991. if ($("#jrjc").prop('checked') == true){
  13992. $("#departmentId").removeAttr("disabled");
  13993. }else {
  13994. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13995. }
  13996. });
  13997. ----------------------------------- SOURCE END -------------------------------------
  13998. !STACK 0
  13999. java.lang.NullPointerException
  14000. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:23:35.143
  14001. !MESSAGE Exception occurred during problem detection:
  14002. ----------------------------------- SOURCE BEGIN -------------------------------------
  14003. (function(){WdatePicker();})();
  14004. (function(){WdatePicker();})();
  14005. (function(){Data.get();})();
  14006. (function(){Data.set();})();
  14007. (function(){search();})();
  14008. $(function(){
  14009. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14010. getfp();
  14011. });
  14012. var Data = {
  14013. "get" : function(){
  14014. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  14015. var tip = layer.load(2);
  14016. var result="";
  14017. var url = "getgyxml.do";
  14018. $.ajax({
  14019. "url" : url,
  14020. "data" : {
  14021. "start_date" : $("#dateBegin").val(),
  14022. "end_date" : $("#dateEnd").val()
  14023. },
  14024. "type" : "POST",
  14025. "dataType" : "json",
  14026. "success" : function(data) {
  14027. if(data != null && data != ""){
  14028. if ( data.status =="success"){
  14029. getfp();
  14030. alert("获取成功!");
  14031. }else {
  14032. alert(data.status);
  14033. }
  14034. }else {
  14035. alert("获取失败!");
  14036. }
  14037. },
  14038. "complete": function(){
  14039. layer.close(tip);
  14040. }
  14041. });
  14042. }else {
  14043. alert("请选择日期!");
  14044. }
  14045. },
  14046. "set" : function(){
  14047. if ( $("#fpid option:selected").text() !=""){
  14048. var tip = layer.load(2);
  14049. var gitem = $("#form1").serialize();
  14050. var jrjc;
  14051. if ($("#jrjc").prop('checked') == true){
  14052. jrjc = $("#departmentId").val();
  14053. }else {
  14054. jrjc ='N'
  14055. }
  14056. var url = "saverk.do";
  14057. $.ajax({
  14058. "url" : url,
  14059. "data" : {
  14060. "gitem" : gitem,
  14061. "jrjc" : jrjc
  14062. },
  14063. "type" : "POST",
  14064. "dataType" : "json",
  14065. "async" : true,
  14066. "success" : function(data) {
  14067. if(data.status ="success"){
  14068. alert("入库成功!");
  14069. window.location.reload();
  14070. }else {
  14071. alert(msg);
  14072. }
  14073. },
  14074. "error": function(){
  14075. alert("确认失败!");
  14076. },
  14077. "complete": function(){
  14078. layer.close(tip);
  14079. }
  14080. });
  14081. }else {
  14082. alert("请选择发票!");
  14083. }
  14084. }
  14085. }
  14086. function getfp(){
  14087. var tip = layer.load(2);
  14088. var url = "getgyfp.do";
  14089. $.ajax({
  14090. "url" : url,
  14091. "type" : "POST",
  14092. "dataType" : "json",
  14093. "async" : true,
  14094. "success" : function(data) {
  14095. if(data != null && data != ""){
  14096. $("#fpid").empty();
  14097. $("#fpid").append("_$tag_____________$tag____");
  14098. for(var i = 0; i < data.length; i++){
  14099. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  14100. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  14101. }
  14102. }
  14103. },
  14104. "error" : function(msg){
  14105. },
  14106. "complete": function(){
  14107. layer.close(tip);
  14108. }
  14109. });
  14110. }
  14111. $("#fpid").change(function(){
  14112. var tip = layer.load(2);
  14113. var url = "getgyrkxx.do";
  14114. $.ajax({
  14115. "url" : url,
  14116. "data" : {
  14117. "fpId" : $("#fpid").val()
  14118. },
  14119. "type" : "POST",
  14120. "dataType" : "json",
  14121. "async" : true,
  14122. "success" : function(data) {
  14123. $("#dataTable").html("");
  14124. if(data != null && data != ""){
  14125. var html = "";
  14126. for(var i = 0; i < data.length; i++){
  14127. var ID = data[i].id == null ? "" : data[i].id;
  14128. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  14129. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  14130. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  14131. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  14132. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  14133. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  14134. var GOODS = data[i].goods == null ? "" : data[i].goods;
  14135. var NAME = data[i].name == null ? "" : data[i].name;
  14136. var SPEC = data[i].spec == null ? "" : data[i].spec;
  14137. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  14138. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  14139. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  14140. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  14141. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  14142. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  14143. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  14144. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  14145. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  14146. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  14147. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  14148. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  14149. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  14150. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  14151. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  14152. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  14153. var invoice_type_cn =null;
  14154. if (invoice_type =="00" ){
  14155. invoice_type_cn="销售发票";
  14156. }else if (invoice_type == "01") {
  14157. invoice_type_cn="更正(对冲)发票";
  14158. }else if (invoice_type == "02") {
  14159. invoice_type_cn="其它类型发票";
  14160. }
  14161. html += "_$ta";
  14162. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  14163. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14164. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14165. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14166. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14167. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14168. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14169. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14170. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14171. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14172. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  14173. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14174. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14175. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  14176. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  14177. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  14178. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14179. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14180. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14181. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14182. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  14183. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14184. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  14185. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  14186. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14187. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  14188. html += "_$tag";
  14189. }
  14190. $("#dataTable").html(html);
  14191. }else {
  14192. $("#dataTable").html("");
  14193. }
  14194. },
  14195. "error" : function(msg){
  14196. },
  14197. "complete": function(){
  14198. layer.close(tip);
  14199. }
  14200. });
  14201. });
  14202. Date.prototype.Format = function (fmt) {
  14203. var o = {
  14204. "M+": this.getMonth() + 1, //月份
  14205. "d+": this.getDate(), //日
  14206. "h+": this.getHours(), //小时
  14207. "m+": this.getMinutes(), //分
  14208. "s+": this.getSeconds(), //秒
  14209. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  14210. "S": this.getMilliseconds() //毫秒
  14211. };
  14212. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  14213. for (var k in o)
  14214. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  14215. return fmt;
  14216. }
  14217. $("#jrjc").change(function() {
  14218. if ($("#jrjc").prop('checked') == true){
  14219. $("#departmentId").removeAttr("disabled");
  14220. }else {
  14221. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14222. }
  14223. });
  14224. ----------------------------------- SOURCE END -------------------------------------
  14225. !STACK 0
  14226. java.lang.NullPointerException