.bak_1.log 991 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873
  1. !SESSION 2018-10-31 14:12:29.335 -----------------------------------------------
  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_0.log
  9. Created Time: 2018-10-31 14:17:57.819
  10. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:17:57.820
  11. !MESSAGE Exception occurred during problem detection:
  12. ----------------------------------- SOURCE BEGIN -------------------------------------
  13. (function(){WdatePicker();})();
  14. (function(){WdatePicker();})();
  15. (function(){Data.get();})();
  16. (function(){Data.set();})();
  17. (function(){search();})();
  18. $(function(){
  19. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  20. getfp();
  21. });
  22. var Data = {
  23. "get" : function(){
  24. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  25. var tip = layer.load(2);
  26. var result="";
  27. var url = "getgyxml.do";
  28. $.ajax({
  29. "url" : url,
  30. "data" : {
  31. "start_date" : $("#dateBegin").val(),
  32. "end_date" : $("#dateEnd").val()
  33. },
  34. "type" : "POST",
  35. "dataType" : "json",
  36. "success" : function(data) {
  37. if(data != null && data != ""){
  38. if ( data.status =="success"){
  39. getfp();
  40. alert("获取成功!");
  41. }else {
  42. alert(data.status);
  43. }
  44. }else {
  45. alert("获取失败!");
  46. }
  47. },
  48. "complete": function(){
  49. layer.close(tip);
  50. }
  51. });
  52. }else {
  53. alert("请选择日期!");
  54. }
  55. },
  56. "set" : function(){
  57. if ( $("#fpid option:selected").text() !=""){
  58. var tip = layer.load(2);
  59. var gitem = $("#form1").serialize();
  60. var jrjc;
  61. if ($("#jrjc").prop('checked') == true){
  62. jrjc = $("#departmentId").val();
  63. }else {
  64. jrjc ='N'
  65. }
  66. var url = "saverk.do";
  67. $.ajax({
  68. "url" : url,
  69. "data" : {
  70. "gitem" : gitem,
  71. "jrjc" : jrjc
  72. },
  73. "type" : "POST",
  74. "dataType" : "json",
  75. "async" : true,
  76. "success" : function(data) {
  77. if(data.status =="success"){
  78. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  79. alert("入库成功!\n入库单号:"+data.rkdh+"");
  80. }else {
  81. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  82. }
  83. window.location.reload();
  84. }else {
  85. alert(data.status);
  86. }
  87. },
  88. "error": function(){
  89. alert("确认失败!");
  90. },
  91. "complete": function(){
  92. layer.close(tip);
  93. }
  94. });
  95. }else {
  96. alert("请选择发票!");
  97. }
  98. }
  99. }
  100. function getfp(){
  101. var tip = layer.load(2);
  102. var url = "getgyfp.do";
  103. $.ajax({
  104. "url" : url,
  105. "type" : "POST",
  106. "dataType" : "json",
  107. "async" : true,
  108. "success" : function(data) {
  109. if(data != null && data != ""){
  110. $("#fpid").empty();
  111. $("#fpid").append("_$tag_____________$tag____");
  112. for(var i = 0; i < data.length; i++){
  113. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  114. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  115. }
  116. }
  117. },
  118. "error" : function(msg){
  119. },
  120. "complete": function(){
  121. layer.close(tip);
  122. }
  123. });
  124. }
  125. $("#fpid").change(function(){
  126. var tip = layer.load(2);
  127. var url = "getgyrkxx.do";
  128. var sum_total=0;
  129. $.ajax({
  130. "url" : url,
  131. "data" : {
  132. "fpId" : $("#fpid").val()
  133. },
  134. "type" : "POST",
  135. "dataType" : "json",
  136. "async" : true,
  137. "success" : function(data) {
  138. $("#dataTable").html("");
  139. if(data != null && data != ""){
  140. var html = "";
  141. for(var i = 0; i < data.length; i++){
  142. var ID = data[i].id == null ? "" : data[i].id;
  143. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  144. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  145. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  146. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  147. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  148. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  149. var GOODS = data[i].goods == null ? "" : data[i].goods;
  150. var NAME = data[i].name == null ? "" : data[i].name;
  151. var SPEC = data[i].spec == null ? "" : data[i].spec;
  152. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  153. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  154. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  155. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  156. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  157. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  158. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  159. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  160. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  161. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  162. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  163. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  164. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  165. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  166. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  167. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  168. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  169. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  170. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  171. sum_total = sum_total + DSUMVALUE
  172. var invoice_type_cn =null;
  173. if (invoice_type =="00" ){
  174. invoice_type_cn="销售发票";
  175. }else if (invoice_type == "01") {
  176. invoice_type_cn="更正(对冲)发票";
  177. }else if (invoice_type == "02") {
  178. invoice_type_cn="其它类型发票";
  179. }
  180. html += "_$ta";
  181. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  182. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  183. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  184. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  185. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  186. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  187. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  188. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  189. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  190. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  191. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  192. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  193. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  194. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  195. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  196. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  197. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  198. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  199. html += "_$tag";
  200. }
  201. html += "_$ta";
  202. html += "_$tag_____________$tag____________________________________________________________________$tag";
  203. html += "_$tag_____________$tag____________________________________________________________________$tag";
  204. html += "_$tag_____________$tag____________________________________________________________________$tag";
  205. html += "_$tag_____________$tag____________________________________________________________________$tag";
  206. html += "_$tag_____________$tag_合计:_$tag___$tag";
  207. html += "_$tag_____________$tag_"+sum_total+"_$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";
  221. $("#dataTable").html(html);
  222. }else {
  223. $("#dataTable").html("");
  224. }
  225. },
  226. "error" : function(msg){
  227. },
  228. "complete": function(){
  229. layer.close(tip);
  230. }
  231. });
  232. });
  233. Date.prototype.Format = function (fmt) {
  234. var o = {
  235. "M+": this.getMonth() + 1, //月份
  236. "d+": this.getDate(), //日
  237. "h+": this.getHours(), //小时
  238. "m+": this.getMinutes(), //分
  239. "s+": this.getSeconds(), //秒
  240. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  241. "S": this.getMilliseconds() //毫秒
  242. };
  243. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  244. for (var k in o)
  245. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  246. return fmt;
  247. }
  248. $("#jrjc").change(function() {
  249. if ($("#jrjc").prop('checked') == true){
  250. $("#departmentId").removeAttr("disabled");
  251. }else {
  252. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  253. }
  254. });
  255. ----------------------------------- SOURCE END -------------------------------------
  256. !STACK 0
  257. java.lang.NullPointerException
  258. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  259. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  260. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  261. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  262. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  263. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  264. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  265. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  266. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  267. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  268. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  269. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  270. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  271. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  272. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  273. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  274. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  275. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  276. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  277. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  278. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  279. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  280. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  281. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  282. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  283. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  284. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  285. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  286. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  287. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  288. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  289. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  290. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  291. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  292. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  293. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  294. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  295. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  296. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  297. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  298. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  299. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  300. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  301. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  302. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  303. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  304. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  305. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  306. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  307. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  308. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  309. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  310. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  311. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  312. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  313. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  314. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  315. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  316. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  317. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  318. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  319. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  320. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  321. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  322. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  323. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  324. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  325. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  326. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  327. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:1108)
  328. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:945)
  329. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:416)
  330. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:785)
  331. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  332. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  333. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  334. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  335. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  336. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  337. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:17:59.173
  338. !MESSAGE Exception occurred during problem detection:
  339. ----------------------------------- SOURCE BEGIN -------------------------------------
  340. (function(){WdatePicker();})();
  341. (function(){WdatePicker();})();
  342. (function(){Data.get();})();
  343. (function(){Data.set();})();
  344. (function(){search();})();
  345. $(function(){
  346. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  347. getfp();
  348. });
  349. var Data = {
  350. "get" : function(){
  351. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  352. var tip = layer.load(2);
  353. var result="";
  354. var url = "getgyxml.do";
  355. $.ajax({
  356. "url" : url,
  357. "data" : {
  358. "start_date" : $("#dateBegin").val(),
  359. "end_date" : $("#dateEnd").val()
  360. },
  361. "type" : "POST",
  362. "dataType" : "json",
  363. "success" : function(data) {
  364. if(data != null && data != ""){
  365. if ( data.status =="success"){
  366. getfp();
  367. alert("获取成功!");
  368. }else {
  369. alert(data.status);
  370. }
  371. }else {
  372. alert("获取失败!");
  373. }
  374. },
  375. "complete": function(){
  376. layer.close(tip);
  377. }
  378. });
  379. }else {
  380. alert("请选择日期!");
  381. }
  382. },
  383. "set" : function(){
  384. if ( $("#fpid option:selected").text() !=""){
  385. var tip = layer.load(2);
  386. var gitem = $("#form1").serialize();
  387. var jrjc;
  388. if ($("#jrjc").prop('checked') == true){
  389. jrjc = $("#departmentId").val();
  390. }else {
  391. jrjc ='N'
  392. }
  393. var url = "saverk.do";
  394. $.ajax({
  395. "url" : url,
  396. "data" : {
  397. "gitem" : gitem,
  398. "jrjc" : jrjc
  399. },
  400. "type" : "POST",
  401. "dataType" : "json",
  402. "async" : true,
  403. "success" : function(data) {
  404. if(data.status =="success"){
  405. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  406. alert("入库成功!\n入库单号:"+data.rkdh+"");
  407. }else {
  408. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  409. }
  410. window.location.reload();
  411. }else {
  412. alert(data.status);
  413. }
  414. },
  415. "error": function(){
  416. alert("确认失败!");
  417. },
  418. "complete": function(){
  419. layer.close(tip);
  420. }
  421. });
  422. }else {
  423. alert("请选择发票!");
  424. }
  425. }
  426. }
  427. function getfp(){
  428. var tip = layer.load(2);
  429. var url = "getgyfp.do";
  430. $.ajax({
  431. "url" : url,
  432. "type" : "POST",
  433. "dataType" : "json",
  434. "async" : true,
  435. "success" : function(data) {
  436. if(data != null && data != ""){
  437. $("#fpid").empty();
  438. $("#fpid").append("_$tag_____________$tag____");
  439. for(var i = 0; i < data.length; i++){
  440. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  441. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  442. }
  443. }
  444. },
  445. "error" : function(msg){
  446. },
  447. "complete": function(){
  448. layer.close(tip);
  449. }
  450. });
  451. }
  452. $("#fpid").change(function(){
  453. var tip = layer.load(2);
  454. var url = "getgyrkxx.do";
  455. var sum_total=0;
  456. $.ajax({
  457. "url" : url,
  458. "data" : {
  459. "fpId" : $("#fpid").val()
  460. },
  461. "type" : "POST",
  462. "dataType" : "json",
  463. "async" : true,
  464. "success" : function(data) {
  465. $("#dataTable").html("");
  466. if(data != null && data != ""){
  467. var html = "";
  468. for(var i = 0; i < data.length; i++){
  469. var ID = data[i].id == null ? "" : data[i].id;
  470. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  471. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  472. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  473. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  474. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  475. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  476. var GOODS = data[i].goods == null ? "" : data[i].goods;
  477. var NAME = data[i].name == null ? "" : data[i].name;
  478. var SPEC = data[i].spec == null ? "" : data[i].spec;
  479. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  480. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  481. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  482. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  483. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  484. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  485. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  486. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  487. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  488. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  489. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  490. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  491. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  492. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  493. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  494. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  495. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  496. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  497. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  498. sum_total = sum_total + DSUMVALUE
  499. var invoice_type_cn =null;
  500. if (invoice_type =="00" ){
  501. invoice_type_cn="销售发票";
  502. }else if (invoice_type == "01") {
  503. invoice_type_cn="更正(对冲)发票";
  504. }else if (invoice_type == "02") {
  505. invoice_type_cn="其它类型发票";
  506. }
  507. html += "_$ta";
  508. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  509. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  510. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  511. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  512. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  513. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  514. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  515. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  516. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  517. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  518. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  519. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  520. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  521. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  522. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  523. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  524. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  525. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  526. html += "_$tag";
  527. }
  528. html += "_$ta";
  529. html += "_$tag_____________$tag____________________________________________________________________$tag";
  530. html += "_$tag_____________$tag____________________________________________________________________$tag";
  531. html += "_$tag_____________$tag____________________________________________________________________$tag";
  532. html += "_$tag_____________$tag____________________________________________________________________$tag";
  533. html += "_$tag_____________$tag_合计:_$tag___$tag";
  534. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  535. html += "_$tag_____________$tag____________________________________________________________________$tag";
  536. html += "_$tag_____________$tag____________________________________________________________________$tag";
  537. html += "_$tag_____________$tag____________________________________________________________________$tag";
  538. html += "_$tag_____________$tag____________________________________________________________________$tag";
  539. html += "_$tag_____________$tag____________________________________________________________________$tag";
  540. html += "_$tag_____________$tag____________________________________________________________________$tag";
  541. html += "_$tag_____________$tag____________________________________________________________________$tag";
  542. html += "_$tag_____________$tag____________________________________________________________________$tag";
  543. html += "_$tag_____________$tag____________________________________________________________________$tag";
  544. html += "_$tag_____________$tag____________________________________________________________________$tag";
  545. html += "_$tag_____________$tag____________________________________________________________________$tag";
  546. html += "_$tag_____________$tag____________________________________________________________________$tag";
  547. html += "_$tag";
  548. $("#dataTable").html(html);
  549. }else {
  550. $("#dataTable").html("");
  551. }
  552. },
  553. "error" : function(msg){
  554. },
  555. "complete": function(){
  556. layer.close(tip);
  557. }
  558. });
  559. });
  560. Date.prototype.Format = function (fmt) {
  561. var o = {
  562. "M+": this.getMonth() + 1, //月份
  563. "d+": this.getDate(), //日
  564. "h+": this.getHours(), //小时
  565. "m+": this.getMinutes(), //分
  566. "s+": this.getSeconds(), //秒
  567. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  568. "S": this.getMilliseconds() //毫秒
  569. };
  570. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  571. for (var k in o)
  572. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  573. return fmt;
  574. }
  575. $("#jrjc").change(function() {
  576. if ($("#jrjc").prop('checked') == true){
  577. $("#departmentId").removeAttr("disabled");
  578. }else {
  579. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  580. }
  581. });
  582. ----------------------------------- SOURCE END -------------------------------------
  583. !STACK 0
  584. java.lang.NullPointerException
  585. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  586. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  587. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  588. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  589. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  590. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  591. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  592. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  593. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  594. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  595. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  596. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  597. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  598. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  599. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  600. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  601. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  602. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  603. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  604. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  605. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  606. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  607. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  608. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  609. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  610. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  611. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  612. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  613. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  614. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  615. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  616. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  617. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  618. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  619. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  620. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  621. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  622. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  623. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  624. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  625. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  626. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  627. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  628. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  629. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  630. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  631. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  632. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  633. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  634. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  635. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  636. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  637. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  638. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  639. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  640. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  641. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  642. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  643. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  644. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  645. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  646. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  647. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  648. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  649. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  650. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  651. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  652. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  653. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  654. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  655. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  656. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  657. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  658. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  659. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  660. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  661. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  662. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  663. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  664. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  665. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  666. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  667. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:17:59.174
  668. !MESSAGE Error while processing working copy
  669. !STACK 1
  670. JavaScript Model Exception: java.lang.NullPointerException
  671. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  672. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  673. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  674. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  675. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  676. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  677. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  678. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  679. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  680. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  681. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  682. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  683. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  684. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  685. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  686. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  687. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  688. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  689. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  690. Caused by: java.lang.NullPointerException
  691. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  692. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  693. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  694. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  695. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  696. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  697. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  698. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  699. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  700. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  701. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  702. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  703. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  704. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  705. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  706. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  707. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  708. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  709. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  710. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  711. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  712. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  713. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  714. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  715. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  716. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  717. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  718. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  719. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  720. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  721. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  722. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  723. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  724. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  725. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  726. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  727. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  728. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  729. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  730. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  731. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  732. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  733. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  734. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  735. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  736. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  737. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  738. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  739. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  740. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  741. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  742. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  743. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  744. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  745. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  746. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  747. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  748. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  749. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  750. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  751. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  752. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  753. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  754. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  755. ... 18 more
  756. Caused by: java.lang.NullPointerException
  757. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  758. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  759. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  760. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  761. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  762. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  763. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  764. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  765. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  766. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  767. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  768. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  769. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  770. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  771. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  772. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  773. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  774. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  775. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  776. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  777. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  778. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  779. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  780. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  781. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  782. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  783. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  784. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  785. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  786. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  787. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  788. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  789. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  790. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  791. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  792. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  793. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  794. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  795. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  796. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  797. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  798. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  799. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  800. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  801. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  802. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  803. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  804. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  805. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  806. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  807. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  808. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  809. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  810. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  811. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  812. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  813. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  814. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  815. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  816. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  817. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  818. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  819. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  820. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  821. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  822. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  823. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  824. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  825. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  826. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  827. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  828. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  829. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  830. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  831. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  832. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  833. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  834. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  835. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  836. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  837. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  838. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  839. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:17:59.174
  840. !MESSAGE java.lang.NullPointerException
  841. !STACK 0
  842. java.lang.NullPointerException
  843. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  844. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  845. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  846. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  847. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  848. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  849. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  850. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  851. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  852. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  853. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  854. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  855. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  856. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  857. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  858. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  859. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  860. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  861. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  862. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  863. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  864. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  865. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  866. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  867. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  868. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  869. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  870. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  871. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  872. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  873. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  874. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  875. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  876. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  877. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  878. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  879. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  880. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  881. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  882. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  883. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  884. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  885. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  886. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  887. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  888. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  889. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  890. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  891. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  892. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  893. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  894. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  895. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  896. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  897. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  898. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  899. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  900. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  901. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  902. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  903. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  904. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  905. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  906. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  907. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  908. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  909. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  910. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  911. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  912. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  913. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  914. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  915. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  916. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  917. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  918. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  919. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  920. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  921. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  922. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  923. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  924. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  925. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:00.436
  926. !MESSAGE Exception occurred during problem detection:
  927. ----------------------------------- SOURCE BEGIN -------------------------------------
  928. (function(){WdatePicker();})();
  929. (function(){WdatePicker();})();
  930. (function(){Data.get();})();
  931. (function(){Data.set();})();
  932. (function(){search();})();
  933. $(function(){
  934. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  935. getfp();
  936. });
  937. var Data = {
  938. "get" : function(){
  939. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  940. var tip = layer.load(2);
  941. var result="";
  942. var url = "getgyxml.do";
  943. $.ajax({
  944. "url" : url,
  945. "data" : {
  946. "start_date" : $("#dateBegin").val(),
  947. "end_date" : $("#dateEnd").val()
  948. },
  949. "type" : "POST",
  950. "dataType" : "json",
  951. "success" : function(data) {
  952. if(data != null && data != ""){
  953. if ( data.status =="success"){
  954. getfp();
  955. alert("获取成功!");
  956. }else {
  957. alert(data.status);
  958. }
  959. }else {
  960. alert("获取失败!");
  961. }
  962. },
  963. "complete": function(){
  964. layer.close(tip);
  965. }
  966. });
  967. }else {
  968. alert("请选择日期!");
  969. }
  970. },
  971. "set" : function(){
  972. if ( $("#fpid option:selected").text() !=""){
  973. var tip = layer.load(2);
  974. var gitem = $("#form1").serialize();
  975. var jrjc;
  976. if ($("#jrjc").prop('checked') == true){
  977. jrjc = $("#departmentId").val();
  978. }else {
  979. jrjc ='N'
  980. }
  981. var url = "saverk.do";
  982. $.ajax({
  983. "url" : url,
  984. "data" : {
  985. "gitem" : gitem,
  986. "jrjc" : jrjc
  987. },
  988. "type" : "POST",
  989. "dataType" : "json",
  990. "async" : true,
  991. "success" : function(data) {
  992. if(data.status =="success"){
  993. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  994. alert("入库成功!\n入库单号:"+data.rkdh+"");
  995. }else {
  996. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  997. }
  998. window.location.reload();
  999. }else {
  1000. alert(data.status);
  1001. }
  1002. },
  1003. "error": function(){
  1004. alert("确认失败!");
  1005. },
  1006. "complete": function(){
  1007. layer.close(tip);
  1008. }
  1009. });
  1010. }else {
  1011. alert("请选择发票!");
  1012. }
  1013. }
  1014. }
  1015. function getfp(){
  1016. var tip = layer.load(2);
  1017. var url = "getgyfp.do";
  1018. $.ajax({
  1019. "url" : url,
  1020. "type" : "POST",
  1021. "dataType" : "json",
  1022. "async" : true,
  1023. "success" : function(data) {
  1024. if(data != null && data != ""){
  1025. $("#fpid").empty();
  1026. $("#fpid").append("_$tag_____________$tag____");
  1027. for(var i = 0; i < data.length; i++){
  1028. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1029. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1030. }
  1031. }
  1032. },
  1033. "error" : function(msg){
  1034. },
  1035. "complete": function(){
  1036. layer.close(tip);
  1037. }
  1038. });
  1039. }
  1040. $("#fpid").change(function(){
  1041. var tip = layer.load(2);
  1042. var url = "getgyrkxx.do";
  1043. var sum_total=0;
  1044. $.ajax({
  1045. "url" : url,
  1046. "data" : {
  1047. "fpId" : $("#fpid").val()
  1048. },
  1049. "type" : "POST",
  1050. "dataType" : "json",
  1051. "async" : true,
  1052. "success" : function(data) {
  1053. $("#dataTable").html("");
  1054. if(data != null && data != ""){
  1055. var html = "";
  1056. for(var i = 0; i < data.length; i++){
  1057. var ID = data[i].id == null ? "" : data[i].id;
  1058. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1059. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1060. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1061. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1062. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1063. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1064. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1065. var NAME = data[i].name == null ? "" : data[i].name;
  1066. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1067. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1068. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1069. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1070. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1071. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1072. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1073. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1074. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1075. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1076. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1077. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1078. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1079. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1080. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1081. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1082. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1083. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1084. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1085. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  1086. sum_total = sum_total + DSUMVALUE
  1087. var invoice_type_cn =null;
  1088. if (invoice_type =="00" ){
  1089. invoice_type_cn="销售发票";
  1090. }else if (invoice_type == "01") {
  1091. invoice_type_cn="更正(对冲)发票";
  1092. }else if (invoice_type == "02") {
  1093. invoice_type_cn="其它类型发票";
  1094. }
  1095. html += "_$ta";
  1096. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1097. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1098. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1099. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1100. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1101. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1102. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1103. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1104. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1105. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1106. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1107. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1108. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1109. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1110. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1111. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1112. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1113. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1114. html += "_$tag";
  1115. }
  1116. html += "_$ta";
  1117. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1118. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1119. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1120. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1121. html += "_$tag_____________$tag_合计:_$tag___$tag";
  1122. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  1123. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1124. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1125. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1126. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1127. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1128. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1129. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1130. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1131. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1132. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1133. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1134. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1135. html += "_$tag";
  1136. $("#dataTable").html(html);
  1137. }else {
  1138. $("#dataTable").html("");
  1139. }
  1140. },
  1141. "error" : function(msg){
  1142. },
  1143. "complete": function(){
  1144. layer.close(tip);
  1145. }
  1146. });
  1147. });
  1148. Date.prototype.Format = function (fmt) {
  1149. var o = {
  1150. "M+": this.getMonth() + 1, //月份
  1151. "d+": this.getDate(), //日
  1152. "h+": this.getHours(), //小时
  1153. "m+": this.getMinutes(), //分
  1154. "s+": this.getSeconds(), //秒
  1155. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1156. "S": this.getMilliseconds() //毫秒
  1157. };
  1158. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1159. for (var k in o)
  1160. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1161. return fmt;
  1162. }
  1163. $("#jrjc").change(function() {
  1164. if ($("#jrjc").prop('checked') == true){
  1165. $("#departmentId").removeAttr("disabled");
  1166. }else {
  1167. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1168. }
  1169. });
  1170. ----------------------------------- SOURCE END -------------------------------------
  1171. !STACK 0
  1172. java.lang.NullPointerException
  1173. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  1174. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  1175. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  1176. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  1177. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  1178. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  1179. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  1180. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  1181. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1182. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1183. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1184. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1185. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1186. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1187. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1188. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1189. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1190. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1191. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1192. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1193. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1194. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1195. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1196. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1197. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1198. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1199. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1200. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1201. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1202. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1203. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1204. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1205. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1206. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1207. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  1208. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1209. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1210. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1211. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1212. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1213. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1214. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  1215. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  1216. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  1217. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1218. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1219. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1220. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1221. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  1222. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1223. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1224. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1225. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1226. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1227. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1228. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1229. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1230. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  1231. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  1232. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  1233. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  1234. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  1235. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  1236. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  1237. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1238. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1239. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1240. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1241. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1242. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:1108)
  1243. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:945)
  1244. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:416)
  1245. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:785)
  1246. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1247. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1248. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1249. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1250. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1251. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1252. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:01.594
  1253. !MESSAGE Exception occurred during problem detection:
  1254. ----------------------------------- SOURCE BEGIN -------------------------------------
  1255. (function(){WdatePicker();})();
  1256. (function(){WdatePicker();})();
  1257. (function(){Data.get();})();
  1258. (function(){Data.set();})();
  1259. (function(){search();})();
  1260. $(function(){
  1261. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1262. getfp();
  1263. });
  1264. var Data = {
  1265. "get" : function(){
  1266. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1267. var tip = layer.load(2);
  1268. var result="";
  1269. var url = "getgyxml.do";
  1270. $.ajax({
  1271. "url" : url,
  1272. "data" : {
  1273. "start_date" : $("#dateBegin").val(),
  1274. "end_date" : $("#dateEnd").val()
  1275. },
  1276. "type" : "POST",
  1277. "dataType" : "json",
  1278. "success" : function(data) {
  1279. if(data != null && data != ""){
  1280. if ( data.status =="success"){
  1281. getfp();
  1282. alert("获取成功!");
  1283. }else {
  1284. alert(data.status);
  1285. }
  1286. }else {
  1287. alert("获取失败!");
  1288. }
  1289. },
  1290. "complete": function(){
  1291. layer.close(tip);
  1292. }
  1293. });
  1294. }else {
  1295. alert("请选择日期!");
  1296. }
  1297. },
  1298. "set" : function(){
  1299. if ( $("#fpid option:selected").text() !=""){
  1300. var tip = layer.load(2);
  1301. var gitem = $("#form1").serialize();
  1302. var jrjc;
  1303. if ($("#jrjc").prop('checked') == true){
  1304. jrjc = $("#departmentId").val();
  1305. }else {
  1306. jrjc ='N'
  1307. }
  1308. var url = "saverk.do";
  1309. $.ajax({
  1310. "url" : url,
  1311. "data" : {
  1312. "gitem" : gitem,
  1313. "jrjc" : jrjc
  1314. },
  1315. "type" : "POST",
  1316. "dataType" : "json",
  1317. "async" : true,
  1318. "success" : function(data) {
  1319. if(data.status =="success"){
  1320. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  1321. alert("入库成功!\n入库单号:"+data.rkdh+"");
  1322. }else {
  1323. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  1324. }
  1325. window.location.reload();
  1326. }else {
  1327. alert(data.status);
  1328. }
  1329. },
  1330. "error": function(){
  1331. alert("确认失败!");
  1332. },
  1333. "complete": function(){
  1334. layer.close(tip);
  1335. }
  1336. });
  1337. }else {
  1338. alert("请选择发票!");
  1339. }
  1340. }
  1341. }
  1342. function getfp(){
  1343. var tip = layer.load(2);
  1344. var url = "getgyfp.do";
  1345. $.ajax({
  1346. "url" : url,
  1347. "type" : "POST",
  1348. "dataType" : "json",
  1349. "async" : true,
  1350. "success" : function(data) {
  1351. if(data != null && data != ""){
  1352. $("#fpid").empty();
  1353. $("#fpid").append("_$tag_____________$tag____");
  1354. for(var i = 0; i < data.length; i++){
  1355. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1356. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1357. }
  1358. }
  1359. },
  1360. "error" : function(msg){
  1361. },
  1362. "complete": function(){
  1363. layer.close(tip);
  1364. }
  1365. });
  1366. }
  1367. $("#fpid").change(function(){
  1368. var tip = layer.load(2);
  1369. var url = "getgyrkxx.do";
  1370. var sum_total=0;
  1371. $.ajax({
  1372. "url" : url,
  1373. "data" : {
  1374. "fpId" : $("#fpid").val()
  1375. },
  1376. "type" : "POST",
  1377. "dataType" : "json",
  1378. "async" : true,
  1379. "success" : function(data) {
  1380. $("#dataTable").html("");
  1381. if(data != null && data != ""){
  1382. var html = "";
  1383. for(var i = 0; i < data.length; i++){
  1384. var ID = data[i].id == null ? "" : data[i].id;
  1385. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1386. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1387. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1388. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1389. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1390. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1391. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1392. var NAME = data[i].name == null ? "" : data[i].name;
  1393. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1394. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1395. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1396. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1397. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1398. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1399. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1400. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1401. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1402. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1403. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1404. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1405. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1406. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1407. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1408. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1409. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1410. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1411. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  1412. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  1413. sum_total = sum_total + DSUMVALUE
  1414. var invoice_type_cn =null;
  1415. if (invoice_type =="00" ){
  1416. invoice_type_cn="销售发票";
  1417. }else if (invoice_type == "01") {
  1418. invoice_type_cn="更正(对冲)发票";
  1419. }else if (invoice_type == "02") {
  1420. invoice_type_cn="其它类型发票";
  1421. }
  1422. html += "_$ta";
  1423. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1424. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1425. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1426. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1427. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1428. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  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";
  1442. }
  1443. html += "_$ta";
  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___$tag";
  1449. html += "_$tag_____________$tag_"+sum_total+"_$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_____________$tag____________________________________________________________________$tag";
  1456. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1457. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1458. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1459. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1460. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1461. html += "_$tag_____________$tag____________________________________________________________________$tag";
  1462. html += "_$tag";
  1463. $("#dataTable").html(html);
  1464. }else {
  1465. $("#dataTable").html("");
  1466. }
  1467. },
  1468. "error" : function(msg){
  1469. },
  1470. "complete": function(){
  1471. layer.close(tip);
  1472. }
  1473. });
  1474. });
  1475. Date.prototype.Format = function (fmt) {
  1476. var o = {
  1477. "M+": this.getMonth() + 1, //月份
  1478. "d+": this.getDate(), //日
  1479. "h+": this.getHours(), //小时
  1480. "m+": this.getMinutes(), //分
  1481. "s+": this.getSeconds(), //秒
  1482. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1483. "S": this.getMilliseconds() //毫秒
  1484. };
  1485. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1486. for (var k in o)
  1487. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1488. return fmt;
  1489. }
  1490. $("#jrjc").change(function() {
  1491. if ($("#jrjc").prop('checked') == true){
  1492. $("#departmentId").removeAttr("disabled");
  1493. }else {
  1494. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1495. }
  1496. });
  1497. ----------------------------------- SOURCE END -------------------------------------
  1498. !STACK 0
  1499. java.lang.NullPointerException
  1500. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  1501. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  1502. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  1503. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  1504. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  1505. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  1506. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  1507. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  1508. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1509. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1510. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1511. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1512. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1513. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1514. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1515. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1516. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1517. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1518. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1519. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1520. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1521. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1522. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1523. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1524. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1525. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1526. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1527. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1528. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1529. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1530. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1531. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1532. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1533. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1534. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  1535. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1536. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1537. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1538. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1539. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1540. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1541. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  1542. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  1543. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  1544. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1545. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1546. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1547. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1548. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  1549. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1550. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1551. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1552. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1553. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1554. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1555. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1556. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1557. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  1558. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  1559. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  1560. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  1561. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  1562. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  1563. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  1564. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1565. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1566. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1567. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1568. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1569. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1570. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1571. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1572. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1573. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1574. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1575. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1576. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1577. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1578. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1579. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1580. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1581. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1582. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:01.595
  1583. !MESSAGE Error while processing working copy
  1584. !STACK 1
  1585. JavaScript Model Exception: java.lang.NullPointerException
  1586. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1587. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1588. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1589. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1590. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1591. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1592. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1593. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1594. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1595. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1596. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1597. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1598. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1599. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1600. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1601. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1602. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1603. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1604. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1605. Caused by: java.lang.NullPointerException
  1606. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  1607. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  1608. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  1609. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  1610. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  1611. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  1612. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  1613. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  1614. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1615. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1616. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1617. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1618. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1619. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1620. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1621. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1622. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1623. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1624. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1625. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1626. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1627. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1628. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1629. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1630. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1631. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1632. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1633. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1634. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1635. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1636. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1637. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1638. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1639. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1640. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  1641. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1642. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1643. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1644. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1645. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1646. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1647. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  1648. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  1649. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  1650. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1651. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1652. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1653. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1654. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  1655. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1656. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1657. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1658. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1659. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1660. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1661. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1662. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1663. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  1664. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  1665. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  1666. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  1667. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  1668. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  1669. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  1670. ... 18 more
  1671. Caused by: java.lang.NullPointerException
  1672. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  1673. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  1674. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  1675. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  1676. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  1677. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  1678. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  1679. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  1680. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1681. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1682. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1683. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1684. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1685. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1686. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1687. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1688. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1689. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1690. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1691. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1692. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1693. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1694. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1695. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1696. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1697. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1698. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1699. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1700. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1701. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1702. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1703. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1704. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1705. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1706. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  1707. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1708. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1709. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1710. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1711. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1712. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1713. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  1714. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  1715. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  1716. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1717. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1718. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1719. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1720. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  1721. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1722. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1723. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1724. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1725. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1726. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1727. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1728. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1729. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  1730. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  1731. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  1732. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  1733. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  1734. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  1735. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  1736. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1737. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1738. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1739. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1740. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1741. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1742. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1743. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1744. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1745. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1746. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1747. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1748. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1749. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1750. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1751. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1752. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1753. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1754. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:01.595
  1755. !MESSAGE java.lang.NullPointerException
  1756. !STACK 0
  1757. java.lang.NullPointerException
  1758. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  1759. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  1760. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  1761. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  1762. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  1763. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  1764. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  1765. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  1766. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1767. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1768. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1769. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1770. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1771. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1772. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1773. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1774. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1775. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1776. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1777. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1778. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1779. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1780. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1781. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1782. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  1783. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  1784. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  1785. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  1786. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1787. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1788. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1789. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1790. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1791. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  1792. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  1793. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1794. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1795. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1796. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1797. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1798. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1799. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  1800. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  1801. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  1802. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1803. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1804. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  1805. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  1806. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  1807. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  1808. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  1809. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  1810. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  1811. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  1812. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  1813. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  1814. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  1815. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  1816. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  1817. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  1818. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  1819. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  1820. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  1821. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  1822. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1823. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1824. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1825. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1826. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1827. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1828. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1829. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1830. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1831. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1832. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1833. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1834. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1835. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1836. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1837. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1838. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1839. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1840. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:02.855
  1841. !MESSAGE Exception occurred during problem detection:
  1842. ----------------------------------- SOURCE BEGIN -------------------------------------
  1843. (function(){WdatePicker();})();
  1844. (function(){WdatePicker();})();
  1845. (function(){Data.get();})();
  1846. (function(){Data.set();})();
  1847. (function(){search();})();
  1848. $(function(){
  1849. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1850. getfp();
  1851. });
  1852. var Data = {
  1853. "get" : function(){
  1854. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1855. var tip = layer.load(2);
  1856. var result="";
  1857. var url = "getgyxml.do";
  1858. $.ajax({
  1859. "url" : url,
  1860. "data" : {
  1861. "start_date" : $("#dateBegin").val(),
  1862. "end_date" : $("#dateEnd").val()
  1863. },
  1864. "type" : "POST",
  1865. "dataType" : "json",
  1866. "success" : function(data) {
  1867. if(data != null && data != ""){
  1868. if ( data.status =="success"){
  1869. getfp();
  1870. alert("获取成功!");
  1871. }else {
  1872. alert(data.status);
  1873. }
  1874. }else {
  1875. alert("获取失败!");
  1876. }
  1877. },
  1878. "complete": function(){
  1879. layer.close(tip);
  1880. }
  1881. });
  1882. }else {
  1883. alert("请选择日期!");
  1884. }
  1885. },
  1886. "set" : function(){
  1887. if ( $("#fpid option:selected").text() !=""){
  1888. var tip = layer.load(2);
  1889. var gitem = $("#form1").serialize();
  1890. var jrjc;
  1891. if ($("#jrjc").prop('checked') == true){
  1892. jrjc = $("#departmentId").val();
  1893. }else {
  1894. jrjc ='N'
  1895. }
  1896. var url = "saverk.do";
  1897. $.ajax({
  1898. "url" : url,
  1899. "data" : {
  1900. "gitem" : gitem,
  1901. "jrjc" : jrjc
  1902. },
  1903. "type" : "POST",
  1904. "dataType" : "json",
  1905. "async" : true,
  1906. "success" : function(data) {
  1907. if(data.status =="success"){
  1908. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  1909. alert("入库成功!\n入库单号:"+data.rkdh+"");
  1910. }else {
  1911. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  1912. }
  1913. window.location.reload();
  1914. }else {
  1915. alert(data.status);
  1916. }
  1917. },
  1918. "error": function(){
  1919. alert("确认失败!");
  1920. },
  1921. "complete": function(){
  1922. layer.close(tip);
  1923. }
  1924. });
  1925. }else {
  1926. alert("请选择发票!");
  1927. }
  1928. }
  1929. }
  1930. function getfp(){
  1931. var tip = layer.load(2);
  1932. var url = "getgyfp.do";
  1933. $.ajax({
  1934. "url" : url,
  1935. "type" : "POST",
  1936. "dataType" : "json",
  1937. "async" : true,
  1938. "success" : function(data) {
  1939. if(data != null && data != ""){
  1940. $("#fpid").empty();
  1941. $("#fpid").append("_$tag_____________$tag____");
  1942. for(var i = 0; i < data.length; i++){
  1943. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1944. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1945. }
  1946. }
  1947. },
  1948. "error" : function(msg){
  1949. },
  1950. "complete": function(){
  1951. layer.close(tip);
  1952. }
  1953. });
  1954. }
  1955. $("#fpid").change(function(){
  1956. var tip = layer.load(2);
  1957. var url = "getgyrkxx.do";
  1958. var sum_total=0;
  1959. $.ajax({
  1960. "url" : url,
  1961. "data" : {
  1962. "fpId" : $("#fpid").val()
  1963. },
  1964. "type" : "POST",
  1965. "dataType" : "json",
  1966. "async" : true,
  1967. "success" : function(data) {
  1968. $("#dataTable").html("");
  1969. if(data != null && data != ""){
  1970. var html = "";
  1971. for(var i = 0; i < data.length; i++){
  1972. var ID = data[i].id == null ? "" : data[i].id;
  1973. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1974. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1975. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1976. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1977. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1978. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1979. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1980. var NAME = data[i].name == null ? "" : data[i].name;
  1981. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1982. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1983. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1984. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1985. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1986. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1987. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1988. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1989. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1990. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1991. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1992. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1993. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1994. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1995. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1996. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1997. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1998. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  1999. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2000. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  2001. sum_total = sum_total + DSUMVALUE
  2002. var invoice_type_cn =null;
  2003. if (invoice_type =="00" ){
  2004. invoice_type_cn="销售发票";
  2005. }else if (invoice_type == "01") {
  2006. invoice_type_cn="更正(对冲)发票";
  2007. }else if (invoice_type == "02") {
  2008. invoice_type_cn="其它类型发票";
  2009. }
  2010. html += "_$ta";
  2011. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2012. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2013. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2014. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2015. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2016. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2017. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2018. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2019. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2020. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2021. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2022. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2023. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2024. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2025. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2026. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2027. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2028. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2029. html += "_$tag";
  2030. }
  2031. html += "_$ta";
  2032. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2033. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2034. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2035. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2036. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2037. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2038. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2039. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2040. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2041. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2042. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2043. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2044. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2045. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2046. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2047. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2048. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2049. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2050. html += "_$tag";
  2051. $("#dataTable").html(html);
  2052. }else {
  2053. $("#dataTable").html("");
  2054. }
  2055. },
  2056. "error" : function(msg){
  2057. },
  2058. "complete": function(){
  2059. layer.close(tip);
  2060. }
  2061. });
  2062. });
  2063. Date.prototype.Format = function (fmt) {
  2064. var o = {
  2065. "M+": this.getMonth() + 1, //月份
  2066. "d+": this.getDate(), //日
  2067. "h+": this.getHours(), //小时
  2068. "m+": this.getMinutes(), //分
  2069. "s+": this.getSeconds(), //秒
  2070. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2071. "S": this.getMilliseconds() //毫秒
  2072. };
  2073. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2074. for (var k in o)
  2075. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2076. return fmt;
  2077. }
  2078. $("#jrjc").change(function() {
  2079. if ($("#jrjc").prop('checked') == true){
  2080. $("#departmentId").removeAttr("disabled");
  2081. }else {
  2082. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2083. }
  2084. });
  2085. ----------------------------------- SOURCE END -------------------------------------
  2086. !STACK 0
  2087. java.lang.NullPointerException
  2088. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1737)
  2089. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1703)
  2090. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding$9.performAction(SourceTypeBinding.java:1496)
  2091. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.performActionOnLinkedBindings(SourceTypeBinding.java:2519)
  2092. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.methods(SourceTypeBinding.java:1468)
  2093. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodBinding.ensureBindingsAreComplete(MethodBinding.java:773)
  2094. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.findMethod(Scope.java:686)
  2095. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1686)
  2096. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  2097. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  2098. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  2099. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  2100. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  2101. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  2102. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  2103. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  2104. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  2105. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  2106. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  2107. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  2108. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  2109. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  2110. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  2111. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  2112. at org.eclipse.wst.jsdt.internal.compiler.ast.FunctionExpression.resolveType(FunctionExpression.java:66)
  2113. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:171)
  2114. at org.eclipse.wst.jsdt.internal.compiler.ast.ListExpression.resolveType(ListExpression.java:79)
  2115. at org.eclipse.wst.jsdt.internal.compiler.ast.Expression.resolve(Expression.java:431)
  2116. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  2117. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  2118. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  2119. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  2120. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  2121. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:488)
  2122. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:469)
  2123. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  2124. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  2125. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  2126. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  2127. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  2128. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  2129. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findVariable(MethodScope.java:457)
  2130. at org.eclipse.wst.jsdt.internal.compiler.lookup.BlockScope.findMethod(BlockScope.java:262)
  2131. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:517)
  2132. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  2133. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  2134. at org.eclipse.wst.jsdt.internal.compiler.ast.BinaryExpression.resolveType(BinaryExpression.java:263)
  2135. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolveLocal(LocalDeclaration.java:241)
  2136. at org.eclipse.wst.jsdt.internal.compiler.ast.LocalDeclaration.resolve(LocalDeclaration.java:153)
  2137. at org.eclipse.wst.jsdt.internal.compiler.ast.Block.resolve(Block.java:89)
  2138. at org.eclipse.wst.jsdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:191)
  2139. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:462)
  2140. at org.eclipse.wst.jsdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:129)
  2141. at org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:372)
  2142. at org.eclipse.wst.jsdt.internal.compiler.lookup.MethodScope.findMethod(MethodScope.java:538)
  2143. at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getImplicitMethod(Scope.java:1568)
  2144. at org.eclipse.wst.jsdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:181)
  2145. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFields(SourceTypeBinding.java:396)
  2146. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:260)
  2147. at org.eclipse.wst.jsdt.internal.compiler.lookup.SourceTypeBinding.buildFieldsAndMethods(SourceTypeBinding.java:195)
  2148. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildFieldsAndMethods(CompilationUnitScope.java:246)
  2149. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:431)
  2150. at org.eclipse.wst.jsdt.internal.compiler.Compiler.resolve(Compiler.java:659)
  2151. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:273)
  2152. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2153. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2154. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2155. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2156. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2157. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:1108)
  2158. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllTypeNames(BasicSearchEngine.java:945)
  2159. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findTypes(SearchableEnvironment.java:416)
  2160. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:785)
  2161. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2162. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2163. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2164. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  2165. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  2166. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2167. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:05.011
  2168. !MESSAGE Exception occurred during problem detection:
  2169. ----------------------------------- SOURCE BEGIN -------------------------------------
  2170. (function(){WdatePicker();})();
  2171. (function(){WdatePicker();})();
  2172. (function(){Data.get();})();
  2173. (function(){Data.set();})();
  2174. (function(){search();})();
  2175. $(function(){
  2176. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2177. getfp();
  2178. });
  2179. var Data = {
  2180. "get" : function(){
  2181. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2182. var tip = layer.load(2);
  2183. var result="";
  2184. var url = "getgyxml.do";
  2185. $.ajax({
  2186. "url" : url,
  2187. "data" : {
  2188. "start_date" : $("#dateBegin").val(),
  2189. "end_date" : $("#dateEnd").val()
  2190. },
  2191. "type" : "POST",
  2192. "dataType" : "json",
  2193. "success" : function(data) {
  2194. if(data != null && data != ""){
  2195. if ( data.status =="success"){
  2196. getfp();
  2197. alert("获取成功!");
  2198. }else {
  2199. alert(data.status);
  2200. }
  2201. }else {
  2202. alert("获取失败!");
  2203. }
  2204. },
  2205. "complete": function(){
  2206. layer.close(tip);
  2207. }
  2208. });
  2209. }else {
  2210. alert("请选择日期!");
  2211. }
  2212. },
  2213. "set" : function(){
  2214. if ( $("#fpid option:selected").text() !=""){
  2215. var tip = layer.load(2);
  2216. var gitem = $("#form1").serialize();
  2217. var jrjc;
  2218. if ($("#jrjc").prop('checked') == true){
  2219. jrjc = $("#departmentId").val();
  2220. }else {
  2221. jrjc ='N'
  2222. }
  2223. var url = "saverk.do";
  2224. $.ajax({
  2225. "url" : url,
  2226. "data" : {
  2227. "gitem" : gitem,
  2228. "jrjc" : jrjc
  2229. },
  2230. "type" : "POST",
  2231. "dataType" : "json",
  2232. "async" : true,
  2233. "success" : function(data) {
  2234. if(data.status =="success"){
  2235. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2236. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2237. }else {
  2238. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2239. }
  2240. window.location.reload();
  2241. }else {
  2242. alert(data.status);
  2243. }
  2244. },
  2245. "error": function(){
  2246. alert("确认失败!");
  2247. },
  2248. "complete": function(){
  2249. layer.close(tip);
  2250. }
  2251. });
  2252. }else {
  2253. alert("请选择发票!");
  2254. }
  2255. }
  2256. }
  2257. function getfp(){
  2258. var tip = layer.load(2);
  2259. var url = "getgyfp.do";
  2260. $.ajax({
  2261. "url" : url,
  2262. "type" : "POST",
  2263. "dataType" : "json",
  2264. "async" : true,
  2265. "success" : function(data) {
  2266. if(data != null && data != ""){
  2267. $("#fpid").empty();
  2268. $("#fpid").append("_$tag_____________$tag____");
  2269. for(var i = 0; i < data.length; i++){
  2270. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2271. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2272. }
  2273. }
  2274. },
  2275. "error" : function(msg){
  2276. },
  2277. "complete": function(){
  2278. layer.close(tip);
  2279. }
  2280. });
  2281. }
  2282. $("#fpid").change(function(){
  2283. var tip = layer.load(2);
  2284. var url = "getgyrkxx.do";
  2285. var sum_total=0;
  2286. $.ajax({
  2287. "url" : url,
  2288. "data" : {
  2289. "fpId" : $("#fpid").val()
  2290. },
  2291. "type" : "POST",
  2292. "dataType" : "json",
  2293. "async" : true,
  2294. "success" : function(data) {
  2295. $("#dataTable").html("");
  2296. if(data != null && data != ""){
  2297. var html = "";
  2298. for(var i = 0; i < data.length; i++){
  2299. var ID = data[i].id == null ? "" : data[i].id;
  2300. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2301. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2302. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2303. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2304. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2305. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2306. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2307. var NAME = data[i].name == null ? "" : data[i].name;
  2308. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2309. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2310. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2311. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2312. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2313. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2314. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2315. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2316. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2317. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2318. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2319. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2320. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2321. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2322. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2323. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2324. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2325. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2326. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2327. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  2328. sum_total = sum_total + DSUMVALUE
  2329. var invoice_type_cn =null;
  2330. if (invoice_type =="00" ){
  2331. invoice_type_cn="销售发票";
  2332. }else if (invoice_type == "01") {
  2333. invoice_type_cn="更正(对冲)发票";
  2334. }else if (invoice_type == "02") {
  2335. invoice_type_cn="其它类型发票";
  2336. }
  2337. html += "_$ta";
  2338. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2339. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2340. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2341. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2342. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2343. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2344. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2345. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2346. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2347. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2348. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2349. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2350. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2351. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2352. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2353. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2354. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2355. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2356. html += "_$tag";
  2357. }
  2358. html += "_$ta";
  2359. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2360. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2361. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2362. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2363. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2364. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2365. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2366. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2367. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2368. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2369. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2370. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2371. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2372. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2373. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2374. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2375. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2376. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2377. html += "_$tag";
  2378. $("#dataTable").html(html);
  2379. }else {
  2380. $("#dataTable").html("");
  2381. }
  2382. },
  2383. "error" : function(msg){
  2384. },
  2385. "complete": function(){
  2386. layer.close(tip);
  2387. }
  2388. });
  2389. });
  2390. Date.prototype.Format = function (fmt) {
  2391. var o = {
  2392. "M+": this.getMonth() + 1, //月份
  2393. "d+": this.getDate(), //日
  2394. "h+": this.getHours(), //小时
  2395. "m+": this.getMinutes(), //分
  2396. "s+": this.getSeconds(), //秒
  2397. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2398. "S": this.getMilliseconds() //毫秒
  2399. };
  2400. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2401. for (var k in o)
  2402. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2403. return fmt;
  2404. }
  2405. $("#jrjc").change(function() {
  2406. if ($("#jrjc").prop('checked') == true){
  2407. $("#departmentId").removeAttr("disabled");
  2408. }else {
  2409. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2410. }
  2411. });
  2412. ----------------------------------- SOURCE END -------------------------------------
  2413. !STACK 0
  2414. java.lang.NullPointerException
  2415. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:05.074
  2416. !MESSAGE Error while processing working copy
  2417. !STACK 1
  2418. JavaScript Model Exception: java.lang.NullPointerException
  2419. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2420. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2421. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2422. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2423. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2424. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2425. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2426. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2427. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2428. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2429. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2430. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2431. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2432. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2433. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2434. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2435. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  2436. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  2437. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2438. Caused by: java.lang.NullPointerException
  2439. Caused by: java.lang.NullPointerException
  2440. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:05.075
  2441. !MESSAGE java.lang.NullPointerException
  2442. !STACK 0
  2443. java.lang.NullPointerException
  2444. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:06.536
  2445. !MESSAGE Exception occurred during problem detection:
  2446. ----------------------------------- SOURCE BEGIN -------------------------------------
  2447. (function(){WdatePicker();})();
  2448. (function(){WdatePicker();})();
  2449. (function(){Data.get();})();
  2450. (function(){Data.set();})();
  2451. (function(){search();})();
  2452. $(function(){
  2453. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2454. getfp();
  2455. });
  2456. var Data = {
  2457. "get" : function(){
  2458. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2459. var tip = layer.load(2);
  2460. var result="";
  2461. var url = "getgyxml.do";
  2462. $.ajax({
  2463. "url" : url,
  2464. "data" : {
  2465. "start_date" : $("#dateBegin").val(),
  2466. "end_date" : $("#dateEnd").val()
  2467. },
  2468. "type" : "POST",
  2469. "dataType" : "json",
  2470. "success" : function(data) {
  2471. if(data != null && data != ""){
  2472. if ( data.status =="success"){
  2473. getfp();
  2474. alert("获取成功!");
  2475. }else {
  2476. alert(data.status);
  2477. }
  2478. }else {
  2479. alert("获取失败!");
  2480. }
  2481. },
  2482. "complete": function(){
  2483. layer.close(tip);
  2484. }
  2485. });
  2486. }else {
  2487. alert("请选择日期!");
  2488. }
  2489. },
  2490. "set" : function(){
  2491. if ( $("#fpid option:selected").text() !=""){
  2492. var tip = layer.load(2);
  2493. var gitem = $("#form1").serialize();
  2494. var jrjc;
  2495. if ($("#jrjc").prop('checked') == true){
  2496. jrjc = $("#departmentId").val();
  2497. }else {
  2498. jrjc ='N'
  2499. }
  2500. var url = "saverk.do";
  2501. $.ajax({
  2502. "url" : url,
  2503. "data" : {
  2504. "gitem" : gitem,
  2505. "jrjc" : jrjc
  2506. },
  2507. "type" : "POST",
  2508. "dataType" : "json",
  2509. "async" : true,
  2510. "success" : function(data) {
  2511. if(data.status =="success"){
  2512. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2513. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2514. }else {
  2515. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2516. }
  2517. window.location.reload();
  2518. }else {
  2519. alert(data.status);
  2520. }
  2521. },
  2522. "error": function(){
  2523. alert("确认失败!");
  2524. },
  2525. "complete": function(){
  2526. layer.close(tip);
  2527. }
  2528. });
  2529. }else {
  2530. alert("请选择发票!");
  2531. }
  2532. }
  2533. }
  2534. function getfp(){
  2535. var tip = layer.load(2);
  2536. var url = "getgyfp.do";
  2537. $.ajax({
  2538. "url" : url,
  2539. "type" : "POST",
  2540. "dataType" : "json",
  2541. "async" : true,
  2542. "success" : function(data) {
  2543. if(data != null && data != ""){
  2544. $("#fpid").empty();
  2545. $("#fpid").append("_$tag_____________$tag____");
  2546. for(var i = 0; i < data.length; i++){
  2547. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2548. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2549. }
  2550. }
  2551. },
  2552. "error" : function(msg){
  2553. },
  2554. "complete": function(){
  2555. layer.close(tip);
  2556. }
  2557. });
  2558. }
  2559. $("#fpid").change(function(){
  2560. var tip = layer.load(2);
  2561. var url = "getgyrkxx.do";
  2562. var sum_total=0;
  2563. $.ajax({
  2564. "url" : url,
  2565. "data" : {
  2566. "fpId" : $("#fpid").val()
  2567. },
  2568. "type" : "POST",
  2569. "dataType" : "json",
  2570. "async" : true,
  2571. "success" : function(data) {
  2572. $("#dataTable").html("");
  2573. if(data != null && data != ""){
  2574. var html = "";
  2575. for(var i = 0; i < data.length; i++){
  2576. var ID = data[i].id == null ? "" : data[i].id;
  2577. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2578. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2579. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2580. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2581. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2582. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2583. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2584. var NAME = data[i].name == null ? "" : data[i].name;
  2585. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2586. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2587. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2588. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2589. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2590. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2591. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2592. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2593. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2594. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2595. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2596. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2597. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2598. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2599. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2600. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2601. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2602. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2603. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2604. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  2605. sum_total = sum_total + DSUMVALUE
  2606. var invoice_type_cn =null;
  2607. if (invoice_type =="00" ){
  2608. invoice_type_cn="销售发票";
  2609. }else if (invoice_type == "01") {
  2610. invoice_type_cn="更正(对冲)发票";
  2611. }else if (invoice_type == "02") {
  2612. invoice_type_cn="其它类型发票";
  2613. }
  2614. html += "_$ta";
  2615. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2616. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2617. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2618. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2619. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2620. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2621. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2622. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2623. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2624. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2625. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2626. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2627. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2628. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2629. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2630. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2631. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2632. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2633. html += "_$tag";
  2634. }
  2635. html += "_$ta";
  2636. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2637. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2638. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2639. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2640. html += "_$tag_____________$tag_合计:_$tag___$tag";
  2641. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  2642. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2643. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2644. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2645. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2646. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2647. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2648. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2649. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2650. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2651. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2652. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2653. html += "_$tag_____________$tag____________________________________________________________________$tag";
  2654. html += "_$tag";
  2655. $("#dataTable").html(html);
  2656. }else {
  2657. $("#dataTable").html("");
  2658. }
  2659. },
  2660. "error" : function(msg){
  2661. },
  2662. "complete": function(){
  2663. layer.close(tip);
  2664. }
  2665. });
  2666. });
  2667. Date.prototype.Format = function (fmt) {
  2668. var o = {
  2669. "M+": this.getMonth() + 1, //月份
  2670. "d+": this.getDate(), //日
  2671. "h+": this.getHours(), //小时
  2672. "m+": this.getMinutes(), //分
  2673. "s+": this.getSeconds(), //秒
  2674. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2675. "S": this.getMilliseconds() //毫秒
  2676. };
  2677. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2678. for (var k in o)
  2679. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2680. return fmt;
  2681. }
  2682. $("#jrjc").change(function() {
  2683. if ($("#jrjc").prop('checked') == true){
  2684. $("#departmentId").removeAttr("disabled");
  2685. }else {
  2686. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2687. }
  2688. });
  2689. ----------------------------------- SOURCE END -------------------------------------
  2690. !STACK 0
  2691. java.lang.NullPointerException
  2692. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:07.321
  2693. !MESSAGE Exception occurred during problem detection:
  2694. ----------------------------------- SOURCE BEGIN -------------------------------------
  2695. (function(){WdatePicker();})();
  2696. (function(){WdatePicker();})();
  2697. (function(){Data.get();})();
  2698. (function(){Data.set();})();
  2699. (function(){search();})();
  2700. $(function(){
  2701. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2702. getfp();
  2703. });
  2704. var Data = {
  2705. "get" : function(){
  2706. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2707. var tip = layer.load(2);
  2708. var result="";
  2709. var url = "getgyxml.do";
  2710. $.ajax({
  2711. "url" : url,
  2712. "data" : {
  2713. "start_date" : $("#dateBegin").val(),
  2714. "end_date" : $("#dateEnd").val()
  2715. },
  2716. "type" : "POST",
  2717. "dataType" : "json",
  2718. "success" : function(data) {
  2719. if(data != null && data != ""){
  2720. if ( data.status =="success"){
  2721. getfp();
  2722. alert("获取成功!");
  2723. }else {
  2724. alert(data.status);
  2725. }
  2726. }else {
  2727. alert("获取失败!");
  2728. }
  2729. },
  2730. "complete": function(){
  2731. layer.close(tip);
  2732. }
  2733. });
  2734. }else {
  2735. alert("请选择日期!");
  2736. }
  2737. },
  2738. "set" : function(){
  2739. if ( $("#fpid option:selected").text() !=""){
  2740. var tip = layer.load(2);
  2741. var gitem = $("#form1").serialize();
  2742. var jrjc;
  2743. if ($("#jrjc").prop('checked') == true){
  2744. jrjc = $("#departmentId").val();
  2745. }else {
  2746. jrjc ='N'
  2747. }
  2748. var url = "saverk.do";
  2749. $.ajax({
  2750. "url" : url,
  2751. "data" : {
  2752. "gitem" : gitem,
  2753. "jrjc" : jrjc
  2754. },
  2755. "type" : "POST",
  2756. "dataType" : "json",
  2757. "async" : true,
  2758. "success" : function(data) {
  2759. if(data.status =="success"){
  2760. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  2761. alert("入库成功!\n入库单号:"+data.rkdh+"");
  2762. }else {
  2763. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  2764. }
  2765. window.location.reload();
  2766. }else {
  2767. alert(data.status);
  2768. }
  2769. },
  2770. "error": function(){
  2771. alert("确认失败!");
  2772. },
  2773. "complete": function(){
  2774. layer.close(tip);
  2775. }
  2776. });
  2777. }else {
  2778. alert("请选择发票!");
  2779. }
  2780. }
  2781. }
  2782. function getfp(){
  2783. var tip = layer.load(2);
  2784. var url = "getgyfp.do";
  2785. $.ajax({
  2786. "url" : url,
  2787. "type" : "POST",
  2788. "dataType" : "json",
  2789. "async" : true,
  2790. "success" : function(data) {
  2791. if(data != null && data != ""){
  2792. $("#fpid").empty();
  2793. $("#fpid").append("_$tag_____________$tag____");
  2794. for(var i = 0; i < data.length; i++){
  2795. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2796. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2797. }
  2798. }
  2799. },
  2800. "error" : function(msg){
  2801. },
  2802. "complete": function(){
  2803. layer.close(tip);
  2804. }
  2805. });
  2806. }
  2807. $("#fpid").change(function(){
  2808. var tip = layer.load(2);
  2809. var url = "getgyrkxx.do";
  2810. var sum_total=0;
  2811. $.ajax({
  2812. "url" : url,
  2813. "data" : {
  2814. "fpId" : $("#fpid").val()
  2815. },
  2816. "type" : "POST",
  2817. "dataType" : "json",
  2818. "async" : true,
  2819. "success" : function(data) {
  2820. $("#dataTable").html("");
  2821. if(data != null && data != ""){
  2822. var html = "";
  2823. for(var i = 0; i < data.length; i++){
  2824. var ID = data[i].id == null ? "" : data[i].id;
  2825. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2826. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2827. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2828. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2829. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2830. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2831. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2832. var NAME = data[i].name == null ? "" : data[i].name;
  2833. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2834. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2835. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2836. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2837. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2838. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2839. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2840. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2841. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2842. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2843. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2844. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2845. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2846. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2847. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2848. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2849. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2850. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  2851. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  2852. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  2853. sum_total = sum_total + DSUMVALUE
  2854. var invoice_type_cn =null;
  2855. if (invoice_type =="00" ){
  2856. invoice_type_cn="销售发票";
  2857. }else if (invoice_type == "01") {
  2858. invoice_type_cn="更正(对冲)发票";
  2859. }else if (invoice_type == "02") {
  2860. invoice_type_cn="其它类型发票";
  2861. }
  2862. html += "_$ta";
  2863. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2864. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2865. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2866. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2867. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2868. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2869. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2870. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2871. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2872. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2873. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2874. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2875. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2876. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2877. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2878. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2879. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2880. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2881. html += "_$tag";
  2882. }
  2883. html += "_$ta";
  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___$tag";
  2889. html += "_$tag_____________$tag_"+sum_total+"_$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";
  2903. $("#dataTable").html(html);
  2904. }else {
  2905. $("#dataTable").html("");
  2906. }
  2907. },
  2908. "error" : function(msg){
  2909. },
  2910. "complete": function(){
  2911. layer.close(tip);
  2912. }
  2913. });
  2914. });
  2915. Date.prototype.Format = function (fmt) {
  2916. var o = {
  2917. "M+": this.getMonth() + 1, //月份
  2918. "d+": this.getDate(), //日
  2919. "h+": this.getHours(), //小时
  2920. "m+": this.getMinutes(), //分
  2921. "s+": this.getSeconds(), //秒
  2922. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2923. "S": this.getMilliseconds() //毫秒
  2924. };
  2925. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2926. for (var k in o)
  2927. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2928. return fmt;
  2929. }
  2930. $("#jrjc").change(function() {
  2931. if ($("#jrjc").prop('checked') == true){
  2932. $("#departmentId").removeAttr("disabled");
  2933. }else {
  2934. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2935. }
  2936. });
  2937. ----------------------------------- SOURCE END -------------------------------------
  2938. !STACK 0
  2939. java.lang.NullPointerException
  2940. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-10-31 14:18:07.322
  2941. !MESSAGE java.lang.NullPointerException
  2942. !STACK 1
  2943. JavaScript Model Exception: java.lang.NullPointerException
  2944. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2945. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  2946. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2947. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2948. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  2949. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  2950. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  2951. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  2952. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  2953. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  2954. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  2955. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  2956. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  2957. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  2958. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  2959. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  2960. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  2961. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  2962. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  2963. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  2964. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  2965. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  2966. Caused by: java.lang.NullPointerException
  2967. Caused by: java.lang.NullPointerException
  2968. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:07.322
  2969. !MESSAGE java.lang.NullPointerException
  2970. !STACK 0
  2971. java.lang.NullPointerException
  2972. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:08.108
  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. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3041. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3042. }else {
  3043. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3044. }
  3045. window.location.reload();
  3046. }else {
  3047. alert(data.status);
  3048. }
  3049. },
  3050. "error": function(){
  3051. alert("确认失败!");
  3052. },
  3053. "complete": function(){
  3054. layer.close(tip);
  3055. }
  3056. });
  3057. }else {
  3058. alert("请选择发票!");
  3059. }
  3060. }
  3061. }
  3062. function getfp(){
  3063. var tip = layer.load(2);
  3064. var url = "getgyfp.do";
  3065. $.ajax({
  3066. "url" : url,
  3067. "type" : "POST",
  3068. "dataType" : "json",
  3069. "async" : true,
  3070. "success" : function(data) {
  3071. if(data != null && data != ""){
  3072. $("#fpid").empty();
  3073. $("#fpid").append("_$tag_____________$tag____");
  3074. for(var i = 0; i < data.length; i++){
  3075. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3076. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3077. }
  3078. }
  3079. },
  3080. "error" : function(msg){
  3081. },
  3082. "complete": function(){
  3083. layer.close(tip);
  3084. }
  3085. });
  3086. }
  3087. $("#fpid").change(function(){
  3088. var tip = layer.load(2);
  3089. var url = "getgyrkxx.do";
  3090. var sum_total=0;
  3091. $.ajax({
  3092. "url" : url,
  3093. "data" : {
  3094. "fpId" : $("#fpid").val()
  3095. },
  3096. "type" : "POST",
  3097. "dataType" : "json",
  3098. "async" : true,
  3099. "success" : function(data) {
  3100. $("#dataTable").html("");
  3101. if(data != null && data != ""){
  3102. var html = "";
  3103. for(var i = 0; i < data.length; i++){
  3104. var ID = data[i].id == null ? "" : data[i].id;
  3105. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3106. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3107. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3108. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3109. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3110. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3111. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3112. var NAME = data[i].name == null ? "" : data[i].name;
  3113. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3114. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3115. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3116. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3117. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3118. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3119. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3120. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3121. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3122. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3123. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3124. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3125. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3126. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3127. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3128. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3129. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3130. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3131. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3132. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  3133. sum_total = sum_total + DSUMVALUE
  3134. var invoice_type_cn =null;
  3135. if (invoice_type =="00" ){
  3136. invoice_type_cn="销售发票";
  3137. }else if (invoice_type == "01") {
  3138. invoice_type_cn="更正(对冲)发票";
  3139. }else if (invoice_type == "02") {
  3140. invoice_type_cn="其它类型发票";
  3141. }
  3142. html += "_$ta";
  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_____________$tag_______________________________________________________________________________________________________________________$tag";
  3161. html += "_$tag";
  3162. }
  3163. html += "_$ta";
  3164. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3165. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3166. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3167. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3168. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3169. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3170. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3171. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3172. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3173. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3174. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3175. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3176. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3177. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3178. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3179. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3180. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3181. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3182. html += "_$tag";
  3183. $("#dataTable").html(html);
  3184. }else {
  3185. $("#dataTable").html("");
  3186. }
  3187. },
  3188. "error" : function(msg){
  3189. },
  3190. "complete": function(){
  3191. layer.close(tip);
  3192. }
  3193. });
  3194. });
  3195. Date.prototype.Format = function (fmt) {
  3196. var o = {
  3197. "M+": this.getMonth() + 1, //月份
  3198. "d+": this.getDate(), //日
  3199. "h+": this.getHours(), //小时
  3200. "m+": this.getMinutes(), //分
  3201. "s+": this.getSeconds(), //秒
  3202. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3203. "S": this.getMilliseconds() //毫秒
  3204. };
  3205. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3206. for (var k in o)
  3207. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3208. return fmt;
  3209. }
  3210. $("#jrjc").change(function() {
  3211. if ($("#jrjc").prop('checked') == true){
  3212. $("#departmentId").removeAttr("disabled");
  3213. }else {
  3214. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3215. }
  3216. });
  3217. ----------------------------------- SOURCE END -------------------------------------
  3218. !STACK 0
  3219. java.lang.NullPointerException
  3220. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:08.116
  3221. !MESSAGE Error while processing working copy
  3222. !STACK 1
  3223. JavaScript Model Exception: java.lang.NullPointerException
  3224. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3225. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3226. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3227. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3228. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3229. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3230. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3231. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3232. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3233. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3234. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3235. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3236. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3237. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3238. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3239. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3240. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3241. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3242. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3243. Caused by: java.lang.NullPointerException
  3244. Caused by: java.lang.NullPointerException
  3245. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:08.117
  3246. !MESSAGE java.lang.NullPointerException
  3247. !STACK 0
  3248. java.lang.NullPointerException
  3249. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:09.546
  3250. !MESSAGE Exception occurred during problem detection:
  3251. ----------------------------------- SOURCE BEGIN -------------------------------------
  3252. (function(){WdatePicker();})();
  3253. (function(){WdatePicker();})();
  3254. (function(){Data.get();})();
  3255. (function(){Data.set();})();
  3256. (function(){search();})();
  3257. $(function(){
  3258. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3259. getfp();
  3260. });
  3261. var Data = {
  3262. "get" : function(){
  3263. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3264. var tip = layer.load(2);
  3265. var result="";
  3266. var url = "getgyxml.do";
  3267. $.ajax({
  3268. "url" : url,
  3269. "data" : {
  3270. "start_date" : $("#dateBegin").val(),
  3271. "end_date" : $("#dateEnd").val()
  3272. },
  3273. "type" : "POST",
  3274. "dataType" : "json",
  3275. "success" : function(data) {
  3276. if(data != null && data != ""){
  3277. if ( data.status =="success"){
  3278. getfp();
  3279. alert("获取成功!");
  3280. }else {
  3281. alert(data.status);
  3282. }
  3283. }else {
  3284. alert("获取失败!");
  3285. }
  3286. },
  3287. "complete": function(){
  3288. layer.close(tip);
  3289. }
  3290. });
  3291. }else {
  3292. alert("请选择日期!");
  3293. }
  3294. },
  3295. "set" : function(){
  3296. if ( $("#fpid option:selected").text() !=""){
  3297. var tip = layer.load(2);
  3298. var gitem = $("#form1").serialize();
  3299. var jrjc;
  3300. if ($("#jrjc").prop('checked') == true){
  3301. jrjc = $("#departmentId").val();
  3302. }else {
  3303. jrjc ='N'
  3304. }
  3305. var url = "saverk.do";
  3306. $.ajax({
  3307. "url" : url,
  3308. "data" : {
  3309. "gitem" : gitem,
  3310. "jrjc" : jrjc
  3311. },
  3312. "type" : "POST",
  3313. "dataType" : "json",
  3314. "async" : true,
  3315. "success" : function(data) {
  3316. if(data.status =="success"){
  3317. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3318. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3319. }else {
  3320. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3321. }
  3322. window.location.reload();
  3323. }else {
  3324. alert(data.status);
  3325. }
  3326. },
  3327. "error": function(){
  3328. alert("确认失败!");
  3329. },
  3330. "complete": function(){
  3331. layer.close(tip);
  3332. }
  3333. });
  3334. }else {
  3335. alert("请选择发票!");
  3336. }
  3337. }
  3338. }
  3339. function getfp(){
  3340. var tip = layer.load(2);
  3341. var url = "getgyfp.do";
  3342. $.ajax({
  3343. "url" : url,
  3344. "type" : "POST",
  3345. "dataType" : "json",
  3346. "async" : true,
  3347. "success" : function(data) {
  3348. if(data != null && data != ""){
  3349. $("#fpid").empty();
  3350. $("#fpid").append("_$tag_____________$tag____");
  3351. for(var i = 0; i < data.length; i++){
  3352. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3353. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3354. }
  3355. }
  3356. },
  3357. "error" : function(msg){
  3358. },
  3359. "complete": function(){
  3360. layer.close(tip);
  3361. }
  3362. });
  3363. }
  3364. $("#fpid").change(function(){
  3365. var tip = layer.load(2);
  3366. var url = "getgyrkxx.do";
  3367. var sum_total=0;
  3368. $.ajax({
  3369. "url" : url,
  3370. "data" : {
  3371. "fpId" : $("#fpid").val()
  3372. },
  3373. "type" : "POST",
  3374. "dataType" : "json",
  3375. "async" : true,
  3376. "success" : function(data) {
  3377. $("#dataTable").html("");
  3378. if(data != null && data != ""){
  3379. var html = "";
  3380. for(var i = 0; i < data.length; i++){
  3381. var ID = data[i].id == null ? "" : data[i].id;
  3382. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3383. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3384. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3385. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3386. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3387. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3388. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3389. var NAME = data[i].name == null ? "" : data[i].name;
  3390. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3391. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3392. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3393. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3394. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3395. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3396. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3397. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3398. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3399. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3400. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3401. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3402. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3403. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3404. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3405. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3406. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3407. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3408. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3409. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  3410. sum_total = sum_total + DSUMVALUE
  3411. var invoice_type_cn =null;
  3412. if (invoice_type =="00" ){
  3413. invoice_type_cn="销售发票";
  3414. }else if (invoice_type == "01") {
  3415. invoice_type_cn="更正(对冲)发票";
  3416. }else if (invoice_type == "02") {
  3417. invoice_type_cn="其它类型发票";
  3418. }
  3419. html += "_$ta";
  3420. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3421. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3422. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3423. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3424. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3425. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3426. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3427. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  3428. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3429. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  3430. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  3431. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3432. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3433. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3434. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3435. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3436. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3437. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3438. html += "_$tag";
  3439. }
  3440. html += "_$ta";
  3441. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3442. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3443. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3444. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3445. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3446. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3447. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3448. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3449. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3450. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3451. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3452. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3453. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3454. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3455. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3456. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3457. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3458. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3459. html += "_$tag";
  3460. $("#dataTable").html(html);
  3461. }else {
  3462. $("#dataTable").html("");
  3463. }
  3464. },
  3465. "error" : function(msg){
  3466. },
  3467. "complete": function(){
  3468. layer.close(tip);
  3469. }
  3470. });
  3471. });
  3472. Date.prototype.Format = function (fmt) {
  3473. var o = {
  3474. "M+": this.getMonth() + 1, //月份
  3475. "d+": this.getDate(), //日
  3476. "h+": this.getHours(), //小时
  3477. "m+": this.getMinutes(), //分
  3478. "s+": this.getSeconds(), //秒
  3479. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3480. "S": this.getMilliseconds() //毫秒
  3481. };
  3482. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3483. for (var k in o)
  3484. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3485. return fmt;
  3486. }
  3487. $("#jrjc").change(function() {
  3488. if ($("#jrjc").prop('checked') == true){
  3489. $("#departmentId").removeAttr("disabled");
  3490. }else {
  3491. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3492. }
  3493. });
  3494. ----------------------------------- SOURCE END -------------------------------------
  3495. !STACK 0
  3496. java.lang.NullPointerException
  3497. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:10.624
  3498. !MESSAGE Exception occurred during problem detection:
  3499. ----------------------------------- SOURCE BEGIN -------------------------------------
  3500. (function(){WdatePicker();})();
  3501. (function(){WdatePicker();})();
  3502. (function(){Data.get();})();
  3503. (function(){Data.set();})();
  3504. (function(){search();})();
  3505. $(function(){
  3506. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3507. getfp();
  3508. });
  3509. var Data = {
  3510. "get" : function(){
  3511. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3512. var tip = layer.load(2);
  3513. var result="";
  3514. var url = "getgyxml.do";
  3515. $.ajax({
  3516. "url" : url,
  3517. "data" : {
  3518. "start_date" : $("#dateBegin").val(),
  3519. "end_date" : $("#dateEnd").val()
  3520. },
  3521. "type" : "POST",
  3522. "dataType" : "json",
  3523. "success" : function(data) {
  3524. if(data != null && data != ""){
  3525. if ( data.status =="success"){
  3526. getfp();
  3527. alert("获取成功!");
  3528. }else {
  3529. alert(data.status);
  3530. }
  3531. }else {
  3532. alert("获取失败!");
  3533. }
  3534. },
  3535. "complete": function(){
  3536. layer.close(tip);
  3537. }
  3538. });
  3539. }else {
  3540. alert("请选择日期!");
  3541. }
  3542. },
  3543. "set" : function(){
  3544. if ( $("#fpid option:selected").text() !=""){
  3545. var tip = layer.load(2);
  3546. var gitem = $("#form1").serialize();
  3547. var jrjc;
  3548. if ($("#jrjc").prop('checked') == true){
  3549. jrjc = $("#departmentId").val();
  3550. }else {
  3551. jrjc ='N'
  3552. }
  3553. var url = "saverk.do";
  3554. $.ajax({
  3555. "url" : url,
  3556. "data" : {
  3557. "gitem" : gitem,
  3558. "jrjc" : jrjc
  3559. },
  3560. "type" : "POST",
  3561. "dataType" : "json",
  3562. "async" : true,
  3563. "success" : function(data) {
  3564. if(data.status =="success"){
  3565. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3566. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3567. }else {
  3568. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3569. }
  3570. window.location.reload();
  3571. }else {
  3572. alert(data.status);
  3573. }
  3574. },
  3575. "error": function(){
  3576. alert("确认失败!");
  3577. },
  3578. "complete": function(){
  3579. layer.close(tip);
  3580. }
  3581. });
  3582. }else {
  3583. alert("请选择发票!");
  3584. }
  3585. }
  3586. }
  3587. function getfp(){
  3588. var tip = layer.load(2);
  3589. var url = "getgyfp.do";
  3590. $.ajax({
  3591. "url" : url,
  3592. "type" : "POST",
  3593. "dataType" : "json",
  3594. "async" : true,
  3595. "success" : function(data) {
  3596. if(data != null && data != ""){
  3597. $("#fpid").empty();
  3598. $("#fpid").append("_$tag_____________$tag____");
  3599. for(var i = 0; i < data.length; i++){
  3600. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3601. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3602. }
  3603. }
  3604. },
  3605. "error" : function(msg){
  3606. },
  3607. "complete": function(){
  3608. layer.close(tip);
  3609. }
  3610. });
  3611. }
  3612. $("#fpid").change(function(){
  3613. var tip = layer.load(2);
  3614. var url = "getgyrkxx.do";
  3615. var sum_total=0;
  3616. $.ajax({
  3617. "url" : url,
  3618. "data" : {
  3619. "fpId" : $("#fpid").val()
  3620. },
  3621. "type" : "POST",
  3622. "dataType" : "json",
  3623. "async" : true,
  3624. "success" : function(data) {
  3625. $("#dataTable").html("");
  3626. if(data != null && data != ""){
  3627. var html = "";
  3628. for(var i = 0; i < data.length; i++){
  3629. var ID = data[i].id == null ? "" : data[i].id;
  3630. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3631. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3632. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3633. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3634. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3635. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3636. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3637. var NAME = data[i].name == null ? "" : data[i].name;
  3638. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3639. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3640. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3641. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3642. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3643. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3644. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3645. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3646. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3647. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3648. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3649. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3650. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3651. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3652. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3653. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3654. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3655. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3656. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3657. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  3658. sum_total = sum_total + DSUMVALUE
  3659. var invoice_type_cn =null;
  3660. if (invoice_type =="00" ){
  3661. invoice_type_cn="销售发票";
  3662. }else if (invoice_type == "01") {
  3663. invoice_type_cn="更正(对冲)发票";
  3664. }else if (invoice_type == "02") {
  3665. invoice_type_cn="其它类型发票";
  3666. }
  3667. html += "_$ta";
  3668. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3669. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3670. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3671. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3672. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3673. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3674. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3675. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3676. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3677. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  3678. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  3679. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3680. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3681. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3682. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3683. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3684. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3685. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3686. html += "_$tag";
  3687. }
  3688. html += "_$ta";
  3689. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3690. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3691. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3692. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3693. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3694. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3695. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3696. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3697. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3698. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3699. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3700. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3701. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3702. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3703. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3704. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3705. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3706. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3707. html += "_$tag";
  3708. $("#dataTable").html(html);
  3709. }else {
  3710. $("#dataTable").html("");
  3711. }
  3712. },
  3713. "error" : function(msg){
  3714. },
  3715. "complete": function(){
  3716. layer.close(tip);
  3717. }
  3718. });
  3719. });
  3720. Date.prototype.Format = function (fmt) {
  3721. var o = {
  3722. "M+": this.getMonth() + 1, //月份
  3723. "d+": this.getDate(), //日
  3724. "h+": this.getHours(), //小时
  3725. "m+": this.getMinutes(), //分
  3726. "s+": this.getSeconds(), //秒
  3727. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3728. "S": this.getMilliseconds() //毫秒
  3729. };
  3730. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3731. for (var k in o)
  3732. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3733. return fmt;
  3734. }
  3735. $("#jrjc").change(function() {
  3736. if ($("#jrjc").prop('checked') == true){
  3737. $("#departmentId").removeAttr("disabled");
  3738. }else {
  3739. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3740. }
  3741. });
  3742. ----------------------------------- SOURCE END -------------------------------------
  3743. !STACK 0
  3744. java.lang.NullPointerException
  3745. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:10.625
  3746. !MESSAGE Error while processing working copy
  3747. !STACK 1
  3748. JavaScript Model Exception: java.lang.NullPointerException
  3749. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3750. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3751. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3752. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3753. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3754. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3755. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3756. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3757. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3758. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3759. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3760. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3761. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3762. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3763. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3764. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3765. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3766. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3767. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3768. Caused by: java.lang.NullPointerException
  3769. Caused by: java.lang.NullPointerException
  3770. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:10.625
  3771. !MESSAGE java.lang.NullPointerException
  3772. !STACK 0
  3773. java.lang.NullPointerException
  3774. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:11.765
  3775. !MESSAGE Exception occurred during problem detection:
  3776. ----------------------------------- SOURCE BEGIN -------------------------------------
  3777. (function(){WdatePicker();})();
  3778. (function(){WdatePicker();})();
  3779. (function(){Data.get();})();
  3780. (function(){Data.set();})();
  3781. (function(){search();})();
  3782. $(function(){
  3783. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3784. getfp();
  3785. });
  3786. var Data = {
  3787. "get" : function(){
  3788. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3789. var tip = layer.load(2);
  3790. var result="";
  3791. var url = "getgyxml.do";
  3792. $.ajax({
  3793. "url" : url,
  3794. "data" : {
  3795. "start_date" : $("#dateBegin").val(),
  3796. "end_date" : $("#dateEnd").val()
  3797. },
  3798. "type" : "POST",
  3799. "dataType" : "json",
  3800. "success" : function(data) {
  3801. if(data != null && data != ""){
  3802. if ( data.status =="success"){
  3803. getfp();
  3804. alert("获取成功!");
  3805. }else {
  3806. alert(data.status);
  3807. }
  3808. }else {
  3809. alert("获取失败!");
  3810. }
  3811. },
  3812. "complete": function(){
  3813. layer.close(tip);
  3814. }
  3815. });
  3816. }else {
  3817. alert("请选择日期!");
  3818. }
  3819. },
  3820. "set" : function(){
  3821. if ( $("#fpid option:selected").text() !=""){
  3822. var tip = layer.load(2);
  3823. var gitem = $("#form1").serialize();
  3824. var jrjc;
  3825. if ($("#jrjc").prop('checked') == true){
  3826. jrjc = $("#departmentId").val();
  3827. }else {
  3828. jrjc ='N'
  3829. }
  3830. var url = "saverk.do";
  3831. $.ajax({
  3832. "url" : url,
  3833. "data" : {
  3834. "gitem" : gitem,
  3835. "jrjc" : jrjc
  3836. },
  3837. "type" : "POST",
  3838. "dataType" : "json",
  3839. "async" : true,
  3840. "success" : function(data) {
  3841. if(data.status =="success"){
  3842. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  3843. alert("入库成功!\n入库单号:"+data.rkdh+"");
  3844. }else {
  3845. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  3846. }
  3847. window.location.reload();
  3848. }else {
  3849. alert(data.status);
  3850. }
  3851. },
  3852. "error": function(){
  3853. alert("确认失败!");
  3854. },
  3855. "complete": function(){
  3856. layer.close(tip);
  3857. }
  3858. });
  3859. }else {
  3860. alert("请选择发票!");
  3861. }
  3862. }
  3863. }
  3864. function getfp(){
  3865. var tip = layer.load(2);
  3866. var url = "getgyfp.do";
  3867. $.ajax({
  3868. "url" : url,
  3869. "type" : "POST",
  3870. "dataType" : "json",
  3871. "async" : true,
  3872. "success" : function(data) {
  3873. if(data != null && data != ""){
  3874. $("#fpid").empty();
  3875. $("#fpid").append("_$tag_____________$tag____");
  3876. for(var i = 0; i < data.length; i++){
  3877. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3878. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3879. }
  3880. }
  3881. },
  3882. "error" : function(msg){
  3883. },
  3884. "complete": function(){
  3885. layer.close(tip);
  3886. }
  3887. });
  3888. }
  3889. $("#fpid").change(function(){
  3890. var tip = layer.load(2);
  3891. var url = "getgyrkxx.do";
  3892. var sum_total=0;
  3893. $.ajax({
  3894. "url" : url,
  3895. "data" : {
  3896. "fpId" : $("#fpid").val()
  3897. },
  3898. "type" : "POST",
  3899. "dataType" : "json",
  3900. "async" : true,
  3901. "success" : function(data) {
  3902. $("#dataTable").html("");
  3903. if(data != null && data != ""){
  3904. var html = "";
  3905. for(var i = 0; i < data.length; i++){
  3906. var ID = data[i].id == null ? "" : data[i].id;
  3907. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3908. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3909. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3910. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3911. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3912. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3913. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3914. var NAME = data[i].name == null ? "" : data[i].name;
  3915. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3916. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3917. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3918. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3919. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3920. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3921. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3922. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3923. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3924. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3925. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3926. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3927. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3928. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3929. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3930. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3931. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3932. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  3933. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  3934. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  3935. sum_total = sum_total + DSUMVALUE
  3936. var invoice_type_cn =null;
  3937. if (invoice_type =="00" ){
  3938. invoice_type_cn="销售发票";
  3939. }else if (invoice_type == "01") {
  3940. invoice_type_cn="更正(对冲)发票";
  3941. }else if (invoice_type == "02") {
  3942. invoice_type_cn="其它类型发票";
  3943. }
  3944. html += "_$ta";
  3945. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3946. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3947. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3948. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3949. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3950. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3951. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3952. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3953. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3954. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  3955. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  3956. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3957. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3958. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3959. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3960. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3961. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3962. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3963. html += "_$tag";
  3964. }
  3965. html += "_$ta";
  3966. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3967. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3968. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3969. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3970. html += "_$tag_____________$tag_合计:_$tag___$tag";
  3971. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  3972. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3973. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3974. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3975. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3976. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3977. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3978. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3979. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3980. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3981. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3982. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3983. html += "_$tag_____________$tag____________________________________________________________________$tag";
  3984. html += "_$tag";
  3985. $("#dataTable").html(html);
  3986. }else {
  3987. $("#dataTable").html("");
  3988. }
  3989. },
  3990. "error" : function(msg){
  3991. },
  3992. "complete": function(){
  3993. layer.close(tip);
  3994. }
  3995. });
  3996. });
  3997. Date.prototype.Format = function (fmt) {
  3998. var o = {
  3999. "M+": this.getMonth() + 1, //月份
  4000. "d+": this.getDate(), //日
  4001. "h+": this.getHours(), //小时
  4002. "m+": this.getMinutes(), //分
  4003. "s+": this.getSeconds(), //秒
  4004. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4005. "S": this.getMilliseconds() //毫秒
  4006. };
  4007. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4008. for (var k in o)
  4009. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4010. return fmt;
  4011. }
  4012. $("#jrjc").change(function() {
  4013. if ($("#jrjc").prop('checked') == true){
  4014. $("#departmentId").removeAttr("disabled");
  4015. }else {
  4016. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4017. }
  4018. });
  4019. ----------------------------------- SOURCE END -------------------------------------
  4020. !STACK 0
  4021. java.lang.NullPointerException
  4022. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:12.538
  4023. !MESSAGE Exception occurred during problem detection:
  4024. ----------------------------------- SOURCE BEGIN -------------------------------------
  4025. (function(){WdatePicker();})();
  4026. (function(){WdatePicker();})();
  4027. (function(){Data.get();})();
  4028. (function(){Data.set();})();
  4029. (function(){search();})();
  4030. $(function(){
  4031. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4032. getfp();
  4033. });
  4034. var Data = {
  4035. "get" : function(){
  4036. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4037. var tip = layer.load(2);
  4038. var result="";
  4039. var url = "getgyxml.do";
  4040. $.ajax({
  4041. "url" : url,
  4042. "data" : {
  4043. "start_date" : $("#dateBegin").val(),
  4044. "end_date" : $("#dateEnd").val()
  4045. },
  4046. "type" : "POST",
  4047. "dataType" : "json",
  4048. "success" : function(data) {
  4049. if(data != null && data != ""){
  4050. if ( data.status =="success"){
  4051. getfp();
  4052. alert("获取成功!");
  4053. }else {
  4054. alert(data.status);
  4055. }
  4056. }else {
  4057. alert("获取失败!");
  4058. }
  4059. },
  4060. "complete": function(){
  4061. layer.close(tip);
  4062. }
  4063. });
  4064. }else {
  4065. alert("请选择日期!");
  4066. }
  4067. },
  4068. "set" : function(){
  4069. if ( $("#fpid option:selected").text() !=""){
  4070. var tip = layer.load(2);
  4071. var gitem = $("#form1").serialize();
  4072. var jrjc;
  4073. if ($("#jrjc").prop('checked') == true){
  4074. jrjc = $("#departmentId").val();
  4075. }else {
  4076. jrjc ='N'
  4077. }
  4078. var url = "saverk.do";
  4079. $.ajax({
  4080. "url" : url,
  4081. "data" : {
  4082. "gitem" : gitem,
  4083. "jrjc" : jrjc
  4084. },
  4085. "type" : "POST",
  4086. "dataType" : "json",
  4087. "async" : true,
  4088. "success" : function(data) {
  4089. if(data.status =="success"){
  4090. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4091. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4092. }else {
  4093. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4094. }
  4095. window.location.reload();
  4096. }else {
  4097. alert(data.status);
  4098. }
  4099. },
  4100. "error": function(){
  4101. alert("确认失败!");
  4102. },
  4103. "complete": function(){
  4104. layer.close(tip);
  4105. }
  4106. });
  4107. }else {
  4108. alert("请选择发票!");
  4109. }
  4110. }
  4111. }
  4112. function getfp(){
  4113. var tip = layer.load(2);
  4114. var url = "getgyfp.do";
  4115. $.ajax({
  4116. "url" : url,
  4117. "type" : "POST",
  4118. "dataType" : "json",
  4119. "async" : true,
  4120. "success" : function(data) {
  4121. if(data != null && data != ""){
  4122. $("#fpid").empty();
  4123. $("#fpid").append("_$tag_____________$tag____");
  4124. for(var i = 0; i < data.length; i++){
  4125. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4126. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4127. }
  4128. }
  4129. },
  4130. "error" : function(msg){
  4131. },
  4132. "complete": function(){
  4133. layer.close(tip);
  4134. }
  4135. });
  4136. }
  4137. $("#fpid").change(function(){
  4138. var tip = layer.load(2);
  4139. var url = "getgyrkxx.do";
  4140. var sum_total=0;
  4141. $.ajax({
  4142. "url" : url,
  4143. "data" : {
  4144. "fpId" : $("#fpid").val()
  4145. },
  4146. "type" : "POST",
  4147. "dataType" : "json",
  4148. "async" : true,
  4149. "success" : function(data) {
  4150. $("#dataTable").html("");
  4151. if(data != null && data != ""){
  4152. var html = "";
  4153. for(var i = 0; i < data.length; i++){
  4154. var ID = data[i].id == null ? "" : data[i].id;
  4155. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4156. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4157. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4158. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4159. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4160. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4161. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4162. var NAME = data[i].name == null ? "" : data[i].name;
  4163. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4164. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4165. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4166. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4167. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4168. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4169. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4170. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4171. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4172. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4173. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4174. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4175. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4176. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4177. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4178. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4179. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4180. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4181. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4182. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  4183. sum_total = sum_total + DSUMVALUE
  4184. var invoice_type_cn =null;
  4185. if (invoice_type =="00" ){
  4186. invoice_type_cn="销售发票";
  4187. }else if (invoice_type == "01") {
  4188. invoice_type_cn="更正(对冲)发票";
  4189. }else if (invoice_type == "02") {
  4190. invoice_type_cn="其它类型发票";
  4191. }
  4192. html += "_$ta";
  4193. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4194. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4195. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4196. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4197. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4198. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4199. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4200. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4201. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4202. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4203. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4204. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4205. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4206. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4207. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4208. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4209. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4210. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4211. html += "_$tag";
  4212. }
  4213. html += "_$ta";
  4214. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4215. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4216. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4217. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4218. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4219. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4220. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4221. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4222. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4223. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4224. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4225. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4226. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4227. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4228. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4229. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4230. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4231. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4232. html += "_$tag";
  4233. $("#dataTable").html(html);
  4234. }else {
  4235. $("#dataTable").html("");
  4236. }
  4237. },
  4238. "error" : function(msg){
  4239. },
  4240. "complete": function(){
  4241. layer.close(tip);
  4242. }
  4243. });
  4244. });
  4245. Date.prototype.Format = function (fmt) {
  4246. var o = {
  4247. "M+": this.getMonth() + 1, //月份
  4248. "d+": this.getDate(), //日
  4249. "h+": this.getHours(), //小时
  4250. "m+": this.getMinutes(), //分
  4251. "s+": this.getSeconds(), //秒
  4252. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4253. "S": this.getMilliseconds() //毫秒
  4254. };
  4255. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4256. for (var k in o)
  4257. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4258. return fmt;
  4259. }
  4260. $("#jrjc").change(function() {
  4261. if ($("#jrjc").prop('checked') == true){
  4262. $("#departmentId").removeAttr("disabled");
  4263. }else {
  4264. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4265. }
  4266. });
  4267. ----------------------------------- SOURCE END -------------------------------------
  4268. !STACK 0
  4269. java.lang.NullPointerException
  4270. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:12.539
  4271. !MESSAGE Error while processing working copy
  4272. !STACK 1
  4273. JavaScript Model Exception: java.lang.NullPointerException
  4274. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4275. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4276. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4277. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4278. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4279. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4280. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4281. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4282. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4283. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4284. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4285. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4286. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4287. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4288. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4289. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4290. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  4291. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  4292. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  4293. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  4294. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  4295. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  4296. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  4297. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  4298. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  4299. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  4300. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  4301. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  4302. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  4303. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  4304. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  4305. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  4306. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  4307. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  4308. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  4309. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  4310. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  4311. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  4312. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  4313. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  4314. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  4315. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  4316. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  4317. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  4318. at java.lang.reflect.Method.invoke(Unknown Source)
  4319. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  4320. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  4321. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  4322. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  4323. Caused by: java.lang.NullPointerException
  4324. Caused by: java.lang.NullPointerException
  4325. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:12.539
  4326. !MESSAGE java.lang.NullPointerException
  4327. !STACK 0
  4328. java.lang.NullPointerException
  4329. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:13.336
  4330. !MESSAGE Exception occurred during problem detection:
  4331. ----------------------------------- SOURCE BEGIN -------------------------------------
  4332. (function(){WdatePicker();})();
  4333. (function(){WdatePicker();})();
  4334. (function(){Data.get();})();
  4335. (function(){Data.set();})();
  4336. (function(){search();})();
  4337. $(function(){
  4338. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4339. getfp();
  4340. });
  4341. var Data = {
  4342. "get" : function(){
  4343. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4344. var tip = layer.load(2);
  4345. var result="";
  4346. var url = "getgyxml.do";
  4347. $.ajax({
  4348. "url" : url,
  4349. "data" : {
  4350. "start_date" : $("#dateBegin").val(),
  4351. "end_date" : $("#dateEnd").val()
  4352. },
  4353. "type" : "POST",
  4354. "dataType" : "json",
  4355. "success" : function(data) {
  4356. if(data != null && data != ""){
  4357. if ( data.status =="success"){
  4358. getfp();
  4359. alert("获取成功!");
  4360. }else {
  4361. alert(data.status);
  4362. }
  4363. }else {
  4364. alert("获取失败!");
  4365. }
  4366. },
  4367. "complete": function(){
  4368. layer.close(tip);
  4369. }
  4370. });
  4371. }else {
  4372. alert("请选择日期!");
  4373. }
  4374. },
  4375. "set" : function(){
  4376. if ( $("#fpid option:selected").text() !=""){
  4377. var tip = layer.load(2);
  4378. var gitem = $("#form1").serialize();
  4379. var jrjc;
  4380. if ($("#jrjc").prop('checked') == true){
  4381. jrjc = $("#departmentId").val();
  4382. }else {
  4383. jrjc ='N'
  4384. }
  4385. var url = "saverk.do";
  4386. $.ajax({
  4387. "url" : url,
  4388. "data" : {
  4389. "gitem" : gitem,
  4390. "jrjc" : jrjc
  4391. },
  4392. "type" : "POST",
  4393. "dataType" : "json",
  4394. "async" : true,
  4395. "success" : function(data) {
  4396. if(data.status =="success"){
  4397. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4398. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4399. }else {
  4400. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4401. }
  4402. window.location.reload();
  4403. }else {
  4404. alert(data.status);
  4405. }
  4406. },
  4407. "error": function(){
  4408. alert("确认失败!");
  4409. },
  4410. "complete": function(){
  4411. layer.close(tip);
  4412. }
  4413. });
  4414. }else {
  4415. alert("请选择发票!");
  4416. }
  4417. }
  4418. }
  4419. function getfp(){
  4420. var tip = layer.load(2);
  4421. var url = "getgyfp.do";
  4422. $.ajax({
  4423. "url" : url,
  4424. "type" : "POST",
  4425. "dataType" : "json",
  4426. "async" : true,
  4427. "success" : function(data) {
  4428. if(data != null && data != ""){
  4429. $("#fpid").empty();
  4430. $("#fpid").append("_$tag_____________$tag____");
  4431. for(var i = 0; i < data.length; i++){
  4432. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4433. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4434. }
  4435. }
  4436. },
  4437. "error" : function(msg){
  4438. },
  4439. "complete": function(){
  4440. layer.close(tip);
  4441. }
  4442. });
  4443. }
  4444. $("#fpid").change(function(){
  4445. var tip = layer.load(2);
  4446. var url = "getgyrkxx.do";
  4447. var sum_total=0;
  4448. $.ajax({
  4449. "url" : url,
  4450. "data" : {
  4451. "fpId" : $("#fpid").val()
  4452. },
  4453. "type" : "POST",
  4454. "dataType" : "json",
  4455. "async" : true,
  4456. "success" : function(data) {
  4457. $("#dataTable").html("");
  4458. if(data != null && data != ""){
  4459. var html = "";
  4460. for(var i = 0; i < data.length; i++){
  4461. var ID = data[i].id == null ? "" : data[i].id;
  4462. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4463. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4464. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4465. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4466. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4467. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4468. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4469. var NAME = data[i].name == null ? "" : data[i].name;
  4470. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4471. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4472. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4473. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4474. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4475. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4476. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4477. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4478. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4479. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4480. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4481. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4482. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4483. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4484. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4485. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4486. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4487. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4488. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4489. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  4490. sum_total = sum_total + DSUMVALUE
  4491. var invoice_type_cn =null;
  4492. if (invoice_type =="00" ){
  4493. invoice_type_cn="销售发票";
  4494. }else if (invoice_type == "01") {
  4495. invoice_type_cn="更正(对冲)发票";
  4496. }else if (invoice_type == "02") {
  4497. invoice_type_cn="其它类型发票";
  4498. }
  4499. html += "_$ta";
  4500. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4501. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4502. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4503. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4504. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4505. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4506. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4507. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4508. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4509. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4510. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4511. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4512. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4513. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4514. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4515. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4516. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4517. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4518. html += "_$tag";
  4519. }
  4520. html += "_$ta";
  4521. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4522. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4523. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4524. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4525. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4526. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4527. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4528. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4529. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4530. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4531. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4532. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4533. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4534. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4535. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4536. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4537. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4538. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4539. html += "_$tag";
  4540. $("#dataTable").html(html);
  4541. }else {
  4542. $("#dataTable").html("");
  4543. }
  4544. },
  4545. "error" : function(msg){
  4546. },
  4547. "complete": function(){
  4548. layer.close(tip);
  4549. }
  4550. });
  4551. });
  4552. Date.prototype.Format = function (fmt) {
  4553. var o = {
  4554. "M+": this.getMonth() + 1, //月份
  4555. "d+": this.getDate(), //日
  4556. "h+": this.getHours(), //小时
  4557. "m+": this.getMinutes(), //分
  4558. "s+": this.getSeconds(), //秒
  4559. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4560. "S": this.getMilliseconds() //毫秒
  4561. };
  4562. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4563. for (var k in o)
  4564. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4565. return fmt;
  4566. }
  4567. $("#jrjc").change(function() {
  4568. if ($("#jrjc").prop('checked') == true){
  4569. $("#departmentId").removeAttr("disabled");
  4570. }else {
  4571. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4572. }
  4573. });
  4574. ----------------------------------- SOURCE END -------------------------------------
  4575. !STACK 0
  4576. java.lang.NullPointerException
  4577. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:14.006
  4578. !MESSAGE Exception occurred during problem detection:
  4579. ----------------------------------- SOURCE BEGIN -------------------------------------
  4580. (function(){WdatePicker();})();
  4581. (function(){WdatePicker();})();
  4582. (function(){Data.get();})();
  4583. (function(){Data.set();})();
  4584. (function(){search();})();
  4585. $(function(){
  4586. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4587. getfp();
  4588. });
  4589. var Data = {
  4590. "get" : function(){
  4591. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4592. var tip = layer.load(2);
  4593. var result="";
  4594. var url = "getgyxml.do";
  4595. $.ajax({
  4596. "url" : url,
  4597. "data" : {
  4598. "start_date" : $("#dateBegin").val(),
  4599. "end_date" : $("#dateEnd").val()
  4600. },
  4601. "type" : "POST",
  4602. "dataType" : "json",
  4603. "success" : function(data) {
  4604. if(data != null && data != ""){
  4605. if ( data.status =="success"){
  4606. getfp();
  4607. alert("获取成功!");
  4608. }else {
  4609. alert(data.status);
  4610. }
  4611. }else {
  4612. alert("获取失败!");
  4613. }
  4614. },
  4615. "complete": function(){
  4616. layer.close(tip);
  4617. }
  4618. });
  4619. }else {
  4620. alert("请选择日期!");
  4621. }
  4622. },
  4623. "set" : function(){
  4624. if ( $("#fpid option:selected").text() !=""){
  4625. var tip = layer.load(2);
  4626. var gitem = $("#form1").serialize();
  4627. var jrjc;
  4628. if ($("#jrjc").prop('checked') == true){
  4629. jrjc = $("#departmentId").val();
  4630. }else {
  4631. jrjc ='N'
  4632. }
  4633. var url = "saverk.do";
  4634. $.ajax({
  4635. "url" : url,
  4636. "data" : {
  4637. "gitem" : gitem,
  4638. "jrjc" : jrjc
  4639. },
  4640. "type" : "POST",
  4641. "dataType" : "json",
  4642. "async" : true,
  4643. "success" : function(data) {
  4644. if(data.status =="success"){
  4645. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4646. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4647. }else {
  4648. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4649. }
  4650. window.location.reload();
  4651. }else {
  4652. alert(data.status);
  4653. }
  4654. },
  4655. "error": function(){
  4656. alert("确认失败!");
  4657. },
  4658. "complete": function(){
  4659. layer.close(tip);
  4660. }
  4661. });
  4662. }else {
  4663. alert("请选择发票!");
  4664. }
  4665. }
  4666. }
  4667. function getfp(){
  4668. var tip = layer.load(2);
  4669. var url = "getgyfp.do";
  4670. $.ajax({
  4671. "url" : url,
  4672. "type" : "POST",
  4673. "dataType" : "json",
  4674. "async" : true,
  4675. "success" : function(data) {
  4676. if(data != null && data != ""){
  4677. $("#fpid").empty();
  4678. $("#fpid").append("_$tag_____________$tag____");
  4679. for(var i = 0; i < data.length; i++){
  4680. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4681. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4682. }
  4683. }
  4684. },
  4685. "error" : function(msg){
  4686. },
  4687. "complete": function(){
  4688. layer.close(tip);
  4689. }
  4690. });
  4691. }
  4692. $("#fpid").change(function(){
  4693. var tip = layer.load(2);
  4694. var url = "getgyrkxx.do";
  4695. var sum_total=0;
  4696. $.ajax({
  4697. "url" : url,
  4698. "data" : {
  4699. "fpId" : $("#fpid").val()
  4700. },
  4701. "type" : "POST",
  4702. "dataType" : "json",
  4703. "async" : true,
  4704. "success" : function(data) {
  4705. $("#dataTable").html("");
  4706. if(data != null && data != ""){
  4707. var html = "";
  4708. for(var i = 0; i < data.length; i++){
  4709. var ID = data[i].id == null ? "" : data[i].id;
  4710. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4711. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4712. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4713. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4714. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4715. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4716. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4717. var NAME = data[i].name == null ? "" : data[i].name;
  4718. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4719. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4720. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4721. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4722. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4723. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4724. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4725. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4726. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4727. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4728. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4729. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4730. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4731. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4732. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4733. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4734. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4735. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  4736. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  4737. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  4738. sum_total = sum_total + DSUMVALUE
  4739. var invoice_type_cn =null;
  4740. if (invoice_type =="00" ){
  4741. invoice_type_cn="销售发票";
  4742. }else if (invoice_type == "01") {
  4743. invoice_type_cn="更正(对冲)发票";
  4744. }else if (invoice_type == "02") {
  4745. invoice_type_cn="其它类型发票";
  4746. }
  4747. html += "_$ta";
  4748. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4749. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4750. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4751. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4752. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4753. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4754. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4755. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4756. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4757. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4758. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4759. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4760. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4761. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4762. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4763. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4764. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4765. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4766. html += "_$tag";
  4767. }
  4768. html += "_$ta";
  4769. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4770. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4771. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4772. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4773. html += "_$tag_____________$tag_合计:_$tag___$tag";
  4774. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  4775. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4776. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4777. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4778. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4779. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4780. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4781. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4782. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4783. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4784. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4785. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4786. html += "_$tag_____________$tag____________________________________________________________________$tag";
  4787. html += "_$tag";
  4788. $("#dataTable").html(html);
  4789. }else {
  4790. $("#dataTable").html("");
  4791. }
  4792. },
  4793. "error" : function(msg){
  4794. },
  4795. "complete": function(){
  4796. layer.close(tip);
  4797. }
  4798. });
  4799. });
  4800. Date.prototype.Format = function (fmt) {
  4801. var o = {
  4802. "M+": this.getMonth() + 1, //月份
  4803. "d+": this.getDate(), //日
  4804. "h+": this.getHours(), //小时
  4805. "m+": this.getMinutes(), //分
  4806. "s+": this.getSeconds(), //秒
  4807. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4808. "S": this.getMilliseconds() //毫秒
  4809. };
  4810. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4811. for (var k in o)
  4812. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4813. return fmt;
  4814. }
  4815. $("#jrjc").change(function() {
  4816. if ($("#jrjc").prop('checked') == true){
  4817. $("#departmentId").removeAttr("disabled");
  4818. }else {
  4819. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4820. }
  4821. });
  4822. ----------------------------------- SOURCE END -------------------------------------
  4823. !STACK 0
  4824. java.lang.NullPointerException
  4825. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-10-31 14:18:14.006
  4826. !MESSAGE java.lang.NullPointerException
  4827. !STACK 1
  4828. JavaScript Model Exception: java.lang.NullPointerException
  4829. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4830. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  4831. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4832. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4833. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  4834. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  4835. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  4836. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  4837. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  4838. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  4839. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  4840. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  4841. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  4842. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  4843. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  4844. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  4845. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  4846. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  4847. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  4848. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  4849. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  4850. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  4851. Caused by: java.lang.NullPointerException
  4852. Caused by: java.lang.NullPointerException
  4853. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:14.007
  4854. !MESSAGE java.lang.NullPointerException
  4855. !STACK 0
  4856. java.lang.NullPointerException
  4857. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:18:16.495
  4858. !MESSAGE Exception occurred during problem detection:
  4859. ----------------------------------- SOURCE BEGIN -------------------------------------
  4860. (function(){WdatePicker();})();
  4861. (function(){WdatePicker();})();
  4862. (function(){Data.get();})();
  4863. (function(){Data.set();})();
  4864. (function(){search();})();
  4865. $(function(){
  4866. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4867. getfp();
  4868. });
  4869. var Data = {
  4870. "get" : function(){
  4871. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4872. var tip = layer.load(2);
  4873. var result="";
  4874. var url = "getgyxml.do";
  4875. $.ajax({
  4876. "url" : url,
  4877. "data" : {
  4878. "start_date" : $("#dateBegin").val(),
  4879. "end_date" : $("#dateEnd").val()
  4880. },
  4881. "type" : "POST",
  4882. "dataType" : "json",
  4883. "success" : function(data) {
  4884. if(data != null && data != ""){
  4885. if ( data.status =="success"){
  4886. getfp();
  4887. alert("获取成功!");
  4888. }else {
  4889. alert(data.status);
  4890. }
  4891. }else {
  4892. alert("获取失败!");
  4893. }
  4894. },
  4895. "complete": function(){
  4896. layer.close(tip);
  4897. }
  4898. });
  4899. }else {
  4900. alert("请选择日期!");
  4901. }
  4902. },
  4903. "set" : function(){
  4904. if ( $("#fpid option:selected").text() !=""){
  4905. var tip = layer.load(2);
  4906. var gitem = $("#form1").serialize();
  4907. var jrjc;
  4908. if ($("#jrjc").prop('checked') == true){
  4909. jrjc = $("#departmentId").val();
  4910. }else {
  4911. jrjc ='N'
  4912. }
  4913. var url = "saverk.do";
  4914. $.ajax({
  4915. "url" : url,
  4916. "data" : {
  4917. "gitem" : gitem,
  4918. "jrjc" : jrjc
  4919. },
  4920. "type" : "POST",
  4921. "dataType" : "json",
  4922. "async" : true,
  4923. "success" : function(data) {
  4924. if(data.status =="success"){
  4925. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  4926. alert("入库成功!\n入库单号:"+data.rkdh+"");
  4927. }else {
  4928. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  4929. }
  4930. window.location.reload();
  4931. }else {
  4932. alert(data.status);
  4933. }
  4934. },
  4935. "error": function(){
  4936. alert("确认失败!");
  4937. },
  4938. "complete": function(){
  4939. layer.close(tip);
  4940. }
  4941. });
  4942. }else {
  4943. alert("请选择发票!");
  4944. }
  4945. }
  4946. }
  4947. function getfp(){
  4948. var tip = layer.load(2);
  4949. var url = "getgyfp.do";
  4950. $.ajax({
  4951. "url" : url,
  4952. "type" : "POST",
  4953. "dataType" : "json",
  4954. "async" : true,
  4955. "success" : function(data) {
  4956. if(data != null && data != ""){
  4957. $("#fpid").empty();
  4958. $("#fpid").append("_$tag_____________$tag____");
  4959. for(var i = 0; i < data.length; i++){
  4960. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4961. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4962. }
  4963. }
  4964. },
  4965. "error" : function(msg){
  4966. },
  4967. "complete": function(){
  4968. layer.close(tip);
  4969. }
  4970. });
  4971. }
  4972. $("#fpid").change(function(){
  4973. var tip = layer.load(2);
  4974. var url = "getgyrkxx.do";
  4975. var sum_total=0;
  4976. $.ajax({
  4977. "url" : url,
  4978. "data" : {
  4979. "fpId" : $("#fpid").val()
  4980. },
  4981. "type" : "POST",
  4982. "dataType" : "json",
  4983. "async" : true,
  4984. "success" : function(data) {
  4985. $("#dataTable").html("");
  4986. if(data != null && data != ""){
  4987. var html = "";
  4988. for(var i = 0; i < data.length; i++){
  4989. var ID = data[i].id == null ? "" : data[i].id;
  4990. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4991. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4992. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4993. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4994. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4995. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4996. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4997. var NAME = data[i].name == null ? "" : data[i].name;
  4998. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4999. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5000. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5001. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5002. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5003. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5004. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5005. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5006. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5007. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5008. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5009. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5010. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5011. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5012. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5013. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5014. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5015. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5016. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5017. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  5018. sum_total = sum_total + DSUMVALUE
  5019. var invoice_type_cn =null;
  5020. if (invoice_type =="00" ){
  5021. invoice_type_cn="销售发票";
  5022. }else if (invoice_type == "01") {
  5023. invoice_type_cn="更正(对冲)发票";
  5024. }else if (invoice_type == "02") {
  5025. invoice_type_cn="其它类型发票";
  5026. }
  5027. html += "_$ta";
  5028. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5029. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5030. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5031. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5032. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5033. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5034. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5035. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5036. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5037. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5038. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5039. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5040. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5041. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5042. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5043. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5044. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5045. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5046. html += "_$tag";
  5047. }
  5048. html += "_$ta";
  5049. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5050. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5051. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5052. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5053. html += "_$tag_____________$tag_合计:_$tag___$tag";
  5054. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5055. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5056. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5057. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5058. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5059. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5060. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5061. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5062. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5063. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5064. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5065. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5066. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5067. html += "_$tag";
  5068. $("#dataTable").html(html);
  5069. }else {
  5070. $("#dataTable").html("");
  5071. }
  5072. },
  5073. "error" : function(msg){
  5074. },
  5075. "complete": function(){
  5076. layer.close(tip);
  5077. }
  5078. });
  5079. });
  5080. Date.prototype.Format = function (fmt) {
  5081. var o = {
  5082. "M+": this.getMonth() + 1, //月份
  5083. "d+": this.getDate(), //日
  5084. "h+": this.getHours(), //小时
  5085. "m+": this.getMinutes(), //分
  5086. "s+": this.getSeconds(), //秒
  5087. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5088. "S": this.getMilliseconds() //毫秒
  5089. };
  5090. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5091. for (var k in o)
  5092. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5093. return fmt;
  5094. }
  5095. $("#jrjc").change(function() {
  5096. if ($("#jrjc").prop('checked') == true){
  5097. $("#departmentId").removeAttr("disabled");
  5098. }else {
  5099. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5100. }
  5101. });
  5102. ----------------------------------- SOURCE END -------------------------------------
  5103. !STACK 0
  5104. java.lang.NullPointerException
  5105. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-10-31 14:18:16.496
  5106. !MESSAGE java.lang.NullPointerException
  5107. !STACK 1
  5108. JavaScript Model Exception: java.lang.NullPointerException
  5109. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5110. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5111. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5112. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5113. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5114. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5115. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5116. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5117. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5118. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5119. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5120. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5121. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5122. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5123. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5124. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5125. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5126. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5127. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5128. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5129. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5130. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5131. Caused by: java.lang.NullPointerException
  5132. Caused by: java.lang.NullPointerException
  5133. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:18:16.496
  5134. !MESSAGE java.lang.NullPointerException
  5135. !STACK 0
  5136. java.lang.NullPointerException
  5137. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:33.776
  5138. !MESSAGE Exception occurred during problem detection:
  5139. ----------------------------------- SOURCE BEGIN -------------------------------------
  5140. (function(){WdatePicker();})();
  5141. (function(){WdatePicker();})();
  5142. (function(){Data.get();})();
  5143. (function(){Data.set();})();
  5144. (function(){search();})();
  5145. $(function(){
  5146. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5147. getfp();
  5148. });
  5149. var Data = {
  5150. "get" : function(){
  5151. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5152. var tip = layer.load(2);
  5153. var result="";
  5154. var url = "getgyxml.do";
  5155. $.ajax({
  5156. "url" : url,
  5157. "data" : {
  5158. "start_date" : $("#dateBegin").val(),
  5159. "end_date" : $("#dateEnd").val()
  5160. },
  5161. "type" : "POST",
  5162. "dataType" : "json",
  5163. "success" : function(data) {
  5164. if(data != null && data != ""){
  5165. if ( data.status =="success"){
  5166. getfp();
  5167. alert("获取成功!");
  5168. }else {
  5169. alert(data.status);
  5170. }
  5171. }else {
  5172. alert("获取失败!");
  5173. }
  5174. },
  5175. "complete": function(){
  5176. layer.close(tip);
  5177. }
  5178. });
  5179. }else {
  5180. alert("请选择日期!");
  5181. }
  5182. },
  5183. "set" : function(){
  5184. if ( $("#fpid option:selected").text() !=""){
  5185. var tip = layer.load(2);
  5186. var gitem = $("#form1").serialize();
  5187. var jrjc;
  5188. if ($("#jrjc").prop('checked') == true){
  5189. jrjc = $("#departmentId").val();
  5190. }else {
  5191. jrjc ='N'
  5192. }
  5193. var url = "saverk.do";
  5194. $.ajax({
  5195. "url" : url,
  5196. "data" : {
  5197. "gitem" : gitem,
  5198. "jrjc" : jrjc
  5199. },
  5200. "type" : "POST",
  5201. "dataType" : "json",
  5202. "async" : true,
  5203. "success" : function(data) {
  5204. if(data.status =="success"){
  5205. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5206. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5207. }else {
  5208. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5209. }
  5210. window.location.reload();
  5211. }else {
  5212. alert(data.status);
  5213. }
  5214. },
  5215. "error": function(){
  5216. alert("确认失败!");
  5217. },
  5218. "complete": function(){
  5219. layer.close(tip);
  5220. }
  5221. });
  5222. }else {
  5223. alert("请选择发票!");
  5224. }
  5225. }
  5226. }
  5227. function getfp(){
  5228. var tip = layer.load(2);
  5229. var url = "getgyfp.do";
  5230. $.ajax({
  5231. "url" : url,
  5232. "type" : "POST",
  5233. "dataType" : "json",
  5234. "async" : true,
  5235. "success" : function(data) {
  5236. if(data != null && data != ""){
  5237. $("#fpid").empty();
  5238. $("#fpid").append("_$tag_____________$tag____");
  5239. for(var i = 0; i < data.length; i++){
  5240. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5241. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5242. }
  5243. }
  5244. },
  5245. "error" : function(msg){
  5246. },
  5247. "complete": function(){
  5248. layer.close(tip);
  5249. }
  5250. });
  5251. }
  5252. $("#fpid").change(function(){
  5253. var tip = layer.load(2);
  5254. var url = "getgyrkxx.do";
  5255. var sum_total=0;
  5256. $.ajax({
  5257. "url" : url,
  5258. "data" : {
  5259. "fpId" : $("#fpid").val()
  5260. },
  5261. "type" : "POST",
  5262. "dataType" : "json",
  5263. "async" : true,
  5264. "success" : function(data) {
  5265. $("#dataTable").html("");
  5266. if(data != null && data != ""){
  5267. var html = "";
  5268. for(var i = 0; i < data.length; i++){
  5269. var ID = data[i].id == null ? "" : data[i].id;
  5270. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5271. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5272. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5273. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5274. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5275. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5276. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5277. var NAME = data[i].name == null ? "" : data[i].name;
  5278. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5279. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5280. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5281. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5282. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5283. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5284. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5285. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5286. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5287. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5288. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5289. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5290. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5291. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5292. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5293. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5294. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5295. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5296. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5297. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  5298. sum_total = sum_total + DSUMVALUE
  5299. var invoice_type_cn =null;
  5300. if (invoice_type =="00" ){
  5301. invoice_type_cn="销售发票";
  5302. }else if (invoice_type == "01") {
  5303. invoice_type_cn="更正(对冲)发票";
  5304. }else if (invoice_type == "02") {
  5305. invoice_type_cn="其它类型发票";
  5306. }
  5307. html += "_$ta";
  5308. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5309. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5310. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5311. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5312. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5313. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5314. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5315. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5316. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5317. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5318. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5319. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5320. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5321. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5322. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5323. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5324. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5325. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5326. html += "_$tag";
  5327. }
  5328. html += "_$ta";
  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___$tag";
  5334. html += "_$tag_____________$tag_"+sum_total+"_$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";
  5348. $("#dataTable").html(html);
  5349. }else {
  5350. $("#dataTable").html("");
  5351. }
  5352. },
  5353. "error" : function(msg){
  5354. },
  5355. "complete": function(){
  5356. layer.close(tip);
  5357. }
  5358. });
  5359. });
  5360. Date.prototype.Format = function (fmt) {
  5361. var o = {
  5362. "M+": this.getMonth() + 1, //月份
  5363. "d+": this.getDate(), //日
  5364. "h+": this.getHours(), //小时
  5365. "m+": this.getMinutes(), //分
  5366. "s+": this.getSeconds(), //秒
  5367. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5368. "S": this.getMilliseconds() //毫秒
  5369. };
  5370. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5371. for (var k in o)
  5372. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5373. return fmt;
  5374. }
  5375. $("#jrjc").change(function() {
  5376. if ($("#jrjc").prop('checked') == true){
  5377. $("#departmentId").removeAttr("disabled");
  5378. }else {
  5379. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5380. }
  5381. });
  5382. ----------------------------------- SOURCE END -------------------------------------
  5383. !STACK 0
  5384. java.lang.NullPointerException
  5385. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:33.776
  5386. !MESSAGE Error while processing working copy
  5387. !STACK 1
  5388. JavaScript Model Exception: java.lang.NullPointerException
  5389. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5390. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5391. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5392. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5393. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5394. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5395. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5396. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5397. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5398. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5399. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5400. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5401. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5402. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5403. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5404. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5405. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5406. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5407. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5408. Caused by: java.lang.NullPointerException
  5409. Caused by: java.lang.NullPointerException
  5410. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:20:33.776
  5411. !MESSAGE java.lang.NullPointerException
  5412. !STACK 0
  5413. java.lang.NullPointerException
  5414. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:34.512
  5415. !MESSAGE Exception occurred during problem detection:
  5416. ----------------------------------- SOURCE BEGIN -------------------------------------
  5417. (function(){WdatePicker();})();
  5418. (function(){WdatePicker();})();
  5419. (function(){Data.get();})();
  5420. (function(){Data.set();})();
  5421. (function(){search();})();
  5422. $(function(){
  5423. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5424. getfp();
  5425. });
  5426. var Data = {
  5427. "get" : function(){
  5428. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5429. var tip = layer.load(2);
  5430. var result="";
  5431. var url = "getgyxml.do";
  5432. $.ajax({
  5433. "url" : url,
  5434. "data" : {
  5435. "start_date" : $("#dateBegin").val(),
  5436. "end_date" : $("#dateEnd").val()
  5437. },
  5438. "type" : "POST",
  5439. "dataType" : "json",
  5440. "success" : function(data) {
  5441. if(data != null && data != ""){
  5442. if ( data.status =="success"){
  5443. getfp();
  5444. alert("获取成功!");
  5445. }else {
  5446. alert(data.status);
  5447. }
  5448. }else {
  5449. alert("获取失败!");
  5450. }
  5451. },
  5452. "complete": function(){
  5453. layer.close(tip);
  5454. }
  5455. });
  5456. }else {
  5457. alert("请选择日期!");
  5458. }
  5459. },
  5460. "set" : function(){
  5461. if ( $("#fpid option:selected").text() !=""){
  5462. var tip = layer.load(2);
  5463. var gitem = $("#form1").serialize();
  5464. var jrjc;
  5465. if ($("#jrjc").prop('checked') == true){
  5466. jrjc = $("#departmentId").val();
  5467. }else {
  5468. jrjc ='N'
  5469. }
  5470. var url = "saverk.do";
  5471. $.ajax({
  5472. "url" : url,
  5473. "data" : {
  5474. "gitem" : gitem,
  5475. "jrjc" : jrjc
  5476. },
  5477. "type" : "POST",
  5478. "dataType" : "json",
  5479. "async" : true,
  5480. "success" : function(data) {
  5481. if(data.status =="success"){
  5482. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5483. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5484. }else {
  5485. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5486. }
  5487. window.location.reload();
  5488. }else {
  5489. alert(data.status);
  5490. }
  5491. },
  5492. "error": function(){
  5493. alert("确认失败!");
  5494. },
  5495. "complete": function(){
  5496. layer.close(tip);
  5497. }
  5498. });
  5499. }else {
  5500. alert("请选择发票!");
  5501. }
  5502. }
  5503. }
  5504. function getfp(){
  5505. var tip = layer.load(2);
  5506. var url = "getgyfp.do";
  5507. $.ajax({
  5508. "url" : url,
  5509. "type" : "POST",
  5510. "dataType" : "json",
  5511. "async" : true,
  5512. "success" : function(data) {
  5513. if(data != null && data != ""){
  5514. $("#fpid").empty();
  5515. $("#fpid").append("_$tag_____________$tag____");
  5516. for(var i = 0; i < data.length; i++){
  5517. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5518. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5519. }
  5520. }
  5521. },
  5522. "error" : function(msg){
  5523. },
  5524. "complete": function(){
  5525. layer.close(tip);
  5526. }
  5527. });
  5528. }
  5529. $("#fpid").change(function(){
  5530. var tip = layer.load(2);
  5531. var url = "getgyrkxx.do";
  5532. var sum_total=0;
  5533. $.ajax({
  5534. "url" : url,
  5535. "data" : {
  5536. "fpId" : $("#fpid").val()
  5537. },
  5538. "type" : "POST",
  5539. "dataType" : "json",
  5540. "async" : true,
  5541. "success" : function(data) {
  5542. $("#dataTable").html("");
  5543. if(data != null && data != ""){
  5544. var html = "";
  5545. for(var i = 0; i < data.length; i++){
  5546. var ID = data[i].id == null ? "" : data[i].id;
  5547. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5548. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5549. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5550. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5551. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5552. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5553. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5554. var NAME = data[i].name == null ? "" : data[i].name;
  5555. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5556. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5557. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5558. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5559. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5560. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5561. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5562. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5563. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5564. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5565. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5566. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5567. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5568. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5569. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5570. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5571. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5572. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5573. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5574. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  5575. sum_total = sum_total + DSUMVALUE
  5576. var invoice_type_cn =null;
  5577. if (invoice_type =="00" ){
  5578. invoice_type_cn="销售发票";
  5579. }else if (invoice_type == "01") {
  5580. invoice_type_cn="更正(对冲)发票";
  5581. }else if (invoice_type == "02") {
  5582. invoice_type_cn="其它类型发票";
  5583. }
  5584. html += "_$ta";
  5585. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5586. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  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";
  5604. }
  5605. html += "_$ta";
  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___$tag";
  5611. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  5612. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5613. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5614. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5615. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5616. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5617. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5618. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5619. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5620. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5621. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5622. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5623. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5624. html += "_$tag";
  5625. $("#dataTable").html(html);
  5626. }else {
  5627. $("#dataTable").html("");
  5628. }
  5629. },
  5630. "error" : function(msg){
  5631. },
  5632. "complete": function(){
  5633. layer.close(tip);
  5634. }
  5635. });
  5636. });
  5637. Date.prototype.Format = function (fmt) {
  5638. var o = {
  5639. "M+": this.getMonth() + 1, //月份
  5640. "d+": this.getDate(), //日
  5641. "h+": this.getHours(), //小时
  5642. "m+": this.getMinutes(), //分
  5643. "s+": this.getSeconds(), //秒
  5644. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5645. "S": this.getMilliseconds() //毫秒
  5646. };
  5647. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5648. for (var k in o)
  5649. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5650. return fmt;
  5651. }
  5652. $("#jrjc").change(function() {
  5653. if ($("#jrjc").prop('checked') == true){
  5654. $("#departmentId").removeAttr("disabled");
  5655. }else {
  5656. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5657. }
  5658. });
  5659. ----------------------------------- SOURCE END -------------------------------------
  5660. !STACK 0
  5661. java.lang.NullPointerException
  5662. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:35.642
  5663. !MESSAGE Exception occurred during problem detection:
  5664. ----------------------------------- SOURCE BEGIN -------------------------------------
  5665. (function(){WdatePicker();})();
  5666. (function(){WdatePicker();})();
  5667. (function(){Data.get();})();
  5668. (function(){Data.set();})();
  5669. (function(){search();})();
  5670. $(function(){
  5671. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5672. getfp();
  5673. });
  5674. var Data = {
  5675. "get" : function(){
  5676. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5677. var tip = layer.load(2);
  5678. var result="";
  5679. var url = "getgyxml.do";
  5680. $.ajax({
  5681. "url" : url,
  5682. "data" : {
  5683. "start_date" : $("#dateBegin").val(),
  5684. "end_date" : $("#dateEnd").val()
  5685. },
  5686. "type" : "POST",
  5687. "dataType" : "json",
  5688. "success" : function(data) {
  5689. if(data != null && data != ""){
  5690. if ( data.status =="success"){
  5691. getfp();
  5692. alert("获取成功!");
  5693. }else {
  5694. alert(data.status);
  5695. }
  5696. }else {
  5697. alert("获取失败!");
  5698. }
  5699. },
  5700. "complete": function(){
  5701. layer.close(tip);
  5702. }
  5703. });
  5704. }else {
  5705. alert("请选择日期!");
  5706. }
  5707. },
  5708. "set" : function(){
  5709. if ( $("#fpid option:selected").text() !=""){
  5710. var tip = layer.load(2);
  5711. var gitem = $("#form1").serialize();
  5712. var jrjc;
  5713. if ($("#jrjc").prop('checked') == true){
  5714. jrjc = $("#departmentId").val();
  5715. }else {
  5716. jrjc ='N'
  5717. }
  5718. var url = "saverk.do";
  5719. $.ajax({
  5720. "url" : url,
  5721. "data" : {
  5722. "gitem" : gitem,
  5723. "jrjc" : jrjc
  5724. },
  5725. "type" : "POST",
  5726. "dataType" : "json",
  5727. "async" : true,
  5728. "success" : function(data) {
  5729. if(data.status =="success"){
  5730. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  5731. alert("入库成功!\n入库单号:"+data.rkdh+"");
  5732. }else {
  5733. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  5734. }
  5735. window.location.reload();
  5736. }else {
  5737. alert(data.status);
  5738. }
  5739. },
  5740. "error": function(){
  5741. alert("确认失败!");
  5742. },
  5743. "complete": function(){
  5744. layer.close(tip);
  5745. }
  5746. });
  5747. }else {
  5748. alert("请选择发票!");
  5749. }
  5750. }
  5751. }
  5752. function getfp(){
  5753. var tip = layer.load(2);
  5754. var url = "getgyfp.do";
  5755. $.ajax({
  5756. "url" : url,
  5757. "type" : "POST",
  5758. "dataType" : "json",
  5759. "async" : true,
  5760. "success" : function(data) {
  5761. if(data != null && data != ""){
  5762. $("#fpid").empty();
  5763. $("#fpid").append("_$tag_____________$tag____");
  5764. for(var i = 0; i < data.length; i++){
  5765. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5766. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5767. }
  5768. }
  5769. },
  5770. "error" : function(msg){
  5771. },
  5772. "complete": function(){
  5773. layer.close(tip);
  5774. }
  5775. });
  5776. }
  5777. $("#fpid").change(function(){
  5778. var tip = layer.load(2);
  5779. var url = "getgyrkxx.do";
  5780. var sum_total=0;
  5781. $.ajax({
  5782. "url" : url,
  5783. "data" : {
  5784. "fpId" : $("#fpid").val()
  5785. },
  5786. "type" : "POST",
  5787. "dataType" : "json",
  5788. "async" : true,
  5789. "success" : function(data) {
  5790. $("#dataTable").html("");
  5791. if(data != null && data != ""){
  5792. var html = "";
  5793. for(var i = 0; i < data.length; i++){
  5794. var ID = data[i].id == null ? "" : data[i].id;
  5795. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5796. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5797. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5798. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5799. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5800. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5801. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5802. var NAME = data[i].name == null ? "" : data[i].name;
  5803. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5804. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5805. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5806. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5807. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5808. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5809. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5810. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5811. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5812. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5813. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5814. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5815. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5816. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5817. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5818. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5819. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5820. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  5821. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  5822. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  5823. sum_total = sum_total + DSUMVALUE
  5824. var invoice_type_cn =null;
  5825. if (invoice_type =="00" ){
  5826. invoice_type_cn="销售发票";
  5827. }else if (invoice_type == "01") {
  5828. invoice_type_cn="更正(对冲)发票";
  5829. }else if (invoice_type == "02") {
  5830. invoice_type_cn="其它类型发票";
  5831. }
  5832. html += "_$ta";
  5833. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5834. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5835. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5836. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5837. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5838. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5839. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5840. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5841. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5842. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  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";
  5852. }
  5853. html += "_$ta";
  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___$tag";
  5859. html += "_$tag_____________$tag_"+sum_total+"_$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_____________$tag____________________________________________________________________$tag";
  5870. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5871. html += "_$tag_____________$tag____________________________________________________________________$tag";
  5872. html += "_$tag";
  5873. $("#dataTable").html(html);
  5874. }else {
  5875. $("#dataTable").html("");
  5876. }
  5877. },
  5878. "error" : function(msg){
  5879. },
  5880. "complete": function(){
  5881. layer.close(tip);
  5882. }
  5883. });
  5884. });
  5885. Date.prototype.Format = function (fmt) {
  5886. var o = {
  5887. "M+": this.getMonth() + 1, //月份
  5888. "d+": this.getDate(), //日
  5889. "h+": this.getHours(), //小时
  5890. "m+": this.getMinutes(), //分
  5891. "s+": this.getSeconds(), //秒
  5892. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5893. "S": this.getMilliseconds() //毫秒
  5894. };
  5895. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5896. for (var k in o)
  5897. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5898. return fmt;
  5899. }
  5900. $("#jrjc").change(function() {
  5901. if ($("#jrjc").prop('checked') == true){
  5902. $("#departmentId").removeAttr("disabled");
  5903. }else {
  5904. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5905. }
  5906. });
  5907. ----------------------------------- SOURCE END -------------------------------------
  5908. !STACK 0
  5909. java.lang.NullPointerException
  5910. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:35.642
  5911. !MESSAGE Error while processing working copy
  5912. !STACK 1
  5913. JavaScript Model Exception: java.lang.NullPointerException
  5914. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5915. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5916. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5917. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5918. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5919. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5920. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5921. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5922. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5923. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5924. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5925. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5926. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5927. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5928. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5929. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5930. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5931. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5932. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5933. Caused by: java.lang.NullPointerException
  5934. Caused by: java.lang.NullPointerException
  5935. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:20:35.642
  5936. !MESSAGE java.lang.NullPointerException
  5937. !STACK 0
  5938. java.lang.NullPointerException
  5939. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:36.540
  5940. !MESSAGE Exception occurred during problem detection:
  5941. ----------------------------------- SOURCE BEGIN -------------------------------------
  5942. (function(){WdatePicker();})();
  5943. (function(){WdatePicker();})();
  5944. (function(){Data.get();})();
  5945. (function(){Data.set();})();
  5946. (function(){search();})();
  5947. $(function(){
  5948. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5949. getfp();
  5950. });
  5951. var Data = {
  5952. "get" : function(){
  5953. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5954. var tip = layer.load(2);
  5955. var result="";
  5956. var url = "getgyxml.do";
  5957. $.ajax({
  5958. "url" : url,
  5959. "data" : {
  5960. "start_date" : $("#dateBegin").val(),
  5961. "end_date" : $("#dateEnd").val()
  5962. },
  5963. "type" : "POST",
  5964. "dataType" : "json",
  5965. "success" : function(data) {
  5966. if(data != null && data != ""){
  5967. if ( data.status =="success"){
  5968. getfp();
  5969. alert("获取成功!");
  5970. }else {
  5971. alert(data.status);
  5972. }
  5973. }else {
  5974. alert("获取失败!");
  5975. }
  5976. },
  5977. "complete": function(){
  5978. layer.close(tip);
  5979. }
  5980. });
  5981. }else {
  5982. alert("请选择日期!");
  5983. }
  5984. },
  5985. "set" : function(){
  5986. if ( $("#fpid option:selected").text() !=""){
  5987. var tip = layer.load(2);
  5988. var gitem = $("#form1").serialize();
  5989. var jrjc;
  5990. if ($("#jrjc").prop('checked') == true){
  5991. jrjc = $("#departmentId").val();
  5992. }else {
  5993. jrjc ='N'
  5994. }
  5995. var url = "saverk.do";
  5996. $.ajax({
  5997. "url" : url,
  5998. "data" : {
  5999. "gitem" : gitem,
  6000. "jrjc" : jrjc
  6001. },
  6002. "type" : "POST",
  6003. "dataType" : "json",
  6004. "async" : true,
  6005. "success" : function(data) {
  6006. if(data.status =="success"){
  6007. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6008. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6009. }else {
  6010. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6011. }
  6012. window.location.reload();
  6013. }else {
  6014. alert(data.status);
  6015. }
  6016. },
  6017. "error": function(){
  6018. alert("确认失败!");
  6019. },
  6020. "complete": function(){
  6021. layer.close(tip);
  6022. }
  6023. });
  6024. }else {
  6025. alert("请选择发票!");
  6026. }
  6027. }
  6028. }
  6029. function getfp(){
  6030. var tip = layer.load(2);
  6031. var url = "getgyfp.do";
  6032. $.ajax({
  6033. "url" : url,
  6034. "type" : "POST",
  6035. "dataType" : "json",
  6036. "async" : true,
  6037. "success" : function(data) {
  6038. if(data != null && data != ""){
  6039. $("#fpid").empty();
  6040. $("#fpid").append("_$tag_____________$tag____");
  6041. for(var i = 0; i < data.length; i++){
  6042. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6043. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6044. }
  6045. }
  6046. },
  6047. "error" : function(msg){
  6048. },
  6049. "complete": function(){
  6050. layer.close(tip);
  6051. }
  6052. });
  6053. }
  6054. $("#fpid").change(function(){
  6055. var tip = layer.load(2);
  6056. var url = "getgyrkxx.do";
  6057. var sum_total=0;
  6058. $.ajax({
  6059. "url" : url,
  6060. "data" : {
  6061. "fpId" : $("#fpid").val()
  6062. },
  6063. "type" : "POST",
  6064. "dataType" : "json",
  6065. "async" : true,
  6066. "success" : function(data) {
  6067. $("#dataTable").html("");
  6068. if(data != null && data != ""){
  6069. var html = "";
  6070. for(var i = 0; i < data.length; i++){
  6071. var ID = data[i].id == null ? "" : data[i].id;
  6072. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6073. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6074. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6075. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6076. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6077. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6078. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6079. var NAME = data[i].name == null ? "" : data[i].name;
  6080. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6081. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6082. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6083. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6084. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6085. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6086. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6087. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6088. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6089. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6090. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6091. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6092. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6093. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6094. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6095. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6096. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6097. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6098. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6099. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  6100. sum_total = sum_total + DSUMVALUE
  6101. var invoice_type_cn =null;
  6102. if (invoice_type =="00" ){
  6103. invoice_type_cn="销售发票";
  6104. }else if (invoice_type == "01") {
  6105. invoice_type_cn="更正(对冲)发票";
  6106. }else if (invoice_type == "02") {
  6107. invoice_type_cn="其它类型发票";
  6108. }
  6109. html += "_$ta";
  6110. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6111. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6112. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6113. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6114. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6115. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6116. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6117. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6118. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6119. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6120. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6121. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6122. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6123. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6124. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6125. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6126. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6127. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6128. html += "_$tag";
  6129. }
  6130. html += "_$ta";
  6131. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6132. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6133. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6134. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6135. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6136. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6137. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6138. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6139. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6140. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6141. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6142. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6143. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6144. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6145. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6146. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6147. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6148. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6149. html += "_$tag";
  6150. $("#dataTable").html(html);
  6151. }else {
  6152. $("#dataTable").html("");
  6153. }
  6154. },
  6155. "error" : function(msg){
  6156. },
  6157. "complete": function(){
  6158. layer.close(tip);
  6159. }
  6160. });
  6161. });
  6162. Date.prototype.Format = function (fmt) {
  6163. var o = {
  6164. "M+": this.getMonth() + 1, //月份
  6165. "d+": this.getDate(), //日
  6166. "h+": this.getHours(), //小时
  6167. "m+": this.getMinutes(), //分
  6168. "s+": this.getSeconds(), //秒
  6169. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6170. "S": this.getMilliseconds() //毫秒
  6171. };
  6172. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6173. for (var k in o)
  6174. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6175. return fmt;
  6176. }
  6177. $("#jrjc").change(function() {
  6178. if ($("#jrjc").prop('checked') == true){
  6179. $("#departmentId").removeAttr("disabled");
  6180. }else {
  6181. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6182. }
  6183. });
  6184. ----------------------------------- SOURCE END -------------------------------------
  6185. !STACK 0
  6186. java.lang.NullPointerException
  6187. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:38.924
  6188. !MESSAGE Exception occurred during problem detection:
  6189. ----------------------------------- SOURCE BEGIN -------------------------------------
  6190. (function(){WdatePicker();})();
  6191. (function(){WdatePicker();})();
  6192. (function(){Data.get();})();
  6193. (function(){Data.set();})();
  6194. (function(){search();})();
  6195. $(function(){
  6196. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6197. getfp();
  6198. });
  6199. var Data = {
  6200. "get" : function(){
  6201. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6202. var tip = layer.load(2);
  6203. var result="";
  6204. var url = "getgyxml.do";
  6205. $.ajax({
  6206. "url" : url,
  6207. "data" : {
  6208. "start_date" : $("#dateBegin").val(),
  6209. "end_date" : $("#dateEnd").val()
  6210. },
  6211. "type" : "POST",
  6212. "dataType" : "json",
  6213. "success" : function(data) {
  6214. if(data != null && data != ""){
  6215. if ( data.status =="success"){
  6216. getfp();
  6217. alert("获取成功!");
  6218. }else {
  6219. alert(data.status);
  6220. }
  6221. }else {
  6222. alert("获取失败!");
  6223. }
  6224. },
  6225. "complete": function(){
  6226. layer.close(tip);
  6227. }
  6228. });
  6229. }else {
  6230. alert("请选择日期!");
  6231. }
  6232. },
  6233. "set" : function(){
  6234. if ( $("#fpid option:selected").text() !=""){
  6235. var tip = layer.load(2);
  6236. var gitem = $("#form1").serialize();
  6237. var jrjc;
  6238. if ($("#jrjc").prop('checked') == true){
  6239. jrjc = $("#departmentId").val();
  6240. }else {
  6241. jrjc ='N'
  6242. }
  6243. var url = "saverk.do";
  6244. $.ajax({
  6245. "url" : url,
  6246. "data" : {
  6247. "gitem" : gitem,
  6248. "jrjc" : jrjc
  6249. },
  6250. "type" : "POST",
  6251. "dataType" : "json",
  6252. "async" : true,
  6253. "success" : function(data) {
  6254. if(data.status =="success"){
  6255. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6256. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6257. }else {
  6258. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6259. }
  6260. window.location.reload();
  6261. }else {
  6262. alert(data.status);
  6263. }
  6264. },
  6265. "error": function(){
  6266. alert("确认失败!");
  6267. },
  6268. "complete": function(){
  6269. layer.close(tip);
  6270. }
  6271. });
  6272. }else {
  6273. alert("请选择发票!");
  6274. }
  6275. }
  6276. }
  6277. function getfp(){
  6278. var tip = layer.load(2);
  6279. var url = "getgyfp.do";
  6280. $.ajax({
  6281. "url" : url,
  6282. "type" : "POST",
  6283. "dataType" : "json",
  6284. "async" : true,
  6285. "success" : function(data) {
  6286. if(data != null && data != ""){
  6287. $("#fpid").empty();
  6288. $("#fpid").append("_$tag_____________$tag____");
  6289. for(var i = 0; i < data.length; i++){
  6290. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6291. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6292. }
  6293. }
  6294. },
  6295. "error" : function(msg){
  6296. },
  6297. "complete": function(){
  6298. layer.close(tip);
  6299. }
  6300. });
  6301. }
  6302. $("#fpid").change(function(){
  6303. var tip = layer.load(2);
  6304. var url = "getgyrkxx.do";
  6305. var sum_total=0;
  6306. $.ajax({
  6307. "url" : url,
  6308. "data" : {
  6309. "fpId" : $("#fpid").val()
  6310. },
  6311. "type" : "POST",
  6312. "dataType" : "json",
  6313. "async" : true,
  6314. "success" : function(data) {
  6315. $("#dataTable").html("");
  6316. if(data != null && data != ""){
  6317. var html = "";
  6318. for(var i = 0; i < data.length; i++){
  6319. var ID = data[i].id == null ? "" : data[i].id;
  6320. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6321. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6322. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6323. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6324. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6325. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6326. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6327. var NAME = data[i].name == null ? "" : data[i].name;
  6328. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6329. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6330. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6331. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6332. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6333. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6334. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6335. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6336. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6337. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6338. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6339. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6340. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6341. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6342. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6343. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6344. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6345. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6346. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6347. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  6348. sum_total = sum_total + DSUMVALUE
  6349. var invoice_type_cn =null;
  6350. if (invoice_type =="00" ){
  6351. invoice_type_cn="销售发票";
  6352. }else if (invoice_type == "01") {
  6353. invoice_type_cn="更正(对冲)发票";
  6354. }else if (invoice_type == "02") {
  6355. invoice_type_cn="其它类型发票";
  6356. }
  6357. html += "_$ta";
  6358. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6359. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6360. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6361. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6362. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6363. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6364. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6365. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6366. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6367. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6368. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6369. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6370. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6371. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6372. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6373. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6374. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6375. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6376. html += "_$tag";
  6377. }
  6378. html += "_$ta";
  6379. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6380. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6381. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6382. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6383. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6384. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6385. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6386. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6387. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6388. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6389. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6390. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6391. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6392. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6393. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6394. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6395. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6396. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6397. html += "_$tag";
  6398. $("#dataTable").html(html);
  6399. }else {
  6400. $("#dataTable").html("");
  6401. }
  6402. },
  6403. "error" : function(msg){
  6404. },
  6405. "complete": function(){
  6406. layer.close(tip);
  6407. }
  6408. });
  6409. });
  6410. Date.prototype.Format = function (fmt) {
  6411. var o = {
  6412. "M+": this.getMonth() + 1, //月份
  6413. "d+": this.getDate(), //日
  6414. "h+": this.getHours(), //小时
  6415. "m+": this.getMinutes(), //分
  6416. "s+": this.getSeconds(), //秒
  6417. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6418. "S": this.getMilliseconds() //毫秒
  6419. };
  6420. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6421. for (var k in o)
  6422. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6423. return fmt;
  6424. }
  6425. $("#jrjc").change(function() {
  6426. if ($("#jrjc").prop('checked') == true){
  6427. $("#departmentId").removeAttr("disabled");
  6428. }else {
  6429. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6430. }
  6431. });
  6432. ----------------------------------- SOURCE END -------------------------------------
  6433. !STACK 0
  6434. java.lang.NullPointerException
  6435. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:38.925
  6436. !MESSAGE Error while processing working copy
  6437. !STACK 1
  6438. JavaScript Model Exception: java.lang.NullPointerException
  6439. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6440. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6441. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6442. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6443. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6444. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6445. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6446. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6447. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6448. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6449. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6450. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6451. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6452. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6453. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6454. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6455. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6456. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6457. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6458. Caused by: java.lang.NullPointerException
  6459. Caused by: java.lang.NullPointerException
  6460. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:20:38.925
  6461. !MESSAGE java.lang.NullPointerException
  6462. !STACK 0
  6463. java.lang.NullPointerException
  6464. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:39.606
  6465. !MESSAGE Exception occurred during problem detection:
  6466. ----------------------------------- SOURCE BEGIN -------------------------------------
  6467. (function(){WdatePicker();})();
  6468. (function(){WdatePicker();})();
  6469. (function(){Data.get();})();
  6470. (function(){Data.set();})();
  6471. (function(){search();})();
  6472. $(function(){
  6473. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6474. getfp();
  6475. });
  6476. var Data = {
  6477. "get" : function(){
  6478. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6479. var tip = layer.load(2);
  6480. var result="";
  6481. var url = "getgyxml.do";
  6482. $.ajax({
  6483. "url" : url,
  6484. "data" : {
  6485. "start_date" : $("#dateBegin").val(),
  6486. "end_date" : $("#dateEnd").val()
  6487. },
  6488. "type" : "POST",
  6489. "dataType" : "json",
  6490. "success" : function(data) {
  6491. if(data != null && data != ""){
  6492. if ( data.status =="success"){
  6493. getfp();
  6494. alert("获取成功!");
  6495. }else {
  6496. alert(data.status);
  6497. }
  6498. }else {
  6499. alert("获取失败!");
  6500. }
  6501. },
  6502. "complete": function(){
  6503. layer.close(tip);
  6504. }
  6505. });
  6506. }else {
  6507. alert("请选择日期!");
  6508. }
  6509. },
  6510. "set" : function(){
  6511. if ( $("#fpid option:selected").text() !=""){
  6512. var tip = layer.load(2);
  6513. var gitem = $("#form1").serialize();
  6514. var jrjc;
  6515. if ($("#jrjc").prop('checked') == true){
  6516. jrjc = $("#departmentId").val();
  6517. }else {
  6518. jrjc ='N'
  6519. }
  6520. var url = "saverk.do";
  6521. $.ajax({
  6522. "url" : url,
  6523. "data" : {
  6524. "gitem" : gitem,
  6525. "jrjc" : jrjc
  6526. },
  6527. "type" : "POST",
  6528. "dataType" : "json",
  6529. "async" : true,
  6530. "success" : function(data) {
  6531. if(data.status =="success"){
  6532. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6533. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6534. }else {
  6535. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6536. }
  6537. window.location.reload();
  6538. }else {
  6539. alert(data.status);
  6540. }
  6541. },
  6542. "error": function(){
  6543. alert("确认失败!");
  6544. },
  6545. "complete": function(){
  6546. layer.close(tip);
  6547. }
  6548. });
  6549. }else {
  6550. alert("请选择发票!");
  6551. }
  6552. }
  6553. }
  6554. function getfp(){
  6555. var tip = layer.load(2);
  6556. var url = "getgyfp.do";
  6557. $.ajax({
  6558. "url" : url,
  6559. "type" : "POST",
  6560. "dataType" : "json",
  6561. "async" : true,
  6562. "success" : function(data) {
  6563. if(data != null && data != ""){
  6564. $("#fpid").empty();
  6565. $("#fpid").append("_$tag_____________$tag____");
  6566. for(var i = 0; i < data.length; i++){
  6567. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6568. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6569. }
  6570. }
  6571. },
  6572. "error" : function(msg){
  6573. },
  6574. "complete": function(){
  6575. layer.close(tip);
  6576. }
  6577. });
  6578. }
  6579. $("#fpid").change(function(){
  6580. var tip = layer.load(2);
  6581. var url = "getgyrkxx.do";
  6582. var sum_total=0;
  6583. $.ajax({
  6584. "url" : url,
  6585. "data" : {
  6586. "fpId" : $("#fpid").val()
  6587. },
  6588. "type" : "POST",
  6589. "dataType" : "json",
  6590. "async" : true,
  6591. "success" : function(data) {
  6592. $("#dataTable").html("");
  6593. if(data != null && data != ""){
  6594. var html = "";
  6595. for(var i = 0; i < data.length; i++){
  6596. var ID = data[i].id == null ? "" : data[i].id;
  6597. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6598. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6599. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6600. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6601. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6602. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6603. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6604. var NAME = data[i].name == null ? "" : data[i].name;
  6605. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6606. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6607. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6608. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6609. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6610. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6611. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6612. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6613. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6614. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6615. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6616. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6617. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6618. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6619. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6620. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6621. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6622. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6623. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6624. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  6625. sum_total = sum_total + DSUMVALUE
  6626. var invoice_type_cn =null;
  6627. if (invoice_type =="00" ){
  6628. invoice_type_cn="销售发票";
  6629. }else if (invoice_type == "01") {
  6630. invoice_type_cn="更正(对冲)发票";
  6631. }else if (invoice_type == "02") {
  6632. invoice_type_cn="其它类型发票";
  6633. }
  6634. html += "_$ta";
  6635. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6636. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6637. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6638. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6639. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6640. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6641. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6642. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6643. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6644. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6645. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6646. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6647. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6648. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6649. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6650. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6651. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6652. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6653. html += "_$tag";
  6654. }
  6655. html += "_$ta";
  6656. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6657. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6658. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6659. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6660. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6661. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6662. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6663. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6664. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6665. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6666. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6667. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6668. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6669. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6670. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6671. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6672. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6673. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6674. html += "_$tag";
  6675. $("#dataTable").html(html);
  6676. }else {
  6677. $("#dataTable").html("");
  6678. }
  6679. },
  6680. "error" : function(msg){
  6681. },
  6682. "complete": function(){
  6683. layer.close(tip);
  6684. }
  6685. });
  6686. });
  6687. Date.prototype.Format = function (fmt) {
  6688. var o = {
  6689. "M+": this.getMonth() + 1, //月份
  6690. "d+": this.getDate(), //日
  6691. "h+": this.getHours(), //小时
  6692. "m+": this.getMinutes(), //分
  6693. "s+": this.getSeconds(), //秒
  6694. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6695. "S": this.getMilliseconds() //毫秒
  6696. };
  6697. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6698. for (var k in o)
  6699. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6700. return fmt;
  6701. }
  6702. $("#jrjc").change(function() {
  6703. if ($("#jrjc").prop('checked') == true){
  6704. $("#departmentId").removeAttr("disabled");
  6705. }else {
  6706. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6707. }
  6708. });
  6709. ----------------------------------- SOURCE END -------------------------------------
  6710. !STACK 0
  6711. java.lang.NullPointerException
  6712. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:59.902
  6713. !MESSAGE Exception occurred during problem detection:
  6714. ----------------------------------- SOURCE BEGIN -------------------------------------
  6715. (function(){WdatePicker();})();
  6716. (function(){WdatePicker();})();
  6717. (function(){Data.get();})();
  6718. (function(){Data.set();})();
  6719. (function(){search();})();
  6720. $(function(){
  6721. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6722. getfp();
  6723. });
  6724. var Data = {
  6725. "get" : function(){
  6726. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6727. var tip = layer.load(2);
  6728. var result="";
  6729. var url = "getgyxml.do";
  6730. $.ajax({
  6731. "url" : url,
  6732. "data" : {
  6733. "start_date" : $("#dateBegin").val(),
  6734. "end_date" : $("#dateEnd").val()
  6735. },
  6736. "type" : "POST",
  6737. "dataType" : "json",
  6738. "success" : function(data) {
  6739. if(data != null && data != ""){
  6740. if ( data.status =="success"){
  6741. getfp();
  6742. alert("获取成功!");
  6743. }else {
  6744. alert(data.status);
  6745. }
  6746. }else {
  6747. alert("获取失败!");
  6748. }
  6749. },
  6750. "complete": function(){
  6751. layer.close(tip);
  6752. }
  6753. });
  6754. }else {
  6755. alert("请选择日期!");
  6756. }
  6757. },
  6758. "set" : function(){
  6759. if ( $("#fpid option:selected").text() !=""){
  6760. var tip = layer.load(2);
  6761. var gitem = $("#form1").serialize();
  6762. var jrjc;
  6763. if ($("#jrjc").prop('checked') == true){
  6764. jrjc = $("#departmentId").val();
  6765. }else {
  6766. jrjc ='N'
  6767. }
  6768. var url = "saverk.do";
  6769. $.ajax({
  6770. "url" : url,
  6771. "data" : {
  6772. "gitem" : gitem,
  6773. "jrjc" : jrjc
  6774. },
  6775. "type" : "POST",
  6776. "dataType" : "json",
  6777. "async" : true,
  6778. "success" : function(data) {
  6779. if(data.status =="success"){
  6780. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  6781. alert("入库成功!\n入库单号:"+data.rkdh+"");
  6782. }else {
  6783. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  6784. }
  6785. window.location.reload();
  6786. }else {
  6787. alert(data.status);
  6788. }
  6789. },
  6790. "error": function(){
  6791. alert("确认失败!");
  6792. },
  6793. "complete": function(){
  6794. layer.close(tip);
  6795. }
  6796. });
  6797. }else {
  6798. alert("请选择发票!");
  6799. }
  6800. }
  6801. }
  6802. function getfp(){
  6803. var tip = layer.load(2);
  6804. var url = "getgyfp.do";
  6805. $.ajax({
  6806. "url" : url,
  6807. "type" : "POST",
  6808. "dataType" : "json",
  6809. "async" : true,
  6810. "success" : function(data) {
  6811. if(data != null && data != ""){
  6812. $("#fpid").empty();
  6813. $("#fpid").append("_$tag_____________$tag____");
  6814. for(var i = 0; i < data.length; i++){
  6815. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6816. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6817. }
  6818. }
  6819. },
  6820. "error" : function(msg){
  6821. },
  6822. "complete": function(){
  6823. layer.close(tip);
  6824. }
  6825. });
  6826. }
  6827. $("#fpid").change(function(){
  6828. var tip = layer.load(2);
  6829. var url = "getgyrkxx.do";
  6830. var sum_total=0;
  6831. $.ajax({
  6832. "url" : url,
  6833. "data" : {
  6834. "fpId" : $("#fpid").val()
  6835. },
  6836. "type" : "POST",
  6837. "dataType" : "json",
  6838. "async" : true,
  6839. "success" : function(data) {
  6840. $("#dataTable").html("");
  6841. if(data != null && data != ""){
  6842. var html = "";
  6843. for(var i = 0; i < data.length; i++){
  6844. var ID = data[i].id == null ? "" : data[i].id;
  6845. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6846. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6847. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6848. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6849. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6850. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6851. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6852. var NAME = data[i].name == null ? "" : data[i].name;
  6853. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6854. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6855. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6856. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6857. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6858. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6859. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6860. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6861. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6862. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6863. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6864. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6865. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6866. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6867. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6868. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6869. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6870. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  6871. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  6872. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  6873. sum_total = sum_total + DSUMVALUE
  6874. var invoice_type_cn =null;
  6875. if (invoice_type =="00" ){
  6876. invoice_type_cn="销售发票";
  6877. }else if (invoice_type == "01") {
  6878. invoice_type_cn="更正(对冲)发票";
  6879. }else if (invoice_type == "02") {
  6880. invoice_type_cn="其它类型发票";
  6881. }
  6882. html += "_$ta";
  6883. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6884. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6885. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6886. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6887. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6888. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6889. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6890. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6891. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6892. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  6893. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6894. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6895. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6896. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6897. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6898. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6899. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6900. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6901. html += "_$tag";
  6902. }
  6903. html += "_$ta";
  6904. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6905. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6906. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6907. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6908. html += "_$tag_____________$tag_合计:_$tag___$tag";
  6909. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  6910. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6911. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6912. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6913. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6914. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6915. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6916. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6917. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6918. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6919. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6920. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6921. html += "_$tag_____________$tag____________________________________________________________________$tag";
  6922. html += "_$tag";
  6923. $("#dataTable").html(html);
  6924. }else {
  6925. $("#dataTable").html("");
  6926. }
  6927. },
  6928. "error" : function(msg){
  6929. },
  6930. "complete": function(){
  6931. layer.close(tip);
  6932. }
  6933. });
  6934. });
  6935. Date.prototype.Format = function (fmt) {
  6936. var o = {
  6937. "M+": this.getMonth() + 1, //月份
  6938. "d+": this.getDate(), //日
  6939. "h+": this.getHours(), //小时
  6940. "m+": this.getMinutes(), //分
  6941. "s+": this.getSeconds(), //秒
  6942. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6943. "S": this.getMilliseconds() //毫秒
  6944. };
  6945. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6946. for (var k in o)
  6947. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6948. return fmt;
  6949. }
  6950. $("#jrjc").change(function() {
  6951. if ($("#jrjc").prop('checked') == true){
  6952. $("#departmentId").removeAttr("disabled");
  6953. }else {
  6954. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6955. }
  6956. });
  6957. ----------------------------------- SOURCE END -------------------------------------
  6958. !STACK 0
  6959. java.lang.NullPointerException
  6960. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:20:59.903
  6961. !MESSAGE Error while processing working copy
  6962. !STACK 1
  6963. JavaScript Model Exception: java.lang.NullPointerException
  6964. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6965. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6966. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6967. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6968. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6969. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6970. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6971. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6972. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6973. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6974. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6975. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6976. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6977. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6978. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6979. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6980. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6981. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6982. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6983. Caused by: java.lang.NullPointerException
  6984. Caused by: java.lang.NullPointerException
  6985. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:20:59.903
  6986. !MESSAGE java.lang.NullPointerException
  6987. !STACK 0
  6988. java.lang.NullPointerException
  6989. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:00.579
  6990. !MESSAGE Exception occurred during problem detection:
  6991. ----------------------------------- SOURCE BEGIN -------------------------------------
  6992. (function(){WdatePicker();})();
  6993. (function(){WdatePicker();})();
  6994. (function(){Data.get();})();
  6995. (function(){Data.set();})();
  6996. (function(){search();})();
  6997. $(function(){
  6998. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6999. getfp();
  7000. });
  7001. var Data = {
  7002. "get" : function(){
  7003. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7004. var tip = layer.load(2);
  7005. var result="";
  7006. var url = "getgyxml.do";
  7007. $.ajax({
  7008. "url" : url,
  7009. "data" : {
  7010. "start_date" : $("#dateBegin").val(),
  7011. "end_date" : $("#dateEnd").val()
  7012. },
  7013. "type" : "POST",
  7014. "dataType" : "json",
  7015. "success" : function(data) {
  7016. if(data != null && data != ""){
  7017. if ( data.status =="success"){
  7018. getfp();
  7019. alert("获取成功!");
  7020. }else {
  7021. alert(data.status);
  7022. }
  7023. }else {
  7024. alert("获取失败!");
  7025. }
  7026. },
  7027. "complete": function(){
  7028. layer.close(tip);
  7029. }
  7030. });
  7031. }else {
  7032. alert("请选择日期!");
  7033. }
  7034. },
  7035. "set" : function(){
  7036. if ( $("#fpid option:selected").text() !=""){
  7037. var tip = layer.load(2);
  7038. var gitem = $("#form1").serialize();
  7039. var jrjc;
  7040. if ($("#jrjc").prop('checked') == true){
  7041. jrjc = $("#departmentId").val();
  7042. }else {
  7043. jrjc ='N'
  7044. }
  7045. var url = "saverk.do";
  7046. $.ajax({
  7047. "url" : url,
  7048. "data" : {
  7049. "gitem" : gitem,
  7050. "jrjc" : jrjc
  7051. },
  7052. "type" : "POST",
  7053. "dataType" : "json",
  7054. "async" : true,
  7055. "success" : function(data) {
  7056. if(data.status =="success"){
  7057. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7058. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7059. }else {
  7060. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7061. }
  7062. window.location.reload();
  7063. }else {
  7064. alert(data.status);
  7065. }
  7066. },
  7067. "error": function(){
  7068. alert("确认失败!");
  7069. },
  7070. "complete": function(){
  7071. layer.close(tip);
  7072. }
  7073. });
  7074. }else {
  7075. alert("请选择发票!");
  7076. }
  7077. }
  7078. }
  7079. function getfp(){
  7080. var tip = layer.load(2);
  7081. var url = "getgyfp.do";
  7082. $.ajax({
  7083. "url" : url,
  7084. "type" : "POST",
  7085. "dataType" : "json",
  7086. "async" : true,
  7087. "success" : function(data) {
  7088. if(data != null && data != ""){
  7089. $("#fpid").empty();
  7090. $("#fpid").append("_$tag_____________$tag____");
  7091. for(var i = 0; i < data.length; i++){
  7092. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7093. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7094. }
  7095. }
  7096. },
  7097. "error" : function(msg){
  7098. },
  7099. "complete": function(){
  7100. layer.close(tip);
  7101. }
  7102. });
  7103. }
  7104. $("#fpid").change(function(){
  7105. var tip = layer.load(2);
  7106. var url = "getgyrkxx.do";
  7107. var sum_total=0;
  7108. $.ajax({
  7109. "url" : url,
  7110. "data" : {
  7111. "fpId" : $("#fpid").val()
  7112. },
  7113. "type" : "POST",
  7114. "dataType" : "json",
  7115. "async" : true,
  7116. "success" : function(data) {
  7117. $("#dataTable").html("");
  7118. if(data != null && data != ""){
  7119. var html = "";
  7120. for(var i = 0; i < data.length; i++){
  7121. var ID = data[i].id == null ? "" : data[i].id;
  7122. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7123. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7124. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7125. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7126. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7127. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7128. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7129. var NAME = data[i].name == null ? "" : data[i].name;
  7130. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7131. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7132. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7133. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7134. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7135. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7136. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7137. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7138. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7139. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7140. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7141. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7142. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7143. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7144. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7145. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7146. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7147. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7148. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7149. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  7150. sum_total = sum_total + DSUMVALUE
  7151. var invoice_type_cn =null;
  7152. if (invoice_type =="00" ){
  7153. invoice_type_cn="销售发票";
  7154. }else if (invoice_type == "01") {
  7155. invoice_type_cn="更正(对冲)发票";
  7156. }else if (invoice_type == "02") {
  7157. invoice_type_cn="其它类型发票";
  7158. }
  7159. html += "_$ta";
  7160. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7161. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7162. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7163. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7164. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7165. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7166. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7167. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7168. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7169. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  7170. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7171. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7172. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7173. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7174. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7175. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7176. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7177. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7178. html += "_$tag";
  7179. }
  7180. html += "_$ta";
  7181. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7182. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7183. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7184. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7185. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7186. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7187. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7188. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7189. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7190. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7191. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7192. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7193. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7194. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7195. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7196. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7197. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7198. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7199. html += "_$tag";
  7200. $("#dataTable").html(html);
  7201. }else {
  7202. $("#dataTable").html("");
  7203. }
  7204. },
  7205. "error" : function(msg){
  7206. },
  7207. "complete": function(){
  7208. layer.close(tip);
  7209. }
  7210. });
  7211. });
  7212. Date.prototype.Format = function (fmt) {
  7213. var o = {
  7214. "M+": this.getMonth() + 1, //月份
  7215. "d+": this.getDate(), //日
  7216. "h+": this.getHours(), //小时
  7217. "m+": this.getMinutes(), //分
  7218. "s+": this.getSeconds(), //秒
  7219. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7220. "S": this.getMilliseconds() //毫秒
  7221. };
  7222. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7223. for (var k in o)
  7224. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7225. return fmt;
  7226. }
  7227. $("#jrjc").change(function() {
  7228. if ($("#jrjc").prop('checked') == true){
  7229. $("#departmentId").removeAttr("disabled");
  7230. }else {
  7231. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7232. }
  7233. });
  7234. ----------------------------------- SOURCE END -------------------------------------
  7235. !STACK 0
  7236. java.lang.NullPointerException
  7237. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:01.695
  7238. !MESSAGE Exception occurred during problem detection:
  7239. ----------------------------------- SOURCE BEGIN -------------------------------------
  7240. (function(){WdatePicker();})();
  7241. (function(){WdatePicker();})();
  7242. (function(){Data.get();})();
  7243. (function(){Data.set();})();
  7244. (function(){search();})();
  7245. $(function(){
  7246. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7247. getfp();
  7248. });
  7249. var Data = {
  7250. "get" : function(){
  7251. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7252. var tip = layer.load(2);
  7253. var result="";
  7254. var url = "getgyxml.do";
  7255. $.ajax({
  7256. "url" : url,
  7257. "data" : {
  7258. "start_date" : $("#dateBegin").val(),
  7259. "end_date" : $("#dateEnd").val()
  7260. },
  7261. "type" : "POST",
  7262. "dataType" : "json",
  7263. "success" : function(data) {
  7264. if(data != null && data != ""){
  7265. if ( data.status =="success"){
  7266. getfp();
  7267. alert("获取成功!");
  7268. }else {
  7269. alert(data.status);
  7270. }
  7271. }else {
  7272. alert("获取失败!");
  7273. }
  7274. },
  7275. "complete": function(){
  7276. layer.close(tip);
  7277. }
  7278. });
  7279. }else {
  7280. alert("请选择日期!");
  7281. }
  7282. },
  7283. "set" : function(){
  7284. if ( $("#fpid option:selected").text() !=""){
  7285. var tip = layer.load(2);
  7286. var gitem = $("#form1").serialize();
  7287. var jrjc;
  7288. if ($("#jrjc").prop('checked') == true){
  7289. jrjc = $("#departmentId").val();
  7290. }else {
  7291. jrjc ='N'
  7292. }
  7293. var url = "saverk.do";
  7294. $.ajax({
  7295. "url" : url,
  7296. "data" : {
  7297. "gitem" : gitem,
  7298. "jrjc" : jrjc
  7299. },
  7300. "type" : "POST",
  7301. "dataType" : "json",
  7302. "async" : true,
  7303. "success" : function(data) {
  7304. if(data.status =="success"){
  7305. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7306. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7307. }else {
  7308. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7309. }
  7310. window.location.reload();
  7311. }else {
  7312. alert(data.status);
  7313. }
  7314. },
  7315. "error": function(){
  7316. alert("确认失败!");
  7317. },
  7318. "complete": function(){
  7319. layer.close(tip);
  7320. }
  7321. });
  7322. }else {
  7323. alert("请选择发票!");
  7324. }
  7325. }
  7326. }
  7327. function getfp(){
  7328. var tip = layer.load(2);
  7329. var url = "getgyfp.do";
  7330. $.ajax({
  7331. "url" : url,
  7332. "type" : "POST",
  7333. "dataType" : "json",
  7334. "async" : true,
  7335. "success" : function(data) {
  7336. if(data != null && data != ""){
  7337. $("#fpid").empty();
  7338. $("#fpid").append("_$tag_____________$tag____");
  7339. for(var i = 0; i < data.length; i++){
  7340. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7341. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7342. }
  7343. }
  7344. },
  7345. "error" : function(msg){
  7346. },
  7347. "complete": function(){
  7348. layer.close(tip);
  7349. }
  7350. });
  7351. }
  7352. $("#fpid").change(function(){
  7353. var tip = layer.load(2);
  7354. var url = "getgyrkxx.do";
  7355. var sum_total=0;
  7356. $.ajax({
  7357. "url" : url,
  7358. "data" : {
  7359. "fpId" : $("#fpid").val()
  7360. },
  7361. "type" : "POST",
  7362. "dataType" : "json",
  7363. "async" : true,
  7364. "success" : function(data) {
  7365. $("#dataTable").html("");
  7366. if(data != null && data != ""){
  7367. var html = "";
  7368. for(var i = 0; i < data.length; i++){
  7369. var ID = data[i].id == null ? "" : data[i].id;
  7370. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7371. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7372. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7373. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7374. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7375. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7376. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7377. var NAME = data[i].name == null ? "" : data[i].name;
  7378. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7379. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7380. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7381. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7382. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7383. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7384. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7385. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7386. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7387. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7388. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7389. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7390. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7391. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7392. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7393. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7394. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7395. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7396. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7397. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  7398. sum_total = sum_total + DSUMVALUE
  7399. var invoice_type_cn =null;
  7400. if (invoice_type =="00" ){
  7401. invoice_type_cn="销售发票";
  7402. }else if (invoice_type == "01") {
  7403. invoice_type_cn="更正(对冲)发票";
  7404. }else if (invoice_type == "02") {
  7405. invoice_type_cn="其它类型发票";
  7406. }
  7407. html += "_$ta";
  7408. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7409. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7410. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7411. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7412. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7413. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7414. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7415. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7416. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7417. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  7418. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7419. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7420. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7421. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7422. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7423. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7424. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7425. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7426. html += "_$tag";
  7427. }
  7428. html += "_$ta";
  7429. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7430. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7431. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7432. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7433. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7434. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7435. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7436. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7437. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7438. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7439. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7440. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7441. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7442. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7443. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7444. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7445. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7446. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7447. html += "_$tag";
  7448. $("#dataTable").html(html);
  7449. }else {
  7450. $("#dataTable").html("");
  7451. }
  7452. },
  7453. "error" : function(msg){
  7454. },
  7455. "complete": function(){
  7456. layer.close(tip);
  7457. }
  7458. });
  7459. });
  7460. Date.prototype.Format = function (fmt) {
  7461. var o = {
  7462. "M+": this.getMonth() + 1, //月份
  7463. "d+": this.getDate(), //日
  7464. "h+": this.getHours(), //小时
  7465. "m+": this.getMinutes(), //分
  7466. "s+": this.getSeconds(), //秒
  7467. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7468. "S": this.getMilliseconds() //毫秒
  7469. };
  7470. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7471. for (var k in o)
  7472. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7473. return fmt;
  7474. }
  7475. $("#jrjc").change(function() {
  7476. if ($("#jrjc").prop('checked') == true){
  7477. $("#departmentId").removeAttr("disabled");
  7478. }else {
  7479. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7480. }
  7481. });
  7482. ----------------------------------- SOURCE END -------------------------------------
  7483. !STACK 0
  7484. java.lang.NullPointerException
  7485. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:01.696
  7486. !MESSAGE Error while processing working copy
  7487. !STACK 1
  7488. JavaScript Model Exception: java.lang.NullPointerException
  7489. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7490. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7491. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7492. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7493. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7494. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7495. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7496. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7497. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7498. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7499. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7500. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7501. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7502. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7503. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7504. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7505. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7506. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7507. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7508. Caused by: java.lang.NullPointerException
  7509. Caused by: java.lang.NullPointerException
  7510. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:01.696
  7511. !MESSAGE java.lang.NullPointerException
  7512. !STACK 0
  7513. java.lang.NullPointerException
  7514. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:02.388
  7515. !MESSAGE Exception occurred during problem detection:
  7516. ----------------------------------- SOURCE BEGIN -------------------------------------
  7517. (function(){WdatePicker();})();
  7518. (function(){WdatePicker();})();
  7519. (function(){Data.get();})();
  7520. (function(){Data.set();})();
  7521. (function(){search();})();
  7522. $(function(){
  7523. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7524. getfp();
  7525. });
  7526. var Data = {
  7527. "get" : function(){
  7528. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7529. var tip = layer.load(2);
  7530. var result="";
  7531. var url = "getgyxml.do";
  7532. $.ajax({
  7533. "url" : url,
  7534. "data" : {
  7535. "start_date" : $("#dateBegin").val(),
  7536. "end_date" : $("#dateEnd").val()
  7537. },
  7538. "type" : "POST",
  7539. "dataType" : "json",
  7540. "success" : function(data) {
  7541. if(data != null && data != ""){
  7542. if ( data.status =="success"){
  7543. getfp();
  7544. alert("获取成功!");
  7545. }else {
  7546. alert(data.status);
  7547. }
  7548. }else {
  7549. alert("获取失败!");
  7550. }
  7551. },
  7552. "complete": function(){
  7553. layer.close(tip);
  7554. }
  7555. });
  7556. }else {
  7557. alert("请选择日期!");
  7558. }
  7559. },
  7560. "set" : function(){
  7561. if ( $("#fpid option:selected").text() !=""){
  7562. var tip = layer.load(2);
  7563. var gitem = $("#form1").serialize();
  7564. var jrjc;
  7565. if ($("#jrjc").prop('checked') == true){
  7566. jrjc = $("#departmentId").val();
  7567. }else {
  7568. jrjc ='N'
  7569. }
  7570. var url = "saverk.do";
  7571. $.ajax({
  7572. "url" : url,
  7573. "data" : {
  7574. "gitem" : gitem,
  7575. "jrjc" : jrjc
  7576. },
  7577. "type" : "POST",
  7578. "dataType" : "json",
  7579. "async" : true,
  7580. "success" : function(data) {
  7581. if(data.status =="success"){
  7582. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7583. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7584. }else {
  7585. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7586. }
  7587. window.location.reload();
  7588. }else {
  7589. alert(data.status);
  7590. }
  7591. },
  7592. "error": function(){
  7593. alert("确认失败!");
  7594. },
  7595. "complete": function(){
  7596. layer.close(tip);
  7597. }
  7598. });
  7599. }else {
  7600. alert("请选择发票!");
  7601. }
  7602. }
  7603. }
  7604. function getfp(){
  7605. var tip = layer.load(2);
  7606. var url = "getgyfp.do";
  7607. $.ajax({
  7608. "url" : url,
  7609. "type" : "POST",
  7610. "dataType" : "json",
  7611. "async" : true,
  7612. "success" : function(data) {
  7613. if(data != null && data != ""){
  7614. $("#fpid").empty();
  7615. $("#fpid").append("_$tag_____________$tag____");
  7616. for(var i = 0; i < data.length; i++){
  7617. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7618. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7619. }
  7620. }
  7621. },
  7622. "error" : function(msg){
  7623. },
  7624. "complete": function(){
  7625. layer.close(tip);
  7626. }
  7627. });
  7628. }
  7629. $("#fpid").change(function(){
  7630. var tip = layer.load(2);
  7631. var url = "getgyrkxx.do";
  7632. var sum_total=0;
  7633. $.ajax({
  7634. "url" : url,
  7635. "data" : {
  7636. "fpId" : $("#fpid").val()
  7637. },
  7638. "type" : "POST",
  7639. "dataType" : "json",
  7640. "async" : true,
  7641. "success" : function(data) {
  7642. $("#dataTable").html("");
  7643. if(data != null && data != ""){
  7644. var html = "";
  7645. for(var i = 0; i < data.length; i++){
  7646. var ID = data[i].id == null ? "" : data[i].id;
  7647. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7648. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7649. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7650. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7651. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7652. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7653. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7654. var NAME = data[i].name == null ? "" : data[i].name;
  7655. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7656. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7657. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7658. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7659. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7660. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7661. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7662. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7663. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7664. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7665. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7666. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7667. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7668. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7669. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7670. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7671. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7672. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7673. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7674. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  7675. sum_total = sum_total + DSUMVALUE
  7676. var invoice_type_cn =null;
  7677. if (invoice_type =="00" ){
  7678. invoice_type_cn="销售发票";
  7679. }else if (invoice_type == "01") {
  7680. invoice_type_cn="更正(对冲)发票";
  7681. }else if (invoice_type == "02") {
  7682. invoice_type_cn="其它类型发票";
  7683. }
  7684. html += "_$ta";
  7685. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7686. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7687. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7688. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7689. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7690. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7691. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7692. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7693. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7694. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  7695. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7696. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7697. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7698. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7699. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7700. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7701. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7702. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7703. html += "_$tag";
  7704. }
  7705. html += "_$ta";
  7706. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7707. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7708. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7709. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7710. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7711. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7712. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7713. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7714. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7715. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7716. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7717. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7718. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7719. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7720. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7721. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7722. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7723. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7724. html += "_$tag";
  7725. $("#dataTable").html(html);
  7726. }else {
  7727. $("#dataTable").html("");
  7728. }
  7729. },
  7730. "error" : function(msg){
  7731. },
  7732. "complete": function(){
  7733. layer.close(tip);
  7734. }
  7735. });
  7736. });
  7737. Date.prototype.Format = function (fmt) {
  7738. var o = {
  7739. "M+": this.getMonth() + 1, //月份
  7740. "d+": this.getDate(), //日
  7741. "h+": this.getHours(), //小时
  7742. "m+": this.getMinutes(), //分
  7743. "s+": this.getSeconds(), //秒
  7744. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7745. "S": this.getMilliseconds() //毫秒
  7746. };
  7747. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7748. for (var k in o)
  7749. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7750. return fmt;
  7751. }
  7752. $("#jrjc").change(function() {
  7753. if ($("#jrjc").prop('checked') == true){
  7754. $("#departmentId").removeAttr("disabled");
  7755. }else {
  7756. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7757. }
  7758. });
  7759. ----------------------------------- SOURCE END -------------------------------------
  7760. !STACK 0
  7761. java.lang.NullPointerException
  7762. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:03.193
  7763. !MESSAGE Exception occurred during problem detection:
  7764. ----------------------------------- SOURCE BEGIN -------------------------------------
  7765. (function(){WdatePicker();})();
  7766. (function(){WdatePicker();})();
  7767. (function(){Data.get();})();
  7768. (function(){Data.set();})();
  7769. (function(){search();})();
  7770. $(function(){
  7771. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7772. getfp();
  7773. });
  7774. var Data = {
  7775. "get" : function(){
  7776. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7777. var tip = layer.load(2);
  7778. var result="";
  7779. var url = "getgyxml.do";
  7780. $.ajax({
  7781. "url" : url,
  7782. "data" : {
  7783. "start_date" : $("#dateBegin").val(),
  7784. "end_date" : $("#dateEnd").val()
  7785. },
  7786. "type" : "POST",
  7787. "dataType" : "json",
  7788. "success" : function(data) {
  7789. if(data != null && data != ""){
  7790. if ( data.status =="success"){
  7791. getfp();
  7792. alert("获取成功!");
  7793. }else {
  7794. alert(data.status);
  7795. }
  7796. }else {
  7797. alert("获取失败!");
  7798. }
  7799. },
  7800. "complete": function(){
  7801. layer.close(tip);
  7802. }
  7803. });
  7804. }else {
  7805. alert("请选择日期!");
  7806. }
  7807. },
  7808. "set" : function(){
  7809. if ( $("#fpid option:selected").text() !=""){
  7810. var tip = layer.load(2);
  7811. var gitem = $("#form1").serialize();
  7812. var jrjc;
  7813. if ($("#jrjc").prop('checked') == true){
  7814. jrjc = $("#departmentId").val();
  7815. }else {
  7816. jrjc ='N'
  7817. }
  7818. var url = "saverk.do";
  7819. $.ajax({
  7820. "url" : url,
  7821. "data" : {
  7822. "gitem" : gitem,
  7823. "jrjc" : jrjc
  7824. },
  7825. "type" : "POST",
  7826. "dataType" : "json",
  7827. "async" : true,
  7828. "success" : function(data) {
  7829. if(data.status =="success"){
  7830. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  7831. alert("入库成功!\n入库单号:"+data.rkdh+"");
  7832. }else {
  7833. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  7834. }
  7835. window.location.reload();
  7836. }else {
  7837. alert(data.status);
  7838. }
  7839. },
  7840. "error": function(){
  7841. alert("确认失败!");
  7842. },
  7843. "complete": function(){
  7844. layer.close(tip);
  7845. }
  7846. });
  7847. }else {
  7848. alert("请选择发票!");
  7849. }
  7850. }
  7851. }
  7852. function getfp(){
  7853. var tip = layer.load(2);
  7854. var url = "getgyfp.do";
  7855. $.ajax({
  7856. "url" : url,
  7857. "type" : "POST",
  7858. "dataType" : "json",
  7859. "async" : true,
  7860. "success" : function(data) {
  7861. if(data != null && data != ""){
  7862. $("#fpid").empty();
  7863. $("#fpid").append("_$tag_____________$tag____");
  7864. for(var i = 0; i < data.length; i++){
  7865. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7866. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7867. }
  7868. }
  7869. },
  7870. "error" : function(msg){
  7871. },
  7872. "complete": function(){
  7873. layer.close(tip);
  7874. }
  7875. });
  7876. }
  7877. $("#fpid").change(function(){
  7878. var tip = layer.load(2);
  7879. var url = "getgyrkxx.do";
  7880. var sum_total=0;
  7881. $.ajax({
  7882. "url" : url,
  7883. "data" : {
  7884. "fpId" : $("#fpid").val()
  7885. },
  7886. "type" : "POST",
  7887. "dataType" : "json",
  7888. "async" : true,
  7889. "success" : function(data) {
  7890. $("#dataTable").html("");
  7891. if(data != null && data != ""){
  7892. var html = "";
  7893. for(var i = 0; i < data.length; i++){
  7894. var ID = data[i].id == null ? "" : data[i].id;
  7895. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7896. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7897. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7898. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7899. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7900. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7901. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7902. var NAME = data[i].name == null ? "" : data[i].name;
  7903. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7904. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7905. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7906. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7907. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7908. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7909. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7910. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7911. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7912. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7913. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7914. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7915. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7916. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7917. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7918. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7919. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7920. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  7921. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  7922. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  7923. sum_total = sum_total + DSUMVALUE
  7924. var invoice_type_cn =null;
  7925. if (invoice_type =="00" ){
  7926. invoice_type_cn="销售发票";
  7927. }else if (invoice_type == "01") {
  7928. invoice_type_cn="更正(对冲)发票";
  7929. }else if (invoice_type == "02") {
  7930. invoice_type_cn="其它类型发票";
  7931. }
  7932. html += "_$ta";
  7933. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7934. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7935. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7936. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7937. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7938. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7939. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7940. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7941. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7942. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  7943. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7944. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7945. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7946. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7947. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7948. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7949. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7950. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7951. html += "_$tag";
  7952. }
  7953. html += "_$ta";
  7954. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7955. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7956. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7957. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7958. html += "_$tag_____________$tag_合计:_$tag___$tag";
  7959. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  7960. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7961. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7962. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7963. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7964. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7965. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7966. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7967. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7968. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7969. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7970. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7971. html += "_$tag_____________$tag____________________________________________________________________$tag";
  7972. html += "_$tag";
  7973. $("#dataTable").html(html);
  7974. }else {
  7975. $("#dataTable").html("");
  7976. }
  7977. },
  7978. "error" : function(msg){
  7979. },
  7980. "complete": function(){
  7981. layer.close(tip);
  7982. }
  7983. });
  7984. });
  7985. Date.prototype.Format = function (fmt) {
  7986. var o = {
  7987. "M+": this.getMonth() + 1, //月份
  7988. "d+": this.getDate(), //日
  7989. "h+": this.getHours(), //小时
  7990. "m+": this.getMinutes(), //分
  7991. "s+": this.getSeconds(), //秒
  7992. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7993. "S": this.getMilliseconds() //毫秒
  7994. };
  7995. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7996. for (var k in o)
  7997. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7998. return fmt;
  7999. }
  8000. $("#jrjc").change(function() {
  8001. if ($("#jrjc").prop('checked') == true){
  8002. $("#departmentId").removeAttr("disabled");
  8003. }else {
  8004. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8005. }
  8006. });
  8007. ----------------------------------- SOURCE END -------------------------------------
  8008. !STACK 0
  8009. java.lang.NullPointerException
  8010. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:03.194
  8011. !MESSAGE Error while processing working copy
  8012. !STACK 1
  8013. JavaScript Model Exception: java.lang.NullPointerException
  8014. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8015. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8016. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8017. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8018. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8019. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8020. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8021. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8022. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8023. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8024. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8025. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8026. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8027. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8028. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8029. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8030. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8031. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8032. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8033. Caused by: java.lang.NullPointerException
  8034. Caused by: java.lang.NullPointerException
  8035. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:03.194
  8036. !MESSAGE java.lang.NullPointerException
  8037. !STACK 0
  8038. java.lang.NullPointerException
  8039. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:03.840
  8040. !MESSAGE Exception occurred during problem detection:
  8041. ----------------------------------- SOURCE BEGIN -------------------------------------
  8042. (function(){WdatePicker();})();
  8043. (function(){WdatePicker();})();
  8044. (function(){Data.get();})();
  8045. (function(){Data.set();})();
  8046. (function(){search();})();
  8047. $(function(){
  8048. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8049. getfp();
  8050. });
  8051. var Data = {
  8052. "get" : function(){
  8053. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8054. var tip = layer.load(2);
  8055. var result="";
  8056. var url = "getgyxml.do";
  8057. $.ajax({
  8058. "url" : url,
  8059. "data" : {
  8060. "start_date" : $("#dateBegin").val(),
  8061. "end_date" : $("#dateEnd").val()
  8062. },
  8063. "type" : "POST",
  8064. "dataType" : "json",
  8065. "success" : function(data) {
  8066. if(data != null && data != ""){
  8067. if ( data.status =="success"){
  8068. getfp();
  8069. alert("获取成功!");
  8070. }else {
  8071. alert(data.status);
  8072. }
  8073. }else {
  8074. alert("获取失败!");
  8075. }
  8076. },
  8077. "complete": function(){
  8078. layer.close(tip);
  8079. }
  8080. });
  8081. }else {
  8082. alert("请选择日期!");
  8083. }
  8084. },
  8085. "set" : function(){
  8086. if ( $("#fpid option:selected").text() !=""){
  8087. var tip = layer.load(2);
  8088. var gitem = $("#form1").serialize();
  8089. var jrjc;
  8090. if ($("#jrjc").prop('checked') == true){
  8091. jrjc = $("#departmentId").val();
  8092. }else {
  8093. jrjc ='N'
  8094. }
  8095. var url = "saverk.do";
  8096. $.ajax({
  8097. "url" : url,
  8098. "data" : {
  8099. "gitem" : gitem,
  8100. "jrjc" : jrjc
  8101. },
  8102. "type" : "POST",
  8103. "dataType" : "json",
  8104. "async" : true,
  8105. "success" : function(data) {
  8106. if(data.status =="success"){
  8107. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8108. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8109. }else {
  8110. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8111. }
  8112. window.location.reload();
  8113. }else {
  8114. alert(data.status);
  8115. }
  8116. },
  8117. "error": function(){
  8118. alert("确认失败!");
  8119. },
  8120. "complete": function(){
  8121. layer.close(tip);
  8122. }
  8123. });
  8124. }else {
  8125. alert("请选择发票!");
  8126. }
  8127. }
  8128. }
  8129. function getfp(){
  8130. var tip = layer.load(2);
  8131. var url = "getgyfp.do";
  8132. $.ajax({
  8133. "url" : url,
  8134. "type" : "POST",
  8135. "dataType" : "json",
  8136. "async" : true,
  8137. "success" : function(data) {
  8138. if(data != null && data != ""){
  8139. $("#fpid").empty();
  8140. $("#fpid").append("_$tag_____________$tag____");
  8141. for(var i = 0; i < data.length; i++){
  8142. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8143. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8144. }
  8145. }
  8146. },
  8147. "error" : function(msg){
  8148. },
  8149. "complete": function(){
  8150. layer.close(tip);
  8151. }
  8152. });
  8153. }
  8154. $("#fpid").change(function(){
  8155. var tip = layer.load(2);
  8156. var url = "getgyrkxx.do";
  8157. var sum_total=0;
  8158. $.ajax({
  8159. "url" : url,
  8160. "data" : {
  8161. "fpId" : $("#fpid").val()
  8162. },
  8163. "type" : "POST",
  8164. "dataType" : "json",
  8165. "async" : true,
  8166. "success" : function(data) {
  8167. $("#dataTable").html("");
  8168. if(data != null && data != ""){
  8169. var html = "";
  8170. for(var i = 0; i < data.length; i++){
  8171. var ID = data[i].id == null ? "" : data[i].id;
  8172. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8173. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8174. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8175. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8176. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8177. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8178. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8179. var NAME = data[i].name == null ? "" : data[i].name;
  8180. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8181. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8182. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8183. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8184. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8185. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8186. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8187. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8188. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8189. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8190. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8191. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8192. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8193. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8194. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8195. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8196. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8197. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8198. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8199. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  8200. sum_total = sum_total + DSUMVALUE
  8201. var invoice_type_cn =null;
  8202. if (invoice_type =="00" ){
  8203. invoice_type_cn="销售发票";
  8204. }else if (invoice_type == "01") {
  8205. invoice_type_cn="更正(对冲)发票";
  8206. }else if (invoice_type == "02") {
  8207. invoice_type_cn="其它类型发票";
  8208. }
  8209. html += "_$ta";
  8210. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8211. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8212. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8213. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8214. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8215. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8216. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8217. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8218. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8219. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8220. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8221. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8222. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8223. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8224. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8225. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8226. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8227. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8228. html += "_$tag";
  8229. }
  8230. html += "_$ta";
  8231. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8232. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8233. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8234. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8235. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8236. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8237. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8238. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8239. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8240. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8241. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8242. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8243. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8244. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8245. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8246. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8247. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8248. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8249. html += "_$tag";
  8250. $("#dataTable").html(html);
  8251. }else {
  8252. $("#dataTable").html("");
  8253. }
  8254. },
  8255. "error" : function(msg){
  8256. },
  8257. "complete": function(){
  8258. layer.close(tip);
  8259. }
  8260. });
  8261. });
  8262. Date.prototype.Format = function (fmt) {
  8263. var o = {
  8264. "M+": this.getMonth() + 1, //月份
  8265. "d+": this.getDate(), //日
  8266. "h+": this.getHours(), //小时
  8267. "m+": this.getMinutes(), //分
  8268. "s+": this.getSeconds(), //秒
  8269. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8270. "S": this.getMilliseconds() //毫秒
  8271. };
  8272. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8273. for (var k in o)
  8274. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8275. return fmt;
  8276. }
  8277. $("#jrjc").change(function() {
  8278. if ($("#jrjc").prop('checked') == true){
  8279. $("#departmentId").removeAttr("disabled");
  8280. }else {
  8281. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8282. }
  8283. });
  8284. ----------------------------------- SOURCE END -------------------------------------
  8285. !STACK 0
  8286. java.lang.NullPointerException
  8287. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:07.802
  8288. !MESSAGE Exception occurred during problem detection:
  8289. ----------------------------------- SOURCE BEGIN -------------------------------------
  8290. (function(){WdatePicker();})();
  8291. (function(){WdatePicker();})();
  8292. (function(){Data.get();})();
  8293. (function(){Data.set();})();
  8294. (function(){search();})();
  8295. $(function(){
  8296. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8297. getfp();
  8298. });
  8299. var Data = {
  8300. "get" : function(){
  8301. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8302. var tip = layer.load(2);
  8303. var result="";
  8304. var url = "getgyxml.do";
  8305. $.ajax({
  8306. "url" : url,
  8307. "data" : {
  8308. "start_date" : $("#dateBegin").val(),
  8309. "end_date" : $("#dateEnd").val()
  8310. },
  8311. "type" : "POST",
  8312. "dataType" : "json",
  8313. "success" : function(data) {
  8314. if(data != null && data != ""){
  8315. if ( data.status =="success"){
  8316. getfp();
  8317. alert("获取成功!");
  8318. }else {
  8319. alert(data.status);
  8320. }
  8321. }else {
  8322. alert("获取失败!");
  8323. }
  8324. },
  8325. "complete": function(){
  8326. layer.close(tip);
  8327. }
  8328. });
  8329. }else {
  8330. alert("请选择日期!");
  8331. }
  8332. },
  8333. "set" : function(){
  8334. if ( $("#fpid option:selected").text() !=""){
  8335. var tip = layer.load(2);
  8336. var gitem = $("#form1").serialize();
  8337. var jrjc;
  8338. if ($("#jrjc").prop('checked') == true){
  8339. jrjc = $("#departmentId").val();
  8340. }else {
  8341. jrjc ='N'
  8342. }
  8343. var url = "saverk.do";
  8344. $.ajax({
  8345. "url" : url,
  8346. "data" : {
  8347. "gitem" : gitem,
  8348. "jrjc" : jrjc
  8349. },
  8350. "type" : "POST",
  8351. "dataType" : "json",
  8352. "async" : true,
  8353. "success" : function(data) {
  8354. if(data.status =="success"){
  8355. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8356. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8357. }else {
  8358. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8359. }
  8360. window.location.reload();
  8361. }else {
  8362. alert(data.status);
  8363. }
  8364. },
  8365. "error": function(){
  8366. alert("确认失败!");
  8367. },
  8368. "complete": function(){
  8369. layer.close(tip);
  8370. }
  8371. });
  8372. }else {
  8373. alert("请选择发票!");
  8374. }
  8375. }
  8376. }
  8377. function getfp(){
  8378. var tip = layer.load(2);
  8379. var url = "getgyfp.do";
  8380. $.ajax({
  8381. "url" : url,
  8382. "type" : "POST",
  8383. "dataType" : "json",
  8384. "async" : true,
  8385. "success" : function(data) {
  8386. if(data != null && data != ""){
  8387. $("#fpid").empty();
  8388. $("#fpid").append("_$tag_____________$tag____");
  8389. for(var i = 0; i < data.length; i++){
  8390. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8391. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8392. }
  8393. }
  8394. },
  8395. "error" : function(msg){
  8396. },
  8397. "complete": function(){
  8398. layer.close(tip);
  8399. }
  8400. });
  8401. }
  8402. $("#fpid").change(function(){
  8403. var tip = layer.load(2);
  8404. var url = "getgyrkxx.do";
  8405. var sum_total=0;
  8406. $.ajax({
  8407. "url" : url,
  8408. "data" : {
  8409. "fpId" : $("#fpid").val()
  8410. },
  8411. "type" : "POST",
  8412. "dataType" : "json",
  8413. "async" : true,
  8414. "success" : function(data) {
  8415. $("#dataTable").html("");
  8416. if(data != null && data != ""){
  8417. var html = "";
  8418. for(var i = 0; i < data.length; i++){
  8419. var ID = data[i].id == null ? "" : data[i].id;
  8420. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8421. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8422. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8423. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8424. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8425. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8426. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8427. var NAME = data[i].name == null ? "" : data[i].name;
  8428. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8429. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8430. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8431. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8432. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8433. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8434. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8435. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8436. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8437. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8438. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8439. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8440. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8441. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8442. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8443. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8444. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8445. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8446. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8447. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  8448. sum_total = sum_total + DSUMVALUE
  8449. var invoice_type_cn =null;
  8450. if (invoice_type =="00" ){
  8451. invoice_type_cn="销售发票";
  8452. }else if (invoice_type == "01") {
  8453. invoice_type_cn="更正(对冲)发票";
  8454. }else if (invoice_type == "02") {
  8455. invoice_type_cn="其它类型发票";
  8456. }
  8457. html += "_$ta";
  8458. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8459. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8460. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8461. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8462. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8463. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8464. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8465. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8466. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8467. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8468. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8469. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8470. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8471. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8472. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8473. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8474. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8475. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8476. html += "_$tag";
  8477. }
  8478. html += "_$ta";
  8479. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8480. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8481. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8482. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8483. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8484. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8485. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8486. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8487. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8488. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8489. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8490. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8491. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8492. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8493. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8494. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8495. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8496. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8497. html += "_$tag";
  8498. $("#dataTable").html(html);
  8499. }else {
  8500. $("#dataTable").html("");
  8501. }
  8502. },
  8503. "error" : function(msg){
  8504. },
  8505. "complete": function(){
  8506. layer.close(tip);
  8507. }
  8508. });
  8509. });
  8510. Date.prototype.Format = function (fmt) {
  8511. var o = {
  8512. "M+": this.getMonth() + 1, //月份
  8513. "d+": this.getDate(), //日
  8514. "h+": this.getHours(), //小时
  8515. "m+": this.getMinutes(), //分
  8516. "s+": this.getSeconds(), //秒
  8517. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8518. "S": this.getMilliseconds() //毫秒
  8519. };
  8520. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8521. for (var k in o)
  8522. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8523. return fmt;
  8524. }
  8525. $("#jrjc").change(function() {
  8526. if ($("#jrjc").prop('checked') == true){
  8527. $("#departmentId").removeAttr("disabled");
  8528. }else {
  8529. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8530. }
  8531. });
  8532. ----------------------------------- SOURCE END -------------------------------------
  8533. !STACK 0
  8534. java.lang.NullPointerException
  8535. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:07.803
  8536. !MESSAGE Error while processing working copy
  8537. !STACK 1
  8538. JavaScript Model Exception: java.lang.NullPointerException
  8539. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8540. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8541. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8542. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8543. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8544. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8545. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8546. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8547. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8548. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8549. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8550. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8551. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8552. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8553. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8554. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8555. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8556. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8557. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8558. Caused by: java.lang.NullPointerException
  8559. Caused by: java.lang.NullPointerException
  8560. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:07.803
  8561. !MESSAGE java.lang.NullPointerException
  8562. !STACK 0
  8563. java.lang.NullPointerException
  8564. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:08.865
  8565. !MESSAGE Exception occurred during problem detection:
  8566. ----------------------------------- SOURCE BEGIN -------------------------------------
  8567. (function(){WdatePicker();})();
  8568. (function(){WdatePicker();})();
  8569. (function(){Data.get();})();
  8570. (function(){Data.set();})();
  8571. (function(){search();})();
  8572. $(function(){
  8573. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8574. getfp();
  8575. });
  8576. var Data = {
  8577. "get" : function(){
  8578. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8579. var tip = layer.load(2);
  8580. var result="";
  8581. var url = "getgyxml.do";
  8582. $.ajax({
  8583. "url" : url,
  8584. "data" : {
  8585. "start_date" : $("#dateBegin").val(),
  8586. "end_date" : $("#dateEnd").val()
  8587. },
  8588. "type" : "POST",
  8589. "dataType" : "json",
  8590. "success" : function(data) {
  8591. if(data != null && data != ""){
  8592. if ( data.status =="success"){
  8593. getfp();
  8594. alert("获取成功!");
  8595. }else {
  8596. alert(data.status);
  8597. }
  8598. }else {
  8599. alert("获取失败!");
  8600. }
  8601. },
  8602. "complete": function(){
  8603. layer.close(tip);
  8604. }
  8605. });
  8606. }else {
  8607. alert("请选择日期!");
  8608. }
  8609. },
  8610. "set" : function(){
  8611. if ( $("#fpid option:selected").text() !=""){
  8612. var tip = layer.load(2);
  8613. var gitem = $("#form1").serialize();
  8614. var jrjc;
  8615. if ($("#jrjc").prop('checked') == true){
  8616. jrjc = $("#departmentId").val();
  8617. }else {
  8618. jrjc ='N'
  8619. }
  8620. var url = "saverk.do";
  8621. $.ajax({
  8622. "url" : url,
  8623. "data" : {
  8624. "gitem" : gitem,
  8625. "jrjc" : jrjc
  8626. },
  8627. "type" : "POST",
  8628. "dataType" : "json",
  8629. "async" : true,
  8630. "success" : function(data) {
  8631. if(data.status =="success"){
  8632. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8633. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8634. }else {
  8635. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8636. }
  8637. window.location.reload();
  8638. }else {
  8639. alert(data.status);
  8640. }
  8641. },
  8642. "error": function(){
  8643. alert("确认失败!");
  8644. },
  8645. "complete": function(){
  8646. layer.close(tip);
  8647. }
  8648. });
  8649. }else {
  8650. alert("请选择发票!");
  8651. }
  8652. }
  8653. }
  8654. function getfp(){
  8655. var tip = layer.load(2);
  8656. var url = "getgyfp.do";
  8657. $.ajax({
  8658. "url" : url,
  8659. "type" : "POST",
  8660. "dataType" : "json",
  8661. "async" : true,
  8662. "success" : function(data) {
  8663. if(data != null && data != ""){
  8664. $("#fpid").empty();
  8665. $("#fpid").append("_$tag_____________$tag____");
  8666. for(var i = 0; i < data.length; i++){
  8667. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8668. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8669. }
  8670. }
  8671. },
  8672. "error" : function(msg){
  8673. },
  8674. "complete": function(){
  8675. layer.close(tip);
  8676. }
  8677. });
  8678. }
  8679. $("#fpid").change(function(){
  8680. var tip = layer.load(2);
  8681. var url = "getgyrkxx.do";
  8682. var sum_total=0;
  8683. $.ajax({
  8684. "url" : url,
  8685. "data" : {
  8686. "fpId" : $("#fpid").val()
  8687. },
  8688. "type" : "POST",
  8689. "dataType" : "json",
  8690. "async" : true,
  8691. "success" : function(data) {
  8692. $("#dataTable").html("");
  8693. if(data != null && data != ""){
  8694. var html = "";
  8695. for(var i = 0; i < data.length; i++){
  8696. var ID = data[i].id == null ? "" : data[i].id;
  8697. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8698. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8699. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8700. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8701. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8702. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8703. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8704. var NAME = data[i].name == null ? "" : data[i].name;
  8705. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8706. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8707. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8708. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8709. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8710. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8711. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8712. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8713. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8714. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8715. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8716. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8717. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8718. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8719. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8720. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8721. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8722. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8723. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8724. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  8725. sum_total = sum_total + DSUMVALUE
  8726. var invoice_type_cn =null;
  8727. if (invoice_type =="00" ){
  8728. invoice_type_cn="销售发票";
  8729. }else if (invoice_type == "01") {
  8730. invoice_type_cn="更正(对冲)发票";
  8731. }else if (invoice_type == "02") {
  8732. invoice_type_cn="其它类型发票";
  8733. }
  8734. html += "_$ta";
  8735. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8736. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8737. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8738. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8739. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8740. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8741. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8742. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8743. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8744. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8745. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8746. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8747. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8748. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8749. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8750. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8751. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8752. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8753. html += "_$tag";
  8754. }
  8755. html += "_$ta";
  8756. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8757. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8758. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8759. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8760. html += "_$tag_____________$tag_合计:_$tag___$tag";
  8761. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  8762. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8763. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8764. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8765. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8766. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8767. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8768. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8769. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8770. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8771. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8772. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8773. html += "_$tag_____________$tag____________________________________________________________________$tag";
  8774. html += "_$tag";
  8775. $("#dataTable").html(html);
  8776. }else {
  8777. $("#dataTable").html("");
  8778. }
  8779. },
  8780. "error" : function(msg){
  8781. },
  8782. "complete": function(){
  8783. layer.close(tip);
  8784. }
  8785. });
  8786. });
  8787. Date.prototype.Format = function (fmt) {
  8788. var o = {
  8789. "M+": this.getMonth() + 1, //月份
  8790. "d+": this.getDate(), //日
  8791. "h+": this.getHours(), //小时
  8792. "m+": this.getMinutes(), //分
  8793. "s+": this.getSeconds(), //秒
  8794. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8795. "S": this.getMilliseconds() //毫秒
  8796. };
  8797. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8798. for (var k in o)
  8799. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8800. return fmt;
  8801. }
  8802. $("#jrjc").change(function() {
  8803. if ($("#jrjc").prop('checked') == true){
  8804. $("#departmentId").removeAttr("disabled");
  8805. }else {
  8806. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8807. }
  8808. });
  8809. ----------------------------------- SOURCE END -------------------------------------
  8810. !STACK 0
  8811. java.lang.NullPointerException
  8812. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:09.273
  8813. !MESSAGE Exception occurred during problem detection:
  8814. ----------------------------------- SOURCE BEGIN -------------------------------------
  8815. (function(){WdatePicker();})();
  8816. (function(){WdatePicker();})();
  8817. (function(){Data.get();})();
  8818. (function(){Data.set();})();
  8819. (function(){search();})();
  8820. $(function(){
  8821. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8822. getfp();
  8823. });
  8824. var Data = {
  8825. "get" : function(){
  8826. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8827. var tip = layer.load(2);
  8828. var result="";
  8829. var url = "getgyxml.do";
  8830. $.ajax({
  8831. "url" : url,
  8832. "data" : {
  8833. "start_date" : $("#dateBegin").val(),
  8834. "end_date" : $("#dateEnd").val()
  8835. },
  8836. "type" : "POST",
  8837. "dataType" : "json",
  8838. "success" : function(data) {
  8839. if(data != null && data != ""){
  8840. if ( data.status =="success"){
  8841. getfp();
  8842. alert("获取成功!");
  8843. }else {
  8844. alert(data.status);
  8845. }
  8846. }else {
  8847. alert("获取失败!");
  8848. }
  8849. },
  8850. "complete": function(){
  8851. layer.close(tip);
  8852. }
  8853. });
  8854. }else {
  8855. alert("请选择日期!");
  8856. }
  8857. },
  8858. "set" : function(){
  8859. if ( $("#fpid option:selected").text() !=""){
  8860. var tip = layer.load(2);
  8861. var gitem = $("#form1").serialize();
  8862. var jrjc;
  8863. if ($("#jrjc").prop('checked') == true){
  8864. jrjc = $("#departmentId").val();
  8865. }else {
  8866. jrjc ='N'
  8867. }
  8868. var url = "saverk.do";
  8869. $.ajax({
  8870. "url" : url,
  8871. "data" : {
  8872. "gitem" : gitem,
  8873. "jrjc" : jrjc
  8874. },
  8875. "type" : "POST",
  8876. "dataType" : "json",
  8877. "async" : true,
  8878. "success" : function(data) {
  8879. if(data.status =="success"){
  8880. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  8881. alert("入库成功!\n入库单号:"+data.rkdh+"");
  8882. }else {
  8883. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  8884. }
  8885. window.location.reload();
  8886. }else {
  8887. alert(data.status);
  8888. }
  8889. },
  8890. "error": function(){
  8891. alert("确认失败!");
  8892. },
  8893. "complete": function(){
  8894. layer.close(tip);
  8895. }
  8896. });
  8897. }else {
  8898. alert("请选择发票!");
  8899. }
  8900. }
  8901. }
  8902. function getfp(){
  8903. var tip = layer.load(2);
  8904. var url = "getgyfp.do";
  8905. $.ajax({
  8906. "url" : url,
  8907. "type" : "POST",
  8908. "dataType" : "json",
  8909. "async" : true,
  8910. "success" : function(data) {
  8911. if(data != null && data != ""){
  8912. $("#fpid").empty();
  8913. $("#fpid").append("_$tag_____________$tag____");
  8914. for(var i = 0; i < data.length; i++){
  8915. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8916. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8917. }
  8918. }
  8919. },
  8920. "error" : function(msg){
  8921. },
  8922. "complete": function(){
  8923. layer.close(tip);
  8924. }
  8925. });
  8926. }
  8927. $("#fpid").change(function(){
  8928. var tip = layer.load(2);
  8929. var url = "getgyrkxx.do";
  8930. var sum_total=0;
  8931. $.ajax({
  8932. "url" : url,
  8933. "data" : {
  8934. "fpId" : $("#fpid").val()
  8935. },
  8936. "type" : "POST",
  8937. "dataType" : "json",
  8938. "async" : true,
  8939. "success" : function(data) {
  8940. $("#dataTable").html("");
  8941. if(data != null && data != ""){
  8942. var html = "";
  8943. for(var i = 0; i < data.length; i++){
  8944. var ID = data[i].id == null ? "" : data[i].id;
  8945. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8946. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8947. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8948. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8949. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8950. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8951. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8952. var NAME = data[i].name == null ? "" : data[i].name;
  8953. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8954. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8955. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8956. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8957. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8958. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8959. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8960. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8961. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8962. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8963. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8964. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8965. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8966. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8967. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8968. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8969. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8970. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  8971. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  8972. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  8973. sum_total = sum_total + DSUMVALUE
  8974. var invoice_type_cn =null;
  8975. if (invoice_type =="00" ){
  8976. invoice_type_cn="销售发票";
  8977. }else if (invoice_type == "01") {
  8978. invoice_type_cn="更正(对冲)发票";
  8979. }else if (invoice_type == "02") {
  8980. invoice_type_cn="其它类型发票";
  8981. }
  8982. html += "_$ta";
  8983. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8984. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8985. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8986. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8987. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8988. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8989. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8990. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8991. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8992. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  8993. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8994. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8995. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8996. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8997. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8998. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8999. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9000. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9001. html += "_$tag";
  9002. }
  9003. html += "_$ta";
  9004. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9005. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9006. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9007. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9008. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9009. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9010. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9011. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9012. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9013. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9014. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9015. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9016. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9017. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9018. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9019. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9020. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9021. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9022. html += "_$tag";
  9023. $("#dataTable").html(html);
  9024. }else {
  9025. $("#dataTable").html("");
  9026. }
  9027. },
  9028. "error" : function(msg){
  9029. },
  9030. "complete": function(){
  9031. layer.close(tip);
  9032. }
  9033. });
  9034. });
  9035. Date.prototype.Format = function (fmt) {
  9036. var o = {
  9037. "M+": this.getMonth() + 1, //月份
  9038. "d+": this.getDate(), //日
  9039. "h+": this.getHours(), //小时
  9040. "m+": this.getMinutes(), //分
  9041. "s+": this.getSeconds(), //秒
  9042. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9043. "S": this.getMilliseconds() //毫秒
  9044. };
  9045. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9046. for (var k in o)
  9047. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9048. return fmt;
  9049. }
  9050. $("#jrjc").change(function() {
  9051. if ($("#jrjc").prop('checked') == true){
  9052. $("#departmentId").removeAttr("disabled");
  9053. }else {
  9054. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9055. }
  9056. });
  9057. ----------------------------------- SOURCE END -------------------------------------
  9058. !STACK 0
  9059. java.lang.NullPointerException
  9060. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:09.273
  9061. !MESSAGE Error while processing working copy
  9062. !STACK 1
  9063. JavaScript Model Exception: java.lang.NullPointerException
  9064. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9065. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9066. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9067. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9068. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9069. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9070. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9071. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9072. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9073. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9074. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9075. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9076. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9077. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9078. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9079. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9080. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  9081. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  9082. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  9083. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  9084. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  9085. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  9086. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  9087. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  9088. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  9089. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  9090. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  9091. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  9092. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  9093. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  9094. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  9095. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  9096. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  9097. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  9098. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  9099. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  9100. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  9101. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  9102. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  9103. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  9104. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  9105. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  9106. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  9107. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  9108. at java.lang.reflect.Method.invoke(Unknown Source)
  9109. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  9110. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  9111. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  9112. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  9113. Caused by: java.lang.NullPointerException
  9114. Caused by: java.lang.NullPointerException
  9115. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:09.274
  9116. !MESSAGE java.lang.NullPointerException
  9117. !STACK 0
  9118. java.lang.NullPointerException
  9119. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:10.388
  9120. !MESSAGE Exception occurred during problem detection:
  9121. ----------------------------------- SOURCE BEGIN -------------------------------------
  9122. (function(){WdatePicker();})();
  9123. (function(){WdatePicker();})();
  9124. (function(){Data.get();})();
  9125. (function(){Data.set();})();
  9126. (function(){search();})();
  9127. $(function(){
  9128. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9129. getfp();
  9130. });
  9131. var Data = {
  9132. "get" : function(){
  9133. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9134. var tip = layer.load(2);
  9135. var result="";
  9136. var url = "getgyxml.do";
  9137. $.ajax({
  9138. "url" : url,
  9139. "data" : {
  9140. "start_date" : $("#dateBegin").val(),
  9141. "end_date" : $("#dateEnd").val()
  9142. },
  9143. "type" : "POST",
  9144. "dataType" : "json",
  9145. "success" : function(data) {
  9146. if(data != null && data != ""){
  9147. if ( data.status =="success"){
  9148. getfp();
  9149. alert("获取成功!");
  9150. }else {
  9151. alert(data.status);
  9152. }
  9153. }else {
  9154. alert("获取失败!");
  9155. }
  9156. },
  9157. "complete": function(){
  9158. layer.close(tip);
  9159. }
  9160. });
  9161. }else {
  9162. alert("请选择日期!");
  9163. }
  9164. },
  9165. "set" : function(){
  9166. if ( $("#fpid option:selected").text() !=""){
  9167. var tip = layer.load(2);
  9168. var gitem = $("#form1").serialize();
  9169. var jrjc;
  9170. if ($("#jrjc").prop('checked') == true){
  9171. jrjc = $("#departmentId").val();
  9172. }else {
  9173. jrjc ='N'
  9174. }
  9175. var url = "saverk.do";
  9176. $.ajax({
  9177. "url" : url,
  9178. "data" : {
  9179. "gitem" : gitem,
  9180. "jrjc" : jrjc
  9181. },
  9182. "type" : "POST",
  9183. "dataType" : "json",
  9184. "async" : true,
  9185. "success" : function(data) {
  9186. if(data.status =="success"){
  9187. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9188. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9189. }else {
  9190. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9191. }
  9192. window.location.reload();
  9193. }else {
  9194. alert(data.status);
  9195. }
  9196. },
  9197. "error": function(){
  9198. alert("确认失败!");
  9199. },
  9200. "complete": function(){
  9201. layer.close(tip);
  9202. }
  9203. });
  9204. }else {
  9205. alert("请选择发票!");
  9206. }
  9207. }
  9208. }
  9209. function getfp(){
  9210. var tip = layer.load(2);
  9211. var url = "getgyfp.do";
  9212. $.ajax({
  9213. "url" : url,
  9214. "type" : "POST",
  9215. "dataType" : "json",
  9216. "async" : true,
  9217. "success" : function(data) {
  9218. if(data != null && data != ""){
  9219. $("#fpid").empty();
  9220. $("#fpid").append("_$tag_____________$tag____");
  9221. for(var i = 0; i < data.length; i++){
  9222. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9223. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9224. }
  9225. }
  9226. },
  9227. "error" : function(msg){
  9228. },
  9229. "complete": function(){
  9230. layer.close(tip);
  9231. }
  9232. });
  9233. }
  9234. $("#fpid").change(function(){
  9235. var tip = layer.load(2);
  9236. var url = "getgyrkxx.do";
  9237. var sum_total=0;
  9238. $.ajax({
  9239. "url" : url,
  9240. "data" : {
  9241. "fpId" : $("#fpid").val()
  9242. },
  9243. "type" : "POST",
  9244. "dataType" : "json",
  9245. "async" : true,
  9246. "success" : function(data) {
  9247. $("#dataTable").html("");
  9248. if(data != null && data != ""){
  9249. var html = "";
  9250. for(var i = 0; i < data.length; i++){
  9251. var ID = data[i].id == null ? "" : data[i].id;
  9252. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9253. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9254. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9255. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9256. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9257. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9258. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9259. var NAME = data[i].name == null ? "" : data[i].name;
  9260. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9261. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9262. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9263. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9264. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9265. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9266. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9267. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9268. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9269. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9270. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9271. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9272. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9273. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9274. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9275. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9276. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9277. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9278. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9279. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  9280. sum_total = sum_total + DSUMVALUE
  9281. var invoice_type_cn =null;
  9282. if (invoice_type =="00" ){
  9283. invoice_type_cn="销售发票";
  9284. }else if (invoice_type == "01") {
  9285. invoice_type_cn="更正(对冲)发票";
  9286. }else if (invoice_type == "02") {
  9287. invoice_type_cn="其它类型发票";
  9288. }
  9289. html += "_$ta";
  9290. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9291. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9292. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9293. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9294. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9295. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9296. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9297. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9298. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9299. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9300. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9301. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9302. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9303. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9304. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9305. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9306. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9307. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9308. html += "_$tag";
  9309. }
  9310. html += "_$ta";
  9311. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9312. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9313. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9314. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9315. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9316. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9317. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9318. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9319. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9320. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9321. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9322. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9323. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9324. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9325. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9326. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9327. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9328. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9329. html += "_$tag";
  9330. $("#dataTable").html(html);
  9331. }else {
  9332. $("#dataTable").html("");
  9333. }
  9334. },
  9335. "error" : function(msg){
  9336. },
  9337. "complete": function(){
  9338. layer.close(tip);
  9339. }
  9340. });
  9341. });
  9342. Date.prototype.Format = function (fmt) {
  9343. var o = {
  9344. "M+": this.getMonth() + 1, //月份
  9345. "d+": this.getDate(), //日
  9346. "h+": this.getHours(), //小时
  9347. "m+": this.getMinutes(), //分
  9348. "s+": this.getSeconds(), //秒
  9349. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9350. "S": this.getMilliseconds() //毫秒
  9351. };
  9352. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9353. for (var k in o)
  9354. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9355. return fmt;
  9356. }
  9357. $("#jrjc").change(function() {
  9358. if ($("#jrjc").prop('checked') == true){
  9359. $("#departmentId").removeAttr("disabled");
  9360. }else {
  9361. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9362. }
  9363. });
  9364. ----------------------------------- SOURCE END -------------------------------------
  9365. !STACK 0
  9366. java.lang.NullPointerException
  9367. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:13.074
  9368. !MESSAGE Exception occurred during problem detection:
  9369. ----------------------------------- SOURCE BEGIN -------------------------------------
  9370. (function(){WdatePicker();})();
  9371. (function(){WdatePicker();})();
  9372. (function(){Data.get();})();
  9373. (function(){Data.set();})();
  9374. (function(){search();})();
  9375. $(function(){
  9376. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9377. getfp();
  9378. });
  9379. var Data = {
  9380. "get" : function(){
  9381. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9382. var tip = layer.load(2);
  9383. var result="";
  9384. var url = "getgyxml.do";
  9385. $.ajax({
  9386. "url" : url,
  9387. "data" : {
  9388. "start_date" : $("#dateBegin").val(),
  9389. "end_date" : $("#dateEnd").val()
  9390. },
  9391. "type" : "POST",
  9392. "dataType" : "json",
  9393. "success" : function(data) {
  9394. if(data != null && data != ""){
  9395. if ( data.status =="success"){
  9396. getfp();
  9397. alert("获取成功!");
  9398. }else {
  9399. alert(data.status);
  9400. }
  9401. }else {
  9402. alert("获取失败!");
  9403. }
  9404. },
  9405. "complete": function(){
  9406. layer.close(tip);
  9407. }
  9408. });
  9409. }else {
  9410. alert("请选择日期!");
  9411. }
  9412. },
  9413. "set" : function(){
  9414. if ( $("#fpid option:selected").text() !=""){
  9415. var tip = layer.load(2);
  9416. var gitem = $("#form1").serialize();
  9417. var jrjc;
  9418. if ($("#jrjc").prop('checked') == true){
  9419. jrjc = $("#departmentId").val();
  9420. }else {
  9421. jrjc ='N'
  9422. }
  9423. var url = "saverk.do";
  9424. $.ajax({
  9425. "url" : url,
  9426. "data" : {
  9427. "gitem" : gitem,
  9428. "jrjc" : jrjc
  9429. },
  9430. "type" : "POST",
  9431. "dataType" : "json",
  9432. "async" : true,
  9433. "success" : function(data) {
  9434. if(data.status =="success"){
  9435. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9436. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9437. }else {
  9438. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9439. }
  9440. window.location.reload();
  9441. }else {
  9442. alert(data.status);
  9443. }
  9444. },
  9445. "error": function(){
  9446. alert("确认失败!");
  9447. },
  9448. "complete": function(){
  9449. layer.close(tip);
  9450. }
  9451. });
  9452. }else {
  9453. alert("请选择发票!");
  9454. }
  9455. }
  9456. }
  9457. function getfp(){
  9458. var tip = layer.load(2);
  9459. var url = "getgyfp.do";
  9460. $.ajax({
  9461. "url" : url,
  9462. "type" : "POST",
  9463. "dataType" : "json",
  9464. "async" : true,
  9465. "success" : function(data) {
  9466. if(data != null && data != ""){
  9467. $("#fpid").empty();
  9468. $("#fpid").append("_$tag_____________$tag____");
  9469. for(var i = 0; i < data.length; i++){
  9470. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9471. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9472. }
  9473. }
  9474. },
  9475. "error" : function(msg){
  9476. },
  9477. "complete": function(){
  9478. layer.close(tip);
  9479. }
  9480. });
  9481. }
  9482. $("#fpid").change(function(){
  9483. var tip = layer.load(2);
  9484. var url = "getgyrkxx.do";
  9485. var sum_total=0;
  9486. $.ajax({
  9487. "url" : url,
  9488. "data" : {
  9489. "fpId" : $("#fpid").val()
  9490. },
  9491. "type" : "POST",
  9492. "dataType" : "json",
  9493. "async" : true,
  9494. "success" : function(data) {
  9495. $("#dataTable").html("");
  9496. if(data != null && data != ""){
  9497. var html = "";
  9498. for(var i = 0; i < data.length; i++){
  9499. var ID = data[i].id == null ? "" : data[i].id;
  9500. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9501. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9502. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9503. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9504. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9505. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9506. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9507. var NAME = data[i].name == null ? "" : data[i].name;
  9508. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9509. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9510. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9511. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9512. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9513. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9514. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9515. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9516. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9517. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9518. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9519. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9520. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9521. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9522. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9523. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9524. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9525. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9526. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9527. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  9528. sum_total = sum_total + DSUMVALUE
  9529. var invoice_type_cn =null;
  9530. if (invoice_type =="00" ){
  9531. invoice_type_cn="销售发票";
  9532. }else if (invoice_type == "01") {
  9533. invoice_type_cn="更正(对冲)发票";
  9534. }else if (invoice_type == "02") {
  9535. invoice_type_cn="其它类型发票";
  9536. }
  9537. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  9545. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9546. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9547. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9548. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9549. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9550. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9551. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9552. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9553. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9554. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9555. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9556. html += "_$tag";
  9557. }
  9558. html += "_$ta";
  9559. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9560. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9561. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9562. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9563. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9564. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9565. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9566. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9567. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9568. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9569. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9570. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9571. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9572. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9573. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9574. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9575. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9576. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9577. html += "_$tag";
  9578. $("#dataTable").html(html);
  9579. }else {
  9580. $("#dataTable").html("");
  9581. }
  9582. },
  9583. "error" : function(msg){
  9584. },
  9585. "complete": function(){
  9586. layer.close(tip);
  9587. }
  9588. });
  9589. });
  9590. Date.prototype.Format = function (fmt) {
  9591. var o = {
  9592. "M+": this.getMonth() + 1, //月份
  9593. "d+": this.getDate(), //日
  9594. "h+": this.getHours(), //小时
  9595. "m+": this.getMinutes(), //分
  9596. "s+": this.getSeconds(), //秒
  9597. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9598. "S": this.getMilliseconds() //毫秒
  9599. };
  9600. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9601. for (var k in o)
  9602. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9603. return fmt;
  9604. }
  9605. $("#jrjc").change(function() {
  9606. if ($("#jrjc").prop('checked') == true){
  9607. $("#departmentId").removeAttr("disabled");
  9608. }else {
  9609. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9610. }
  9611. });
  9612. ----------------------------------- SOURCE END -------------------------------------
  9613. !STACK 0
  9614. java.lang.NullPointerException
  9615. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:13.075
  9616. !MESSAGE Error while processing working copy
  9617. !STACK 1
  9618. JavaScript Model Exception: java.lang.NullPointerException
  9619. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9620. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9621. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9622. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9623. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9624. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9625. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9626. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9627. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9628. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9629. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9630. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9631. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9632. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9633. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9634. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9635. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9636. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9637. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9638. Caused by: java.lang.NullPointerException
  9639. Caused by: java.lang.NullPointerException
  9640. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:13.075
  9641. !MESSAGE java.lang.NullPointerException
  9642. !STACK 0
  9643. java.lang.NullPointerException
  9644. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:14.137
  9645. !MESSAGE Exception occurred during problem detection:
  9646. ----------------------------------- SOURCE BEGIN -------------------------------------
  9647. (function(){WdatePicker();})();
  9648. (function(){WdatePicker();})();
  9649. (function(){Data.get();})();
  9650. (function(){Data.set();})();
  9651. (function(){search();})();
  9652. $(function(){
  9653. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9654. getfp();
  9655. });
  9656. var Data = {
  9657. "get" : function(){
  9658. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9659. var tip = layer.load(2);
  9660. var result="";
  9661. var url = "getgyxml.do";
  9662. $.ajax({
  9663. "url" : url,
  9664. "data" : {
  9665. "start_date" : $("#dateBegin").val(),
  9666. "end_date" : $("#dateEnd").val()
  9667. },
  9668. "type" : "POST",
  9669. "dataType" : "json",
  9670. "success" : function(data) {
  9671. if(data != null && data != ""){
  9672. if ( data.status =="success"){
  9673. getfp();
  9674. alert("获取成功!");
  9675. }else {
  9676. alert(data.status);
  9677. }
  9678. }else {
  9679. alert("获取失败!");
  9680. }
  9681. },
  9682. "complete": function(){
  9683. layer.close(tip);
  9684. }
  9685. });
  9686. }else {
  9687. alert("请选择日期!");
  9688. }
  9689. },
  9690. "set" : function(){
  9691. if ( $("#fpid option:selected").text() !=""){
  9692. var tip = layer.load(2);
  9693. var gitem = $("#form1").serialize();
  9694. var jrjc;
  9695. if ($("#jrjc").prop('checked') == true){
  9696. jrjc = $("#departmentId").val();
  9697. }else {
  9698. jrjc ='N'
  9699. }
  9700. var url = "saverk.do";
  9701. $.ajax({
  9702. "url" : url,
  9703. "data" : {
  9704. "gitem" : gitem,
  9705. "jrjc" : jrjc
  9706. },
  9707. "type" : "POST",
  9708. "dataType" : "json",
  9709. "async" : true,
  9710. "success" : function(data) {
  9711. if(data.status =="success"){
  9712. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9713. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9714. }else {
  9715. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9716. }
  9717. window.location.reload();
  9718. }else {
  9719. alert(data.status);
  9720. }
  9721. },
  9722. "error": function(){
  9723. alert("确认失败!");
  9724. },
  9725. "complete": function(){
  9726. layer.close(tip);
  9727. }
  9728. });
  9729. }else {
  9730. alert("请选择发票!");
  9731. }
  9732. }
  9733. }
  9734. function getfp(){
  9735. var tip = layer.load(2);
  9736. var url = "getgyfp.do";
  9737. $.ajax({
  9738. "url" : url,
  9739. "type" : "POST",
  9740. "dataType" : "json",
  9741. "async" : true,
  9742. "success" : function(data) {
  9743. if(data != null && data != ""){
  9744. $("#fpid").empty();
  9745. $("#fpid").append("_$tag_____________$tag____");
  9746. for(var i = 0; i < data.length; i++){
  9747. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9748. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9749. }
  9750. }
  9751. },
  9752. "error" : function(msg){
  9753. },
  9754. "complete": function(){
  9755. layer.close(tip);
  9756. }
  9757. });
  9758. }
  9759. $("#fpid").change(function(){
  9760. var tip = layer.load(2);
  9761. var url = "getgyrkxx.do";
  9762. var sum_total=0;
  9763. $.ajax({
  9764. "url" : url,
  9765. "data" : {
  9766. "fpId" : $("#fpid").val()
  9767. },
  9768. "type" : "POST",
  9769. "dataType" : "json",
  9770. "async" : true,
  9771. "success" : function(data) {
  9772. $("#dataTable").html("");
  9773. if(data != null && data != ""){
  9774. var html = "";
  9775. for(var i = 0; i < data.length; i++){
  9776. var ID = data[i].id == null ? "" : data[i].id;
  9777. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9778. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9779. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9780. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9781. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9782. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9783. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9784. var NAME = data[i].name == null ? "" : data[i].name;
  9785. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9786. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9787. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9788. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9789. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9790. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9791. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9792. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9793. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9794. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9795. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9796. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9797. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9798. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9799. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9800. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9801. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9802. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  9803. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  9804. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  9805. sum_total = sum_total + DSUMVALUE
  9806. var invoice_type_cn =null;
  9807. if (invoice_type =="00" ){
  9808. invoice_type_cn="销售发票";
  9809. }else if (invoice_type == "01") {
  9810. invoice_type_cn="更正(对冲)发票";
  9811. }else if (invoice_type == "02") {
  9812. invoice_type_cn="其它类型发票";
  9813. }
  9814. html += "_$ta";
  9815. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9816. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9817. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9818. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9819. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9820. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9821. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9822. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9823. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9824. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  9825. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  9826. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9827. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9828. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9829. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9830. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9831. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9832. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9833. html += "_$tag";
  9834. }
  9835. html += "_$ta";
  9836. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9837. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9838. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9839. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9840. html += "_$tag_____________$tag_合计:_$tag___$tag";
  9841. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  9842. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9843. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9844. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9845. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9846. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9847. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9848. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9849. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9850. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9851. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9852. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9853. html += "_$tag_____________$tag____________________________________________________________________$tag";
  9854. html += "_$tag";
  9855. $("#dataTable").html(html);
  9856. }else {
  9857. $("#dataTable").html("");
  9858. }
  9859. },
  9860. "error" : function(msg){
  9861. },
  9862. "complete": function(){
  9863. layer.close(tip);
  9864. }
  9865. });
  9866. });
  9867. Date.prototype.Format = function (fmt) {
  9868. var o = {
  9869. "M+": this.getMonth() + 1, //月份
  9870. "d+": this.getDate(), //日
  9871. "h+": this.getHours(), //小时
  9872. "m+": this.getMinutes(), //分
  9873. "s+": this.getSeconds(), //秒
  9874. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9875. "S": this.getMilliseconds() //毫秒
  9876. };
  9877. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9878. for (var k in o)
  9879. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9880. return fmt;
  9881. }
  9882. $("#jrjc").change(function() {
  9883. if ($("#jrjc").prop('checked') == true){
  9884. $("#departmentId").removeAttr("disabled");
  9885. }else {
  9886. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9887. }
  9888. });
  9889. ----------------------------------- SOURCE END -------------------------------------
  9890. !STACK 0
  9891. java.lang.NullPointerException
  9892. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:15.976
  9893. !MESSAGE Exception occurred during problem detection:
  9894. ----------------------------------- SOURCE BEGIN -------------------------------------
  9895. (function(){WdatePicker();})();
  9896. (function(){WdatePicker();})();
  9897. (function(){Data.get();})();
  9898. (function(){Data.set();})();
  9899. (function(){search();})();
  9900. $(function(){
  9901. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9902. getfp();
  9903. });
  9904. var Data = {
  9905. "get" : function(){
  9906. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9907. var tip = layer.load(2);
  9908. var result="";
  9909. var url = "getgyxml.do";
  9910. $.ajax({
  9911. "url" : url,
  9912. "data" : {
  9913. "start_date" : $("#dateBegin").val(),
  9914. "end_date" : $("#dateEnd").val()
  9915. },
  9916. "type" : "POST",
  9917. "dataType" : "json",
  9918. "success" : function(data) {
  9919. if(data != null && data != ""){
  9920. if ( data.status =="success"){
  9921. getfp();
  9922. alert("获取成功!");
  9923. }else {
  9924. alert(data.status);
  9925. }
  9926. }else {
  9927. alert("获取失败!");
  9928. }
  9929. },
  9930. "complete": function(){
  9931. layer.close(tip);
  9932. }
  9933. });
  9934. }else {
  9935. alert("请选择日期!");
  9936. }
  9937. },
  9938. "set" : function(){
  9939. if ( $("#fpid option:selected").text() !=""){
  9940. var tip = layer.load(2);
  9941. var gitem = $("#form1").serialize();
  9942. var jrjc;
  9943. if ($("#jrjc").prop('checked') == true){
  9944. jrjc = $("#departmentId").val();
  9945. }else {
  9946. jrjc ='N'
  9947. }
  9948. var url = "saverk.do";
  9949. $.ajax({
  9950. "url" : url,
  9951. "data" : {
  9952. "gitem" : gitem,
  9953. "jrjc" : jrjc
  9954. },
  9955. "type" : "POST",
  9956. "dataType" : "json",
  9957. "async" : true,
  9958. "success" : function(data) {
  9959. if(data.status =="success"){
  9960. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  9961. alert("入库成功!\n入库单号:"+data.rkdh+"");
  9962. }else {
  9963. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  9964. }
  9965. window.location.reload();
  9966. }else {
  9967. alert(data.status);
  9968. }
  9969. },
  9970. "error": function(){
  9971. alert("确认失败!");
  9972. },
  9973. "complete": function(){
  9974. layer.close(tip);
  9975. }
  9976. });
  9977. }else {
  9978. alert("请选择发票!");
  9979. }
  9980. }
  9981. }
  9982. function getfp(){
  9983. var tip = layer.load(2);
  9984. var url = "getgyfp.do";
  9985. $.ajax({
  9986. "url" : url,
  9987. "type" : "POST",
  9988. "dataType" : "json",
  9989. "async" : true,
  9990. "success" : function(data) {
  9991. if(data != null && data != ""){
  9992. $("#fpid").empty();
  9993. $("#fpid").append("_$tag_____________$tag____");
  9994. for(var i = 0; i < data.length; i++){
  9995. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9996. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9997. }
  9998. }
  9999. },
  10000. "error" : function(msg){
  10001. },
  10002. "complete": function(){
  10003. layer.close(tip);
  10004. }
  10005. });
  10006. }
  10007. $("#fpid").change(function(){
  10008. var tip = layer.load(2);
  10009. var url = "getgyrkxx.do";
  10010. var sum_total=0;
  10011. $.ajax({
  10012. "url" : url,
  10013. "data" : {
  10014. "fpId" : $("#fpid").val()
  10015. },
  10016. "type" : "POST",
  10017. "dataType" : "json",
  10018. "async" : true,
  10019. "success" : function(data) {
  10020. $("#dataTable").html("");
  10021. if(data != null && data != ""){
  10022. var html = "";
  10023. for(var i = 0; i < data.length; i++){
  10024. var ID = data[i].id == null ? "" : data[i].id;
  10025. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10026. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10027. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10028. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10029. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10030. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10031. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10032. var NAME = data[i].name == null ? "" : data[i].name;
  10033. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10034. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10035. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10036. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10037. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10038. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10039. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10040. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10041. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10042. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10043. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10044. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10045. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10046. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10047. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10048. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10049. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10050. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10051. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10052. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  10053. sum_total = sum_total + DSUMVALUE
  10054. var invoice_type_cn =null;
  10055. if (invoice_type =="00" ){
  10056. invoice_type_cn="销售发票";
  10057. }else if (invoice_type == "01") {
  10058. invoice_type_cn="更正(对冲)发票";
  10059. }else if (invoice_type == "02") {
  10060. invoice_type_cn="其它类型发票";
  10061. }
  10062. html += "_$ta";
  10063. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10064. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10065. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10066. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10067. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10068. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10069. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10070. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10071. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10072. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10073. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10074. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10075. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10076. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10077. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10078. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10079. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10080. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10081. html += "_$tag";
  10082. }
  10083. html += "_$ta";
  10084. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10085. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10086. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10087. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10088. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10089. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10090. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10091. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10092. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10093. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10094. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10095. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10096. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10097. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10098. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10099. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10100. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10101. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10102. html += "_$tag";
  10103. $("#dataTable").html(html);
  10104. }else {
  10105. $("#dataTable").html("");
  10106. }
  10107. },
  10108. "error" : function(msg){
  10109. },
  10110. "complete": function(){
  10111. layer.close(tip);
  10112. }
  10113. });
  10114. });
  10115. Date.prototype.Format = function (fmt) {
  10116. var o = {
  10117. "M+": this.getMonth() + 1, //月份
  10118. "d+": this.getDate(), //日
  10119. "h+": this.getHours(), //小时
  10120. "m+": this.getMinutes(), //分
  10121. "s+": this.getSeconds(), //秒
  10122. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10123. "S": this.getMilliseconds() //毫秒
  10124. };
  10125. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10126. for (var k in o)
  10127. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10128. return fmt;
  10129. }
  10130. $("#jrjc").change(function() {
  10131. if ($("#jrjc").prop('checked') == true){
  10132. $("#departmentId").removeAttr("disabled");
  10133. }else {
  10134. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10135. }
  10136. });
  10137. ----------------------------------- SOURCE END -------------------------------------
  10138. !STACK 0
  10139. java.lang.NullPointerException
  10140. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:15.976
  10141. !MESSAGE Error while processing working copy
  10142. !STACK 1
  10143. JavaScript Model Exception: java.lang.NullPointerException
  10144. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10145. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10146. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10147. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10148. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10149. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10150. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10151. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10152. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10153. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10154. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10155. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10156. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10157. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10158. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10159. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10160. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10161. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10162. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10163. Caused by: java.lang.NullPointerException
  10164. Caused by: java.lang.NullPointerException
  10165. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:15.977
  10166. !MESSAGE java.lang.NullPointerException
  10167. !STACK 0
  10168. java.lang.NullPointerException
  10169. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:17.155
  10170. !MESSAGE Exception occurred during problem detection:
  10171. ----------------------------------- SOURCE BEGIN -------------------------------------
  10172. (function(){WdatePicker();})();
  10173. (function(){WdatePicker();})();
  10174. (function(){Data.get();})();
  10175. (function(){Data.set();})();
  10176. (function(){search();})();
  10177. $(function(){
  10178. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10179. getfp();
  10180. });
  10181. var Data = {
  10182. "get" : function(){
  10183. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10184. var tip = layer.load(2);
  10185. var result="";
  10186. var url = "getgyxml.do";
  10187. $.ajax({
  10188. "url" : url,
  10189. "data" : {
  10190. "start_date" : $("#dateBegin").val(),
  10191. "end_date" : $("#dateEnd").val()
  10192. },
  10193. "type" : "POST",
  10194. "dataType" : "json",
  10195. "success" : function(data) {
  10196. if(data != null && data != ""){
  10197. if ( data.status =="success"){
  10198. getfp();
  10199. alert("获取成功!");
  10200. }else {
  10201. alert(data.status);
  10202. }
  10203. }else {
  10204. alert("获取失败!");
  10205. }
  10206. },
  10207. "complete": function(){
  10208. layer.close(tip);
  10209. }
  10210. });
  10211. }else {
  10212. alert("请选择日期!");
  10213. }
  10214. },
  10215. "set" : function(){
  10216. if ( $("#fpid option:selected").text() !=""){
  10217. var tip = layer.load(2);
  10218. var gitem = $("#form1").serialize();
  10219. var jrjc;
  10220. if ($("#jrjc").prop('checked') == true){
  10221. jrjc = $("#departmentId").val();
  10222. }else {
  10223. jrjc ='N'
  10224. }
  10225. var url = "saverk.do";
  10226. $.ajax({
  10227. "url" : url,
  10228. "data" : {
  10229. "gitem" : gitem,
  10230. "jrjc" : jrjc
  10231. },
  10232. "type" : "POST",
  10233. "dataType" : "json",
  10234. "async" : true,
  10235. "success" : function(data) {
  10236. if(data.status =="success"){
  10237. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10238. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10239. }else {
  10240. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10241. }
  10242. window.location.reload();
  10243. }else {
  10244. alert(data.status);
  10245. }
  10246. },
  10247. "error": function(){
  10248. alert("确认失败!");
  10249. },
  10250. "complete": function(){
  10251. layer.close(tip);
  10252. }
  10253. });
  10254. }else {
  10255. alert("请选择发票!");
  10256. }
  10257. }
  10258. }
  10259. function getfp(){
  10260. var tip = layer.load(2);
  10261. var url = "getgyfp.do";
  10262. $.ajax({
  10263. "url" : url,
  10264. "type" : "POST",
  10265. "dataType" : "json",
  10266. "async" : true,
  10267. "success" : function(data) {
  10268. if(data != null && data != ""){
  10269. $("#fpid").empty();
  10270. $("#fpid").append("_$tag_____________$tag____");
  10271. for(var i = 0; i < data.length; i++){
  10272. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10273. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10274. }
  10275. }
  10276. },
  10277. "error" : function(msg){
  10278. },
  10279. "complete": function(){
  10280. layer.close(tip);
  10281. }
  10282. });
  10283. }
  10284. $("#fpid").change(function(){
  10285. var tip = layer.load(2);
  10286. var url = "getgyrkxx.do";
  10287. var sum_total=0;
  10288. $.ajax({
  10289. "url" : url,
  10290. "data" : {
  10291. "fpId" : $("#fpid").val()
  10292. },
  10293. "type" : "POST",
  10294. "dataType" : "json",
  10295. "async" : true,
  10296. "success" : function(data) {
  10297. $("#dataTable").html("");
  10298. if(data != null && data != ""){
  10299. var html = "";
  10300. for(var i = 0; i < data.length; i++){
  10301. var ID = data[i].id == null ? "" : data[i].id;
  10302. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10303. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10304. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10305. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10306. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10307. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10308. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10309. var NAME = data[i].name == null ? "" : data[i].name;
  10310. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10311. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10312. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10313. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10314. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10315. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10316. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10317. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10318. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10319. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10320. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10321. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10322. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10323. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10324. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10325. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10326. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10327. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10328. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10329. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  10330. sum_total = sum_total + DSUMVALUE
  10331. var invoice_type_cn =null;
  10332. if (invoice_type =="00" ){
  10333. invoice_type_cn="销售发票";
  10334. }else if (invoice_type == "01") {
  10335. invoice_type_cn="更正(对冲)发票";
  10336. }else if (invoice_type == "02") {
  10337. invoice_type_cn="其它类型发票";
  10338. }
  10339. html += "_$ta";
  10340. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10341. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10342. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10343. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10344. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10345. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10346. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10347. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10348. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10349. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10350. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10351. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10352. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10353. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10354. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10355. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10356. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10357. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10358. html += "_$tag";
  10359. }
  10360. html += "_$ta";
  10361. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10362. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10363. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10364. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10365. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10366. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10367. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10368. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10369. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10370. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10371. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10372. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10373. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10374. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10375. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10376. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10377. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10378. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10379. html += "_$tag";
  10380. $("#dataTable").html(html);
  10381. }else {
  10382. $("#dataTable").html("");
  10383. }
  10384. },
  10385. "error" : function(msg){
  10386. },
  10387. "complete": function(){
  10388. layer.close(tip);
  10389. }
  10390. });
  10391. });
  10392. Date.prototype.Format = function (fmt) {
  10393. var o = {
  10394. "M+": this.getMonth() + 1, //月份
  10395. "d+": this.getDate(), //日
  10396. "h+": this.getHours(), //小时
  10397. "m+": this.getMinutes(), //分
  10398. "s+": this.getSeconds(), //秒
  10399. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10400. "S": this.getMilliseconds() //毫秒
  10401. };
  10402. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10403. for (var k in o)
  10404. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10405. return fmt;
  10406. }
  10407. $("#jrjc").change(function() {
  10408. if ($("#jrjc").prop('checked') == true){
  10409. $("#departmentId").removeAttr("disabled");
  10410. }else {
  10411. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10412. }
  10413. });
  10414. ----------------------------------- SOURCE END -------------------------------------
  10415. !STACK 0
  10416. java.lang.NullPointerException
  10417. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:17.481
  10418. !MESSAGE Exception occurred during problem detection:
  10419. ----------------------------------- SOURCE BEGIN -------------------------------------
  10420. (function(){WdatePicker();})();
  10421. (function(){WdatePicker();})();
  10422. (function(){Data.get();})();
  10423. (function(){Data.set();})();
  10424. (function(){search();})();
  10425. $(function(){
  10426. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10427. getfp();
  10428. });
  10429. var Data = {
  10430. "get" : function(){
  10431. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10432. var tip = layer.load(2);
  10433. var result="";
  10434. var url = "getgyxml.do";
  10435. $.ajax({
  10436. "url" : url,
  10437. "data" : {
  10438. "start_date" : $("#dateBegin").val(),
  10439. "end_date" : $("#dateEnd").val()
  10440. },
  10441. "type" : "POST",
  10442. "dataType" : "json",
  10443. "success" : function(data) {
  10444. if(data != null && data != ""){
  10445. if ( data.status =="success"){
  10446. getfp();
  10447. alert("获取成功!");
  10448. }else {
  10449. alert(data.status);
  10450. }
  10451. }else {
  10452. alert("获取失败!");
  10453. }
  10454. },
  10455. "complete": function(){
  10456. layer.close(tip);
  10457. }
  10458. });
  10459. }else {
  10460. alert("请选择日期!");
  10461. }
  10462. },
  10463. "set" : function(){
  10464. if ( $("#fpid option:selected").text() !=""){
  10465. var tip = layer.load(2);
  10466. var gitem = $("#form1").serialize();
  10467. var jrjc;
  10468. if ($("#jrjc").prop('checked') == true){
  10469. jrjc = $("#departmentId").val();
  10470. }else {
  10471. jrjc ='N'
  10472. }
  10473. var url = "saverk.do";
  10474. $.ajax({
  10475. "url" : url,
  10476. "data" : {
  10477. "gitem" : gitem,
  10478. "jrjc" : jrjc
  10479. },
  10480. "type" : "POST",
  10481. "dataType" : "json",
  10482. "async" : true,
  10483. "success" : function(data) {
  10484. if(data.status =="success"){
  10485. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10486. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10487. }else {
  10488. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10489. }
  10490. window.location.reload();
  10491. }else {
  10492. alert(data.status);
  10493. }
  10494. },
  10495. "error": function(){
  10496. alert("确认失败!");
  10497. },
  10498. "complete": function(){
  10499. layer.close(tip);
  10500. }
  10501. });
  10502. }else {
  10503. alert("请选择发票!");
  10504. }
  10505. }
  10506. }
  10507. function getfp(){
  10508. var tip = layer.load(2);
  10509. var url = "getgyfp.do";
  10510. $.ajax({
  10511. "url" : url,
  10512. "type" : "POST",
  10513. "dataType" : "json",
  10514. "async" : true,
  10515. "success" : function(data) {
  10516. if(data != null && data != ""){
  10517. $("#fpid").empty();
  10518. $("#fpid").append("_$tag_____________$tag____");
  10519. for(var i = 0; i < data.length; i++){
  10520. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10521. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10522. }
  10523. }
  10524. },
  10525. "error" : function(msg){
  10526. },
  10527. "complete": function(){
  10528. layer.close(tip);
  10529. }
  10530. });
  10531. }
  10532. $("#fpid").change(function(){
  10533. var tip = layer.load(2);
  10534. var url = "getgyrkxx.do";
  10535. var sum_total=0;
  10536. $.ajax({
  10537. "url" : url,
  10538. "data" : {
  10539. "fpId" : $("#fpid").val()
  10540. },
  10541. "type" : "POST",
  10542. "dataType" : "json",
  10543. "async" : true,
  10544. "success" : function(data) {
  10545. $("#dataTable").html("");
  10546. if(data != null && data != ""){
  10547. var html = "";
  10548. for(var i = 0; i < data.length; i++){
  10549. var ID = data[i].id == null ? "" : data[i].id;
  10550. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10551. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10552. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10553. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10554. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10555. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10556. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10557. var NAME = data[i].name == null ? "" : data[i].name;
  10558. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10559. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10560. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10561. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10562. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10563. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10564. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10565. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10566. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10567. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10568. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10569. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10570. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10571. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10572. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10573. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10574. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10575. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10576. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10577. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  10578. sum_total = sum_total + DSUMVALUE
  10579. var invoice_type_cn =null;
  10580. if (invoice_type =="00" ){
  10581. invoice_type_cn="销售发票";
  10582. }else if (invoice_type == "01") {
  10583. invoice_type_cn="更正(对冲)发票";
  10584. }else if (invoice_type == "02") {
  10585. invoice_type_cn="其它类型发票";
  10586. }
  10587. html += "_$ta";
  10588. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10589. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10590. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10591. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10592. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10593. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10594. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10595. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10596. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10597. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10598. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10599. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10600. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10601. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10602. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10603. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10604. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10605. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10606. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10607. html += "_$tag";
  10608. }
  10609. html += "_$ta";
  10610. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10611. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10612. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10613. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10614. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10615. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10616. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10617. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10618. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10619. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10620. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10621. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10622. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10623. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10624. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10625. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10626. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10627. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10628. html += "_$tag";
  10629. $("#dataTable").html(html);
  10630. }else {
  10631. $("#dataTable").html("");
  10632. }
  10633. },
  10634. "error" : function(msg){
  10635. },
  10636. "complete": function(){
  10637. layer.close(tip);
  10638. }
  10639. });
  10640. });
  10641. Date.prototype.Format = function (fmt) {
  10642. var o = {
  10643. "M+": this.getMonth() + 1, //月份
  10644. "d+": this.getDate(), //日
  10645. "h+": this.getHours(), //小时
  10646. "m+": this.getMinutes(), //分
  10647. "s+": this.getSeconds(), //秒
  10648. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10649. "S": this.getMilliseconds() //毫秒
  10650. };
  10651. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10652. for (var k in o)
  10653. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10654. return fmt;
  10655. }
  10656. $("#jrjc").change(function() {
  10657. if ($("#jrjc").prop('checked') == true){
  10658. $("#departmentId").removeAttr("disabled");
  10659. }else {
  10660. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10661. }
  10662. });
  10663. ----------------------------------- SOURCE END -------------------------------------
  10664. !STACK 0
  10665. java.lang.NullPointerException
  10666. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-10-31 14:21:17.481
  10667. !MESSAGE java.lang.NullPointerException
  10668. !STACK 1
  10669. JavaScript Model Exception: java.lang.NullPointerException
  10670. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10671. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  10672. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10673. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10674. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  10675. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  10676. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  10677. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  10678. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  10679. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  10680. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  10681. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  10682. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  10683. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  10684. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  10685. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  10686. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  10687. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  10688. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  10689. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  10690. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  10691. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  10692. Caused by: java.lang.NullPointerException
  10693. Caused by: java.lang.NullPointerException
  10694. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:17.481
  10695. !MESSAGE java.lang.NullPointerException
  10696. !STACK 0
  10697. java.lang.NullPointerException
  10698. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:19.149
  10699. !MESSAGE Exception occurred during problem detection:
  10700. ----------------------------------- SOURCE BEGIN -------------------------------------
  10701. (function(){WdatePicker();})();
  10702. (function(){WdatePicker();})();
  10703. (function(){Data.get();})();
  10704. (function(){Data.set();})();
  10705. (function(){search();})();
  10706. $(function(){
  10707. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10708. getfp();
  10709. });
  10710. var Data = {
  10711. "get" : function(){
  10712. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10713. var tip = layer.load(2);
  10714. var result="";
  10715. var url = "getgyxml.do";
  10716. $.ajax({
  10717. "url" : url,
  10718. "data" : {
  10719. "start_date" : $("#dateBegin").val(),
  10720. "end_date" : $("#dateEnd").val()
  10721. },
  10722. "type" : "POST",
  10723. "dataType" : "json",
  10724. "success" : function(data) {
  10725. if(data != null && data != ""){
  10726. if ( data.status =="success"){
  10727. getfp();
  10728. alert("获取成功!");
  10729. }else {
  10730. alert(data.status);
  10731. }
  10732. }else {
  10733. alert("获取失败!");
  10734. }
  10735. },
  10736. "complete": function(){
  10737. layer.close(tip);
  10738. }
  10739. });
  10740. }else {
  10741. alert("请选择日期!");
  10742. }
  10743. },
  10744. "set" : function(){
  10745. if ( $("#fpid option:selected").text() !=""){
  10746. var tip = layer.load(2);
  10747. var gitem = $("#form1").serialize();
  10748. var jrjc;
  10749. if ($("#jrjc").prop('checked') == true){
  10750. jrjc = $("#departmentId").val();
  10751. }else {
  10752. jrjc ='N'
  10753. }
  10754. var url = "saverk.do";
  10755. $.ajax({
  10756. "url" : url,
  10757. "data" : {
  10758. "gitem" : gitem,
  10759. "jrjc" : jrjc
  10760. },
  10761. "type" : "POST",
  10762. "dataType" : "json",
  10763. "async" : true,
  10764. "success" : function(data) {
  10765. if(data.status =="success"){
  10766. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  10767. alert("入库成功!\n入库单号:"+data.rkdh+"");
  10768. }else {
  10769. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  10770. }
  10771. window.location.reload();
  10772. }else {
  10773. alert(data.status);
  10774. }
  10775. },
  10776. "error": function(){
  10777. alert("确认失败!");
  10778. },
  10779. "complete": function(){
  10780. layer.close(tip);
  10781. }
  10782. });
  10783. }else {
  10784. alert("请选择发票!");
  10785. }
  10786. }
  10787. }
  10788. function getfp(){
  10789. var tip = layer.load(2);
  10790. var url = "getgyfp.do";
  10791. $.ajax({
  10792. "url" : url,
  10793. "type" : "POST",
  10794. "dataType" : "json",
  10795. "async" : true,
  10796. "success" : function(data) {
  10797. if(data != null && data != ""){
  10798. $("#fpid").empty();
  10799. $("#fpid").append("_$tag_____________$tag____");
  10800. for(var i = 0; i < data.length; i++){
  10801. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10802. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10803. }
  10804. }
  10805. },
  10806. "error" : function(msg){
  10807. },
  10808. "complete": function(){
  10809. layer.close(tip);
  10810. }
  10811. });
  10812. }
  10813. $("#fpid").change(function(){
  10814. var tip = layer.load(2);
  10815. var url = "getgyrkxx.do";
  10816. var sum_total=0;
  10817. $.ajax({
  10818. "url" : url,
  10819. "data" : {
  10820. "fpId" : $("#fpid").val()
  10821. },
  10822. "type" : "POST",
  10823. "dataType" : "json",
  10824. "async" : true,
  10825. "success" : function(data) {
  10826. $("#dataTable").html("");
  10827. if(data != null && data != ""){
  10828. var html = "";
  10829. for(var i = 0; i < data.length; i++){
  10830. var ID = data[i].id == null ? "" : data[i].id;
  10831. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10832. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10833. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10834. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10835. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10836. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10837. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10838. var NAME = data[i].name == null ? "" : data[i].name;
  10839. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10840. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10841. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10842. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10843. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10844. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10845. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10846. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10847. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10848. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10849. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10850. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10851. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10852. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10853. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10854. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10855. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10856. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  10857. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  10858. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  10859. sum_total = sum_total + DSUMVALUE
  10860. var invoice_type_cn =null;
  10861. if (invoice_type =="00" ){
  10862. invoice_type_cn="销售发票";
  10863. }else if (invoice_type == "01") {
  10864. invoice_type_cn="更正(对冲)发票";
  10865. }else if (invoice_type == "02") {
  10866. invoice_type_cn="其它类型发票";
  10867. }
  10868. html += "_$ta";
  10869. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10870. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10871. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10872. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10873. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10874. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10875. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10876. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10877. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10878. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10879. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  10880. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  10881. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10882. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10883. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10884. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10885. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10886. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10887. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10888. html += "_$tag";
  10889. }
  10890. html += "_$ta";
  10891. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10892. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10893. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10894. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10895. html += "_$tag_____________$tag_合计:_$tag___$tag";
  10896. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  10897. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10898. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10899. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10900. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10901. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10902. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10903. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10904. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10905. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10906. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10907. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10908. html += "_$tag_____________$tag____________________________________________________________________$tag";
  10909. html += "_$tag";
  10910. $("#dataTable").html(html);
  10911. }else {
  10912. $("#dataTable").html("");
  10913. }
  10914. },
  10915. "error" : function(msg){
  10916. },
  10917. "complete": function(){
  10918. layer.close(tip);
  10919. }
  10920. });
  10921. });
  10922. Date.prototype.Format = function (fmt) {
  10923. var o = {
  10924. "M+": this.getMonth() + 1, //月份
  10925. "d+": this.getDate(), //日
  10926. "h+": this.getHours(), //小时
  10927. "m+": this.getMinutes(), //分
  10928. "s+": this.getSeconds(), //秒
  10929. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10930. "S": this.getMilliseconds() //毫秒
  10931. };
  10932. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10933. for (var k in o)
  10934. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10935. return fmt;
  10936. }
  10937. $("#jrjc").change(function() {
  10938. if ($("#jrjc").prop('checked') == true){
  10939. $("#departmentId").removeAttr("disabled");
  10940. }else {
  10941. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10942. }
  10943. });
  10944. ----------------------------------- SOURCE END -------------------------------------
  10945. !STACK 0
  10946. java.lang.NullPointerException
  10947. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-10-31 14:21:19.149
  10948. !MESSAGE java.lang.NullPointerException
  10949. !STACK 1
  10950. JavaScript Model Exception: java.lang.NullPointerException
  10951. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10952. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  10953. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10954. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10955. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  10956. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  10957. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  10958. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  10959. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  10960. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  10961. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  10962. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  10963. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  10964. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  10965. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  10966. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  10967. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  10968. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  10969. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  10970. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  10971. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  10972. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  10973. Caused by: java.lang.NullPointerException
  10974. Caused by: java.lang.NullPointerException
  10975. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:19.149
  10976. !MESSAGE java.lang.NullPointerException
  10977. !STACK 0
  10978. java.lang.NullPointerException
  10979. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:39.755
  10980. !MESSAGE Exception occurred during problem detection:
  10981. ----------------------------------- SOURCE BEGIN -------------------------------------
  10982. (function(){WdatePicker();})();
  10983. (function(){WdatePicker();})();
  10984. (function(){Data.get();})();
  10985. (function(){Data.set();})();
  10986. (function(){search();})();
  10987. $(function(){
  10988. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10989. getfp();
  10990. });
  10991. var Data = {
  10992. "get" : function(){
  10993. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10994. var tip = layer.load(2);
  10995. var result="";
  10996. var url = "getgyxml.do";
  10997. $.ajax({
  10998. "url" : url,
  10999. "data" : {
  11000. "start_date" : $("#dateBegin").val(),
  11001. "end_date" : $("#dateEnd").val()
  11002. },
  11003. "type" : "POST",
  11004. "dataType" : "json",
  11005. "success" : function(data) {
  11006. if(data != null && data != ""){
  11007. if ( data.status =="success"){
  11008. getfp();
  11009. alert("获取成功!");
  11010. }else {
  11011. alert(data.status);
  11012. }
  11013. }else {
  11014. alert("获取失败!");
  11015. }
  11016. },
  11017. "complete": function(){
  11018. layer.close(tip);
  11019. }
  11020. });
  11021. }else {
  11022. alert("请选择日期!");
  11023. }
  11024. },
  11025. "set" : function(){
  11026. if ( $("#fpid option:selected").text() !=""){
  11027. var tip = layer.load(2);
  11028. var gitem = $("#form1").serialize();
  11029. var jrjc;
  11030. if ($("#jrjc").prop('checked') == true){
  11031. jrjc = $("#departmentId").val();
  11032. }else {
  11033. jrjc ='N'
  11034. }
  11035. var url = "saverk.do";
  11036. $.ajax({
  11037. "url" : url,
  11038. "data" : {
  11039. "gitem" : gitem,
  11040. "jrjc" : jrjc
  11041. },
  11042. "type" : "POST",
  11043. "dataType" : "json",
  11044. "async" : true,
  11045. "success" : function(data) {
  11046. if(data.status =="success"){
  11047. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11048. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11049. }else {
  11050. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11051. }
  11052. window.location.reload();
  11053. }else {
  11054. alert(data.status);
  11055. }
  11056. },
  11057. "error": function(){
  11058. alert("确认失败!");
  11059. },
  11060. "complete": function(){
  11061. layer.close(tip);
  11062. }
  11063. });
  11064. }else {
  11065. alert("请选择发票!");
  11066. }
  11067. }
  11068. }
  11069. function getfp(){
  11070. var tip = layer.load(2);
  11071. var url = "getgyfp.do";
  11072. $.ajax({
  11073. "url" : url,
  11074. "type" : "POST",
  11075. "dataType" : "json",
  11076. "async" : true,
  11077. "success" : function(data) {
  11078. if(data != null && data != ""){
  11079. $("#fpid").empty();
  11080. $("#fpid").append("_$tag_____________$tag____");
  11081. for(var i = 0; i < data.length; i++){
  11082. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11083. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11084. }
  11085. }
  11086. },
  11087. "error" : function(msg){
  11088. },
  11089. "complete": function(){
  11090. layer.close(tip);
  11091. }
  11092. });
  11093. }
  11094. $("#fpid").change(function(){
  11095. var tip = layer.load(2);
  11096. var url = "getgyrkxx.do";
  11097. var sum_total=0;
  11098. $.ajax({
  11099. "url" : url,
  11100. "data" : {
  11101. "fpId" : $("#fpid").val()
  11102. },
  11103. "type" : "POST",
  11104. "dataType" : "json",
  11105. "async" : true,
  11106. "success" : function(data) {
  11107. $("#dataTable").html("");
  11108. if(data != null && data != ""){
  11109. var html = "";
  11110. for(var i = 0; i < data.length; i++){
  11111. var ID = data[i].id == null ? "" : data[i].id;
  11112. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11113. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11114. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11115. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11116. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11117. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11118. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11119. var NAME = data[i].name == null ? "" : data[i].name;
  11120. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11121. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11122. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11123. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11124. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11125. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11126. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11127. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11128. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11129. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11130. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11131. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11132. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11133. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11134. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11135. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11136. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11137. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11138. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11139. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  11140. sum_total = sum_total + DSUMVALUE
  11141. var invoice_type_cn =null;
  11142. if (invoice_type =="00" ){
  11143. invoice_type_cn="销售发票";
  11144. }else if (invoice_type == "01") {
  11145. invoice_type_cn="更正(对冲)发票";
  11146. }else if (invoice_type == "02") {
  11147. invoice_type_cn="其它类型发票";
  11148. }
  11149. html += "_$ta";
  11150. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11151. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11152. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11153. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11154. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11155. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11156. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11157. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11158. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11159. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11160. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11161. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11162. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11163. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11164. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11165. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11166. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11167. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11168. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11169. html += "_$tag";
  11170. }
  11171. html += "_$ta";
  11172. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11173. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11174. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11175. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11176. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11177. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11178. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11179. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11180. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11181. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11182. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11183. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11184. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11185. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11186. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11187. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11188. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11189. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11190. html += "_$tag";
  11191. $("#dataTable").html(html);
  11192. }else {
  11193. $("#dataTable").html("");
  11194. }
  11195. },
  11196. "error" : function(msg){
  11197. },
  11198. "complete": function(){
  11199. layer.close(tip);
  11200. }
  11201. });
  11202. });
  11203. Date.prototype.Format = function (fmt) {
  11204. var o = {
  11205. "M+": this.getMonth() + 1, //月份
  11206. "d+": this.getDate(), //日
  11207. "h+": this.getHours(), //小时
  11208. "m+": this.getMinutes(), //分
  11209. "s+": this.getSeconds(), //秒
  11210. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11211. "S": this.getMilliseconds() //毫秒
  11212. };
  11213. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11214. for (var k in o)
  11215. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11216. return fmt;
  11217. }
  11218. $("#jrjc").change(function() {
  11219. if ($("#jrjc").prop('checked') == true){
  11220. $("#departmentId").removeAttr("disabled");
  11221. }else {
  11222. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11223. }
  11224. });
  11225. ----------------------------------- SOURCE END -------------------------------------
  11226. !STACK 0
  11227. java.lang.NullPointerException
  11228. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:39.755
  11229. !MESSAGE Error while processing working copy
  11230. !STACK 1
  11231. JavaScript Model Exception: java.lang.NullPointerException
  11232. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11233. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11234. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11235. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11236. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11237. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11238. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11239. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11240. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11241. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11242. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11243. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11244. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11245. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11246. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11247. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11248. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11249. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11250. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11251. Caused by: java.lang.NullPointerException
  11252. Caused by: java.lang.NullPointerException
  11253. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:39.755
  11254. !MESSAGE java.lang.NullPointerException
  11255. !STACK 0
  11256. java.lang.NullPointerException
  11257. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:40.810
  11258. !MESSAGE Exception occurred during problem detection:
  11259. ----------------------------------- SOURCE BEGIN -------------------------------------
  11260. (function(){WdatePicker();})();
  11261. (function(){WdatePicker();})();
  11262. (function(){Data.get();})();
  11263. (function(){Data.set();})();
  11264. (function(){search();})();
  11265. $(function(){
  11266. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11267. getfp();
  11268. });
  11269. var Data = {
  11270. "get" : function(){
  11271. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11272. var tip = layer.load(2);
  11273. var result="";
  11274. var url = "getgyxml.do";
  11275. $.ajax({
  11276. "url" : url,
  11277. "data" : {
  11278. "start_date" : $("#dateBegin").val(),
  11279. "end_date" : $("#dateEnd").val()
  11280. },
  11281. "type" : "POST",
  11282. "dataType" : "json",
  11283. "success" : function(data) {
  11284. if(data != null && data != ""){
  11285. if ( data.status =="success"){
  11286. getfp();
  11287. alert("获取成功!");
  11288. }else {
  11289. alert(data.status);
  11290. }
  11291. }else {
  11292. alert("获取失败!");
  11293. }
  11294. },
  11295. "complete": function(){
  11296. layer.close(tip);
  11297. }
  11298. });
  11299. }else {
  11300. alert("请选择日期!");
  11301. }
  11302. },
  11303. "set" : function(){
  11304. if ( $("#fpid option:selected").text() !=""){
  11305. var tip = layer.load(2);
  11306. var gitem = $("#form1").serialize();
  11307. var jrjc;
  11308. if ($("#jrjc").prop('checked') == true){
  11309. jrjc = $("#departmentId").val();
  11310. }else {
  11311. jrjc ='N'
  11312. }
  11313. var url = "saverk.do";
  11314. $.ajax({
  11315. "url" : url,
  11316. "data" : {
  11317. "gitem" : gitem,
  11318. "jrjc" : jrjc
  11319. },
  11320. "type" : "POST",
  11321. "dataType" : "json",
  11322. "async" : true,
  11323. "success" : function(data) {
  11324. if(data.status =="success"){
  11325. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11326. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11327. }else {
  11328. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11329. }
  11330. window.location.reload();
  11331. }else {
  11332. alert(data.status);
  11333. }
  11334. },
  11335. "error": function(){
  11336. alert("确认失败!");
  11337. },
  11338. "complete": function(){
  11339. layer.close(tip);
  11340. }
  11341. });
  11342. }else {
  11343. alert("请选择发票!");
  11344. }
  11345. }
  11346. }
  11347. function getfp(){
  11348. var tip = layer.load(2);
  11349. var url = "getgyfp.do";
  11350. $.ajax({
  11351. "url" : url,
  11352. "type" : "POST",
  11353. "dataType" : "json",
  11354. "async" : true,
  11355. "success" : function(data) {
  11356. if(data != null && data != ""){
  11357. $("#fpid").empty();
  11358. $("#fpid").append("_$tag_____________$tag____");
  11359. for(var i = 0; i < data.length; i++){
  11360. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11361. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11362. }
  11363. }
  11364. },
  11365. "error" : function(msg){
  11366. },
  11367. "complete": function(){
  11368. layer.close(tip);
  11369. }
  11370. });
  11371. }
  11372. $("#fpid").change(function(){
  11373. var tip = layer.load(2);
  11374. var url = "getgyrkxx.do";
  11375. var sum_total=0;
  11376. $.ajax({
  11377. "url" : url,
  11378. "data" : {
  11379. "fpId" : $("#fpid").val()
  11380. },
  11381. "type" : "POST",
  11382. "dataType" : "json",
  11383. "async" : true,
  11384. "success" : function(data) {
  11385. $("#dataTable").html("");
  11386. if(data != null && data != ""){
  11387. var html = "";
  11388. for(var i = 0; i < data.length; i++){
  11389. var ID = data[i].id == null ? "" : data[i].id;
  11390. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11391. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11392. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11393. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11394. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11395. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11396. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11397. var NAME = data[i].name == null ? "" : data[i].name;
  11398. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11399. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11400. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11401. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11402. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11403. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11404. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11405. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11406. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11407. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11408. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11409. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11410. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11411. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11412. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11413. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11414. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11415. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11416. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11417. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  11418. sum_total = sum_total + DSUMVALUE
  11419. var invoice_type_cn =null;
  11420. if (invoice_type =="00" ){
  11421. invoice_type_cn="销售发票";
  11422. }else if (invoice_type == "01") {
  11423. invoice_type_cn="更正(对冲)发票";
  11424. }else if (invoice_type == "02") {
  11425. invoice_type_cn="其它类型发票";
  11426. }
  11427. html += "_$ta";
  11428. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11429. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11430. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11431. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11432. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11433. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11434. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11435. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11436. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11437. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11438. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11439. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11440. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11441. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11442. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11443. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11444. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11445. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11446. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11447. html += "_$tag";
  11448. }
  11449. html += "_$ta";
  11450. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11451. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11452. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11453. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11454. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11455. html += "_$tag_____________$tag_"+sum_total+"_$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";
  11469. $("#dataTable").html(html);
  11470. }else {
  11471. $("#dataTable").html("");
  11472. }
  11473. },
  11474. "error" : function(msg){
  11475. },
  11476. "complete": function(){
  11477. layer.close(tip);
  11478. }
  11479. });
  11480. });
  11481. Date.prototype.Format = function (fmt) {
  11482. var o = {
  11483. "M+": this.getMonth() + 1, //月份
  11484. "d+": this.getDate(), //日
  11485. "h+": this.getHours(), //小时
  11486. "m+": this.getMinutes(), //分
  11487. "s+": this.getSeconds(), //秒
  11488. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11489. "S": this.getMilliseconds() //毫秒
  11490. };
  11491. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11492. for (var k in o)
  11493. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11494. return fmt;
  11495. }
  11496. $("#jrjc").change(function() {
  11497. if ($("#jrjc").prop('checked') == true){
  11498. $("#departmentId").removeAttr("disabled");
  11499. }else {
  11500. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11501. }
  11502. });
  11503. ----------------------------------- SOURCE END -------------------------------------
  11504. !STACK 0
  11505. java.lang.NullPointerException
  11506. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:43.894
  11507. !MESSAGE Exception occurred during problem detection:
  11508. ----------------------------------- SOURCE BEGIN -------------------------------------
  11509. (function(){WdatePicker();})();
  11510. (function(){WdatePicker();})();
  11511. (function(){Data.get();})();
  11512. (function(){Data.set();})();
  11513. (function(){search();})();
  11514. $(function(){
  11515. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11516. getfp();
  11517. });
  11518. var Data = {
  11519. "get" : function(){
  11520. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11521. var tip = layer.load(2);
  11522. var result="";
  11523. var url = "getgyxml.do";
  11524. $.ajax({
  11525. "url" : url,
  11526. "data" : {
  11527. "start_date" : $("#dateBegin").val(),
  11528. "end_date" : $("#dateEnd").val()
  11529. },
  11530. "type" : "POST",
  11531. "dataType" : "json",
  11532. "success" : function(data) {
  11533. if(data != null && data != ""){
  11534. if ( data.status =="success"){
  11535. getfp();
  11536. alert("获取成功!");
  11537. }else {
  11538. alert(data.status);
  11539. }
  11540. }else {
  11541. alert("获取失败!");
  11542. }
  11543. },
  11544. "complete": function(){
  11545. layer.close(tip);
  11546. }
  11547. });
  11548. }else {
  11549. alert("请选择日期!");
  11550. }
  11551. },
  11552. "set" : function(){
  11553. if ( $("#fpid option:selected").text() !=""){
  11554. var tip = layer.load(2);
  11555. var gitem = $("#form1").serialize();
  11556. var jrjc;
  11557. if ($("#jrjc").prop('checked') == true){
  11558. jrjc = $("#departmentId").val();
  11559. }else {
  11560. jrjc ='N'
  11561. }
  11562. var url = "saverk.do";
  11563. $.ajax({
  11564. "url" : url,
  11565. "data" : {
  11566. "gitem" : gitem,
  11567. "jrjc" : jrjc
  11568. },
  11569. "type" : "POST",
  11570. "dataType" : "json",
  11571. "async" : true,
  11572. "success" : function(data) {
  11573. if(data.status =="success"){
  11574. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11575. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11576. }else {
  11577. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11578. }
  11579. window.location.reload();
  11580. }else {
  11581. alert(data.status);
  11582. }
  11583. },
  11584. "error": function(){
  11585. alert("确认失败!");
  11586. },
  11587. "complete": function(){
  11588. layer.close(tip);
  11589. }
  11590. });
  11591. }else {
  11592. alert("请选择发票!");
  11593. }
  11594. }
  11595. }
  11596. function getfp(){
  11597. var tip = layer.load(2);
  11598. var url = "getgyfp.do";
  11599. $.ajax({
  11600. "url" : url,
  11601. "type" : "POST",
  11602. "dataType" : "json",
  11603. "async" : true,
  11604. "success" : function(data) {
  11605. if(data != null && data != ""){
  11606. $("#fpid").empty();
  11607. $("#fpid").append("_$tag_____________$tag____");
  11608. for(var i = 0; i < data.length; i++){
  11609. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11610. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11611. }
  11612. }
  11613. },
  11614. "error" : function(msg){
  11615. },
  11616. "complete": function(){
  11617. layer.close(tip);
  11618. }
  11619. });
  11620. }
  11621. $("#fpid").change(function(){
  11622. var tip = layer.load(2);
  11623. var url = "getgyrkxx.do";
  11624. var sum_total=0;
  11625. $.ajax({
  11626. "url" : url,
  11627. "data" : {
  11628. "fpId" : $("#fpid").val()
  11629. },
  11630. "type" : "POST",
  11631. "dataType" : "json",
  11632. "async" : true,
  11633. "success" : function(data) {
  11634. $("#dataTable").html("");
  11635. if(data != null && data != ""){
  11636. var html = "";
  11637. for(var i = 0; i < data.length; i++){
  11638. var ID = data[i].id == null ? "" : data[i].id;
  11639. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11640. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11641. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11642. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11643. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11644. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11645. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11646. var NAME = data[i].name == null ? "" : data[i].name;
  11647. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11648. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11649. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11650. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11651. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11652. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11653. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11654. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11655. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11656. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11657. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11658. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11659. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11660. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11661. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11662. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11663. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11664. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11665. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11666. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  11667. sum_total = sum_total + DSUMVALUE
  11668. var invoice_type_cn =null;
  11669. if (invoice_type =="00" ){
  11670. invoice_type_cn="销售发票";
  11671. }else if (invoice_type == "01") {
  11672. invoice_type_cn="更正(对冲)发票";
  11673. }else if (invoice_type == "02") {
  11674. invoice_type_cn="其它类型发票";
  11675. }
  11676. html += "_$ta";
  11677. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11678. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11679. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11680. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11681. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11682. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11683. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11684. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11685. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11686. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11687. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11688. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11689. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11690. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11691. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11692. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11693. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11694. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11695. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11696. html += "_$tag";
  11697. }
  11698. html += "_$ta";
  11699. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11700. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11701. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11702. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11703. html += "_$tag_____________$tag_合计:_$tag___$tag";
  11704. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  11705. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11706. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11707. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11708. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11709. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11710. html += "_$tag_____________$tag____________________________________________________________________$tag";
  11711. html += "_$tag_____________$tag____________________________________________________________________$tag";
  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";
  11718. $("#dataTable").html(html);
  11719. }else {
  11720. $("#dataTable").html("");
  11721. }
  11722. },
  11723. "error" : function(msg){
  11724. },
  11725. "complete": function(){
  11726. layer.close(tip);
  11727. }
  11728. });
  11729. });
  11730. Date.prototype.Format = function (fmt) {
  11731. var o = {
  11732. "M+": this.getMonth() + 1, //月份
  11733. "d+": this.getDate(), //日
  11734. "h+": this.getHours(), //小时
  11735. "m+": this.getMinutes(), //分
  11736. "s+": this.getSeconds(), //秒
  11737. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11738. "S": this.getMilliseconds() //毫秒
  11739. };
  11740. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11741. for (var k in o)
  11742. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11743. return fmt;
  11744. }
  11745. $("#jrjc").change(function() {
  11746. if ($("#jrjc").prop('checked') == true){
  11747. $("#departmentId").removeAttr("disabled");
  11748. }else {
  11749. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11750. }
  11751. });
  11752. ----------------------------------- SOURCE END -------------------------------------
  11753. !STACK 0
  11754. java.lang.NullPointerException
  11755. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:43.895
  11756. !MESSAGE Error while processing working copy
  11757. !STACK 1
  11758. JavaScript Model Exception: java.lang.NullPointerException
  11759. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11760. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11761. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11762. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11763. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11764. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11765. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11766. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11767. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11768. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11769. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11770. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11771. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11772. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11773. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11774. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11775. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11776. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11777. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11778. Caused by: java.lang.NullPointerException
  11779. Caused by: java.lang.NullPointerException
  11780. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:43.895
  11781. !MESSAGE java.lang.NullPointerException
  11782. !STACK 0
  11783. java.lang.NullPointerException
  11784. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:44.976
  11785. !MESSAGE Exception occurred during problem detection:
  11786. ----------------------------------- SOURCE BEGIN -------------------------------------
  11787. (function(){WdatePicker();})();
  11788. (function(){WdatePicker();})();
  11789. (function(){Data.get();})();
  11790. (function(){Data.set();})();
  11791. (function(){search();})();
  11792. $(function(){
  11793. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11794. getfp();
  11795. });
  11796. var Data = {
  11797. "get" : function(){
  11798. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11799. var tip = layer.load(2);
  11800. var result="";
  11801. var url = "getgyxml.do";
  11802. $.ajax({
  11803. "url" : url,
  11804. "data" : {
  11805. "start_date" : $("#dateBegin").val(),
  11806. "end_date" : $("#dateEnd").val()
  11807. },
  11808. "type" : "POST",
  11809. "dataType" : "json",
  11810. "success" : function(data) {
  11811. if(data != null && data != ""){
  11812. if ( data.status =="success"){
  11813. getfp();
  11814. alert("获取成功!");
  11815. }else {
  11816. alert(data.status);
  11817. }
  11818. }else {
  11819. alert("获取失败!");
  11820. }
  11821. },
  11822. "complete": function(){
  11823. layer.close(tip);
  11824. }
  11825. });
  11826. }else {
  11827. alert("请选择日期!");
  11828. }
  11829. },
  11830. "set" : function(){
  11831. if ( $("#fpid option:selected").text() !=""){
  11832. var tip = layer.load(2);
  11833. var gitem = $("#form1").serialize();
  11834. var jrjc;
  11835. if ($("#jrjc").prop('checked') == true){
  11836. jrjc = $("#departmentId").val();
  11837. }else {
  11838. jrjc ='N'
  11839. }
  11840. var url = "saverk.do";
  11841. $.ajax({
  11842. "url" : url,
  11843. "data" : {
  11844. "gitem" : gitem,
  11845. "jrjc" : jrjc
  11846. },
  11847. "type" : "POST",
  11848. "dataType" : "json",
  11849. "async" : true,
  11850. "success" : function(data) {
  11851. if(data.status =="success"){
  11852. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  11853. alert("入库成功!\n入库单号:"+data.rkdh+"");
  11854. }else {
  11855. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  11856. }
  11857. window.location.reload();
  11858. }else {
  11859. alert(data.status);
  11860. }
  11861. },
  11862. "error": function(){
  11863. alert("确认失败!");
  11864. },
  11865. "complete": function(){
  11866. layer.close(tip);
  11867. }
  11868. });
  11869. }else {
  11870. alert("请选择发票!");
  11871. }
  11872. }
  11873. }
  11874. function getfp(){
  11875. var tip = layer.load(2);
  11876. var url = "getgyfp.do";
  11877. $.ajax({
  11878. "url" : url,
  11879. "type" : "POST",
  11880. "dataType" : "json",
  11881. "async" : true,
  11882. "success" : function(data) {
  11883. if(data != null && data != ""){
  11884. $("#fpid").empty();
  11885. $("#fpid").append("_$tag_____________$tag____");
  11886. for(var i = 0; i < data.length; i++){
  11887. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11888. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11889. }
  11890. }
  11891. },
  11892. "error" : function(msg){
  11893. },
  11894. "complete": function(){
  11895. layer.close(tip);
  11896. }
  11897. });
  11898. }
  11899. $("#fpid").change(function(){
  11900. var tip = layer.load(2);
  11901. var url = "getgyrkxx.do";
  11902. var sum_total=0;
  11903. $.ajax({
  11904. "url" : url,
  11905. "data" : {
  11906. "fpId" : $("#fpid").val()
  11907. },
  11908. "type" : "POST",
  11909. "dataType" : "json",
  11910. "async" : true,
  11911. "success" : function(data) {
  11912. $("#dataTable").html("");
  11913. if(data != null && data != ""){
  11914. var html = "";
  11915. for(var i = 0; i < data.length; i++){
  11916. var ID = data[i].id == null ? "" : data[i].id;
  11917. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11918. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11919. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11920. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11921. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11922. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11923. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11924. var NAME = data[i].name == null ? "" : data[i].name;
  11925. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11926. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11927. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11928. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11929. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11930. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11931. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11932. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11933. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11934. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11935. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11936. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11937. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11938. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11939. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11940. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11941. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11942. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  11943. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  11944. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  11945. sum_total = sum_total + DSUMVALUE
  11946. var invoice_type_cn =null;
  11947. if (invoice_type =="00" ){
  11948. invoice_type_cn="销售发票";
  11949. }else if (invoice_type == "01") {
  11950. invoice_type_cn="更正(对冲)发票";
  11951. }else if (invoice_type == "02") {
  11952. invoice_type_cn="其它类型发票";
  11953. }
  11954. html += "_$ta";
  11955. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11956. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11957. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11958. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11959. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11960. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11961. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11962. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11963. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11964. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11965. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  11966. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  11967. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11968. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11969. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11970. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11971. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11972. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11973. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11974. html += "_$tag";
  11975. }
  11976. html += "_$ta";
  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___$tag";
  11982. html += "_$tag_____________$tag_"+sum_total+"_$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";
  11996. $("#dataTable").html(html);
  11997. }else {
  11998. $("#dataTable").html("");
  11999. }
  12000. },
  12001. "error" : function(msg){
  12002. },
  12003. "complete": function(){
  12004. layer.close(tip);
  12005. }
  12006. });
  12007. });
  12008. Date.prototype.Format = function (fmt) {
  12009. var o = {
  12010. "M+": this.getMonth() + 1, //月份
  12011. "d+": this.getDate(), //日
  12012. "h+": this.getHours(), //小时
  12013. "m+": this.getMinutes(), //分
  12014. "s+": this.getSeconds(), //秒
  12015. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12016. "S": this.getMilliseconds() //毫秒
  12017. };
  12018. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12019. for (var k in o)
  12020. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12021. return fmt;
  12022. }
  12023. $("#jrjc").change(function() {
  12024. if ($("#jrjc").prop('checked') == true){
  12025. $("#departmentId").removeAttr("disabled");
  12026. }else {
  12027. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12028. }
  12029. });
  12030. ----------------------------------- SOURCE END -------------------------------------
  12031. !STACK 0
  12032. java.lang.NullPointerException
  12033. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:45.793
  12034. !MESSAGE Exception occurred during problem detection:
  12035. ----------------------------------- SOURCE BEGIN -------------------------------------
  12036. (function(){WdatePicker();})();
  12037. (function(){WdatePicker();})();
  12038. (function(){Data.get();})();
  12039. (function(){Data.set();})();
  12040. (function(){search();})();
  12041. $(function(){
  12042. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12043. getfp();
  12044. });
  12045. var Data = {
  12046. "get" : function(){
  12047. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12048. var tip = layer.load(2);
  12049. var result="";
  12050. var url = "getgyxml.do";
  12051. $.ajax({
  12052. "url" : url,
  12053. "data" : {
  12054. "start_date" : $("#dateBegin").val(),
  12055. "end_date" : $("#dateEnd").val()
  12056. },
  12057. "type" : "POST",
  12058. "dataType" : "json",
  12059. "success" : function(data) {
  12060. if(data != null && data != ""){
  12061. if ( data.status =="success"){
  12062. getfp();
  12063. alert("获取成功!");
  12064. }else {
  12065. alert(data.status);
  12066. }
  12067. }else {
  12068. alert("获取失败!");
  12069. }
  12070. },
  12071. "complete": function(){
  12072. layer.close(tip);
  12073. }
  12074. });
  12075. }else {
  12076. alert("请选择日期!");
  12077. }
  12078. },
  12079. "set" : function(){
  12080. if ( $("#fpid option:selected").text() !=""){
  12081. var tip = layer.load(2);
  12082. var gitem = $("#form1").serialize();
  12083. var jrjc;
  12084. if ($("#jrjc").prop('checked') == true){
  12085. jrjc = $("#departmentId").val();
  12086. }else {
  12087. jrjc ='N'
  12088. }
  12089. var url = "saverk.do";
  12090. $.ajax({
  12091. "url" : url,
  12092. "data" : {
  12093. "gitem" : gitem,
  12094. "jrjc" : jrjc
  12095. },
  12096. "type" : "POST",
  12097. "dataType" : "json",
  12098. "async" : true,
  12099. "success" : function(data) {
  12100. if(data.status =="success"){
  12101. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12102. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12103. }else {
  12104. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12105. }
  12106. window.location.reload();
  12107. }else {
  12108. alert(data.status);
  12109. }
  12110. },
  12111. "error": function(){
  12112. alert("确认失败!");
  12113. },
  12114. "complete": function(){
  12115. layer.close(tip);
  12116. }
  12117. });
  12118. }else {
  12119. alert("请选择发票!");
  12120. }
  12121. }
  12122. }
  12123. function getfp(){
  12124. var tip = layer.load(2);
  12125. var url = "getgyfp.do";
  12126. $.ajax({
  12127. "url" : url,
  12128. "type" : "POST",
  12129. "dataType" : "json",
  12130. "async" : true,
  12131. "success" : function(data) {
  12132. if(data != null && data != ""){
  12133. $("#fpid").empty();
  12134. $("#fpid").append("_$tag_____________$tag____");
  12135. for(var i = 0; i < data.length; i++){
  12136. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12137. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12138. }
  12139. }
  12140. },
  12141. "error" : function(msg){
  12142. },
  12143. "complete": function(){
  12144. layer.close(tip);
  12145. }
  12146. });
  12147. }
  12148. $("#fpid").change(function(){
  12149. var tip = layer.load(2);
  12150. var url = "getgyrkxx.do";
  12151. var sum_total=0;
  12152. $.ajax({
  12153. "url" : url,
  12154. "data" : {
  12155. "fpId" : $("#fpid").val()
  12156. },
  12157. "type" : "POST",
  12158. "dataType" : "json",
  12159. "async" : true,
  12160. "success" : function(data) {
  12161. $("#dataTable").html("");
  12162. if(data != null && data != ""){
  12163. var html = "";
  12164. for(var i = 0; i < data.length; i++){
  12165. var ID = data[i].id == null ? "" : data[i].id;
  12166. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12167. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12168. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12169. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12170. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12171. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12172. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12173. var NAME = data[i].name == null ? "" : data[i].name;
  12174. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12175. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12176. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12177. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12178. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12179. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12180. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12181. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12182. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12183. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12184. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12185. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12186. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12187. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12188. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12189. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12190. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12191. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12192. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12193. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  12194. sum_total = sum_total + DSUMVALUE
  12195. var invoice_type_cn =null;
  12196. if (invoice_type =="00" ){
  12197. invoice_type_cn="销售发票";
  12198. }else if (invoice_type == "01") {
  12199. invoice_type_cn="更正(对冲)发票";
  12200. }else if (invoice_type == "02") {
  12201. invoice_type_cn="其它类型发票";
  12202. }
  12203. html += "_$ta";
  12204. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12205. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12206. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12207. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12208. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12209. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12210. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12211. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12212. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12213. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12214. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12215. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12216. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12217. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12218. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12219. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12220. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12221. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12222. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12223. html += "_$tag";
  12224. }
  12225. html += "_$ta";
  12226. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12227. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12228. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12229. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12230. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12231. html += "_$tag_____________$tag_"+sum_total+"_$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";
  12245. $("#dataTable").html(html);
  12246. }else {
  12247. $("#dataTable").html("");
  12248. }
  12249. },
  12250. "error" : function(msg){
  12251. },
  12252. "complete": function(){
  12253. layer.close(tip);
  12254. }
  12255. });
  12256. });
  12257. Date.prototype.Format = function (fmt) {
  12258. var o = {
  12259. "M+": this.getMonth() + 1, //月份
  12260. "d+": this.getDate(), //日
  12261. "h+": this.getHours(), //小时
  12262. "m+": this.getMinutes(), //分
  12263. "s+": this.getSeconds(), //秒
  12264. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12265. "S": this.getMilliseconds() //毫秒
  12266. };
  12267. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12268. for (var k in o)
  12269. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12270. return fmt;
  12271. }
  12272. $("#jrjc").change(function() {
  12273. if ($("#jrjc").prop('checked') == true){
  12274. $("#departmentId").removeAttr("disabled");
  12275. }else {
  12276. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12277. }
  12278. });
  12279. ----------------------------------- SOURCE END -------------------------------------
  12280. !STACK 0
  12281. java.lang.NullPointerException
  12282. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:45.794
  12283. !MESSAGE Error while processing working copy
  12284. !STACK 1
  12285. JavaScript Model Exception: java.lang.NullPointerException
  12286. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12287. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12288. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12289. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12290. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12291. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12292. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12293. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12294. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12295. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12296. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12297. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12298. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12299. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12300. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12301. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12302. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12303. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12304. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12305. Caused by: java.lang.NullPointerException
  12306. Caused by: java.lang.NullPointerException
  12307. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:45.794
  12308. !MESSAGE java.lang.NullPointerException
  12309. !STACK 0
  12310. java.lang.NullPointerException
  12311. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:46.915
  12312. !MESSAGE Exception occurred during problem detection:
  12313. ----------------------------------- SOURCE BEGIN -------------------------------------
  12314. (function(){WdatePicker();})();
  12315. (function(){WdatePicker();})();
  12316. (function(){Data.get();})();
  12317. (function(){Data.set();})();
  12318. (function(){search();})();
  12319. $(function(){
  12320. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12321. getfp();
  12322. });
  12323. var Data = {
  12324. "get" : function(){
  12325. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12326. var tip = layer.load(2);
  12327. var result="";
  12328. var url = "getgyxml.do";
  12329. $.ajax({
  12330. "url" : url,
  12331. "data" : {
  12332. "start_date" : $("#dateBegin").val(),
  12333. "end_date" : $("#dateEnd").val()
  12334. },
  12335. "type" : "POST",
  12336. "dataType" : "json",
  12337. "success" : function(data) {
  12338. if(data != null && data != ""){
  12339. if ( data.status =="success"){
  12340. getfp();
  12341. alert("获取成功!");
  12342. }else {
  12343. alert(data.status);
  12344. }
  12345. }else {
  12346. alert("获取失败!");
  12347. }
  12348. },
  12349. "complete": function(){
  12350. layer.close(tip);
  12351. }
  12352. });
  12353. }else {
  12354. alert("请选择日期!");
  12355. }
  12356. },
  12357. "set" : function(){
  12358. if ( $("#fpid option:selected").text() !=""){
  12359. var tip = layer.load(2);
  12360. var gitem = $("#form1").serialize();
  12361. var jrjc;
  12362. if ($("#jrjc").prop('checked') == true){
  12363. jrjc = $("#departmentId").val();
  12364. }else {
  12365. jrjc ='N'
  12366. }
  12367. var url = "saverk.do";
  12368. $.ajax({
  12369. "url" : url,
  12370. "data" : {
  12371. "gitem" : gitem,
  12372. "jrjc" : jrjc
  12373. },
  12374. "type" : "POST",
  12375. "dataType" : "json",
  12376. "async" : true,
  12377. "success" : function(data) {
  12378. if(data.status =="success"){
  12379. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12380. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12381. }else {
  12382. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12383. }
  12384. window.location.reload();
  12385. }else {
  12386. alert(data.status);
  12387. }
  12388. },
  12389. "error": function(){
  12390. alert("确认失败!");
  12391. },
  12392. "complete": function(){
  12393. layer.close(tip);
  12394. }
  12395. });
  12396. }else {
  12397. alert("请选择发票!");
  12398. }
  12399. }
  12400. }
  12401. function getfp(){
  12402. var tip = layer.load(2);
  12403. var url = "getgyfp.do";
  12404. $.ajax({
  12405. "url" : url,
  12406. "type" : "POST",
  12407. "dataType" : "json",
  12408. "async" : true,
  12409. "success" : function(data) {
  12410. if(data != null && data != ""){
  12411. $("#fpid").empty();
  12412. $("#fpid").append("_$tag_____________$tag____");
  12413. for(var i = 0; i < data.length; i++){
  12414. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12415. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12416. }
  12417. }
  12418. },
  12419. "error" : function(msg){
  12420. },
  12421. "complete": function(){
  12422. layer.close(tip);
  12423. }
  12424. });
  12425. }
  12426. $("#fpid").change(function(){
  12427. var tip = layer.load(2);
  12428. var url = "getgyrkxx.do";
  12429. var sum_total=0;
  12430. $.ajax({
  12431. "url" : url,
  12432. "data" : {
  12433. "fpId" : $("#fpid").val()
  12434. },
  12435. "type" : "POST",
  12436. "dataType" : "json",
  12437. "async" : true,
  12438. "success" : function(data) {
  12439. $("#dataTable").html("");
  12440. if(data != null && data != ""){
  12441. var html = "";
  12442. for(var i = 0; i < data.length; i++){
  12443. var ID = data[i].id == null ? "" : data[i].id;
  12444. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12445. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12446. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12447. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12448. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12449. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12450. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12451. var NAME = data[i].name == null ? "" : data[i].name;
  12452. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12453. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12454. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12455. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12456. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12457. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12458. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12459. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12460. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12461. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12462. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12463. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12464. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12465. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12466. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12467. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12468. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12469. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12470. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12471. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  12472. sum_total = sum_total + DSUMVALUE
  12473. var invoice_type_cn =null;
  12474. if (invoice_type =="00" ){
  12475. invoice_type_cn="销售发票";
  12476. }else if (invoice_type == "01") {
  12477. invoice_type_cn="更正(对冲)发票";
  12478. }else if (invoice_type == "02") {
  12479. invoice_type_cn="其它类型发票";
  12480. }
  12481. html += "_$ta";
  12482. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12483. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12484. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12485. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  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";
  12502. }
  12503. html += "_$ta";
  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___$tag";
  12509. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12510. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12511. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12512. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12513. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12514. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12515. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12516. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12517. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12518. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12519. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12520. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12521. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12522. html += "_$tag";
  12523. $("#dataTable").html(html);
  12524. }else {
  12525. $("#dataTable").html("");
  12526. }
  12527. },
  12528. "error" : function(msg){
  12529. },
  12530. "complete": function(){
  12531. layer.close(tip);
  12532. }
  12533. });
  12534. });
  12535. Date.prototype.Format = function (fmt) {
  12536. var o = {
  12537. "M+": this.getMonth() + 1, //月份
  12538. "d+": this.getDate(), //日
  12539. "h+": this.getHours(), //小时
  12540. "m+": this.getMinutes(), //分
  12541. "s+": this.getSeconds(), //秒
  12542. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12543. "S": this.getMilliseconds() //毫秒
  12544. };
  12545. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12546. for (var k in o)
  12547. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12548. return fmt;
  12549. }
  12550. $("#jrjc").change(function() {
  12551. if ($("#jrjc").prop('checked') == true){
  12552. $("#departmentId").removeAttr("disabled");
  12553. }else {
  12554. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12555. }
  12556. });
  12557. ----------------------------------- SOURCE END -------------------------------------
  12558. !STACK 0
  12559. java.lang.NullPointerException
  12560. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:47.426
  12561. !MESSAGE Exception occurred during problem detection:
  12562. ----------------------------------- SOURCE BEGIN -------------------------------------
  12563. (function(){WdatePicker();})();
  12564. (function(){WdatePicker();})();
  12565. (function(){Data.get();})();
  12566. (function(){Data.set();})();
  12567. (function(){search();})();
  12568. $(function(){
  12569. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12570. getfp();
  12571. });
  12572. var Data = {
  12573. "get" : function(){
  12574. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12575. var tip = layer.load(2);
  12576. var result="";
  12577. var url = "getgyxml.do";
  12578. $.ajax({
  12579. "url" : url,
  12580. "data" : {
  12581. "start_date" : $("#dateBegin").val(),
  12582. "end_date" : $("#dateEnd").val()
  12583. },
  12584. "type" : "POST",
  12585. "dataType" : "json",
  12586. "success" : function(data) {
  12587. if(data != null && data != ""){
  12588. if ( data.status =="success"){
  12589. getfp();
  12590. alert("获取成功!");
  12591. }else {
  12592. alert(data.status);
  12593. }
  12594. }else {
  12595. alert("获取失败!");
  12596. }
  12597. },
  12598. "complete": function(){
  12599. layer.close(tip);
  12600. }
  12601. });
  12602. }else {
  12603. alert("请选择日期!");
  12604. }
  12605. },
  12606. "set" : function(){
  12607. if ( $("#fpid option:selected").text() !=""){
  12608. var tip = layer.load(2);
  12609. var gitem = $("#form1").serialize();
  12610. var jrjc;
  12611. if ($("#jrjc").prop('checked') == true){
  12612. jrjc = $("#departmentId").val();
  12613. }else {
  12614. jrjc ='N'
  12615. }
  12616. var url = "saverk.do";
  12617. $.ajax({
  12618. "url" : url,
  12619. "data" : {
  12620. "gitem" : gitem,
  12621. "jrjc" : jrjc
  12622. },
  12623. "type" : "POST",
  12624. "dataType" : "json",
  12625. "async" : true,
  12626. "success" : function(data) {
  12627. if(data.status =="success"){
  12628. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12629. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12630. }else {
  12631. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12632. }
  12633. window.location.reload();
  12634. }else {
  12635. alert(data.status);
  12636. }
  12637. },
  12638. "error": function(){
  12639. alert("确认失败!");
  12640. },
  12641. "complete": function(){
  12642. layer.close(tip);
  12643. }
  12644. });
  12645. }else {
  12646. alert("请选择发票!");
  12647. }
  12648. }
  12649. }
  12650. function getfp(){
  12651. var tip = layer.load(2);
  12652. var url = "getgyfp.do";
  12653. $.ajax({
  12654. "url" : url,
  12655. "type" : "POST",
  12656. "dataType" : "json",
  12657. "async" : true,
  12658. "success" : function(data) {
  12659. if(data != null && data != ""){
  12660. $("#fpid").empty();
  12661. $("#fpid").append("_$tag_____________$tag____");
  12662. for(var i = 0; i < data.length; i++){
  12663. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12664. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12665. }
  12666. }
  12667. },
  12668. "error" : function(msg){
  12669. },
  12670. "complete": function(){
  12671. layer.close(tip);
  12672. }
  12673. });
  12674. }
  12675. $("#fpid").change(function(){
  12676. var tip = layer.load(2);
  12677. var url = "getgyrkxx.do";
  12678. var sum_total=0;
  12679. $.ajax({
  12680. "url" : url,
  12681. "data" : {
  12682. "fpId" : $("#fpid").val()
  12683. },
  12684. "type" : "POST",
  12685. "dataType" : "json",
  12686. "async" : true,
  12687. "success" : function(data) {
  12688. $("#dataTable").html("");
  12689. if(data != null && data != ""){
  12690. var html = "";
  12691. for(var i = 0; i < data.length; i++){
  12692. var ID = data[i].id == null ? "" : data[i].id;
  12693. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12694. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12695. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12696. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12697. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12698. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12699. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12700. var NAME = data[i].name == null ? "" : data[i].name;
  12701. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12702. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12703. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12704. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12705. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12706. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12707. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12708. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12709. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12710. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12711. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12712. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12713. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12714. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12715. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12716. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12717. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12718. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  12719. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  12720. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  12721. sum_total = sum_total + DSUMVALUE
  12722. var invoice_type_cn =null;
  12723. if (invoice_type =="00" ){
  12724. invoice_type_cn="销售发票";
  12725. }else if (invoice_type == "01") {
  12726. invoice_type_cn="更正(对冲)发票";
  12727. }else if (invoice_type == "02") {
  12728. invoice_type_cn="其它类型发票";
  12729. }
  12730. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  12740. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12741. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  12742. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  12743. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12744. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12745. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12746. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12747. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12748. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12749. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12750. html += "_$tag";
  12751. }
  12752. html += "_$ta";
  12753. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12754. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12755. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12756. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12757. html += "_$tag_____________$tag_合计:_$tag___$tag";
  12758. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  12759. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12760. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12761. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12762. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12763. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12764. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12765. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12766. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12767. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12768. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12769. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12770. html += "_$tag_____________$tag____________________________________________________________________$tag";
  12771. html += "_$tag";
  12772. $("#dataTable").html(html);
  12773. }else {
  12774. $("#dataTable").html("");
  12775. }
  12776. },
  12777. "error" : function(msg){
  12778. },
  12779. "complete": function(){
  12780. layer.close(tip);
  12781. }
  12782. });
  12783. });
  12784. Date.prototype.Format = function (fmt) {
  12785. var o = {
  12786. "M+": this.getMonth() + 1, //月份
  12787. "d+": this.getDate(), //日
  12788. "h+": this.getHours(), //小时
  12789. "m+": this.getMinutes(), //分
  12790. "s+": this.getSeconds(), //秒
  12791. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12792. "S": this.getMilliseconds() //毫秒
  12793. };
  12794. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12795. for (var k in o)
  12796. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12797. return fmt;
  12798. }
  12799. $("#jrjc").change(function() {
  12800. if ($("#jrjc").prop('checked') == true){
  12801. $("#departmentId").removeAttr("disabled");
  12802. }else {
  12803. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12804. }
  12805. });
  12806. ----------------------------------- SOURCE END -------------------------------------
  12807. !STACK 0
  12808. java.lang.NullPointerException
  12809. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:47.427
  12810. !MESSAGE Error while processing working copy
  12811. !STACK 1
  12812. JavaScript Model Exception: java.lang.NullPointerException
  12813. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12814. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12815. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12816. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12817. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12818. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12819. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12820. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12821. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12822. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12823. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12824. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12825. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12826. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12827. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12828. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12829. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  12830. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  12831. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  12832. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  12833. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  12834. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  12835. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  12836. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  12837. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  12838. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  12839. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  12840. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  12841. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  12842. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  12843. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  12844. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  12845. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  12846. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  12847. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  12848. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  12849. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  12850. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  12851. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  12852. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  12853. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  12854. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  12855. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  12856. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  12857. at java.lang.reflect.Method.invoke(Unknown Source)
  12858. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  12859. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  12860. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  12861. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  12862. Caused by: java.lang.NullPointerException
  12863. Caused by: java.lang.NullPointerException
  12864. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:47.427
  12865. !MESSAGE java.lang.NullPointerException
  12866. !STACK 0
  12867. java.lang.NullPointerException
  12868. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:48.446
  12869. !MESSAGE Exception occurred during problem detection:
  12870. ----------------------------------- SOURCE BEGIN -------------------------------------
  12871. (function(){WdatePicker();})();
  12872. (function(){WdatePicker();})();
  12873. (function(){Data.get();})();
  12874. (function(){Data.set();})();
  12875. (function(){search();})();
  12876. $(function(){
  12877. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12878. getfp();
  12879. });
  12880. var Data = {
  12881. "get" : function(){
  12882. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12883. var tip = layer.load(2);
  12884. var result="";
  12885. var url = "getgyxml.do";
  12886. $.ajax({
  12887. "url" : url,
  12888. "data" : {
  12889. "start_date" : $("#dateBegin").val(),
  12890. "end_date" : $("#dateEnd").val()
  12891. },
  12892. "type" : "POST",
  12893. "dataType" : "json",
  12894. "success" : function(data) {
  12895. if(data != null && data != ""){
  12896. if ( data.status =="success"){
  12897. getfp();
  12898. alert("获取成功!");
  12899. }else {
  12900. alert(data.status);
  12901. }
  12902. }else {
  12903. alert("获取失败!");
  12904. }
  12905. },
  12906. "complete": function(){
  12907. layer.close(tip);
  12908. }
  12909. });
  12910. }else {
  12911. alert("请选择日期!");
  12912. }
  12913. },
  12914. "set" : function(){
  12915. if ( $("#fpid option:selected").text() !=""){
  12916. var tip = layer.load(2);
  12917. var gitem = $("#form1").serialize();
  12918. var jrjc;
  12919. if ($("#jrjc").prop('checked') == true){
  12920. jrjc = $("#departmentId").val();
  12921. }else {
  12922. jrjc ='N'
  12923. }
  12924. var url = "saverk.do";
  12925. $.ajax({
  12926. "url" : url,
  12927. "data" : {
  12928. "gitem" : gitem,
  12929. "jrjc" : jrjc
  12930. },
  12931. "type" : "POST",
  12932. "dataType" : "json",
  12933. "async" : true,
  12934. "success" : function(data) {
  12935. if(data.status =="success"){
  12936. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  12937. alert("入库成功!\n入库单号:"+data.rkdh+"");
  12938. }else {
  12939. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  12940. }
  12941. window.location.reload();
  12942. }else {
  12943. alert(data.status);
  12944. }
  12945. },
  12946. "error": function(){
  12947. alert("确认失败!");
  12948. },
  12949. "complete": function(){
  12950. layer.close(tip);
  12951. }
  12952. });
  12953. }else {
  12954. alert("请选择发票!");
  12955. }
  12956. }
  12957. }
  12958. function getfp(){
  12959. var tip = layer.load(2);
  12960. var url = "getgyfp.do";
  12961. $.ajax({
  12962. "url" : url,
  12963. "type" : "POST",
  12964. "dataType" : "json",
  12965. "async" : true,
  12966. "success" : function(data) {
  12967. if(data != null && data != ""){
  12968. $("#fpid").empty();
  12969. $("#fpid").append("_$tag_____________$tag____");
  12970. for(var i = 0; i < data.length; i++){
  12971. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12972. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12973. }
  12974. }
  12975. },
  12976. "error" : function(msg){
  12977. },
  12978. "complete": function(){
  12979. layer.close(tip);
  12980. }
  12981. });
  12982. }
  12983. $("#fpid").change(function(){
  12984. var tip = layer.load(2);
  12985. var url = "getgyrkxx.do";
  12986. var sum_total=0;
  12987. $.ajax({
  12988. "url" : url,
  12989. "data" : {
  12990. "fpId" : $("#fpid").val()
  12991. },
  12992. "type" : "POST",
  12993. "dataType" : "json",
  12994. "async" : true,
  12995. "success" : function(data) {
  12996. $("#dataTable").html("");
  12997. if(data != null && data != ""){
  12998. var html = "";
  12999. for(var i = 0; i < data.length; i++){
  13000. var ID = data[i].id == null ? "" : data[i].id;
  13001. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13002. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13003. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13004. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13005. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13006. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13007. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13008. var NAME = data[i].name == null ? "" : data[i].name;
  13009. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13010. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13011. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13012. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13013. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13014. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13015. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13016. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13017. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13018. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13019. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13020. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13021. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13022. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13023. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13024. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13025. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13026. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13027. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13028. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  13029. sum_total = sum_total + DSUMVALUE
  13030. var invoice_type_cn =null;
  13031. if (invoice_type =="00" ){
  13032. invoice_type_cn="销售发票";
  13033. }else if (invoice_type == "01") {
  13034. invoice_type_cn="更正(对冲)发票";
  13035. }else if (invoice_type == "02") {
  13036. invoice_type_cn="其它类型发票";
  13037. }
  13038. html += "_$ta";
  13039. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13040. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13041. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13042. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13043. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13044. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13045. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13046. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13047. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13048. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13049. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13050. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13051. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13052. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13053. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13054. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13055. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13056. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13057. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13058. html += "_$tag";
  13059. }
  13060. html += "_$ta";
  13061. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13062. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13063. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13064. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13065. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13066. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13067. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13068. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13069. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13070. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13071. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13072. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13073. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13074. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13075. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13076. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13077. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13078. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13079. html += "_$tag";
  13080. $("#dataTable").html(html);
  13081. }else {
  13082. $("#dataTable").html("");
  13083. }
  13084. },
  13085. "error" : function(msg){
  13086. },
  13087. "complete": function(){
  13088. layer.close(tip);
  13089. }
  13090. });
  13091. });
  13092. Date.prototype.Format = function (fmt) {
  13093. var o = {
  13094. "M+": this.getMonth() + 1, //月份
  13095. "d+": this.getDate(), //日
  13096. "h+": this.getHours(), //小时
  13097. "m+": this.getMinutes(), //分
  13098. "s+": this.getSeconds(), //秒
  13099. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13100. "S": this.getMilliseconds() //毫秒
  13101. };
  13102. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13103. for (var k in o)
  13104. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13105. return fmt;
  13106. }
  13107. $("#jrjc").change(function() {
  13108. if ($("#jrjc").prop('checked') == true){
  13109. $("#departmentId").removeAttr("disabled");
  13110. }else {
  13111. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13112. }
  13113. });
  13114. ----------------------------------- SOURCE END -------------------------------------
  13115. !STACK 0
  13116. java.lang.NullPointerException
  13117. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:48.849
  13118. !MESSAGE Exception occurred during problem detection:
  13119. ----------------------------------- SOURCE BEGIN -------------------------------------
  13120. (function(){WdatePicker();})();
  13121. (function(){WdatePicker();})();
  13122. (function(){Data.get();})();
  13123. (function(){Data.set();})();
  13124. (function(){search();})();
  13125. $(function(){
  13126. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13127. getfp();
  13128. });
  13129. var Data = {
  13130. "get" : function(){
  13131. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13132. var tip = layer.load(2);
  13133. var result="";
  13134. var url = "getgyxml.do";
  13135. $.ajax({
  13136. "url" : url,
  13137. "data" : {
  13138. "start_date" : $("#dateBegin").val(),
  13139. "end_date" : $("#dateEnd").val()
  13140. },
  13141. "type" : "POST",
  13142. "dataType" : "json",
  13143. "success" : function(data) {
  13144. if(data != null && data != ""){
  13145. if ( data.status =="success"){
  13146. getfp();
  13147. alert("获取成功!");
  13148. }else {
  13149. alert(data.status);
  13150. }
  13151. }else {
  13152. alert("获取失败!");
  13153. }
  13154. },
  13155. "complete": function(){
  13156. layer.close(tip);
  13157. }
  13158. });
  13159. }else {
  13160. alert("请选择日期!");
  13161. }
  13162. },
  13163. "set" : function(){
  13164. if ( $("#fpid option:selected").text() !=""){
  13165. var tip = layer.load(2);
  13166. var gitem = $("#form1").serialize();
  13167. var jrjc;
  13168. if ($("#jrjc").prop('checked') == true){
  13169. jrjc = $("#departmentId").val();
  13170. }else {
  13171. jrjc ='N'
  13172. }
  13173. var url = "saverk.do";
  13174. $.ajax({
  13175. "url" : url,
  13176. "data" : {
  13177. "gitem" : gitem,
  13178. "jrjc" : jrjc
  13179. },
  13180. "type" : "POST",
  13181. "dataType" : "json",
  13182. "async" : true,
  13183. "success" : function(data) {
  13184. if(data.status =="success"){
  13185. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13186. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13187. }else {
  13188. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13189. }
  13190. window.location.reload();
  13191. }else {
  13192. alert(data.status);
  13193. }
  13194. },
  13195. "error": function(){
  13196. alert("确认失败!");
  13197. },
  13198. "complete": function(){
  13199. layer.close(tip);
  13200. }
  13201. });
  13202. }else {
  13203. alert("请选择发票!");
  13204. }
  13205. }
  13206. }
  13207. function getfp(){
  13208. var tip = layer.load(2);
  13209. var url = "getgyfp.do";
  13210. $.ajax({
  13211. "url" : url,
  13212. "type" : "POST",
  13213. "dataType" : "json",
  13214. "async" : true,
  13215. "success" : function(data) {
  13216. if(data != null && data != ""){
  13217. $("#fpid").empty();
  13218. $("#fpid").append("_$tag_____________$tag____");
  13219. for(var i = 0; i < data.length; i++){
  13220. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13221. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13222. }
  13223. }
  13224. },
  13225. "error" : function(msg){
  13226. },
  13227. "complete": function(){
  13228. layer.close(tip);
  13229. }
  13230. });
  13231. }
  13232. $("#fpid").change(function(){
  13233. var tip = layer.load(2);
  13234. var url = "getgyrkxx.do";
  13235. var sum_total=0;
  13236. $.ajax({
  13237. "url" : url,
  13238. "data" : {
  13239. "fpId" : $("#fpid").val()
  13240. },
  13241. "type" : "POST",
  13242. "dataType" : "json",
  13243. "async" : true,
  13244. "success" : function(data) {
  13245. $("#dataTable").html("");
  13246. if(data != null && data != ""){
  13247. var html = "";
  13248. for(var i = 0; i < data.length; i++){
  13249. var ID = data[i].id == null ? "" : data[i].id;
  13250. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13251. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13252. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13253. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13254. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13255. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13256. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13257. var NAME = data[i].name == null ? "" : data[i].name;
  13258. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13259. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13260. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13261. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13262. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13263. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13264. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13265. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13266. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13267. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13268. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13269. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13270. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13271. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13272. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13273. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13274. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13275. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13276. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13277. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  13278. sum_total = sum_total + DSUMVALUE
  13279. var invoice_type_cn =null;
  13280. if (invoice_type =="00" ){
  13281. invoice_type_cn="销售发票";
  13282. }else if (invoice_type == "01") {
  13283. invoice_type_cn="更正(对冲)发票";
  13284. }else if (invoice_type == "02") {
  13285. invoice_type_cn="其它类型发票";
  13286. }
  13287. html += "_$ta";
  13288. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13289. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13290. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13291. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13292. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13293. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13294. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13295. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13296. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13297. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13298. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13299. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13300. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13301. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13302. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13303. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13304. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13305. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13306. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13307. html += "_$tag";
  13308. }
  13309. html += "_$ta";
  13310. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13311. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13312. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13313. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13314. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13315. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13316. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13317. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13318. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13319. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13320. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13321. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13322. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13323. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13324. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13325. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13326. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13327. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13328. html += "_$tag";
  13329. $("#dataTable").html(html);
  13330. }else {
  13331. $("#dataTable").html("");
  13332. }
  13333. },
  13334. "error" : function(msg){
  13335. },
  13336. "complete": function(){
  13337. layer.close(tip);
  13338. }
  13339. });
  13340. });
  13341. Date.prototype.Format = function (fmt) {
  13342. var o = {
  13343. "M+": this.getMonth() + 1, //月份
  13344. "d+": this.getDate(), //日
  13345. "h+": this.getHours(), //小时
  13346. "m+": this.getMinutes(), //分
  13347. "s+": this.getSeconds(), //秒
  13348. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13349. "S": this.getMilliseconds() //毫秒
  13350. };
  13351. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13352. for (var k in o)
  13353. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13354. return fmt;
  13355. }
  13356. $("#jrjc").change(function() {
  13357. if ($("#jrjc").prop('checked') == true){
  13358. $("#departmentId").removeAttr("disabled");
  13359. }else {
  13360. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13361. }
  13362. });
  13363. ----------------------------------- SOURCE END -------------------------------------
  13364. !STACK 0
  13365. java.lang.NullPointerException
  13366. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:48.849
  13367. !MESSAGE Error while processing working copy
  13368. !STACK 1
  13369. JavaScript Model Exception: java.lang.NullPointerException
  13370. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13371. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13372. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13373. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13374. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13375. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13376. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13377. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13378. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13379. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13380. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13381. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13382. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13383. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13384. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13385. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13386. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  13387. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  13388. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  13389. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  13390. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  13391. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  13392. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  13393. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  13394. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  13395. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  13396. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  13397. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  13398. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  13399. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  13400. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  13401. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  13402. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  13403. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  13404. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  13405. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  13406. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  13407. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  13408. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  13409. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  13410. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  13411. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  13412. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  13413. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  13414. at java.lang.reflect.Method.invoke(Unknown Source)
  13415. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  13416. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  13417. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  13418. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  13419. Caused by: java.lang.NullPointerException
  13420. Caused by: java.lang.NullPointerException
  13421. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:48.850
  13422. !MESSAGE java.lang.NullPointerException
  13423. !STACK 0
  13424. java.lang.NullPointerException
  13425. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:49.841
  13426. !MESSAGE Exception occurred during problem detection:
  13427. ----------------------------------- SOURCE BEGIN -------------------------------------
  13428. (function(){WdatePicker();})();
  13429. (function(){WdatePicker();})();
  13430. (function(){Data.get();})();
  13431. (function(){Data.set();})();
  13432. (function(){search();})();
  13433. $(function(){
  13434. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13435. getfp();
  13436. });
  13437. var Data = {
  13438. "get" : function(){
  13439. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13440. var tip = layer.load(2);
  13441. var result="";
  13442. var url = "getgyxml.do";
  13443. $.ajax({
  13444. "url" : url,
  13445. "data" : {
  13446. "start_date" : $("#dateBegin").val(),
  13447. "end_date" : $("#dateEnd").val()
  13448. },
  13449. "type" : "POST",
  13450. "dataType" : "json",
  13451. "success" : function(data) {
  13452. if(data != null && data != ""){
  13453. if ( data.status =="success"){
  13454. getfp();
  13455. alert("获取成功!");
  13456. }else {
  13457. alert(data.status);
  13458. }
  13459. }else {
  13460. alert("获取失败!");
  13461. }
  13462. },
  13463. "complete": function(){
  13464. layer.close(tip);
  13465. }
  13466. });
  13467. }else {
  13468. alert("请选择日期!");
  13469. }
  13470. },
  13471. "set" : function(){
  13472. if ( $("#fpid option:selected").text() !=""){
  13473. var tip = layer.load(2);
  13474. var gitem = $("#form1").serialize();
  13475. var jrjc;
  13476. if ($("#jrjc").prop('checked') == true){
  13477. jrjc = $("#departmentId").val();
  13478. }else {
  13479. jrjc ='N'
  13480. }
  13481. var url = "saverk.do";
  13482. $.ajax({
  13483. "url" : url,
  13484. "data" : {
  13485. "gitem" : gitem,
  13486. "jrjc" : jrjc
  13487. },
  13488. "type" : "POST",
  13489. "dataType" : "json",
  13490. "async" : true,
  13491. "success" : function(data) {
  13492. if(data.status =="success"){
  13493. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13494. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13495. }else {
  13496. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13497. }
  13498. window.location.reload();
  13499. }else {
  13500. alert(data.status);
  13501. }
  13502. },
  13503. "error": function(){
  13504. alert("确认失败!");
  13505. },
  13506. "complete": function(){
  13507. layer.close(tip);
  13508. }
  13509. });
  13510. }else {
  13511. alert("请选择发票!");
  13512. }
  13513. }
  13514. }
  13515. function getfp(){
  13516. var tip = layer.load(2);
  13517. var url = "getgyfp.do";
  13518. $.ajax({
  13519. "url" : url,
  13520. "type" : "POST",
  13521. "dataType" : "json",
  13522. "async" : true,
  13523. "success" : function(data) {
  13524. if(data != null && data != ""){
  13525. $("#fpid").empty();
  13526. $("#fpid").append("_$tag_____________$tag____");
  13527. for(var i = 0; i < data.length; i++){
  13528. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13529. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13530. }
  13531. }
  13532. },
  13533. "error" : function(msg){
  13534. },
  13535. "complete": function(){
  13536. layer.close(tip);
  13537. }
  13538. });
  13539. }
  13540. $("#fpid").change(function(){
  13541. var tip = layer.load(2);
  13542. var url = "getgyrkxx.do";
  13543. var sum_total=0;
  13544. $.ajax({
  13545. "url" : url,
  13546. "data" : {
  13547. "fpId" : $("#fpid").val()
  13548. },
  13549. "type" : "POST",
  13550. "dataType" : "json",
  13551. "async" : true,
  13552. "success" : function(data) {
  13553. $("#dataTable").html("");
  13554. if(data != null && data != ""){
  13555. var html = "";
  13556. for(var i = 0; i < data.length; i++){
  13557. var ID = data[i].id == null ? "" : data[i].id;
  13558. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13559. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13560. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13561. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13562. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13563. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13564. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13565. var NAME = data[i].name == null ? "" : data[i].name;
  13566. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13567. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13568. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13569. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13570. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13571. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13572. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13573. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13574. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13575. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13576. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13577. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13578. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13579. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13580. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13581. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13582. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13583. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13584. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13585. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  13586. sum_total = sum_total + DSUMVALUE
  13587. var invoice_type_cn =null;
  13588. if (invoice_type =="00" ){
  13589. invoice_type_cn="销售发票";
  13590. }else if (invoice_type == "01") {
  13591. invoice_type_cn="更正(对冲)发票";
  13592. }else if (invoice_type == "02") {
  13593. invoice_type_cn="其它类型发票";
  13594. }
  13595. html += "_$ta";
  13596. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13597. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13598. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13599. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13600. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13601. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13602. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13603. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13604. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13605. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13606. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13607. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13608. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13609. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13610. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13611. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13612. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13613. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13614. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13615. html += "_$tag";
  13616. }
  13617. html += "_$ta";
  13618. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13619. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13620. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13621. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13622. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13623. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13624. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13625. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13626. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13627. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13628. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13629. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13630. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13631. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13632. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13633. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13634. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13635. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13636. html += "_$tag";
  13637. $("#dataTable").html(html);
  13638. }else {
  13639. $("#dataTable").html("");
  13640. }
  13641. },
  13642. "error" : function(msg){
  13643. },
  13644. "complete": function(){
  13645. layer.close(tip);
  13646. }
  13647. });
  13648. });
  13649. Date.prototype.Format = function (fmt) {
  13650. var o = {
  13651. "M+": this.getMonth() + 1, //月份
  13652. "d+": this.getDate(), //日
  13653. "h+": this.getHours(), //小时
  13654. "m+": this.getMinutes(), //分
  13655. "s+": this.getSeconds(), //秒
  13656. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13657. "S": this.getMilliseconds() //毫秒
  13658. };
  13659. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13660. for (var k in o)
  13661. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13662. return fmt;
  13663. }
  13664. $("#jrjc").change(function() {
  13665. if ($("#jrjc").prop('checked') == true){
  13666. $("#departmentId").removeAttr("disabled");
  13667. }else {
  13668. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13669. }
  13670. });
  13671. ----------------------------------- SOURCE END -------------------------------------
  13672. !STACK 0
  13673. java.lang.NullPointerException
  13674. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:50.346
  13675. !MESSAGE Exception occurred during problem detection:
  13676. ----------------------------------- SOURCE BEGIN -------------------------------------
  13677. (function(){WdatePicker();})();
  13678. (function(){WdatePicker();})();
  13679. (function(){Data.get();})();
  13680. (function(){Data.set();})();
  13681. (function(){search();})();
  13682. $(function(){
  13683. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13684. getfp();
  13685. });
  13686. var Data = {
  13687. "get" : function(){
  13688. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13689. var tip = layer.load(2);
  13690. var result="";
  13691. var url = "getgyxml.do";
  13692. $.ajax({
  13693. "url" : url,
  13694. "data" : {
  13695. "start_date" : $("#dateBegin").val(),
  13696. "end_date" : $("#dateEnd").val()
  13697. },
  13698. "type" : "POST",
  13699. "dataType" : "json",
  13700. "success" : function(data) {
  13701. if(data != null && data != ""){
  13702. if ( data.status =="success"){
  13703. getfp();
  13704. alert("获取成功!");
  13705. }else {
  13706. alert(data.status);
  13707. }
  13708. }else {
  13709. alert("获取失败!");
  13710. }
  13711. },
  13712. "complete": function(){
  13713. layer.close(tip);
  13714. }
  13715. });
  13716. }else {
  13717. alert("请选择日期!");
  13718. }
  13719. },
  13720. "set" : function(){
  13721. if ( $("#fpid option:selected").text() !=""){
  13722. var tip = layer.load(2);
  13723. var gitem = $("#form1").serialize();
  13724. var jrjc;
  13725. if ($("#jrjc").prop('checked') == true){
  13726. jrjc = $("#departmentId").val();
  13727. }else {
  13728. jrjc ='N'
  13729. }
  13730. var url = "saverk.do";
  13731. $.ajax({
  13732. "url" : url,
  13733. "data" : {
  13734. "gitem" : gitem,
  13735. "jrjc" : jrjc
  13736. },
  13737. "type" : "POST",
  13738. "dataType" : "json",
  13739. "async" : true,
  13740. "success" : function(data) {
  13741. if(data.status =="success"){
  13742. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  13743. alert("入库成功!\n入库单号:"+data.rkdh+"");
  13744. }else {
  13745. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  13746. }
  13747. window.location.reload();
  13748. }else {
  13749. alert(data.status);
  13750. }
  13751. },
  13752. "error": function(){
  13753. alert("确认失败!");
  13754. },
  13755. "complete": function(){
  13756. layer.close(tip);
  13757. }
  13758. });
  13759. }else {
  13760. alert("请选择发票!");
  13761. }
  13762. }
  13763. }
  13764. function getfp(){
  13765. var tip = layer.load(2);
  13766. var url = "getgyfp.do";
  13767. $.ajax({
  13768. "url" : url,
  13769. "type" : "POST",
  13770. "dataType" : "json",
  13771. "async" : true,
  13772. "success" : function(data) {
  13773. if(data != null && data != ""){
  13774. $("#fpid").empty();
  13775. $("#fpid").append("_$tag_____________$tag____");
  13776. for(var i = 0; i < data.length; i++){
  13777. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13778. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13779. }
  13780. }
  13781. },
  13782. "error" : function(msg){
  13783. },
  13784. "complete": function(){
  13785. layer.close(tip);
  13786. }
  13787. });
  13788. }
  13789. $("#fpid").change(function(){
  13790. var tip = layer.load(2);
  13791. var url = "getgyrkxx.do";
  13792. var sum_total=0;
  13793. $.ajax({
  13794. "url" : url,
  13795. "data" : {
  13796. "fpId" : $("#fpid").val()
  13797. },
  13798. "type" : "POST",
  13799. "dataType" : "json",
  13800. "async" : true,
  13801. "success" : function(data) {
  13802. $("#dataTable").html("");
  13803. if(data != null && data != ""){
  13804. var html = "";
  13805. for(var i = 0; i < data.length; i++){
  13806. var ID = data[i].id == null ? "" : data[i].id;
  13807. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13808. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13809. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13810. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13811. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13812. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13813. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13814. var NAME = data[i].name == null ? "" : data[i].name;
  13815. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13816. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13817. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13818. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13819. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13820. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13821. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13822. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13823. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13824. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13825. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13826. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13827. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13828. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13829. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13830. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13831. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13832. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  13833. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  13834. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  13835. sum_total = sum_total + DSUMVALUE
  13836. var invoice_type_cn =null;
  13837. if (invoice_type =="00" ){
  13838. invoice_type_cn="销售发票";
  13839. }else if (invoice_type == "01") {
  13840. invoice_type_cn="更正(对冲)发票";
  13841. }else if (invoice_type == "02") {
  13842. invoice_type_cn="其它类型发票";
  13843. }
  13844. html += "_$ta";
  13845. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13846. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13847. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13848. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13849. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13850. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13851. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13852. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13853. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13854. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13855. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  13856. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  13857. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13858. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13859. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13860. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13861. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13862. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13863. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13864. html += "_$tag";
  13865. }
  13866. html += "_$ta";
  13867. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13868. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13869. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13870. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13871. html += "_$tag_____________$tag_合计:_$tag___$tag";
  13872. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  13873. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13874. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13875. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13876. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13877. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13878. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13879. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13880. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13881. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13882. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13883. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13884. html += "_$tag_____________$tag____________________________________________________________________$tag";
  13885. html += "_$tag";
  13886. $("#dataTable").html(html);
  13887. }else {
  13888. $("#dataTable").html("");
  13889. }
  13890. },
  13891. "error" : function(msg){
  13892. },
  13893. "complete": function(){
  13894. layer.close(tip);
  13895. }
  13896. });
  13897. });
  13898. Date.prototype.Format = function (fmt) {
  13899. var o = {
  13900. "M+": this.getMonth() + 1, //月份
  13901. "d+": this.getDate(), //日
  13902. "h+": this.getHours(), //小时
  13903. "m+": this.getMinutes(), //分
  13904. "s+": this.getSeconds(), //秒
  13905. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13906. "S": this.getMilliseconds() //毫秒
  13907. };
  13908. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13909. for (var k in o)
  13910. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13911. return fmt;
  13912. }
  13913. $("#jrjc").change(function() {
  13914. if ($("#jrjc").prop('checked') == true){
  13915. $("#departmentId").removeAttr("disabled");
  13916. }else {
  13917. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13918. }
  13919. });
  13920. ----------------------------------- SOURCE END -------------------------------------
  13921. !STACK 0
  13922. java.lang.NullPointerException
  13923. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:50.347
  13924. !MESSAGE Error while processing working copy
  13925. !STACK 1
  13926. JavaScript Model Exception: java.lang.NullPointerException
  13927. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13928. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13929. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13930. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13931. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13932. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13933. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13934. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13935. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13936. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13937. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13938. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13939. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13940. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13941. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13942. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13943. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13944. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13945. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13946. Caused by: java.lang.NullPointerException
  13947. Caused by: java.lang.NullPointerException
  13948. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-10-31 14:21:50.347
  13949. !MESSAGE java.lang.NullPointerException
  13950. !STACK 0
  13951. java.lang.NullPointerException
  13952. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:51.066
  13953. !MESSAGE Exception occurred during problem detection:
  13954. ----------------------------------- SOURCE BEGIN -------------------------------------
  13955. (function(){WdatePicker();})();
  13956. (function(){WdatePicker();})();
  13957. (function(){Data.get();})();
  13958. (function(){Data.set();})();
  13959. (function(){search();})();
  13960. $(function(){
  13961. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13962. getfp();
  13963. });
  13964. var Data = {
  13965. "get" : function(){
  13966. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13967. var tip = layer.load(2);
  13968. var result="";
  13969. var url = "getgyxml.do";
  13970. $.ajax({
  13971. "url" : url,
  13972. "data" : {
  13973. "start_date" : $("#dateBegin").val(),
  13974. "end_date" : $("#dateEnd").val()
  13975. },
  13976. "type" : "POST",
  13977. "dataType" : "json",
  13978. "success" : function(data) {
  13979. if(data != null && data != ""){
  13980. if ( data.status =="success"){
  13981. getfp();
  13982. alert("获取成功!");
  13983. }else {
  13984. alert(data.status);
  13985. }
  13986. }else {
  13987. alert("获取失败!");
  13988. }
  13989. },
  13990. "complete": function(){
  13991. layer.close(tip);
  13992. }
  13993. });
  13994. }else {
  13995. alert("请选择日期!");
  13996. }
  13997. },
  13998. "set" : function(){
  13999. if ( $("#fpid option:selected").text() !=""){
  14000. var tip = layer.load(2);
  14001. var gitem = $("#form1").serialize();
  14002. var jrjc;
  14003. if ($("#jrjc").prop('checked') == true){
  14004. jrjc = $("#departmentId").val();
  14005. }else {
  14006. jrjc ='N'
  14007. }
  14008. var url = "saverk.do";
  14009. $.ajax({
  14010. "url" : url,
  14011. "data" : {
  14012. "gitem" : gitem,
  14013. "jrjc" : jrjc
  14014. },
  14015. "type" : "POST",
  14016. "dataType" : "json",
  14017. "async" : true,
  14018. "success" : function(data) {
  14019. if(data.status =="success"){
  14020. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  14021. alert("入库成功!\n入库单号:"+data.rkdh+"");
  14022. }else {
  14023. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  14024. }
  14025. window.location.reload();
  14026. }else {
  14027. alert(data.status);
  14028. }
  14029. },
  14030. "error": function(){
  14031. alert("确认失败!");
  14032. },
  14033. "complete": function(){
  14034. layer.close(tip);
  14035. }
  14036. });
  14037. }else {
  14038. alert("请选择发票!");
  14039. }
  14040. }
  14041. }
  14042. function getfp(){
  14043. var tip = layer.load(2);
  14044. var url = "getgyfp.do";
  14045. $.ajax({
  14046. "url" : url,
  14047. "type" : "POST",
  14048. "dataType" : "json",
  14049. "async" : true,
  14050. "success" : function(data) {
  14051. if(data != null && data != ""){
  14052. $("#fpid").empty();
  14053. $("#fpid").append("_$tag_____________$tag____");
  14054. for(var i = 0; i < data.length; i++){
  14055. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  14056. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  14057. }
  14058. }
  14059. },
  14060. "error" : function(msg){
  14061. },
  14062. "complete": function(){
  14063. layer.close(tip);
  14064. }
  14065. });
  14066. }
  14067. $("#fpid").change(function(){
  14068. var tip = layer.load(2);
  14069. var url = "getgyrkxx.do";
  14070. var sum_total=0;
  14071. $.ajax({
  14072. "url" : url,
  14073. "data" : {
  14074. "fpId" : $("#fpid").val()
  14075. },
  14076. "type" : "POST",
  14077. "dataType" : "json",
  14078. "async" : true,
  14079. "success" : function(data) {
  14080. $("#dataTable").html("");
  14081. if(data != null && data != ""){
  14082. var html = "";
  14083. for(var i = 0; i < data.length; i++){
  14084. var ID = data[i].id == null ? "" : data[i].id;
  14085. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  14086. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  14087. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  14088. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  14089. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  14090. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  14091. var GOODS = data[i].goods == null ? "" : data[i].goods;
  14092. var NAME = data[i].name == null ? "" : data[i].name;
  14093. var SPEC = data[i].spec == null ? "" : data[i].spec;
  14094. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  14095. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  14096. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  14097. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  14098. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  14099. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  14100. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  14101. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  14102. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  14103. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  14104. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  14105. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  14106. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  14107. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  14108. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  14109. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  14110. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  14111. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  14112. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  14113. sum_total = sum_total + DSUMVALUE
  14114. var invoice_type_cn =null;
  14115. if (invoice_type =="00" ){
  14116. invoice_type_cn="销售发票";
  14117. }else if (invoice_type == "01") {
  14118. invoice_type_cn="更正(对冲)发票";
  14119. }else if (invoice_type == "02") {
  14120. invoice_type_cn="其它类型发票";
  14121. }
  14122. html += "_$ta";
  14123. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14124. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14125. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  14126. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14127. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14128. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  14129. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14130. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14131. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14132. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  14133. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  14134. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  14135. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14136. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14137. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14138. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14139. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  14140. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  14141. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  14142. html += "_$tag";
  14143. }
  14144. html += "_$ta";
  14145. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14146. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14147. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14148. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14149. html += "_$tag_____________$tag_合计:_$tag___$tag";
  14150. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  14151. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14152. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14153. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14154. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14155. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14156. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14157. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14158. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14159. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14160. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14161. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14162. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14163. html += "_$tag";
  14164. $("#dataTable").html(html);
  14165. }else {
  14166. $("#dataTable").html("");
  14167. }
  14168. },
  14169. "error" : function(msg){
  14170. },
  14171. "complete": function(){
  14172. layer.close(tip);
  14173. }
  14174. });
  14175. });
  14176. Date.prototype.Format = function (fmt) {
  14177. var o = {
  14178. "M+": this.getMonth() + 1, //月份
  14179. "d+": this.getDate(), //日
  14180. "h+": this.getHours(), //小时
  14181. "m+": this.getMinutes(), //分
  14182. "s+": this.getSeconds(), //秒
  14183. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  14184. "S": this.getMilliseconds() //毫秒
  14185. };
  14186. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  14187. for (var k in o)
  14188. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  14189. return fmt;
  14190. }
  14191. $("#jrjc").change(function() {
  14192. if ($("#jrjc").prop('checked') == true){
  14193. $("#departmentId").removeAttr("disabled");
  14194. }else {
  14195. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14196. }
  14197. });
  14198. ----------------------------------- SOURCE END -------------------------------------
  14199. !STACK 0
  14200. java.lang.NullPointerException
  14201. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-10-31 14:21:51.917
  14202. !MESSAGE Exception occurred during problem detection:
  14203. ----------------------------------- SOURCE BEGIN -------------------------------------
  14204. (function(){WdatePicker();})();
  14205. (function(){WdatePicker();})();
  14206. (function(){Data.get();})();
  14207. (function(){Data.set();})();
  14208. (function(){search();})();
  14209. $(function(){
  14210. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14211. getfp();
  14212. });
  14213. var Data = {
  14214. "get" : function(){
  14215. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  14216. var tip = layer.load(2);
  14217. var result="";
  14218. var url = "getgyxml.do";
  14219. $.ajax({
  14220. "url" : url,
  14221. "data" : {
  14222. "start_date" : $("#dateBegin").val(),
  14223. "end_date" : $("#dateEnd").val()
  14224. },
  14225. "type" : "POST",
  14226. "dataType" : "json",
  14227. "success" : function(data) {
  14228. if(data != null && data != ""){
  14229. if ( data.status =="success"){
  14230. getfp();
  14231. alert("获取成功!");
  14232. }else {
  14233. alert(data.status);
  14234. }
  14235. }else {
  14236. alert("获取失败!");
  14237. }
  14238. },
  14239. "complete": function(){
  14240. layer.close(tip);
  14241. }
  14242. });
  14243. }else {
  14244. alert("请选择日期!");
  14245. }
  14246. },
  14247. "set" : function(){
  14248. if ( $("#fpid option:selected").text() !=""){
  14249. var tip = layer.load(2);
  14250. var gitem = $("#form1").serialize();
  14251. var jrjc;
  14252. if ($("#jrjc").prop('checked') == true){
  14253. jrjc = $("#departmentId").val();
  14254. }else {
  14255. jrjc ='N'
  14256. }
  14257. var url = "saverk.do";
  14258. $.ajax({
  14259. "url" : url,
  14260. "data" : {
  14261. "gitem" : gitem,
  14262. "jrjc" : jrjc
  14263. },
  14264. "type" : "POST",
  14265. "dataType" : "json",
  14266. "async" : true,
  14267. "success" : function(data) {
  14268. if(data.status =="success"){
  14269. if (data.ckdh =="" || data.ckdh == null || typeof(data.ckdh) == "undefined"){
  14270. alert("入库成功!\n入库单号:"+data.rkdh+"");
  14271. }else {
  14272. alert("入库成功!\n入库单号:"+data.rkdh+"\n出库单号:"+data.ckdh+"");
  14273. }
  14274. window.location.reload();
  14275. }else {
  14276. alert(data.status);
  14277. }
  14278. },
  14279. "error": function(){
  14280. alert("确认失败!");
  14281. },
  14282. "complete": function(){
  14283. layer.close(tip);
  14284. }
  14285. });
  14286. }else {
  14287. alert("请选择发票!");
  14288. }
  14289. }
  14290. }
  14291. function getfp(){
  14292. var tip = layer.load(2);
  14293. var url = "getgyfp.do";
  14294. $.ajax({
  14295. "url" : url,
  14296. "type" : "POST",
  14297. "dataType" : "json",
  14298. "async" : true,
  14299. "success" : function(data) {
  14300. if(data != null && data != ""){
  14301. $("#fpid").empty();
  14302. $("#fpid").append("_$tag_____________$tag____");
  14303. for(var i = 0; i < data.length; i++){
  14304. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  14305. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  14306. }
  14307. }
  14308. },
  14309. "error" : function(msg){
  14310. },
  14311. "complete": function(){
  14312. layer.close(tip);
  14313. }
  14314. });
  14315. }
  14316. $("#fpid").change(function(){
  14317. var tip = layer.load(2);
  14318. var url = "getgyrkxx.do";
  14319. var sum_total=0;
  14320. $.ajax({
  14321. "url" : url,
  14322. "data" : {
  14323. "fpId" : $("#fpid").val()
  14324. },
  14325. "type" : "POST",
  14326. "dataType" : "json",
  14327. "async" : true,
  14328. "success" : function(data) {
  14329. $("#dataTable").html("");
  14330. if(data != null && data != ""){
  14331. var html = "";
  14332. for(var i = 0; i < data.length; i++){
  14333. var ID = data[i].id == null ? "" : data[i].id;
  14334. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  14335. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  14336. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  14337. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  14338. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  14339. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  14340. var GOODS = data[i].goods == null ? "" : data[i].goods;
  14341. var NAME = data[i].name == null ? "" : data[i].name;
  14342. var SPEC = data[i].spec == null ? "" : data[i].spec;
  14343. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  14344. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  14345. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  14346. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  14347. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  14348. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  14349. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  14350. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  14351. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  14352. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  14353. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  14354. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  14355. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  14356. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  14357. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  14358. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  14359. var ITEMID = data[i].itemId == null ? "" : data[i].itemId;
  14360. var HISPRICE = data[i].hisPrice == null ? "" : data[i].hisPrice;
  14361. var HISUNIT = data[i].hisUnit == null ? "" : data[i].hisUnit;
  14362. sum_total = sum_total + DSUMVALUE
  14363. var invoice_type_cn =null;
  14364. if (invoice_type =="00" ){
  14365. invoice_type_cn="销售发票";
  14366. }else if (invoice_type == "01") {
  14367. invoice_type_cn="更正(对冲)发票";
  14368. }else if (invoice_type == "02") {
  14369. invoice_type_cn="其它类型发票";
  14370. }
  14371. html += "_$ta";
  14372. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14373. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14374. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  14375. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14376. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  14377. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  14378. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14379. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14380. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14381. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  14382. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  14383. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  14384. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14385. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14386. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14387. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14388. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  14389. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  14390. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  14391. html += "_$tag";
  14392. }
  14393. html += "_$ta";
  14394. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14395. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14396. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14397. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14398. html += "_$tag_____________$tag_合计:_$tag___$tag";
  14399. html += "_$tag_____________$tag_"+sum_total+"_$tag___$tag";
  14400. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14401. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14402. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14403. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14404. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14405. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14406. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14407. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14408. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14409. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14410. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14411. html += "_$tag_____________$tag____________________________________________________________________$tag";
  14412. html += "_$tag";
  14413. $("#dataTable").html(html);
  14414. }else {
  14415. $("#dataTable").html("");
  14416. }
  14417. },
  14418. "error" : function(msg){
  14419. },
  14420. "complete": function(){
  14421. layer.close(tip);
  14422. }
  14423. });
  14424. });
  14425. Date.prototype.Format = function (fmt) {
  14426. var o = {
  14427. "M+": this.getMonth() + 1, //月份
  14428. "d+": this.getDate(), //日
  14429. "h+": this.getHours(), //小时
  14430. "m+": this.getMinutes(), //分
  14431. "s+": this.getSeconds(), //秒
  14432. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  14433. "S": this.getMilliseconds() //毫秒
  14434. };
  14435. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  14436. for (var k in o)
  14437. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  14438. return fmt;
  14439. }
  14440. $("#jrjc").change(function() {
  14441. if ($("#jrjc").prop('checked') == true){
  14442. $("#departmentId").removeAttr("disabled");
  14443. }else {
  14444. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14445. }
  14446. });
  14447. ----------------------------------- SOURCE END -------------------------------------
  14448. !STACK 0
  14449. java.lang.NullPointerException