.bak_4.log 982 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675
  1. !SESSION 2018-06-21 08:47:35.535 -----------------------------------------------
  2. eclipse.buildId=4.4.2.M20150204-1700
  3. java.version=1.7.0_80
  4. java.vendor=Oracle Corporation
  5. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
  6. Framework arguments: -product org.eclipse.epp.package.jee.product
  7. Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product
  8. This is a continuation of log file F:\zhcx\.metadata\.bak_3.log
  9. Created Time: 2018-06-21 09:18:12.041
  10. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:18:12.042
  11. !MESSAGE java.lang.NullPointerException
  12. !STACK 1
  13. JavaScript Model Exception: java.lang.NullPointerException
  14. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  15. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  16. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  17. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  18. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  19. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  20. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  21. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  22. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  23. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  24. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  25. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  26. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  27. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  28. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  29. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  30. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  31. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  32. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  33. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  34. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  35. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  36. Caused by: java.lang.NullPointerException
  37. Caused by: java.lang.NullPointerException
  38. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:12.042
  39. !MESSAGE java.lang.NullPointerException
  40. !STACK 0
  41. java.lang.NullPointerException
  42. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:41.678
  43. !MESSAGE Exception occurred during problem detection:
  44. ----------------------------------- SOURCE BEGIN -------------------------------------
  45. (function(){WdatePicker();})();
  46. (function(){WdatePicker();})();
  47. (function(){Data.get();})();
  48. (function(){Data.set();})();
  49. (function(){search();})();
  50. $(function(){
  51. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  52. getfp();
  53. });
  54. var Data = {
  55. "get" : function(){
  56. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  57. var tip = layer.load(2);
  58. var result="";
  59. var url = "getgyxml.do";
  60. $.ajax({
  61. "url" : url,
  62. "data" : {
  63. "start_date" : $("#dateBegin").val(),
  64. "end_date" : $("#dateEnd").val()
  65. },
  66. "type" : "POST",
  67. "dataType" : "json",
  68. "success" : function(data) {
  69. if(data != null && data != ""){
  70. if ( data.status =="success"){
  71. getfp();
  72. alert("获取成功!");
  73. }else {
  74. alert(data.status);
  75. }
  76. }else {
  77. alert("获取失败!");
  78. }
  79. },
  80. "complete": function(){
  81. layer.close(tip);
  82. }
  83. });
  84. }else {
  85. alert("请选择日期!");
  86. }
  87. },
  88. "set" : function(){
  89. if ( $("#fpid option:selected").text() !=""){
  90. var tip = layer.load(2);
  91. var gitem = $("#form1").serialize();
  92. var jrjc;
  93. if ($("#jrjc").prop('checked') == true){
  94. jrjc = $("#departmentId").val();
  95. }else {
  96. jrjc ='N'
  97. }
  98. var url = "saverk.do";
  99. $.ajax({
  100. "url" : url,
  101. "data" : {
  102. "gitem" : gitem,
  103. "jrjc" : jrjc
  104. },
  105. "type" : "POST",
  106. "dataType" : "json",
  107. "async" : true,
  108. "success" : function(data) {
  109. if(data.status ="success"){
  110. alert("入库成功!");
  111. window.location.reload();
  112. }else {
  113. alert(msg);
  114. }
  115. },
  116. "error": function(){
  117. alert("确认失败!");
  118. },
  119. "complete": function(){
  120. layer.close(tip);
  121. }
  122. });
  123. }else {
  124. alert("请选择发票!");
  125. }
  126. }
  127. }
  128. function getfp(){
  129. var tip = layer.load(2);
  130. var url = "getgyfp.do";
  131. $.ajax({
  132. "url" : url,
  133. "type" : "POST",
  134. "dataType" : "json",
  135. "async" : true,
  136. "success" : function(data) {
  137. if(data != null && data != ""){
  138. $("#fpid").empty();
  139. $("#fpid").append("_$tag_____________$tag____");
  140. for(var i = 0; i < data.length; i++){
  141. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  142. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  143. }
  144. }
  145. },
  146. "error" : function(msg){
  147. },
  148. "complete": function(){
  149. layer.close(tip);
  150. }
  151. });
  152. }
  153. $("#fpid").change(function(){
  154. var tip = layer.load(2);
  155. var url = "getgyrkxx.do";
  156. $.ajax({
  157. "url" : url,
  158. "data" : {
  159. "fpId" : $("#fpid").val()
  160. },
  161. "type" : "POST",
  162. "dataType" : "json",
  163. "async" : true,
  164. "success" : function(data) {
  165. $("#dataTable").html("");
  166. if(data != null && data != ""){
  167. var html = "";
  168. for(var i = 0; i < data.length; i++){
  169. var ID = data[i].id == null ? "" : data[i].id;
  170. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  171. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  172. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  173. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  174. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  175. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  176. var GOODS = data[i].goods == null ? "" : data[i].goods;
  177. var NAME = data[i].name == null ? "" : data[i].name;
  178. var SPEC = data[i].spec == null ? "" : data[i].spec;
  179. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  180. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  181. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  182. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  183. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  184. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  185. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  186. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  187. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  188. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  189. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  190. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  191. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  192. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  193. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  194. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  195. var invoice_type_cn =null;
  196. if (invoice_type =="00" ){
  197. invoice_type_cn="销售发票";
  198. }else if (invoice_type == "01") {
  199. invoice_type_cn="更正(对冲)发票";
  200. }else if (invoice_type == "02") {
  201. invoice_type_cn="其它类型发票";
  202. }
  203. html += "_$ta";
  204. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  205. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  206. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  207. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  208. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  209. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  210. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  211. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  212. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  213. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  214. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  215. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  216. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  217. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  218. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  219. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  220. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  221. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  222. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  223. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  224. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  225. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  226. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  227. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  228. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  229. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  230. html += "_$tag";
  231. }
  232. $("#dataTable").html(html);
  233. }else {
  234. $("#dataTable").html("");
  235. }
  236. },
  237. "error" : function(msg){
  238. },
  239. "complete": function(){
  240. layer.close(tip);
  241. }
  242. });
  243. });
  244. Date.prototype.Format = function (fmt) {
  245. var o = {
  246. "M+": this.getMonth() + 1, //月份
  247. "d+": this.getDate(), //日
  248. "h+": this.getHours(), //小时
  249. "m+": this.getMinutes(), //分
  250. "s+": this.getSeconds(), //秒
  251. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  252. "S": this.getMilliseconds() //毫秒
  253. };
  254. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  255. for (var k in o)
  256. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  257. return fmt;
  258. }
  259. $("#jrjc").change(function() {
  260. if ($("#jrjc").prop('checked') == true){
  261. $("#departmentId").removeAttr("disabled");
  262. }else {
  263. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  264. }
  265. });
  266. ----------------------------------- SOURCE END -------------------------------------
  267. !STACK 0
  268. java.lang.NullPointerException
  269. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:41.678
  270. !MESSAGE Error while processing working copy
  271. !STACK 1
  272. JavaScript Model Exception: java.lang.NullPointerException
  273. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  274. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  275. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  276. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  277. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  278. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  279. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  280. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  281. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  282. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  283. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  284. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  285. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  286. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  287. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  288. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  289. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  290. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  291. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  292. Caused by: java.lang.NullPointerException
  293. Caused by: java.lang.NullPointerException
  294. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:41.678
  295. !MESSAGE java.lang.NullPointerException
  296. !STACK 0
  297. java.lang.NullPointerException
  298. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:42.791
  299. !MESSAGE Exception occurred during problem detection:
  300. ----------------------------------- SOURCE BEGIN -------------------------------------
  301. (function(){WdatePicker();})();
  302. (function(){WdatePicker();})();
  303. (function(){Data.get();})();
  304. (function(){Data.set();})();
  305. (function(){search();})();
  306. $(function(){
  307. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  308. getfp();
  309. });
  310. var Data = {
  311. "get" : function(){
  312. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  313. var tip = layer.load(2);
  314. var result="";
  315. var url = "getgyxml.do";
  316. $.ajax({
  317. "url" : url,
  318. "data" : {
  319. "start_date" : $("#dateBegin").val(),
  320. "end_date" : $("#dateEnd").val()
  321. },
  322. "type" : "POST",
  323. "dataType" : "json",
  324. "success" : function(data) {
  325. if(data != null && data != ""){
  326. if ( data.status =="success"){
  327. getfp();
  328. alert("获取成功!");
  329. }else {
  330. alert(data.status);
  331. }
  332. }else {
  333. alert("获取失败!");
  334. }
  335. },
  336. "complete": function(){
  337. layer.close(tip);
  338. }
  339. });
  340. }else {
  341. alert("请选择日期!");
  342. }
  343. },
  344. "set" : function(){
  345. if ( $("#fpid option:selected").text() !=""){
  346. var tip = layer.load(2);
  347. var gitem = $("#form1").serialize();
  348. var jrjc;
  349. if ($("#jrjc").prop('checked') == true){
  350. jrjc = $("#departmentId").val();
  351. }else {
  352. jrjc ='N'
  353. }
  354. var url = "saverk.do";
  355. $.ajax({
  356. "url" : url,
  357. "data" : {
  358. "gitem" : gitem,
  359. "jrjc" : jrjc
  360. },
  361. "type" : "POST",
  362. "dataType" : "json",
  363. "async" : true,
  364. "success" : function(data) {
  365. if(data.status ="success"){
  366. alert("入库成功!");
  367. window.location.reload();
  368. }else {
  369. alert(msg);
  370. }
  371. },
  372. "error": function(){
  373. alert("确认失败!");
  374. },
  375. "complete": function(){
  376. layer.close(tip);
  377. }
  378. });
  379. }else {
  380. alert("请选择发票!");
  381. }
  382. }
  383. }
  384. function getfp(){
  385. var tip = layer.load(2);
  386. var url = "getgyfp.do";
  387. $.ajax({
  388. "url" : url,
  389. "type" : "POST",
  390. "dataType" : "json",
  391. "async" : true,
  392. "success" : function(data) {
  393. if(data != null && data != ""){
  394. $("#fpid").empty();
  395. $("#fpid").append("_$tag_____________$tag____");
  396. for(var i = 0; i < data.length; i++){
  397. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  398. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  399. }
  400. }
  401. },
  402. "error" : function(msg){
  403. },
  404. "complete": function(){
  405. layer.close(tip);
  406. }
  407. });
  408. }
  409. $("#fpid").change(function(){
  410. var tip = layer.load(2);
  411. var url = "getgyrkxx.do";
  412. $.ajax({
  413. "url" : url,
  414. "data" : {
  415. "fpId" : $("#fpid").val()
  416. },
  417. "type" : "POST",
  418. "dataType" : "json",
  419. "async" : true,
  420. "success" : function(data) {
  421. $("#dataTable").html("");
  422. if(data != null && data != ""){
  423. var html = "";
  424. for(var i = 0; i < data.length; i++){
  425. var ID = data[i].id == null ? "" : data[i].id;
  426. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  427. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  428. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  429. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  430. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  431. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  432. var GOODS = data[i].goods == null ? "" : data[i].goods;
  433. var NAME = data[i].name == null ? "" : data[i].name;
  434. var SPEC = data[i].spec == null ? "" : data[i].spec;
  435. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  436. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  437. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  438. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  439. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  440. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  441. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  442. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  443. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  444. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  445. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  446. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  447. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  448. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  449. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  450. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  451. var invoice_type_cn =null;
  452. if (invoice_type =="00" ){
  453. invoice_type_cn="销售发票";
  454. }else if (invoice_type == "01") {
  455. invoice_type_cn="更正(对冲)发票";
  456. }else if (invoice_type == "02") {
  457. invoice_type_cn="其它类型发票";
  458. }
  459. html += "_$ta";
  460. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  461. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  462. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  463. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  464. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  465. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  466. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  467. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  468. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  469. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  470. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  471. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  472. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  473. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  474. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  475. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  476. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  477. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  478. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  479. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  480. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  481. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  482. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  483. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  484. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  485. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  486. html += "_$tag";
  487. }
  488. $("#dataTable").html(html);
  489. }else {
  490. $("#dataTable").html("");
  491. }
  492. },
  493. "error" : function(msg){
  494. },
  495. "complete": function(){
  496. layer.close(tip);
  497. }
  498. });
  499. });
  500. Date.prototype.Format = function (fmt) {
  501. var o = {
  502. "M+": this.getMonth() + 1, //月份
  503. "d+": this.getDate(), //日
  504. "h+": this.getHours(), //小时
  505. "m+": this.getMinutes(), //分
  506. "s+": this.getSeconds(), //秒
  507. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  508. "S": this.getMilliseconds() //毫秒
  509. };
  510. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  511. for (var k in o)
  512. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  513. return fmt;
  514. }
  515. $("#jrjc").change(function() {
  516. if ($("#jrjc").prop('checked') == true){
  517. $("#departmentId").removeAttr("disabled");
  518. }else {
  519. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  520. }
  521. });
  522. ----------------------------------- SOURCE END -------------------------------------
  523. !STACK 0
  524. java.lang.NullPointerException
  525. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:43.277
  526. !MESSAGE Exception occurred during problem detection:
  527. ----------------------------------- SOURCE BEGIN -------------------------------------
  528. (function(){WdatePicker();})();
  529. (function(){WdatePicker();})();
  530. (function(){Data.get();})();
  531. (function(){Data.set();})();
  532. (function(){search();})();
  533. $(function(){
  534. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  535. getfp();
  536. });
  537. var Data = {
  538. "get" : function(){
  539. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  540. var tip = layer.load(2);
  541. var result="";
  542. var url = "getgyxml.do";
  543. $.ajax({
  544. "url" : url,
  545. "data" : {
  546. "start_date" : $("#dateBegin").val(),
  547. "end_date" : $("#dateEnd").val()
  548. },
  549. "type" : "POST",
  550. "dataType" : "json",
  551. "success" : function(data) {
  552. if(data != null && data != ""){
  553. if ( data.status =="success"){
  554. getfp();
  555. alert("获取成功!");
  556. }else {
  557. alert(data.status);
  558. }
  559. }else {
  560. alert("获取失败!");
  561. }
  562. },
  563. "complete": function(){
  564. layer.close(tip);
  565. }
  566. });
  567. }else {
  568. alert("请选择日期!");
  569. }
  570. },
  571. "set" : function(){
  572. if ( $("#fpid option:selected").text() !=""){
  573. var tip = layer.load(2);
  574. var gitem = $("#form1").serialize();
  575. var jrjc;
  576. if ($("#jrjc").prop('checked') == true){
  577. jrjc = $("#departmentId").val();
  578. }else {
  579. jrjc ='N'
  580. }
  581. var url = "saverk.do";
  582. $.ajax({
  583. "url" : url,
  584. "data" : {
  585. "gitem" : gitem,
  586. "jrjc" : jrjc
  587. },
  588. "type" : "POST",
  589. "dataType" : "json",
  590. "async" : true,
  591. "success" : function(data) {
  592. if(data.status ="success"){
  593. alert("入库成功!");
  594. window.location.reload();
  595. }else {
  596. alert(msg);
  597. }
  598. },
  599. "error": function(){
  600. alert("确认失败!");
  601. },
  602. "complete": function(){
  603. layer.close(tip);
  604. }
  605. });
  606. }else {
  607. alert("请选择发票!");
  608. }
  609. }
  610. }
  611. function getfp(){
  612. var tip = layer.load(2);
  613. var url = "getgyfp.do";
  614. $.ajax({
  615. "url" : url,
  616. "type" : "POST",
  617. "dataType" : "json",
  618. "async" : true,
  619. "success" : function(data) {
  620. if(data != null && data != ""){
  621. $("#fpid").empty();
  622. $("#fpid").append("_$tag_____________$tag____");
  623. for(var i = 0; i < data.length; i++){
  624. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  625. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  626. }
  627. }
  628. },
  629. "error" : function(msg){
  630. },
  631. "complete": function(){
  632. layer.close(tip);
  633. }
  634. });
  635. }
  636. $("#fpid").change(function(){
  637. var tip = layer.load(2);
  638. var url = "getgyrkxx.do";
  639. $.ajax({
  640. "url" : url,
  641. "data" : {
  642. "fpId" : $("#fpid").val()
  643. },
  644. "type" : "POST",
  645. "dataType" : "json",
  646. "async" : true,
  647. "success" : function(data) {
  648. $("#dataTable").html("");
  649. if(data != null && data != ""){
  650. var html = "";
  651. for(var i = 0; i < data.length; i++){
  652. var ID = data[i].id == null ? "" : data[i].id;
  653. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  654. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  655. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  656. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  657. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  658. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  659. var GOODS = data[i].goods == null ? "" : data[i].goods;
  660. var NAME = data[i].name == null ? "" : data[i].name;
  661. var SPEC = data[i].spec == null ? "" : data[i].spec;
  662. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  663. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  664. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  665. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  666. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  667. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  668. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  669. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  670. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  671. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  672. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  673. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  674. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  675. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  676. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  677. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  678. var invoice_type_cn =null;
  679. if (invoice_type =="00" ){
  680. invoice_type_cn="销售发票";
  681. }else if (invoice_type == "01") {
  682. invoice_type_cn="更正(对冲)发票";
  683. }else if (invoice_type == "02") {
  684. invoice_type_cn="其它类型发票";
  685. }
  686. html += "_$ta";
  687. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  688. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  689. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  690. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  691. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  692. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  693. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  694. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  695. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  696. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  697. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  698. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  699. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  700. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  701. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  702. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  703. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  704. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  705. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  706. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  707. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  708. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  709. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  710. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  711. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  712. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  713. html += "_$tag";
  714. }
  715. $("#dataTable").html(html);
  716. }else {
  717. $("#dataTable").html("");
  718. }
  719. },
  720. "error" : function(msg){
  721. },
  722. "complete": function(){
  723. layer.close(tip);
  724. }
  725. });
  726. });
  727. Date.prototype.Format = function (fmt) {
  728. var o = {
  729. "M+": this.getMonth() + 1, //月份
  730. "d+": this.getDate(), //日
  731. "h+": this.getHours(), //小时
  732. "m+": this.getMinutes(), //分
  733. "s+": this.getSeconds(), //秒
  734. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  735. "S": this.getMilliseconds() //毫秒
  736. };
  737. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  738. for (var k in o)
  739. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  740. return fmt;
  741. }
  742. $("#jrjc").change(function() {
  743. if ($("#jrjc").prop('checked') == true){
  744. $("#departmentId").removeAttr("disabled");
  745. }else {
  746. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  747. }
  748. });
  749. ----------------------------------- SOURCE END -------------------------------------
  750. !STACK 0
  751. java.lang.NullPointerException
  752. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:43.277
  753. !MESSAGE Error while processing working copy
  754. !STACK 1
  755. JavaScript Model Exception: java.lang.NullPointerException
  756. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  757. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  758. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  759. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  760. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  761. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  762. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  763. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  764. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  765. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  766. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  767. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  768. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  769. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  770. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  771. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  772. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  773. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  774. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  775. Caused by: java.lang.NullPointerException
  776. Caused by: java.lang.NullPointerException
  777. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:43.277
  778. !MESSAGE java.lang.NullPointerException
  779. !STACK 0
  780. java.lang.NullPointerException
  781. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:44.406
  782. !MESSAGE Exception occurred during problem detection:
  783. ----------------------------------- SOURCE BEGIN -------------------------------------
  784. (function(){WdatePicker();})();
  785. (function(){WdatePicker();})();
  786. (function(){Data.get();})();
  787. (function(){Data.set();})();
  788. (function(){search();})();
  789. $(function(){
  790. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  791. getfp();
  792. });
  793. var Data = {
  794. "get" : function(){
  795. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  796. var tip = layer.load(2);
  797. var result="";
  798. var url = "getgyxml.do";
  799. $.ajax({
  800. "url" : url,
  801. "data" : {
  802. "start_date" : $("#dateBegin").val(),
  803. "end_date" : $("#dateEnd").val()
  804. },
  805. "type" : "POST",
  806. "dataType" : "json",
  807. "success" : function(data) {
  808. if(data != null && data != ""){
  809. if ( data.status =="success"){
  810. getfp();
  811. alert("获取成功!");
  812. }else {
  813. alert(data.status);
  814. }
  815. }else {
  816. alert("获取失败!");
  817. }
  818. },
  819. "complete": function(){
  820. layer.close(tip);
  821. }
  822. });
  823. }else {
  824. alert("请选择日期!");
  825. }
  826. },
  827. "set" : function(){
  828. if ( $("#fpid option:selected").text() !=""){
  829. var tip = layer.load(2);
  830. var gitem = $("#form1").serialize();
  831. var jrjc;
  832. if ($("#jrjc").prop('checked') == true){
  833. jrjc = $("#departmentId").val();
  834. }else {
  835. jrjc ='N'
  836. }
  837. var url = "saverk.do";
  838. $.ajax({
  839. "url" : url,
  840. "data" : {
  841. "gitem" : gitem,
  842. "jrjc" : jrjc
  843. },
  844. "type" : "POST",
  845. "dataType" : "json",
  846. "async" : true,
  847. "success" : function(data) {
  848. if(data.status ="success"){
  849. alert("入库成功!");
  850. window.location.reload();
  851. }else {
  852. alert(msg);
  853. }
  854. },
  855. "error": function(){
  856. alert("确认失败!");
  857. },
  858. "complete": function(){
  859. layer.close(tip);
  860. }
  861. });
  862. }else {
  863. alert("请选择发票!");
  864. }
  865. }
  866. }
  867. function getfp(){
  868. var tip = layer.load(2);
  869. var url = "getgyfp.do";
  870. $.ajax({
  871. "url" : url,
  872. "type" : "POST",
  873. "dataType" : "json",
  874. "async" : true,
  875. "success" : function(data) {
  876. if(data != null && data != ""){
  877. $("#fpid").empty();
  878. $("#fpid").append("_$tag_____________$tag____");
  879. for(var i = 0; i < data.length; i++){
  880. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  881. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  882. }
  883. }
  884. },
  885. "error" : function(msg){
  886. },
  887. "complete": function(){
  888. layer.close(tip);
  889. }
  890. });
  891. }
  892. $("#fpid").change(function(){
  893. var tip = layer.load(2);
  894. var url = "getgyrkxx.do";
  895. $.ajax({
  896. "url" : url,
  897. "data" : {
  898. "fpId" : $("#fpid").val()
  899. },
  900. "type" : "POST",
  901. "dataType" : "json",
  902. "async" : true,
  903. "success" : function(data) {
  904. $("#dataTable").html("");
  905. if(data != null && data != ""){
  906. var html = "";
  907. for(var i = 0; i < data.length; i++){
  908. var ID = data[i].id == null ? "" : data[i].id;
  909. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  910. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  911. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  912. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  913. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  914. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  915. var GOODS = data[i].goods == null ? "" : data[i].goods;
  916. var NAME = data[i].name == null ? "" : data[i].name;
  917. var SPEC = data[i].spec == null ? "" : data[i].spec;
  918. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  919. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  920. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  921. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  922. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  923. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  924. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  925. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  926. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  927. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  928. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  929. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  930. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  931. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  932. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  933. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  934. var invoice_type_cn =null;
  935. if (invoice_type =="00" ){
  936. invoice_type_cn="销售发票";
  937. }else if (invoice_type == "01") {
  938. invoice_type_cn="更正(对冲)发票";
  939. }else if (invoice_type == "02") {
  940. invoice_type_cn="其它类型发票";
  941. }
  942. html += "_$ta";
  943. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  944. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  945. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  946. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  947. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  948. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  949. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  950. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  951. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  952. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  953. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  954. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  955. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  956. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  957. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  958. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  959. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  960. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  961. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  962. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  963. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  964. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  965. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  966. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  967. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  968. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  969. html += "_$tag";
  970. }
  971. $("#dataTable").html(html);
  972. }else {
  973. $("#dataTable").html("");
  974. }
  975. },
  976. "error" : function(msg){
  977. },
  978. "complete": function(){
  979. layer.close(tip);
  980. }
  981. });
  982. });
  983. Date.prototype.Format = function (fmt) {
  984. var o = {
  985. "M+": this.getMonth() + 1, //月份
  986. "d+": this.getDate(), //日
  987. "h+": this.getHours(), //小时
  988. "m+": this.getMinutes(), //分
  989. "s+": this.getSeconds(), //秒
  990. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  991. "S": this.getMilliseconds() //毫秒
  992. };
  993. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  994. for (var k in o)
  995. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  996. return fmt;
  997. }
  998. $("#jrjc").change(function() {
  999. if ($("#jrjc").prop('checked') == true){
  1000. $("#departmentId").removeAttr("disabled");
  1001. }else {
  1002. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1003. }
  1004. });
  1005. ----------------------------------- SOURCE END -------------------------------------
  1006. !STACK 0
  1007. java.lang.NullPointerException
  1008. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:44.803
  1009. !MESSAGE Exception occurred during problem detection:
  1010. ----------------------------------- SOURCE BEGIN -------------------------------------
  1011. (function(){WdatePicker();})();
  1012. (function(){WdatePicker();})();
  1013. (function(){Data.get();})();
  1014. (function(){Data.set();})();
  1015. (function(){search();})();
  1016. $(function(){
  1017. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1018. getfp();
  1019. });
  1020. var Data = {
  1021. "get" : function(){
  1022. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1023. var tip = layer.load(2);
  1024. var result="";
  1025. var url = "getgyxml.do";
  1026. $.ajax({
  1027. "url" : url,
  1028. "data" : {
  1029. "start_date" : $("#dateBegin").val(),
  1030. "end_date" : $("#dateEnd").val()
  1031. },
  1032. "type" : "POST",
  1033. "dataType" : "json",
  1034. "success" : function(data) {
  1035. if(data != null && data != ""){
  1036. if ( data.status =="success"){
  1037. getfp();
  1038. alert("获取成功!");
  1039. }else {
  1040. alert(data.status);
  1041. }
  1042. }else {
  1043. alert("获取失败!");
  1044. }
  1045. },
  1046. "complete": function(){
  1047. layer.close(tip);
  1048. }
  1049. });
  1050. }else {
  1051. alert("请选择日期!");
  1052. }
  1053. },
  1054. "set" : function(){
  1055. if ( $("#fpid option:selected").text() !=""){
  1056. var tip = layer.load(2);
  1057. var gitem = $("#form1").serialize();
  1058. var jrjc;
  1059. if ($("#jrjc").prop('checked') == true){
  1060. jrjc = $("#departmentId").val();
  1061. }else {
  1062. jrjc ='N'
  1063. }
  1064. var url = "saverk.do";
  1065. $.ajax({
  1066. "url" : url,
  1067. "data" : {
  1068. "gitem" : gitem,
  1069. "jrjc" : jrjc
  1070. },
  1071. "type" : "POST",
  1072. "dataType" : "json",
  1073. "async" : true,
  1074. "success" : function(data) {
  1075. if(data.status ="success"){
  1076. alert("入库成功!");
  1077. window.location.reload();
  1078. }else {
  1079. alert(msg);
  1080. }
  1081. },
  1082. "error": function(){
  1083. alert("确认失败!");
  1084. },
  1085. "complete": function(){
  1086. layer.close(tip);
  1087. }
  1088. });
  1089. }else {
  1090. alert("请选择发票!");
  1091. }
  1092. }
  1093. }
  1094. function getfp(){
  1095. var tip = layer.load(2);
  1096. var url = "getgyfp.do";
  1097. $.ajax({
  1098. "url" : url,
  1099. "type" : "POST",
  1100. "dataType" : "json",
  1101. "async" : true,
  1102. "success" : function(data) {
  1103. if(data != null && data != ""){
  1104. $("#fpid").empty();
  1105. $("#fpid").append("_$tag_____________$tag____");
  1106. for(var i = 0; i < data.length; i++){
  1107. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1108. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1109. }
  1110. }
  1111. },
  1112. "error" : function(msg){
  1113. },
  1114. "complete": function(){
  1115. layer.close(tip);
  1116. }
  1117. });
  1118. }
  1119. $("#fpid").change(function(){
  1120. var tip = layer.load(2);
  1121. var url = "getgyrkxx.do";
  1122. $.ajax({
  1123. "url" : url,
  1124. "data" : {
  1125. "fpId" : $("#fpid").val()
  1126. },
  1127. "type" : "POST",
  1128. "dataType" : "json",
  1129. "async" : true,
  1130. "success" : function(data) {
  1131. $("#dataTable").html("");
  1132. if(data != null && data != ""){
  1133. var html = "";
  1134. for(var i = 0; i < data.length; i++){
  1135. var ID = data[i].id == null ? "" : data[i].id;
  1136. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1137. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1138. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1139. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1140. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1141. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1142. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1143. var NAME = data[i].name == null ? "" : data[i].name;
  1144. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1145. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1146. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1147. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1148. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1149. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1150. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1151. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1152. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1153. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1154. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1155. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1156. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1157. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1158. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1159. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1160. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1161. var invoice_type_cn =null;
  1162. if (invoice_type =="00" ){
  1163. invoice_type_cn="销售发票";
  1164. }else if (invoice_type == "01") {
  1165. invoice_type_cn="更正(对冲)发票";
  1166. }else if (invoice_type == "02") {
  1167. invoice_type_cn="其它类型发票";
  1168. }
  1169. html += "_$ta";
  1170. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1171. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1172. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1173. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1174. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1175. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1176. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1177. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1178. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1179. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1180. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1181. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1182. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1183. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1184. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1185. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1186. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1187. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1188. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  1189. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  1190. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1191. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1192. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1193. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  1194. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  1195. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  1196. html += "_$tag";
  1197. }
  1198. $("#dataTable").html(html);
  1199. }else {
  1200. $("#dataTable").html("");
  1201. }
  1202. },
  1203. "error" : function(msg){
  1204. },
  1205. "complete": function(){
  1206. layer.close(tip);
  1207. }
  1208. });
  1209. });
  1210. Date.prototype.Format = function (fmt) {
  1211. var o = {
  1212. "M+": this.getMonth() + 1, //月份
  1213. "d+": this.getDate(), //日
  1214. "h+": this.getHours(), //小时
  1215. "m+": this.getMinutes(), //分
  1216. "s+": this.getSeconds(), //秒
  1217. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1218. "S": this.getMilliseconds() //毫秒
  1219. };
  1220. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1221. for (var k in o)
  1222. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1223. return fmt;
  1224. }
  1225. $("#jrjc").change(function() {
  1226. if ($("#jrjc").prop('checked') == true){
  1227. $("#departmentId").removeAttr("disabled");
  1228. }else {
  1229. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1230. }
  1231. });
  1232. ----------------------------------- SOURCE END -------------------------------------
  1233. !STACK 0
  1234. java.lang.NullPointerException
  1235. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:44.803
  1236. !MESSAGE Error while processing working copy
  1237. !STACK 1
  1238. JavaScript Model Exception: java.lang.NullPointerException
  1239. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1240. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1241. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1242. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1243. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1244. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1245. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1246. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1247. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1248. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1249. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1250. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1251. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1252. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1253. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1254. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1255. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  1256. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  1257. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  1258. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  1259. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  1260. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  1261. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  1262. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  1263. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  1264. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  1265. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  1266. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  1267. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  1268. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  1269. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  1270. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  1271. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  1272. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  1273. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  1274. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  1275. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  1276. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  1277. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  1278. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  1279. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  1280. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1281. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  1282. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  1283. at java.lang.reflect.Method.invoke(Unknown Source)
  1284. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  1285. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  1286. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  1287. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  1288. Caused by: java.lang.NullPointerException
  1289. Caused by: java.lang.NullPointerException
  1290. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:44.804
  1291. !MESSAGE java.lang.NullPointerException
  1292. !STACK 0
  1293. java.lang.NullPointerException
  1294. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:45.851
  1295. !MESSAGE Exception occurred during problem detection:
  1296. ----------------------------------- SOURCE BEGIN -------------------------------------
  1297. (function(){WdatePicker();})();
  1298. (function(){WdatePicker();})();
  1299. (function(){Data.get();})();
  1300. (function(){Data.set();})();
  1301. (function(){search();})();
  1302. $(function(){
  1303. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1304. getfp();
  1305. });
  1306. var Data = {
  1307. "get" : function(){
  1308. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1309. var tip = layer.load(2);
  1310. var result="";
  1311. var url = "getgyxml.do";
  1312. $.ajax({
  1313. "url" : url,
  1314. "data" : {
  1315. "start_date" : $("#dateBegin").val(),
  1316. "end_date" : $("#dateEnd").val()
  1317. },
  1318. "type" : "POST",
  1319. "dataType" : "json",
  1320. "success" : function(data) {
  1321. if(data != null && data != ""){
  1322. if ( data.status =="success"){
  1323. getfp();
  1324. alert("获取成功!");
  1325. }else {
  1326. alert(data.status);
  1327. }
  1328. }else {
  1329. alert("获取失败!");
  1330. }
  1331. },
  1332. "complete": function(){
  1333. layer.close(tip);
  1334. }
  1335. });
  1336. }else {
  1337. alert("请选择日期!");
  1338. }
  1339. },
  1340. "set" : function(){
  1341. if ( $("#fpid option:selected").text() !=""){
  1342. var tip = layer.load(2);
  1343. var gitem = $("#form1").serialize();
  1344. var jrjc;
  1345. if ($("#jrjc").prop('checked') == true){
  1346. jrjc = $("#departmentId").val();
  1347. }else {
  1348. jrjc ='N'
  1349. }
  1350. var url = "saverk.do";
  1351. $.ajax({
  1352. "url" : url,
  1353. "data" : {
  1354. "gitem" : gitem,
  1355. "jrjc" : jrjc
  1356. },
  1357. "type" : "POST",
  1358. "dataType" : "json",
  1359. "async" : true,
  1360. "success" : function(data) {
  1361. if(data.status ="success"){
  1362. alert("入库成功!");
  1363. window.location.reload();
  1364. }else {
  1365. alert(msg);
  1366. }
  1367. },
  1368. "error": function(){
  1369. alert("确认失败!");
  1370. },
  1371. "complete": function(){
  1372. layer.close(tip);
  1373. }
  1374. });
  1375. }else {
  1376. alert("请选择发票!");
  1377. }
  1378. }
  1379. }
  1380. function getfp(){
  1381. var tip = layer.load(2);
  1382. var url = "getgyfp.do";
  1383. $.ajax({
  1384. "url" : url,
  1385. "type" : "POST",
  1386. "dataType" : "json",
  1387. "async" : true,
  1388. "success" : function(data) {
  1389. if(data != null && data != ""){
  1390. $("#fpid").empty();
  1391. $("#fpid").append("_$tag_____________$tag____");
  1392. for(var i = 0; i < data.length; i++){
  1393. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1394. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1395. }
  1396. }
  1397. },
  1398. "error" : function(msg){
  1399. },
  1400. "complete": function(){
  1401. layer.close(tip);
  1402. }
  1403. });
  1404. }
  1405. $("#fpid").change(function(){
  1406. var tip = layer.load(2);
  1407. var url = "getgyrkxx.do";
  1408. $.ajax({
  1409. "url" : url,
  1410. "data" : {
  1411. "fpId" : $("#fpid").val()
  1412. },
  1413. "type" : "POST",
  1414. "dataType" : "json",
  1415. "async" : true,
  1416. "success" : function(data) {
  1417. $("#dataTable").html("");
  1418. if(data != null && data != ""){
  1419. var html = "";
  1420. for(var i = 0; i < data.length; i++){
  1421. var ID = data[i].id == null ? "" : data[i].id;
  1422. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1423. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1424. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1425. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1426. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1427. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1428. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1429. var NAME = data[i].name == null ? "" : data[i].name;
  1430. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1431. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1432. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1433. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1434. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1435. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1436. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1437. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1438. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1439. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1440. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1441. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1442. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1443. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1444. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1445. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1446. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1447. var invoice_type_cn =null;
  1448. if (invoice_type =="00" ){
  1449. invoice_type_cn="销售发票";
  1450. }else if (invoice_type == "01") {
  1451. invoice_type_cn="更正(对冲)发票";
  1452. }else if (invoice_type == "02") {
  1453. invoice_type_cn="其它类型发票";
  1454. }
  1455. html += "_$ta";
  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_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1463. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1464. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1465. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1466. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1467. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1468. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1469. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1470. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1471. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1472. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1473. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1474. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  1475. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  1476. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1477. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1478. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1479. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  1480. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  1481. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  1482. html += "_$tag";
  1483. }
  1484. $("#dataTable").html(html);
  1485. }else {
  1486. $("#dataTable").html("");
  1487. }
  1488. },
  1489. "error" : function(msg){
  1490. },
  1491. "complete": function(){
  1492. layer.close(tip);
  1493. }
  1494. });
  1495. });
  1496. Date.prototype.Format = function (fmt) {
  1497. var o = {
  1498. "M+": this.getMonth() + 1, //月份
  1499. "d+": this.getDate(), //日
  1500. "h+": this.getHours(), //小时
  1501. "m+": this.getMinutes(), //分
  1502. "s+": this.getSeconds(), //秒
  1503. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1504. "S": this.getMilliseconds() //毫秒
  1505. };
  1506. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1507. for (var k in o)
  1508. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1509. return fmt;
  1510. }
  1511. $("#jrjc").change(function() {
  1512. if ($("#jrjc").prop('checked') == true){
  1513. $("#departmentId").removeAttr("disabled");
  1514. }else {
  1515. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1516. }
  1517. });
  1518. ----------------------------------- SOURCE END -------------------------------------
  1519. !STACK 0
  1520. java.lang.NullPointerException
  1521. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:46.272
  1522. !MESSAGE Exception occurred during problem detection:
  1523. ----------------------------------- SOURCE BEGIN -------------------------------------
  1524. (function(){WdatePicker();})();
  1525. (function(){WdatePicker();})();
  1526. (function(){Data.get();})();
  1527. (function(){Data.set();})();
  1528. (function(){search();})();
  1529. $(function(){
  1530. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1531. getfp();
  1532. });
  1533. var Data = {
  1534. "get" : function(){
  1535. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1536. var tip = layer.load(2);
  1537. var result="";
  1538. var url = "getgyxml.do";
  1539. $.ajax({
  1540. "url" : url,
  1541. "data" : {
  1542. "start_date" : $("#dateBegin").val(),
  1543. "end_date" : $("#dateEnd").val()
  1544. },
  1545. "type" : "POST",
  1546. "dataType" : "json",
  1547. "success" : function(data) {
  1548. if(data != null && data != ""){
  1549. if ( data.status =="success"){
  1550. getfp();
  1551. alert("获取成功!");
  1552. }else {
  1553. alert(data.status);
  1554. }
  1555. }else {
  1556. alert("获取失败!");
  1557. }
  1558. },
  1559. "complete": function(){
  1560. layer.close(tip);
  1561. }
  1562. });
  1563. }else {
  1564. alert("请选择日期!");
  1565. }
  1566. },
  1567. "set" : function(){
  1568. if ( $("#fpid option:selected").text() !=""){
  1569. var tip = layer.load(2);
  1570. var gitem = $("#form1").serialize();
  1571. var jrjc;
  1572. if ($("#jrjc").prop('checked') == true){
  1573. jrjc = $("#departmentId").val();
  1574. }else {
  1575. jrjc ='N'
  1576. }
  1577. var url = "saverk.do";
  1578. $.ajax({
  1579. "url" : url,
  1580. "data" : {
  1581. "gitem" : gitem,
  1582. "jrjc" : jrjc
  1583. },
  1584. "type" : "POST",
  1585. "dataType" : "json",
  1586. "async" : true,
  1587. "success" : function(data) {
  1588. if(data.status ="success"){
  1589. alert("入库成功!");
  1590. window.location.reload();
  1591. }else {
  1592. alert(msg);
  1593. }
  1594. },
  1595. "error": function(){
  1596. alert("确认失败!");
  1597. },
  1598. "complete": function(){
  1599. layer.close(tip);
  1600. }
  1601. });
  1602. }else {
  1603. alert("请选择发票!");
  1604. }
  1605. }
  1606. }
  1607. function getfp(){
  1608. var tip = layer.load(2);
  1609. var url = "getgyfp.do";
  1610. $.ajax({
  1611. "url" : url,
  1612. "type" : "POST",
  1613. "dataType" : "json",
  1614. "async" : true,
  1615. "success" : function(data) {
  1616. if(data != null && data != ""){
  1617. $("#fpid").empty();
  1618. $("#fpid").append("_$tag_____________$tag____");
  1619. for(var i = 0; i < data.length; i++){
  1620. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1621. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1622. }
  1623. }
  1624. },
  1625. "error" : function(msg){
  1626. },
  1627. "complete": function(){
  1628. layer.close(tip);
  1629. }
  1630. });
  1631. }
  1632. $("#fpid").change(function(){
  1633. var tip = layer.load(2);
  1634. var url = "getgyrkxx.do";
  1635. $.ajax({
  1636. "url" : url,
  1637. "data" : {
  1638. "fpId" : $("#fpid").val()
  1639. },
  1640. "type" : "POST",
  1641. "dataType" : "json",
  1642. "async" : true,
  1643. "success" : function(data) {
  1644. $("#dataTable").html("");
  1645. if(data != null && data != ""){
  1646. var html = "";
  1647. for(var i = 0; i < data.length; i++){
  1648. var ID = data[i].id == null ? "" : data[i].id;
  1649. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1650. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1651. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1652. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1653. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1654. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1655. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1656. var NAME = data[i].name == null ? "" : data[i].name;
  1657. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1658. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1659. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1660. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1661. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1662. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1663. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1664. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1665. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1666. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1667. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1668. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1669. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1670. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1671. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1672. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1673. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1674. var invoice_type_cn =null;
  1675. if (invoice_type =="00" ){
  1676. invoice_type_cn="销售发票";
  1677. }else if (invoice_type == "01") {
  1678. invoice_type_cn="更正(对冲)发票";
  1679. }else if (invoice_type == "02") {
  1680. invoice_type_cn="其它类型发票";
  1681. }
  1682. html += "_$ta";
  1683. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1684. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1685. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1686. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1687. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1688. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1689. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1690. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1691. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1692. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1693. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1694. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1695. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1696. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1697. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1698. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1699. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1700. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1701. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1702. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  1703. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1704. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1705. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1706. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  1707. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  1708. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  1709. html += "_$tag";
  1710. }
  1711. $("#dataTable").html(html);
  1712. }else {
  1713. $("#dataTable").html("");
  1714. }
  1715. },
  1716. "error" : function(msg){
  1717. },
  1718. "complete": function(){
  1719. layer.close(tip);
  1720. }
  1721. });
  1722. });
  1723. Date.prototype.Format = function (fmt) {
  1724. var o = {
  1725. "M+": this.getMonth() + 1, //月份
  1726. "d+": this.getDate(), //日
  1727. "h+": this.getHours(), //小时
  1728. "m+": this.getMinutes(), //分
  1729. "s+": this.getSeconds(), //秒
  1730. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1731. "S": this.getMilliseconds() //毫秒
  1732. };
  1733. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1734. for (var k in o)
  1735. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1736. return fmt;
  1737. }
  1738. $("#jrjc").change(function() {
  1739. if ($("#jrjc").prop('checked') == true){
  1740. $("#departmentId").removeAttr("disabled");
  1741. }else {
  1742. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1743. }
  1744. });
  1745. ----------------------------------- SOURCE END -------------------------------------
  1746. !STACK 0
  1747. java.lang.NullPointerException
  1748. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:46.273
  1749. !MESSAGE Error while processing working copy
  1750. !STACK 1
  1751. JavaScript Model Exception: java.lang.NullPointerException
  1752. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1753. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1754. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1755. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1756. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1757. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1758. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1759. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1760. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1761. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1762. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1763. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1764. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1765. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1766. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1767. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1768. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  1769. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  1770. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  1771. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  1772. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  1773. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  1774. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  1775. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  1776. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  1777. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  1778. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  1779. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  1780. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  1781. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  1782. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  1783. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  1784. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  1785. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  1786. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  1787. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  1788. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  1789. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  1790. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  1791. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  1792. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  1793. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1794. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  1795. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  1796. at java.lang.reflect.Method.invoke(Unknown Source)
  1797. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  1798. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  1799. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  1800. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  1801. Caused by: java.lang.NullPointerException
  1802. Caused by: java.lang.NullPointerException
  1803. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:46.273
  1804. !MESSAGE java.lang.NullPointerException
  1805. !STACK 0
  1806. java.lang.NullPointerException
  1807. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:47.350
  1808. !MESSAGE Exception occurred during problem detection:
  1809. ----------------------------------- SOURCE BEGIN -------------------------------------
  1810. (function(){WdatePicker();})();
  1811. (function(){WdatePicker();})();
  1812. (function(){Data.get();})();
  1813. (function(){Data.set();})();
  1814. (function(){search();})();
  1815. $(function(){
  1816. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1817. getfp();
  1818. });
  1819. var Data = {
  1820. "get" : function(){
  1821. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1822. var tip = layer.load(2);
  1823. var result="";
  1824. var url = "getgyxml.do";
  1825. $.ajax({
  1826. "url" : url,
  1827. "data" : {
  1828. "start_date" : $("#dateBegin").val(),
  1829. "end_date" : $("#dateEnd").val()
  1830. },
  1831. "type" : "POST",
  1832. "dataType" : "json",
  1833. "success" : function(data) {
  1834. if(data != null && data != ""){
  1835. if ( data.status =="success"){
  1836. getfp();
  1837. alert("获取成功!");
  1838. }else {
  1839. alert(data.status);
  1840. }
  1841. }else {
  1842. alert("获取失败!");
  1843. }
  1844. },
  1845. "complete": function(){
  1846. layer.close(tip);
  1847. }
  1848. });
  1849. }else {
  1850. alert("请选择日期!");
  1851. }
  1852. },
  1853. "set" : function(){
  1854. if ( $("#fpid option:selected").text() !=""){
  1855. var tip = layer.load(2);
  1856. var gitem = $("#form1").serialize();
  1857. var jrjc;
  1858. if ($("#jrjc").prop('checked') == true){
  1859. jrjc = $("#departmentId").val();
  1860. }else {
  1861. jrjc ='N'
  1862. }
  1863. var url = "saverk.do";
  1864. $.ajax({
  1865. "url" : url,
  1866. "data" : {
  1867. "gitem" : gitem,
  1868. "jrjc" : jrjc
  1869. },
  1870. "type" : "POST",
  1871. "dataType" : "json",
  1872. "async" : true,
  1873. "success" : function(data) {
  1874. if(data.status ="success"){
  1875. alert("入库成功!");
  1876. window.location.reload();
  1877. }else {
  1878. alert(msg);
  1879. }
  1880. },
  1881. "error": function(){
  1882. alert("确认失败!");
  1883. },
  1884. "complete": function(){
  1885. layer.close(tip);
  1886. }
  1887. });
  1888. }else {
  1889. alert("请选择发票!");
  1890. }
  1891. }
  1892. }
  1893. function getfp(){
  1894. var tip = layer.load(2);
  1895. var url = "getgyfp.do";
  1896. $.ajax({
  1897. "url" : url,
  1898. "type" : "POST",
  1899. "dataType" : "json",
  1900. "async" : true,
  1901. "success" : function(data) {
  1902. if(data != null && data != ""){
  1903. $("#fpid").empty();
  1904. $("#fpid").append("_$tag_____________$tag____");
  1905. for(var i = 0; i < data.length; i++){
  1906. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1907. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1908. }
  1909. }
  1910. },
  1911. "error" : function(msg){
  1912. },
  1913. "complete": function(){
  1914. layer.close(tip);
  1915. }
  1916. });
  1917. }
  1918. $("#fpid").change(function(){
  1919. var tip = layer.load(2);
  1920. var url = "getgyrkxx.do";
  1921. $.ajax({
  1922. "url" : url,
  1923. "data" : {
  1924. "fpId" : $("#fpid").val()
  1925. },
  1926. "type" : "POST",
  1927. "dataType" : "json",
  1928. "async" : true,
  1929. "success" : function(data) {
  1930. $("#dataTable").html("");
  1931. if(data != null && data != ""){
  1932. var html = "";
  1933. for(var i = 0; i < data.length; i++){
  1934. var ID = data[i].id == null ? "" : data[i].id;
  1935. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1936. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1937. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1938. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1939. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1940. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1941. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1942. var NAME = data[i].name == null ? "" : data[i].name;
  1943. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1944. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1945. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1946. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1947. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1948. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1949. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1950. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1951. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1952. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1953. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1954. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1955. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1956. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1957. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1958. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1959. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1960. var invoice_type_cn =null;
  1961. if (invoice_type =="00" ){
  1962. invoice_type_cn="销售发票";
  1963. }else if (invoice_type == "01") {
  1964. invoice_type_cn="更正(对冲)发票";
  1965. }else if (invoice_type == "02") {
  1966. invoice_type_cn="其它类型发票";
  1967. }
  1968. html += "_$ta";
  1969. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1970. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1971. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1972. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1973. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1974. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1975. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1976. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1977. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1978. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1979. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1980. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1981. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1982. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1983. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1984. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1985. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1986. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1988. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  1989. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1990. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  1991. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  1992. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  1993. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  1994. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  1995. html += "_$tag";
  1996. }
  1997. $("#dataTable").html(html);
  1998. }else {
  1999. $("#dataTable").html("");
  2000. }
  2001. },
  2002. "error" : function(msg){
  2003. },
  2004. "complete": function(){
  2005. layer.close(tip);
  2006. }
  2007. });
  2008. });
  2009. Date.prototype.Format = function (fmt) {
  2010. var o = {
  2011. "M+": this.getMonth() + 1, //月份
  2012. "d+": this.getDate(), //日
  2013. "h+": this.getHours(), //小时
  2014. "m+": this.getMinutes(), //分
  2015. "s+": this.getSeconds(), //秒
  2016. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2017. "S": this.getMilliseconds() //毫秒
  2018. };
  2019. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2020. for (var k in o)
  2021. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2022. return fmt;
  2023. }
  2024. $("#jrjc").change(function() {
  2025. if ($("#jrjc").prop('checked') == true){
  2026. $("#departmentId").removeAttr("disabled");
  2027. }else {
  2028. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2029. }
  2030. });
  2031. ----------------------------------- SOURCE END -------------------------------------
  2032. !STACK 0
  2033. java.lang.NullPointerException
  2034. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:47.700
  2035. !MESSAGE Exception occurred during problem detection:
  2036. ----------------------------------- SOURCE BEGIN -------------------------------------
  2037. (function(){WdatePicker();})();
  2038. (function(){WdatePicker();})();
  2039. (function(){Data.get();})();
  2040. (function(){Data.set();})();
  2041. (function(){search();})();
  2042. $(function(){
  2043. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2044. getfp();
  2045. });
  2046. var Data = {
  2047. "get" : function(){
  2048. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2049. var tip = layer.load(2);
  2050. var result="";
  2051. var url = "getgyxml.do";
  2052. $.ajax({
  2053. "url" : url,
  2054. "data" : {
  2055. "start_date" : $("#dateBegin").val(),
  2056. "end_date" : $("#dateEnd").val()
  2057. },
  2058. "type" : "POST",
  2059. "dataType" : "json",
  2060. "success" : function(data) {
  2061. if(data != null && data != ""){
  2062. if ( data.status =="success"){
  2063. getfp();
  2064. alert("获取成功!");
  2065. }else {
  2066. alert(data.status);
  2067. }
  2068. }else {
  2069. alert("获取失败!");
  2070. }
  2071. },
  2072. "complete": function(){
  2073. layer.close(tip);
  2074. }
  2075. });
  2076. }else {
  2077. alert("请选择日期!");
  2078. }
  2079. },
  2080. "set" : function(){
  2081. if ( $("#fpid option:selected").text() !=""){
  2082. var tip = layer.load(2);
  2083. var gitem = $("#form1").serialize();
  2084. var jrjc;
  2085. if ($("#jrjc").prop('checked') == true){
  2086. jrjc = $("#departmentId").val();
  2087. }else {
  2088. jrjc ='N'
  2089. }
  2090. var url = "saverk.do";
  2091. $.ajax({
  2092. "url" : url,
  2093. "data" : {
  2094. "gitem" : gitem,
  2095. "jrjc" : jrjc
  2096. },
  2097. "type" : "POST",
  2098. "dataType" : "json",
  2099. "async" : true,
  2100. "success" : function(data) {
  2101. if(data.status ="success"){
  2102. alert("入库成功!");
  2103. window.location.reload();
  2104. }else {
  2105. alert(msg);
  2106. }
  2107. },
  2108. "error": function(){
  2109. alert("确认失败!");
  2110. },
  2111. "complete": function(){
  2112. layer.close(tip);
  2113. }
  2114. });
  2115. }else {
  2116. alert("请选择发票!");
  2117. }
  2118. }
  2119. }
  2120. function getfp(){
  2121. var tip = layer.load(2);
  2122. var url = "getgyfp.do";
  2123. $.ajax({
  2124. "url" : url,
  2125. "type" : "POST",
  2126. "dataType" : "json",
  2127. "async" : true,
  2128. "success" : function(data) {
  2129. if(data != null && data != ""){
  2130. $("#fpid").empty();
  2131. $("#fpid").append("_$tag_____________$tag____");
  2132. for(var i = 0; i < data.length; i++){
  2133. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2134. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2135. }
  2136. }
  2137. },
  2138. "error" : function(msg){
  2139. },
  2140. "complete": function(){
  2141. layer.close(tip);
  2142. }
  2143. });
  2144. }
  2145. $("#fpid").change(function(){
  2146. var tip = layer.load(2);
  2147. var url = "getgyrkxx.do";
  2148. $.ajax({
  2149. "url" : url,
  2150. "data" : {
  2151. "fpId" : $("#fpid").val()
  2152. },
  2153. "type" : "POST",
  2154. "dataType" : "json",
  2155. "async" : true,
  2156. "success" : function(data) {
  2157. $("#dataTable").html("");
  2158. if(data != null && data != ""){
  2159. var html = "";
  2160. for(var i = 0; i < data.length; i++){
  2161. var ID = data[i].id == null ? "" : data[i].id;
  2162. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2163. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2164. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2165. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2166. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2167. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2168. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2169. var NAME = data[i].name == null ? "" : data[i].name;
  2170. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2171. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2172. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2173. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2174. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2175. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2176. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2177. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2178. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2179. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2180. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2181. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2182. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2183. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2184. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2185. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2186. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2187. var invoice_type_cn =null;
  2188. if (invoice_type =="00" ){
  2189. invoice_type_cn="销售发票";
  2190. }else if (invoice_type == "01") {
  2191. invoice_type_cn="更正(对冲)发票";
  2192. }else if (invoice_type == "02") {
  2193. invoice_type_cn="其它类型发票";
  2194. }
  2195. html += "_$ta";
  2196. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2197. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2198. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2199. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2200. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2201. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2202. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2203. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2204. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2205. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2206. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2207. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2208. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2209. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2210. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2211. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2212. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2213. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2214. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2215. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  2216. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2217. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2218. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2219. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  2220. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  2221. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  2222. html += "_$tag";
  2223. }
  2224. $("#dataTable").html(html);
  2225. }else {
  2226. $("#dataTable").html("");
  2227. }
  2228. },
  2229. "error" : function(msg){
  2230. },
  2231. "complete": function(){
  2232. layer.close(tip);
  2233. }
  2234. });
  2235. });
  2236. Date.prototype.Format = function (fmt) {
  2237. var o = {
  2238. "M+": this.getMonth() + 1, //月份
  2239. "d+": this.getDate(), //日
  2240. "h+": this.getHours(), //小时
  2241. "m+": this.getMinutes(), //分
  2242. "s+": this.getSeconds(), //秒
  2243. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2244. "S": this.getMilliseconds() //毫秒
  2245. };
  2246. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2247. for (var k in o)
  2248. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2249. return fmt;
  2250. }
  2251. $("#jrjc").change(function() {
  2252. if ($("#jrjc").prop('checked') == true){
  2253. $("#departmentId").removeAttr("disabled");
  2254. }else {
  2255. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2256. }
  2257. });
  2258. ----------------------------------- SOURCE END -------------------------------------
  2259. !STACK 0
  2260. java.lang.NullPointerException
  2261. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:18:47.701
  2262. !MESSAGE java.lang.NullPointerException
  2263. !STACK 1
  2264. JavaScript Model Exception: java.lang.NullPointerException
  2265. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2266. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  2267. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2268. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2269. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  2270. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  2271. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  2272. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  2273. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  2274. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  2275. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  2276. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  2277. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  2278. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  2279. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  2280. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  2281. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  2282. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  2283. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  2284. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  2285. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  2286. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  2287. Caused by: java.lang.NullPointerException
  2288. Caused by: java.lang.NullPointerException
  2289. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:47.701
  2290. !MESSAGE java.lang.NullPointerException
  2291. !STACK 0
  2292. java.lang.NullPointerException
  2293. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:48.521
  2294. !MESSAGE Exception occurred during problem detection:
  2295. ----------------------------------- SOURCE BEGIN -------------------------------------
  2296. (function(){WdatePicker();})();
  2297. (function(){WdatePicker();})();
  2298. (function(){Data.get();})();
  2299. (function(){Data.set();})();
  2300. (function(){search();})();
  2301. $(function(){
  2302. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2303. getfp();
  2304. });
  2305. var Data = {
  2306. "get" : function(){
  2307. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2308. var tip = layer.load(2);
  2309. var result="";
  2310. var url = "getgyxml.do";
  2311. $.ajax({
  2312. "url" : url,
  2313. "data" : {
  2314. "start_date" : $("#dateBegin").val(),
  2315. "end_date" : $("#dateEnd").val()
  2316. },
  2317. "type" : "POST",
  2318. "dataType" : "json",
  2319. "success" : function(data) {
  2320. if(data != null && data != ""){
  2321. if ( data.status =="success"){
  2322. getfp();
  2323. alert("获取成功!");
  2324. }else {
  2325. alert(data.status);
  2326. }
  2327. }else {
  2328. alert("获取失败!");
  2329. }
  2330. },
  2331. "complete": function(){
  2332. layer.close(tip);
  2333. }
  2334. });
  2335. }else {
  2336. alert("请选择日期!");
  2337. }
  2338. },
  2339. "set" : function(){
  2340. if ( $("#fpid option:selected").text() !=""){
  2341. var tip = layer.load(2);
  2342. var gitem = $("#form1").serialize();
  2343. var jrjc;
  2344. if ($("#jrjc").prop('checked') == true){
  2345. jrjc = $("#departmentId").val();
  2346. }else {
  2347. jrjc ='N'
  2348. }
  2349. var url = "saverk.do";
  2350. $.ajax({
  2351. "url" : url,
  2352. "data" : {
  2353. "gitem" : gitem,
  2354. "jrjc" : jrjc
  2355. },
  2356. "type" : "POST",
  2357. "dataType" : "json",
  2358. "async" : true,
  2359. "success" : function(data) {
  2360. if(data.status ="success"){
  2361. alert("入库成功!");
  2362. window.location.reload();
  2363. }else {
  2364. alert(msg);
  2365. }
  2366. },
  2367. "error": function(){
  2368. alert("确认失败!");
  2369. },
  2370. "complete": function(){
  2371. layer.close(tip);
  2372. }
  2373. });
  2374. }else {
  2375. alert("请选择发票!");
  2376. }
  2377. }
  2378. }
  2379. function getfp(){
  2380. var tip = layer.load(2);
  2381. var url = "getgyfp.do";
  2382. $.ajax({
  2383. "url" : url,
  2384. "type" : "POST",
  2385. "dataType" : "json",
  2386. "async" : true,
  2387. "success" : function(data) {
  2388. if(data != null && data != ""){
  2389. $("#fpid").empty();
  2390. $("#fpid").append("_$tag_____________$tag____");
  2391. for(var i = 0; i < data.length; i++){
  2392. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2393. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2394. }
  2395. }
  2396. },
  2397. "error" : function(msg){
  2398. },
  2399. "complete": function(){
  2400. layer.close(tip);
  2401. }
  2402. });
  2403. }
  2404. $("#fpid").change(function(){
  2405. var tip = layer.load(2);
  2406. var url = "getgyrkxx.do";
  2407. $.ajax({
  2408. "url" : url,
  2409. "data" : {
  2410. "fpId" : $("#fpid").val()
  2411. },
  2412. "type" : "POST",
  2413. "dataType" : "json",
  2414. "async" : true,
  2415. "success" : function(data) {
  2416. $("#dataTable").html("");
  2417. if(data != null && data != ""){
  2418. var html = "";
  2419. for(var i = 0; i < data.length; i++){
  2420. var ID = data[i].id == null ? "" : data[i].id;
  2421. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2422. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2423. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2424. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2425. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2426. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2427. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2428. var NAME = data[i].name == null ? "" : data[i].name;
  2429. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2430. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2431. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2432. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2433. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2434. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2435. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2436. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2437. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2438. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2439. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2440. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2441. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2442. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2443. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2444. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2445. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2446. var invoice_type_cn =null;
  2447. if (invoice_type =="00" ){
  2448. invoice_type_cn="销售发票";
  2449. }else if (invoice_type == "01") {
  2450. invoice_type_cn="更正(对冲)发票";
  2451. }else if (invoice_type == "02") {
  2452. invoice_type_cn="其它类型发票";
  2453. }
  2454. html += "_$ta";
  2455. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2456. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2457. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2458. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2459. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2460. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2461. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2462. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2463. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2464. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2465. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2466. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2467. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2468. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2469. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2470. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2471. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2472. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2473. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2474. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  2475. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2476. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2477. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2478. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  2479. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  2480. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  2481. html += "_$tag";
  2482. }
  2483. $("#dataTable").html(html);
  2484. }else {
  2485. $("#dataTable").html("");
  2486. }
  2487. },
  2488. "error" : function(msg){
  2489. },
  2490. "complete": function(){
  2491. layer.close(tip);
  2492. }
  2493. });
  2494. });
  2495. Date.prototype.Format = function (fmt) {
  2496. var o = {
  2497. "M+": this.getMonth() + 1, //月份
  2498. "d+": this.getDate(), //日
  2499. "h+": this.getHours(), //小时
  2500. "m+": this.getMinutes(), //分
  2501. "s+": this.getSeconds(), //秒
  2502. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2503. "S": this.getMilliseconds() //毫秒
  2504. };
  2505. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2506. for (var k in o)
  2507. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2508. return fmt;
  2509. }
  2510. $("#jrjc").change(function() {
  2511. if ($("#jrjc").prop('checked') == true){
  2512. $("#departmentId").removeAttr("disabled");
  2513. }else {
  2514. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2515. }
  2516. });
  2517. ----------------------------------- SOURCE END -------------------------------------
  2518. !STACK 0
  2519. java.lang.NullPointerException
  2520. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:48.522
  2521. !MESSAGE Error while processing working copy
  2522. !STACK 1
  2523. JavaScript Model Exception: java.lang.NullPointerException
  2524. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2525. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2526. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2527. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2528. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2529. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2530. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2531. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2532. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2533. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2534. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2535. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2536. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2537. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2538. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2539. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2540. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  2541. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  2542. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  2543. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  2544. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  2545. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  2546. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  2547. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  2548. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  2549. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  2550. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  2551. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  2552. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  2553. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  2554. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  2555. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  2556. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  2557. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  2558. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  2559. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  2560. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  2561. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  2562. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  2563. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  2564. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  2565. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  2566. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  2567. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  2568. at java.lang.reflect.Method.invoke(Unknown Source)
  2569. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  2570. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  2571. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  2572. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  2573. Caused by: java.lang.NullPointerException
  2574. Caused by: java.lang.NullPointerException
  2575. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:48.522
  2576. !MESSAGE java.lang.NullPointerException
  2577. !STACK 0
  2578. java.lang.NullPointerException
  2579. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:49.159
  2580. !MESSAGE Exception occurred during problem detection:
  2581. ----------------------------------- SOURCE BEGIN -------------------------------------
  2582. (function(){WdatePicker();})();
  2583. (function(){WdatePicker();})();
  2584. (function(){Data.get();})();
  2585. (function(){Data.set();})();
  2586. (function(){search();})();
  2587. $(function(){
  2588. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2589. getfp();
  2590. });
  2591. var Data = {
  2592. "get" : function(){
  2593. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2594. var tip = layer.load(2);
  2595. var result="";
  2596. var url = "getgyxml.do";
  2597. $.ajax({
  2598. "url" : url,
  2599. "data" : {
  2600. "start_date" : $("#dateBegin").val(),
  2601. "end_date" : $("#dateEnd").val()
  2602. },
  2603. "type" : "POST",
  2604. "dataType" : "json",
  2605. "success" : function(data) {
  2606. if(data != null && data != ""){
  2607. if ( data.status =="success"){
  2608. getfp();
  2609. alert("获取成功!");
  2610. }else {
  2611. alert(data.status);
  2612. }
  2613. }else {
  2614. alert("获取失败!");
  2615. }
  2616. },
  2617. "complete": function(){
  2618. layer.close(tip);
  2619. }
  2620. });
  2621. }else {
  2622. alert("请选择日期!");
  2623. }
  2624. },
  2625. "set" : function(){
  2626. if ( $("#fpid option:selected").text() !=""){
  2627. var tip = layer.load(2);
  2628. var gitem = $("#form1").serialize();
  2629. var jrjc;
  2630. if ($("#jrjc").prop('checked') == true){
  2631. jrjc = $("#departmentId").val();
  2632. }else {
  2633. jrjc ='N'
  2634. }
  2635. var url = "saverk.do";
  2636. $.ajax({
  2637. "url" : url,
  2638. "data" : {
  2639. "gitem" : gitem,
  2640. "jrjc" : jrjc
  2641. },
  2642. "type" : "POST",
  2643. "dataType" : "json",
  2644. "async" : true,
  2645. "success" : function(data) {
  2646. if(data.status ="success"){
  2647. alert("入库成功!");
  2648. window.location.reload();
  2649. }else {
  2650. alert(msg);
  2651. }
  2652. },
  2653. "error": function(){
  2654. alert("确认失败!");
  2655. },
  2656. "complete": function(){
  2657. layer.close(tip);
  2658. }
  2659. });
  2660. }else {
  2661. alert("请选择发票!");
  2662. }
  2663. }
  2664. }
  2665. function getfp(){
  2666. var tip = layer.load(2);
  2667. var url = "getgyfp.do";
  2668. $.ajax({
  2669. "url" : url,
  2670. "type" : "POST",
  2671. "dataType" : "json",
  2672. "async" : true,
  2673. "success" : function(data) {
  2674. if(data != null && data != ""){
  2675. $("#fpid").empty();
  2676. $("#fpid").append("_$tag_____________$tag____");
  2677. for(var i = 0; i < data.length; i++){
  2678. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2679. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2680. }
  2681. }
  2682. },
  2683. "error" : function(msg){
  2684. },
  2685. "complete": function(){
  2686. layer.close(tip);
  2687. }
  2688. });
  2689. }
  2690. $("#fpid").change(function(){
  2691. var tip = layer.load(2);
  2692. var url = "getgyrkxx.do";
  2693. $.ajax({
  2694. "url" : url,
  2695. "data" : {
  2696. "fpId" : $("#fpid").val()
  2697. },
  2698. "type" : "POST",
  2699. "dataType" : "json",
  2700. "async" : true,
  2701. "success" : function(data) {
  2702. $("#dataTable").html("");
  2703. if(data != null && data != ""){
  2704. var html = "";
  2705. for(var i = 0; i < data.length; i++){
  2706. var ID = data[i].id == null ? "" : data[i].id;
  2707. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2708. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2709. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2710. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2711. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2712. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2713. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2714. var NAME = data[i].name == null ? "" : data[i].name;
  2715. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2716. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2717. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2718. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2719. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2720. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2721. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2722. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2723. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2724. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2725. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2726. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2727. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2728. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2729. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2730. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2731. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2732. var invoice_type_cn =null;
  2733. if (invoice_type =="00" ){
  2734. invoice_type_cn="销售发票";
  2735. }else if (invoice_type == "01") {
  2736. invoice_type_cn="更正(对冲)发票";
  2737. }else if (invoice_type == "02") {
  2738. invoice_type_cn="其它类型发票";
  2739. }
  2740. html += "_$ta";
  2741. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2742. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2743. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2744. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2745. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2746. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2747. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2748. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2749. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2750. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2751. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2752. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2753. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2754. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2755. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2756. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2757. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2758. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2759. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2760. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  2761. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2762. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2763. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2764. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  2765. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  2766. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  2767. html += "_$tag";
  2768. }
  2769. $("#dataTable").html(html);
  2770. }else {
  2771. $("#dataTable").html("");
  2772. }
  2773. },
  2774. "error" : function(msg){
  2775. },
  2776. "complete": function(){
  2777. layer.close(tip);
  2778. }
  2779. });
  2780. });
  2781. Date.prototype.Format = function (fmt) {
  2782. var o = {
  2783. "M+": this.getMonth() + 1, //月份
  2784. "d+": this.getDate(), //日
  2785. "h+": this.getHours(), //小时
  2786. "m+": this.getMinutes(), //分
  2787. "s+": this.getSeconds(), //秒
  2788. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2789. "S": this.getMilliseconds() //毫秒
  2790. };
  2791. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2792. for (var k in o)
  2793. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2794. return fmt;
  2795. }
  2796. $("#jrjc").change(function() {
  2797. if ($("#jrjc").prop('checked') == true){
  2798. $("#departmentId").removeAttr("disabled");
  2799. }else {
  2800. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2801. }
  2802. });
  2803. ----------------------------------- SOURCE END -------------------------------------
  2804. !STACK 0
  2805. java.lang.NullPointerException
  2806. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:49.648
  2807. !MESSAGE Exception occurred during problem detection:
  2808. ----------------------------------- SOURCE BEGIN -------------------------------------
  2809. (function(){WdatePicker();})();
  2810. (function(){WdatePicker();})();
  2811. (function(){Data.get();})();
  2812. (function(){Data.set();})();
  2813. (function(){search();})();
  2814. $(function(){
  2815. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2816. getfp();
  2817. });
  2818. var Data = {
  2819. "get" : function(){
  2820. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2821. var tip = layer.load(2);
  2822. var result="";
  2823. var url = "getgyxml.do";
  2824. $.ajax({
  2825. "url" : url,
  2826. "data" : {
  2827. "start_date" : $("#dateBegin").val(),
  2828. "end_date" : $("#dateEnd").val()
  2829. },
  2830. "type" : "POST",
  2831. "dataType" : "json",
  2832. "success" : function(data) {
  2833. if(data != null && data != ""){
  2834. if ( data.status =="success"){
  2835. getfp();
  2836. alert("获取成功!");
  2837. }else {
  2838. alert(data.status);
  2839. }
  2840. }else {
  2841. alert("获取失败!");
  2842. }
  2843. },
  2844. "complete": function(){
  2845. layer.close(tip);
  2846. }
  2847. });
  2848. }else {
  2849. alert("请选择日期!");
  2850. }
  2851. },
  2852. "set" : function(){
  2853. if ( $("#fpid option:selected").text() !=""){
  2854. var tip = layer.load(2);
  2855. var gitem = $("#form1").serialize();
  2856. var jrjc;
  2857. if ($("#jrjc").prop('checked') == true){
  2858. jrjc = $("#departmentId").val();
  2859. }else {
  2860. jrjc ='N'
  2861. }
  2862. var url = "saverk.do";
  2863. $.ajax({
  2864. "url" : url,
  2865. "data" : {
  2866. "gitem" : gitem,
  2867. "jrjc" : jrjc
  2868. },
  2869. "type" : "POST",
  2870. "dataType" : "json",
  2871. "async" : true,
  2872. "success" : function(data) {
  2873. if(data.status ="success"){
  2874. alert("入库成功!");
  2875. window.location.reload();
  2876. }else {
  2877. alert(msg);
  2878. }
  2879. },
  2880. "error": function(){
  2881. alert("确认失败!");
  2882. },
  2883. "complete": function(){
  2884. layer.close(tip);
  2885. }
  2886. });
  2887. }else {
  2888. alert("请选择发票!");
  2889. }
  2890. }
  2891. }
  2892. function getfp(){
  2893. var tip = layer.load(2);
  2894. var url = "getgyfp.do";
  2895. $.ajax({
  2896. "url" : url,
  2897. "type" : "POST",
  2898. "dataType" : "json",
  2899. "async" : true,
  2900. "success" : function(data) {
  2901. if(data != null && data != ""){
  2902. $("#fpid").empty();
  2903. $("#fpid").append("_$tag_____________$tag____");
  2904. for(var i = 0; i < data.length; i++){
  2905. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2906. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2907. }
  2908. }
  2909. },
  2910. "error" : function(msg){
  2911. },
  2912. "complete": function(){
  2913. layer.close(tip);
  2914. }
  2915. });
  2916. }
  2917. $("#fpid").change(function(){
  2918. var tip = layer.load(2);
  2919. var url = "getgyrkxx.do";
  2920. $.ajax({
  2921. "url" : url,
  2922. "data" : {
  2923. "fpId" : $("#fpid").val()
  2924. },
  2925. "type" : "POST",
  2926. "dataType" : "json",
  2927. "async" : true,
  2928. "success" : function(data) {
  2929. $("#dataTable").html("");
  2930. if(data != null && data != ""){
  2931. var html = "";
  2932. for(var i = 0; i < data.length; i++){
  2933. var ID = data[i].id == null ? "" : data[i].id;
  2934. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2935. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2936. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2937. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2938. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2939. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2940. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2941. var NAME = data[i].name == null ? "" : data[i].name;
  2942. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2943. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2944. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2945. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2946. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2947. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2948. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2949. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2950. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2951. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2952. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2953. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2954. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2955. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2956. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2957. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2958. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2959. var invoice_type_cn =null;
  2960. if (invoice_type =="00" ){
  2961. invoice_type_cn="销售发票";
  2962. }else if (invoice_type == "01") {
  2963. invoice_type_cn="更正(对冲)发票";
  2964. }else if (invoice_type == "02") {
  2965. invoice_type_cn="其它类型发票";
  2966. }
  2967. html += "_$ta";
  2968. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2969. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2970. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2971. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2972. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2973. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2974. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2975. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2976. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2977. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2978. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2979. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2980. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2981. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2982. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2983. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2984. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2985. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2986. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2987. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  2988. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2989. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  2990. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  2991. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  2992. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  2993. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  2994. html += "_$tag";
  2995. }
  2996. $("#dataTable").html(html);
  2997. }else {
  2998. $("#dataTable").html("");
  2999. }
  3000. },
  3001. "error" : function(msg){
  3002. },
  3003. "complete": function(){
  3004. layer.close(tip);
  3005. }
  3006. });
  3007. });
  3008. Date.prototype.Format = function (fmt) {
  3009. var o = {
  3010. "M+": this.getMonth() + 1, //月份
  3011. "d+": this.getDate(), //日
  3012. "h+": this.getHours(), //小时
  3013. "m+": this.getMinutes(), //分
  3014. "s+": this.getSeconds(), //秒
  3015. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3016. "S": this.getMilliseconds() //毫秒
  3017. };
  3018. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3019. for (var k in o)
  3020. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3021. return fmt;
  3022. }
  3023. $("#jrjc").change(function() {
  3024. if ($("#jrjc").prop('checked') == true){
  3025. $("#departmentId").removeAttr("disabled");
  3026. }else {
  3027. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3028. }
  3029. });
  3030. ----------------------------------- SOURCE END -------------------------------------
  3031. !STACK 0
  3032. java.lang.NullPointerException
  3033. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:49.648
  3034. !MESSAGE Error while processing working copy
  3035. !STACK 1
  3036. JavaScript Model Exception: java.lang.NullPointerException
  3037. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3038. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3039. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3040. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3041. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3042. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3043. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3044. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3045. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3046. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3047. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3048. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3049. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3050. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3051. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3052. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3053. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3054. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3055. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3056. Caused by: java.lang.NullPointerException
  3057. Caused by: java.lang.NullPointerException
  3058. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:49.649
  3059. !MESSAGE java.lang.NullPointerException
  3060. !STACK 0
  3061. java.lang.NullPointerException
  3062. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:50.764
  3063. !MESSAGE Exception occurred during problem detection:
  3064. ----------------------------------- SOURCE BEGIN -------------------------------------
  3065. (function(){WdatePicker();})();
  3066. (function(){WdatePicker();})();
  3067. (function(){Data.get();})();
  3068. (function(){Data.set();})();
  3069. (function(){search();})();
  3070. $(function(){
  3071. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3072. getfp();
  3073. });
  3074. var Data = {
  3075. "get" : function(){
  3076. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3077. var tip = layer.load(2);
  3078. var result="";
  3079. var url = "getgyxml.do";
  3080. $.ajax({
  3081. "url" : url,
  3082. "data" : {
  3083. "start_date" : $("#dateBegin").val(),
  3084. "end_date" : $("#dateEnd").val()
  3085. },
  3086. "type" : "POST",
  3087. "dataType" : "json",
  3088. "success" : function(data) {
  3089. if(data != null && data != ""){
  3090. if ( data.status =="success"){
  3091. getfp();
  3092. alert("获取成功!");
  3093. }else {
  3094. alert(data.status);
  3095. }
  3096. }else {
  3097. alert("获取失败!");
  3098. }
  3099. },
  3100. "complete": function(){
  3101. layer.close(tip);
  3102. }
  3103. });
  3104. }else {
  3105. alert("请选择日期!");
  3106. }
  3107. },
  3108. "set" : function(){
  3109. if ( $("#fpid option:selected").text() !=""){
  3110. var tip = layer.load(2);
  3111. var gitem = $("#form1").serialize();
  3112. var jrjc;
  3113. if ($("#jrjc").prop('checked') == true){
  3114. jrjc = $("#departmentId").val();
  3115. }else {
  3116. jrjc ='N'
  3117. }
  3118. var url = "saverk.do";
  3119. $.ajax({
  3120. "url" : url,
  3121. "data" : {
  3122. "gitem" : gitem,
  3123. "jrjc" : jrjc
  3124. },
  3125. "type" : "POST",
  3126. "dataType" : "json",
  3127. "async" : true,
  3128. "success" : function(data) {
  3129. if(data.status ="success"){
  3130. alert("入库成功!");
  3131. window.location.reload();
  3132. }else {
  3133. alert(msg);
  3134. }
  3135. },
  3136. "error": function(){
  3137. alert("确认失败!");
  3138. },
  3139. "complete": function(){
  3140. layer.close(tip);
  3141. }
  3142. });
  3143. }else {
  3144. alert("请选择发票!");
  3145. }
  3146. }
  3147. }
  3148. function getfp(){
  3149. var tip = layer.load(2);
  3150. var url = "getgyfp.do";
  3151. $.ajax({
  3152. "url" : url,
  3153. "type" : "POST",
  3154. "dataType" : "json",
  3155. "async" : true,
  3156. "success" : function(data) {
  3157. if(data != null && data != ""){
  3158. $("#fpid").empty();
  3159. $("#fpid").append("_$tag_____________$tag____");
  3160. for(var i = 0; i < data.length; i++){
  3161. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3162. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3163. }
  3164. }
  3165. },
  3166. "error" : function(msg){
  3167. },
  3168. "complete": function(){
  3169. layer.close(tip);
  3170. }
  3171. });
  3172. }
  3173. $("#fpid").change(function(){
  3174. var tip = layer.load(2);
  3175. var url = "getgyrkxx.do";
  3176. $.ajax({
  3177. "url" : url,
  3178. "data" : {
  3179. "fpId" : $("#fpid").val()
  3180. },
  3181. "type" : "POST",
  3182. "dataType" : "json",
  3183. "async" : true,
  3184. "success" : function(data) {
  3185. $("#dataTable").html("");
  3186. if(data != null && data != ""){
  3187. var html = "";
  3188. for(var i = 0; i < data.length; i++){
  3189. var ID = data[i].id == null ? "" : data[i].id;
  3190. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3191. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3192. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3193. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3194. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3195. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3196. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3197. var NAME = data[i].name == null ? "" : data[i].name;
  3198. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3199. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3200. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3201. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3202. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3203. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3204. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3205. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3206. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3207. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3208. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3209. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3210. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3211. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3212. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3213. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3214. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3215. var invoice_type_cn =null;
  3216. if (invoice_type =="00" ){
  3217. invoice_type_cn="销售发票";
  3218. }else if (invoice_type == "01") {
  3219. invoice_type_cn="更正(对冲)发票";
  3220. }else if (invoice_type == "02") {
  3221. invoice_type_cn="其它类型发票";
  3222. }
  3223. html += "_$ta";
  3224. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3225. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3226. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3227. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3228. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3229. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3230. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3231. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3232. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3233. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3234. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3235. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3236. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3237. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3238. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3239. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3240. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3241. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3242. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3243. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  3244. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3245. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  3246. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  3247. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  3248. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  3249. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  3250. html += "_$tag";
  3251. }
  3252. $("#dataTable").html(html);
  3253. }else {
  3254. $("#dataTable").html("");
  3255. }
  3256. },
  3257. "error" : function(msg){
  3258. },
  3259. "complete": function(){
  3260. layer.close(tip);
  3261. }
  3262. });
  3263. });
  3264. Date.prototype.Format = function (fmt) {
  3265. var o = {
  3266. "M+": this.getMonth() + 1, //月份
  3267. "d+": this.getDate(), //日
  3268. "h+": this.getHours(), //小时
  3269. "m+": this.getMinutes(), //分
  3270. "s+": this.getSeconds(), //秒
  3271. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3272. "S": this.getMilliseconds() //毫秒
  3273. };
  3274. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3275. for (var k in o)
  3276. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3277. return fmt;
  3278. }
  3279. $("#jrjc").change(function() {
  3280. if ($("#jrjc").prop('checked') == true){
  3281. $("#departmentId").removeAttr("disabled");
  3282. }else {
  3283. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3284. }
  3285. });
  3286. ----------------------------------- SOURCE END -------------------------------------
  3287. !STACK 0
  3288. java.lang.NullPointerException
  3289. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:51.516
  3290. !MESSAGE Exception occurred during problem detection:
  3291. ----------------------------------- SOURCE BEGIN -------------------------------------
  3292. (function(){WdatePicker();})();
  3293. (function(){WdatePicker();})();
  3294. (function(){Data.get();})();
  3295. (function(){Data.set();})();
  3296. (function(){search();})();
  3297. $(function(){
  3298. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3299. getfp();
  3300. });
  3301. var Data = {
  3302. "get" : function(){
  3303. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3304. var tip = layer.load(2);
  3305. var result="";
  3306. var url = "getgyxml.do";
  3307. $.ajax({
  3308. "url" : url,
  3309. "data" : {
  3310. "start_date" : $("#dateBegin").val(),
  3311. "end_date" : $("#dateEnd").val()
  3312. },
  3313. "type" : "POST",
  3314. "dataType" : "json",
  3315. "success" : function(data) {
  3316. if(data != null && data != ""){
  3317. if ( data.status =="success"){
  3318. getfp();
  3319. alert("获取成功!");
  3320. }else {
  3321. alert(data.status);
  3322. }
  3323. }else {
  3324. alert("获取失败!");
  3325. }
  3326. },
  3327. "complete": function(){
  3328. layer.close(tip);
  3329. }
  3330. });
  3331. }else {
  3332. alert("请选择日期!");
  3333. }
  3334. },
  3335. "set" : function(){
  3336. if ( $("#fpid option:selected").text() !=""){
  3337. var tip = layer.load(2);
  3338. var gitem = $("#form1").serialize();
  3339. var jrjc;
  3340. if ($("#jrjc").prop('checked') == true){
  3341. jrjc = $("#departmentId").val();
  3342. }else {
  3343. jrjc ='N'
  3344. }
  3345. var url = "saverk.do";
  3346. $.ajax({
  3347. "url" : url,
  3348. "data" : {
  3349. "gitem" : gitem,
  3350. "jrjc" : jrjc
  3351. },
  3352. "type" : "POST",
  3353. "dataType" : "json",
  3354. "async" : true,
  3355. "success" : function(data) {
  3356. if(data.status ="success"){
  3357. alert("入库成功!");
  3358. window.location.reload();
  3359. }else {
  3360. alert(msg);
  3361. }
  3362. },
  3363. "error": function(){
  3364. alert("确认失败!");
  3365. },
  3366. "complete": function(){
  3367. layer.close(tip);
  3368. }
  3369. });
  3370. }else {
  3371. alert("请选择发票!");
  3372. }
  3373. }
  3374. }
  3375. function getfp(){
  3376. var tip = layer.load(2);
  3377. var url = "getgyfp.do";
  3378. $.ajax({
  3379. "url" : url,
  3380. "type" : "POST",
  3381. "dataType" : "json",
  3382. "async" : true,
  3383. "success" : function(data) {
  3384. if(data != null && data != ""){
  3385. $("#fpid").empty();
  3386. $("#fpid").append("_$tag_____________$tag____");
  3387. for(var i = 0; i < data.length; i++){
  3388. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3389. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3390. }
  3391. }
  3392. },
  3393. "error" : function(msg){
  3394. },
  3395. "complete": function(){
  3396. layer.close(tip);
  3397. }
  3398. });
  3399. }
  3400. $("#fpid").change(function(){
  3401. var tip = layer.load(2);
  3402. var url = "getgyrkxx.do";
  3403. $.ajax({
  3404. "url" : url,
  3405. "data" : {
  3406. "fpId" : $("#fpid").val()
  3407. },
  3408. "type" : "POST",
  3409. "dataType" : "json",
  3410. "async" : true,
  3411. "success" : function(data) {
  3412. $("#dataTable").html("");
  3413. if(data != null && data != ""){
  3414. var html = "";
  3415. for(var i = 0; i < data.length; i++){
  3416. var ID = data[i].id == null ? "" : data[i].id;
  3417. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3418. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3419. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3420. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3421. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3422. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3423. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3424. var NAME = data[i].name == null ? "" : data[i].name;
  3425. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3426. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3427. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3428. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3429. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3430. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3431. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3432. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3433. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3434. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3435. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3436. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3437. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3438. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3439. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3440. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3441. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3442. var invoice_type_cn =null;
  3443. if (invoice_type =="00" ){
  3444. invoice_type_cn="销售发票";
  3445. }else if (invoice_type == "01") {
  3446. invoice_type_cn="更正(对冲)发票";
  3447. }else if (invoice_type == "02") {
  3448. invoice_type_cn="其它类型发票";
  3449. }
  3450. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________$tag";
  3460. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3461. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3462. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3463. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3464. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3465. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3466. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3467. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3468. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3469. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3470. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  3471. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3472. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  3473. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  3474. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  3475. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  3476. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  3477. html += "_$tag";
  3478. }
  3479. $("#dataTable").html(html);
  3480. }else {
  3481. $("#dataTable").html("");
  3482. }
  3483. },
  3484. "error" : function(msg){
  3485. },
  3486. "complete": function(){
  3487. layer.close(tip);
  3488. }
  3489. });
  3490. });
  3491. Date.prototype.Format = function (fmt) {
  3492. var o = {
  3493. "M+": this.getMonth() + 1, //月份
  3494. "d+": this.getDate(), //日
  3495. "h+": this.getHours(), //小时
  3496. "m+": this.getMinutes(), //分
  3497. "s+": this.getSeconds(), //秒
  3498. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3499. "S": this.getMilliseconds() //毫秒
  3500. };
  3501. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3502. for (var k in o)
  3503. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3504. return fmt;
  3505. }
  3506. $("#jrjc").change(function() {
  3507. if ($("#jrjc").prop('checked') == true){
  3508. $("#departmentId").removeAttr("disabled");
  3509. }else {
  3510. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3511. }
  3512. });
  3513. ----------------------------------- SOURCE END -------------------------------------
  3514. !STACK 0
  3515. java.lang.NullPointerException
  3516. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:51.516
  3517. !MESSAGE Error while processing working copy
  3518. !STACK 1
  3519. JavaScript Model Exception: java.lang.NullPointerException
  3520. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3521. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3522. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3523. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3524. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3525. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3526. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3527. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3528. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3529. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3530. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3531. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3532. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3533. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3534. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3535. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3536. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3537. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3538. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3539. Caused by: java.lang.NullPointerException
  3540. Caused by: java.lang.NullPointerException
  3541. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:51.516
  3542. !MESSAGE java.lang.NullPointerException
  3543. !STACK 0
  3544. java.lang.NullPointerException
  3545. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:52.567
  3546. !MESSAGE Exception occurred during problem detection:
  3547. ----------------------------------- SOURCE BEGIN -------------------------------------
  3548. (function(){WdatePicker();})();
  3549. (function(){WdatePicker();})();
  3550. (function(){Data.get();})();
  3551. (function(){Data.set();})();
  3552. (function(){search();})();
  3553. $(function(){
  3554. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3555. getfp();
  3556. });
  3557. var Data = {
  3558. "get" : function(){
  3559. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3560. var tip = layer.load(2);
  3561. var result="";
  3562. var url = "getgyxml.do";
  3563. $.ajax({
  3564. "url" : url,
  3565. "data" : {
  3566. "start_date" : $("#dateBegin").val(),
  3567. "end_date" : $("#dateEnd").val()
  3568. },
  3569. "type" : "POST",
  3570. "dataType" : "json",
  3571. "success" : function(data) {
  3572. if(data != null && data != ""){
  3573. if ( data.status =="success"){
  3574. getfp();
  3575. alert("获取成功!");
  3576. }else {
  3577. alert(data.status);
  3578. }
  3579. }else {
  3580. alert("获取失败!");
  3581. }
  3582. },
  3583. "complete": function(){
  3584. layer.close(tip);
  3585. }
  3586. });
  3587. }else {
  3588. alert("请选择日期!");
  3589. }
  3590. },
  3591. "set" : function(){
  3592. if ( $("#fpid option:selected").text() !=""){
  3593. var tip = layer.load(2);
  3594. var gitem = $("#form1").serialize();
  3595. var jrjc;
  3596. if ($("#jrjc").prop('checked') == true){
  3597. jrjc = $("#departmentId").val();
  3598. }else {
  3599. jrjc ='N'
  3600. }
  3601. var url = "saverk.do";
  3602. $.ajax({
  3603. "url" : url,
  3604. "data" : {
  3605. "gitem" : gitem,
  3606. "jrjc" : jrjc
  3607. },
  3608. "type" : "POST",
  3609. "dataType" : "json",
  3610. "async" : true,
  3611. "success" : function(data) {
  3612. if(data.status ="success"){
  3613. alert("入库成功!");
  3614. window.location.reload();
  3615. }else {
  3616. alert(msg);
  3617. }
  3618. },
  3619. "error": function(){
  3620. alert("确认失败!");
  3621. },
  3622. "complete": function(){
  3623. layer.close(tip);
  3624. }
  3625. });
  3626. }else {
  3627. alert("请选择发票!");
  3628. }
  3629. }
  3630. }
  3631. function getfp(){
  3632. var tip = layer.load(2);
  3633. var url = "getgyfp.do";
  3634. $.ajax({
  3635. "url" : url,
  3636. "type" : "POST",
  3637. "dataType" : "json",
  3638. "async" : true,
  3639. "success" : function(data) {
  3640. if(data != null && data != ""){
  3641. $("#fpid").empty();
  3642. $("#fpid").append("_$tag_____________$tag____");
  3643. for(var i = 0; i < data.length; i++){
  3644. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3645. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3646. }
  3647. }
  3648. },
  3649. "error" : function(msg){
  3650. },
  3651. "complete": function(){
  3652. layer.close(tip);
  3653. }
  3654. });
  3655. }
  3656. $("#fpid").change(function(){
  3657. var tip = layer.load(2);
  3658. var url = "getgyrkxx.do";
  3659. $.ajax({
  3660. "url" : url,
  3661. "data" : {
  3662. "fpId" : $("#fpid").val()
  3663. },
  3664. "type" : "POST",
  3665. "dataType" : "json",
  3666. "async" : true,
  3667. "success" : function(data) {
  3668. $("#dataTable").html("");
  3669. if(data != null && data != ""){
  3670. var html = "";
  3671. for(var i = 0; i < data.length; i++){
  3672. var ID = data[i].id == null ? "" : data[i].id;
  3673. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3674. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3675. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3676. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3677. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3678. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3679. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3680. var NAME = data[i].name == null ? "" : data[i].name;
  3681. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3682. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3683. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3684. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3685. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3686. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3687. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3688. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3689. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3690. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3691. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3692. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3693. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3694. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3695. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3696. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3697. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3698. var invoice_type_cn =null;
  3699. if (invoice_type =="00" ){
  3700. invoice_type_cn="销售发票";
  3701. }else if (invoice_type == "01") {
  3702. invoice_type_cn="更正(对冲)发票";
  3703. }else if (invoice_type == "02") {
  3704. invoice_type_cn="其它类型发票";
  3705. }
  3706. html += "_$ta";
  3707. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3708. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3709. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3710. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3711. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3712. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3713. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3714. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3715. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3716. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3717. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3718. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3719. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3720. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3721. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3722. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3723. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3724. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3725. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3726. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3727. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3728. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  3729. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  3730. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  3731. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  3732. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  3733. html += "_$tag";
  3734. }
  3735. $("#dataTable").html(html);
  3736. }else {
  3737. $("#dataTable").html("");
  3738. }
  3739. },
  3740. "error" : function(msg){
  3741. },
  3742. "complete": function(){
  3743. layer.close(tip);
  3744. }
  3745. });
  3746. });
  3747. Date.prototype.Format = function (fmt) {
  3748. var o = {
  3749. "M+": this.getMonth() + 1, //月份
  3750. "d+": this.getDate(), //日
  3751. "h+": this.getHours(), //小时
  3752. "m+": this.getMinutes(), //分
  3753. "s+": this.getSeconds(), //秒
  3754. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3755. "S": this.getMilliseconds() //毫秒
  3756. };
  3757. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3758. for (var k in o)
  3759. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3760. return fmt;
  3761. }
  3762. $("#jrjc").change(function() {
  3763. if ($("#jrjc").prop('checked') == true){
  3764. $("#departmentId").removeAttr("disabled");
  3765. }else {
  3766. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3767. }
  3768. });
  3769. ----------------------------------- SOURCE END -------------------------------------
  3770. !STACK 0
  3771. java.lang.NullPointerException
  3772. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:53.007
  3773. !MESSAGE Exception occurred during problem detection:
  3774. ----------------------------------- SOURCE BEGIN -------------------------------------
  3775. (function(){WdatePicker();})();
  3776. (function(){WdatePicker();})();
  3777. (function(){Data.get();})();
  3778. (function(){Data.set();})();
  3779. (function(){search();})();
  3780. $(function(){
  3781. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3782. getfp();
  3783. });
  3784. var Data = {
  3785. "get" : function(){
  3786. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3787. var tip = layer.load(2);
  3788. var result="";
  3789. var url = "getgyxml.do";
  3790. $.ajax({
  3791. "url" : url,
  3792. "data" : {
  3793. "start_date" : $("#dateBegin").val(),
  3794. "end_date" : $("#dateEnd").val()
  3795. },
  3796. "type" : "POST",
  3797. "dataType" : "json",
  3798. "success" : function(data) {
  3799. if(data != null && data != ""){
  3800. if ( data.status =="success"){
  3801. getfp();
  3802. alert("获取成功!");
  3803. }else {
  3804. alert(data.status);
  3805. }
  3806. }else {
  3807. alert("获取失败!");
  3808. }
  3809. },
  3810. "complete": function(){
  3811. layer.close(tip);
  3812. }
  3813. });
  3814. }else {
  3815. alert("请选择日期!");
  3816. }
  3817. },
  3818. "set" : function(){
  3819. if ( $("#fpid option:selected").text() !=""){
  3820. var tip = layer.load(2);
  3821. var gitem = $("#form1").serialize();
  3822. var jrjc;
  3823. if ($("#jrjc").prop('checked') == true){
  3824. jrjc = $("#departmentId").val();
  3825. }else {
  3826. jrjc ='N'
  3827. }
  3828. var url = "saverk.do";
  3829. $.ajax({
  3830. "url" : url,
  3831. "data" : {
  3832. "gitem" : gitem,
  3833. "jrjc" : jrjc
  3834. },
  3835. "type" : "POST",
  3836. "dataType" : "json",
  3837. "async" : true,
  3838. "success" : function(data) {
  3839. if(data.status ="success"){
  3840. alert("入库成功!");
  3841. window.location.reload();
  3842. }else {
  3843. alert(msg);
  3844. }
  3845. },
  3846. "error": function(){
  3847. alert("确认失败!");
  3848. },
  3849. "complete": function(){
  3850. layer.close(tip);
  3851. }
  3852. });
  3853. }else {
  3854. alert("请选择发票!");
  3855. }
  3856. }
  3857. }
  3858. function getfp(){
  3859. var tip = layer.load(2);
  3860. var url = "getgyfp.do";
  3861. $.ajax({
  3862. "url" : url,
  3863. "type" : "POST",
  3864. "dataType" : "json",
  3865. "async" : true,
  3866. "success" : function(data) {
  3867. if(data != null && data != ""){
  3868. $("#fpid").empty();
  3869. $("#fpid").append("_$tag_____________$tag____");
  3870. for(var i = 0; i < data.length; i++){
  3871. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3872. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3873. }
  3874. }
  3875. },
  3876. "error" : function(msg){
  3877. },
  3878. "complete": function(){
  3879. layer.close(tip);
  3880. }
  3881. });
  3882. }
  3883. $("#fpid").change(function(){
  3884. var tip = layer.load(2);
  3885. var url = "getgyrkxx.do";
  3886. $.ajax({
  3887. "url" : url,
  3888. "data" : {
  3889. "fpId" : $("#fpid").val()
  3890. },
  3891. "type" : "POST",
  3892. "dataType" : "json",
  3893. "async" : true,
  3894. "success" : function(data) {
  3895. $("#dataTable").html("");
  3896. if(data != null && data != ""){
  3897. var html = "";
  3898. for(var i = 0; i < data.length; i++){
  3899. var ID = data[i].id == null ? "" : data[i].id;
  3900. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3901. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3902. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3903. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3904. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3905. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3906. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3907. var NAME = data[i].name == null ? "" : data[i].name;
  3908. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3909. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3910. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3911. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3912. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3913. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3914. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3915. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3916. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3917. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3918. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3919. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3920. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3921. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3922. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3923. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3924. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3925. var invoice_type_cn =null;
  3926. if (invoice_type =="00" ){
  3927. invoice_type_cn="销售发票";
  3928. }else if (invoice_type == "01") {
  3929. invoice_type_cn="更正(对冲)发票";
  3930. }else if (invoice_type == "02") {
  3931. invoice_type_cn="其它类型发票";
  3932. }
  3933. html += "_$ta";
  3934. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3935. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3936. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3937. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3938. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3939. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3940. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3941. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3942. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3943. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3944. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  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";
  3961. }
  3962. $("#dataTable").html(html);
  3963. }else {
  3964. $("#dataTable").html("");
  3965. }
  3966. },
  3967. "error" : function(msg){
  3968. },
  3969. "complete": function(){
  3970. layer.close(tip);
  3971. }
  3972. });
  3973. });
  3974. Date.prototype.Format = function (fmt) {
  3975. var o = {
  3976. "M+": this.getMonth() + 1, //月份
  3977. "d+": this.getDate(), //日
  3978. "h+": this.getHours(), //小时
  3979. "m+": this.getMinutes(), //分
  3980. "s+": this.getSeconds(), //秒
  3981. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3982. "S": this.getMilliseconds() //毫秒
  3983. };
  3984. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3985. for (var k in o)
  3986. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3987. return fmt;
  3988. }
  3989. $("#jrjc").change(function() {
  3990. if ($("#jrjc").prop('checked') == true){
  3991. $("#departmentId").removeAttr("disabled");
  3992. }else {
  3993. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3994. }
  3995. });
  3996. ----------------------------------- SOURCE END -------------------------------------
  3997. !STACK 0
  3998. java.lang.NullPointerException
  3999. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:18:53.008
  4000. !MESSAGE java.lang.NullPointerException
  4001. !STACK 1
  4002. JavaScript Model Exception: java.lang.NullPointerException
  4003. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4004. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  4005. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4006. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4007. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  4008. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  4009. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  4010. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  4011. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  4012. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  4013. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  4014. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  4015. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  4016. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  4017. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  4018. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  4019. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  4020. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  4021. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  4022. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  4023. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  4024. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  4025. Caused by: java.lang.NullPointerException
  4026. Caused by: java.lang.NullPointerException
  4027. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:53.008
  4028. !MESSAGE java.lang.NullPointerException
  4029. !STACK 0
  4030. java.lang.NullPointerException
  4031. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:53.415
  4032. !MESSAGE Exception occurred during problem detection:
  4033. ----------------------------------- SOURCE BEGIN -------------------------------------
  4034. (function(){WdatePicker();})();
  4035. (function(){WdatePicker();})();
  4036. (function(){Data.get();})();
  4037. (function(){Data.set();})();
  4038. (function(){search();})();
  4039. $(function(){
  4040. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4041. getfp();
  4042. });
  4043. var Data = {
  4044. "get" : function(){
  4045. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4046. var tip = layer.load(2);
  4047. var result="";
  4048. var url = "getgyxml.do";
  4049. $.ajax({
  4050. "url" : url,
  4051. "data" : {
  4052. "start_date" : $("#dateBegin").val(),
  4053. "end_date" : $("#dateEnd").val()
  4054. },
  4055. "type" : "POST",
  4056. "dataType" : "json",
  4057. "success" : function(data) {
  4058. if(data != null && data != ""){
  4059. if ( data.status =="success"){
  4060. getfp();
  4061. alert("获取成功!");
  4062. }else {
  4063. alert(data.status);
  4064. }
  4065. }else {
  4066. alert("获取失败!");
  4067. }
  4068. },
  4069. "complete": function(){
  4070. layer.close(tip);
  4071. }
  4072. });
  4073. }else {
  4074. alert("请选择日期!");
  4075. }
  4076. },
  4077. "set" : function(){
  4078. if ( $("#fpid option:selected").text() !=""){
  4079. var tip = layer.load(2);
  4080. var gitem = $("#form1").serialize();
  4081. var jrjc;
  4082. if ($("#jrjc").prop('checked') == true){
  4083. jrjc = $("#departmentId").val();
  4084. }else {
  4085. jrjc ='N'
  4086. }
  4087. var url = "saverk.do";
  4088. $.ajax({
  4089. "url" : url,
  4090. "data" : {
  4091. "gitem" : gitem,
  4092. "jrjc" : jrjc
  4093. },
  4094. "type" : "POST",
  4095. "dataType" : "json",
  4096. "async" : true,
  4097. "success" : function(data) {
  4098. if(data.status ="success"){
  4099. alert("入库成功!");
  4100. window.location.reload();
  4101. }else {
  4102. alert(msg);
  4103. }
  4104. },
  4105. "error": function(){
  4106. alert("确认失败!");
  4107. },
  4108. "complete": function(){
  4109. layer.close(tip);
  4110. }
  4111. });
  4112. }else {
  4113. alert("请选择发票!");
  4114. }
  4115. }
  4116. }
  4117. function getfp(){
  4118. var tip = layer.load(2);
  4119. var url = "getgyfp.do";
  4120. $.ajax({
  4121. "url" : url,
  4122. "type" : "POST",
  4123. "dataType" : "json",
  4124. "async" : true,
  4125. "success" : function(data) {
  4126. if(data != null && data != ""){
  4127. $("#fpid").empty();
  4128. $("#fpid").append("_$tag_____________$tag____");
  4129. for(var i = 0; i < data.length; i++){
  4130. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4131. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4132. }
  4133. }
  4134. },
  4135. "error" : function(msg){
  4136. },
  4137. "complete": function(){
  4138. layer.close(tip);
  4139. }
  4140. });
  4141. }
  4142. $("#fpid").change(function(){
  4143. var tip = layer.load(2);
  4144. var url = "getgyrkxx.do";
  4145. $.ajax({
  4146. "url" : url,
  4147. "data" : {
  4148. "fpId" : $("#fpid").val()
  4149. },
  4150. "type" : "POST",
  4151. "dataType" : "json",
  4152. "async" : true,
  4153. "success" : function(data) {
  4154. $("#dataTable").html("");
  4155. if(data != null && data != ""){
  4156. var html = "";
  4157. for(var i = 0; i < data.length; i++){
  4158. var ID = data[i].id == null ? "" : data[i].id;
  4159. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4160. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4161. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4162. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4163. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4164. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4165. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4166. var NAME = data[i].name == null ? "" : data[i].name;
  4167. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4168. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4169. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4170. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4171. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4172. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4173. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4174. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4175. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4176. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4177. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4178. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4179. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4180. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4181. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4182. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4183. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  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_____________$tag______________________________________________________________________________________________________________________________$tag";
  4212. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4213. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  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";
  4219. html += "_$tag";
  4220. }
  4221. $("#dataTable").html(html);
  4222. }else {
  4223. $("#dataTable").html("");
  4224. }
  4225. },
  4226. "error" : function(msg){
  4227. },
  4228. "complete": function(){
  4229. layer.close(tip);
  4230. }
  4231. });
  4232. });
  4233. Date.prototype.Format = function (fmt) {
  4234. var o = {
  4235. "M+": this.getMonth() + 1, //月份
  4236. "d+": this.getDate(), //日
  4237. "h+": this.getHours(), //小时
  4238. "m+": this.getMinutes(), //分
  4239. "s+": this.getSeconds(), //秒
  4240. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4241. "S": this.getMilliseconds() //毫秒
  4242. };
  4243. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4244. for (var k in o)
  4245. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4246. return fmt;
  4247. }
  4248. $("#jrjc").change(function() {
  4249. if ($("#jrjc").prop('checked') == true){
  4250. $("#departmentId").removeAttr("disabled");
  4251. }else {
  4252. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4253. }
  4254. });
  4255. ----------------------------------- SOURCE END -------------------------------------
  4256. !STACK 0
  4257. java.lang.NullPointerException
  4258. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:53.416
  4259. !MESSAGE Error while processing working copy
  4260. !STACK 1
  4261. JavaScript Model Exception: java.lang.NullPointerException
  4262. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4263. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4264. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4265. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4266. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4267. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4268. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4269. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4270. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4271. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4272. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4273. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4274. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4275. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4276. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4277. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4278. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4279. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4280. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4281. Caused by: java.lang.NullPointerException
  4282. Caused by: java.lang.NullPointerException
  4283. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:53.416
  4284. !MESSAGE java.lang.NullPointerException
  4285. !STACK 0
  4286. java.lang.NullPointerException
  4287. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:54.377
  4288. !MESSAGE Exception occurred during problem detection:
  4289. ----------------------------------- SOURCE BEGIN -------------------------------------
  4290. (function(){WdatePicker();})();
  4291. (function(){WdatePicker();})();
  4292. (function(){Data.get();})();
  4293. (function(){Data.set();})();
  4294. (function(){search();})();
  4295. $(function(){
  4296. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4297. getfp();
  4298. });
  4299. var Data = {
  4300. "get" : function(){
  4301. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4302. var tip = layer.load(2);
  4303. var result="";
  4304. var url = "getgyxml.do";
  4305. $.ajax({
  4306. "url" : url,
  4307. "data" : {
  4308. "start_date" : $("#dateBegin").val(),
  4309. "end_date" : $("#dateEnd").val()
  4310. },
  4311. "type" : "POST",
  4312. "dataType" : "json",
  4313. "success" : function(data) {
  4314. if(data != null && data != ""){
  4315. if ( data.status =="success"){
  4316. getfp();
  4317. alert("获取成功!");
  4318. }else {
  4319. alert(data.status);
  4320. }
  4321. }else {
  4322. alert("获取失败!");
  4323. }
  4324. },
  4325. "complete": function(){
  4326. layer.close(tip);
  4327. }
  4328. });
  4329. }else {
  4330. alert("请选择日期!");
  4331. }
  4332. },
  4333. "set" : function(){
  4334. if ( $("#fpid option:selected").text() !=""){
  4335. var tip = layer.load(2);
  4336. var gitem = $("#form1").serialize();
  4337. var jrjc;
  4338. if ($("#jrjc").prop('checked') == true){
  4339. jrjc = $("#departmentId").val();
  4340. }else {
  4341. jrjc ='N'
  4342. }
  4343. var url = "saverk.do";
  4344. $.ajax({
  4345. "url" : url,
  4346. "data" : {
  4347. "gitem" : gitem,
  4348. "jrjc" : jrjc
  4349. },
  4350. "type" : "POST",
  4351. "dataType" : "json",
  4352. "async" : true,
  4353. "success" : function(data) {
  4354. if(data.status ="success"){
  4355. alert("入库成功!");
  4356. window.location.reload();
  4357. }else {
  4358. alert(msg);
  4359. }
  4360. },
  4361. "error": function(){
  4362. alert("确认失败!");
  4363. },
  4364. "complete": function(){
  4365. layer.close(tip);
  4366. }
  4367. });
  4368. }else {
  4369. alert("请选择发票!");
  4370. }
  4371. }
  4372. }
  4373. function getfp(){
  4374. var tip = layer.load(2);
  4375. var url = "getgyfp.do";
  4376. $.ajax({
  4377. "url" : url,
  4378. "type" : "POST",
  4379. "dataType" : "json",
  4380. "async" : true,
  4381. "success" : function(data) {
  4382. if(data != null && data != ""){
  4383. $("#fpid").empty();
  4384. $("#fpid").append("_$tag_____________$tag____");
  4385. for(var i = 0; i < data.length; i++){
  4386. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4387. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4388. }
  4389. }
  4390. },
  4391. "error" : function(msg){
  4392. },
  4393. "complete": function(){
  4394. layer.close(tip);
  4395. }
  4396. });
  4397. }
  4398. $("#fpid").change(function(){
  4399. var tip = layer.load(2);
  4400. var url = "getgyrkxx.do";
  4401. $.ajax({
  4402. "url" : url,
  4403. "data" : {
  4404. "fpId" : $("#fpid").val()
  4405. },
  4406. "type" : "POST",
  4407. "dataType" : "json",
  4408. "async" : true,
  4409. "success" : function(data) {
  4410. $("#dataTable").html("");
  4411. if(data != null && data != ""){
  4412. var html = "";
  4413. for(var i = 0; i < data.length; i++){
  4414. var ID = data[i].id == null ? "" : data[i].id;
  4415. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4416. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4417. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4418. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4419. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4420. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4421. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4422. var NAME = data[i].name == null ? "" : data[i].name;
  4423. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4424. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4425. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4426. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4427. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4428. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4429. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4430. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4431. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4432. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4433. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4434. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4435. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4436. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4437. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4438. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4439. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4440. var invoice_type_cn =null;
  4441. if (invoice_type =="00" ){
  4442. invoice_type_cn="销售发票";
  4443. }else if (invoice_type == "01") {
  4444. invoice_type_cn="更正(对冲)发票";
  4445. }else if (invoice_type == "02") {
  4446. invoice_type_cn="其它类型发票";
  4447. }
  4448. html += "_$ta";
  4449. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4450. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4451. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4452. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4453. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4454. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4455. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4456. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4457. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4458. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4459. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4460. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4461. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4462. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4463. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4464. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4465. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4466. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4467. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4468. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4469. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4470. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4471. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4472. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  4473. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  4474. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  4475. html += "_$tag";
  4476. }
  4477. $("#dataTable").html(html);
  4478. }else {
  4479. $("#dataTable").html("");
  4480. }
  4481. },
  4482. "error" : function(msg){
  4483. },
  4484. "complete": function(){
  4485. layer.close(tip);
  4486. }
  4487. });
  4488. });
  4489. Date.prototype.Format = function (fmt) {
  4490. var o = {
  4491. "M+": this.getMonth() + 1, //月份
  4492. "d+": this.getDate(), //日
  4493. "h+": this.getHours(), //小时
  4494. "m+": this.getMinutes(), //分
  4495. "s+": this.getSeconds(), //秒
  4496. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4497. "S": this.getMilliseconds() //毫秒
  4498. };
  4499. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4500. for (var k in o)
  4501. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4502. return fmt;
  4503. }
  4504. $("#jrjc").change(function() {
  4505. if ($("#jrjc").prop('checked') == true){
  4506. $("#departmentId").removeAttr("disabled");
  4507. }else {
  4508. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4509. }
  4510. });
  4511. ----------------------------------- SOURCE END -------------------------------------
  4512. !STACK 0
  4513. java.lang.NullPointerException
  4514. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:54.758
  4515. !MESSAGE Exception occurred during problem detection:
  4516. ----------------------------------- SOURCE BEGIN -------------------------------------
  4517. (function(){WdatePicker();})();
  4518. (function(){WdatePicker();})();
  4519. (function(){Data.get();})();
  4520. (function(){Data.set();})();
  4521. (function(){search();})();
  4522. $(function(){
  4523. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4524. getfp();
  4525. });
  4526. var Data = {
  4527. "get" : function(){
  4528. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4529. var tip = layer.load(2);
  4530. var result="";
  4531. var url = "getgyxml.do";
  4532. $.ajax({
  4533. "url" : url,
  4534. "data" : {
  4535. "start_date" : $("#dateBegin").val(),
  4536. "end_date" : $("#dateEnd").val()
  4537. },
  4538. "type" : "POST",
  4539. "dataType" : "json",
  4540. "success" : function(data) {
  4541. if(data != null && data != ""){
  4542. if ( data.status =="success"){
  4543. getfp();
  4544. alert("获取成功!");
  4545. }else {
  4546. alert(data.status);
  4547. }
  4548. }else {
  4549. alert("获取失败!");
  4550. }
  4551. },
  4552. "complete": function(){
  4553. layer.close(tip);
  4554. }
  4555. });
  4556. }else {
  4557. alert("请选择日期!");
  4558. }
  4559. },
  4560. "set" : function(){
  4561. if ( $("#fpid option:selected").text() !=""){
  4562. var tip = layer.load(2);
  4563. var gitem = $("#form1").serialize();
  4564. var jrjc;
  4565. if ($("#jrjc").prop('checked') == true){
  4566. jrjc = $("#departmentId").val();
  4567. }else {
  4568. jrjc ='N'
  4569. }
  4570. var url = "saverk.do";
  4571. $.ajax({
  4572. "url" : url,
  4573. "data" : {
  4574. "gitem" : gitem,
  4575. "jrjc" : jrjc
  4576. },
  4577. "type" : "POST",
  4578. "dataType" : "json",
  4579. "async" : true,
  4580. "success" : function(data) {
  4581. if(data.status ="success"){
  4582. alert("入库成功!");
  4583. window.location.reload();
  4584. }else {
  4585. alert(msg);
  4586. }
  4587. },
  4588. "error": function(){
  4589. alert("确认失败!");
  4590. },
  4591. "complete": function(){
  4592. layer.close(tip);
  4593. }
  4594. });
  4595. }else {
  4596. alert("请选择发票!");
  4597. }
  4598. }
  4599. }
  4600. function getfp(){
  4601. var tip = layer.load(2);
  4602. var url = "getgyfp.do";
  4603. $.ajax({
  4604. "url" : url,
  4605. "type" : "POST",
  4606. "dataType" : "json",
  4607. "async" : true,
  4608. "success" : function(data) {
  4609. if(data != null && data != ""){
  4610. $("#fpid").empty();
  4611. $("#fpid").append("_$tag_____________$tag____");
  4612. for(var i = 0; i < data.length; i++){
  4613. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4614. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4615. }
  4616. }
  4617. },
  4618. "error" : function(msg){
  4619. },
  4620. "complete": function(){
  4621. layer.close(tip);
  4622. }
  4623. });
  4624. }
  4625. $("#fpid").change(function(){
  4626. var tip = layer.load(2);
  4627. var url = "getgyrkxx.do";
  4628. $.ajax({
  4629. "url" : url,
  4630. "data" : {
  4631. "fpId" : $("#fpid").val()
  4632. },
  4633. "type" : "POST",
  4634. "dataType" : "json",
  4635. "async" : true,
  4636. "success" : function(data) {
  4637. $("#dataTable").html("");
  4638. if(data != null && data != ""){
  4639. var html = "";
  4640. for(var i = 0; i < data.length; i++){
  4641. var ID = data[i].id == null ? "" : data[i].id;
  4642. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4643. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4644. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4645. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4646. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4647. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4648. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4649. var NAME = data[i].name == null ? "" : data[i].name;
  4650. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4651. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4652. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4653. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4654. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4655. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4656. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4657. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4658. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4659. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4660. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4661. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4662. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4663. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4664. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4665. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4666. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4667. var invoice_type_cn =null;
  4668. if (invoice_type =="00" ){
  4669. invoice_type_cn="销售发票";
  4670. }else if (invoice_type == "01") {
  4671. invoice_type_cn="更正(对冲)发票";
  4672. }else if (invoice_type == "02") {
  4673. invoice_type_cn="其它类型发票";
  4674. }
  4675. html += "_$ta";
  4676. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4677. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4678. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4679. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4680. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4681. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4682. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4683. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4684. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4685. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4686. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4687. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4688. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4689. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4690. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4691. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4692. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4693. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4694. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4695. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4696. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4697. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4698. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4699. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  4700. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  4701. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  4702. html += "_$tag";
  4703. }
  4704. $("#dataTable").html(html);
  4705. }else {
  4706. $("#dataTable").html("");
  4707. }
  4708. },
  4709. "error" : function(msg){
  4710. },
  4711. "complete": function(){
  4712. layer.close(tip);
  4713. }
  4714. });
  4715. });
  4716. Date.prototype.Format = function (fmt) {
  4717. var o = {
  4718. "M+": this.getMonth() + 1, //月份
  4719. "d+": this.getDate(), //日
  4720. "h+": this.getHours(), //小时
  4721. "m+": this.getMinutes(), //分
  4722. "s+": this.getSeconds(), //秒
  4723. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4724. "S": this.getMilliseconds() //毫秒
  4725. };
  4726. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4727. for (var k in o)
  4728. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4729. return fmt;
  4730. }
  4731. $("#jrjc").change(function() {
  4732. if ($("#jrjc").prop('checked') == true){
  4733. $("#departmentId").removeAttr("disabled");
  4734. }else {
  4735. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4736. }
  4737. });
  4738. ----------------------------------- SOURCE END -------------------------------------
  4739. !STACK 0
  4740. java.lang.NullPointerException
  4741. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:54.758
  4742. !MESSAGE Error while processing working copy
  4743. !STACK 1
  4744. JavaScript Model Exception: java.lang.NullPointerException
  4745. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4746. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4747. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4748. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4749. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4750. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4751. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4752. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4753. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4754. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4755. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4756. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4757. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4758. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4759. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4760. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4761. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  4762. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  4763. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  4764. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  4765. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  4766. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  4767. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  4768. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  4769. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  4770. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  4771. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  4772. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  4773. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  4774. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  4775. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  4776. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  4777. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  4778. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  4779. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  4780. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  4781. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  4782. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  4783. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  4784. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  4785. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  4786. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  4787. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  4788. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  4789. at java.lang.reflect.Method.invoke(Unknown Source)
  4790. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  4791. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  4792. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  4793. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  4794. Caused by: java.lang.NullPointerException
  4795. Caused by: java.lang.NullPointerException
  4796. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:54.759
  4797. !MESSAGE java.lang.NullPointerException
  4798. !STACK 0
  4799. java.lang.NullPointerException
  4800. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:55.840
  4801. !MESSAGE Exception occurred during problem detection:
  4802. ----------------------------------- SOURCE BEGIN -------------------------------------
  4803. (function(){WdatePicker();})();
  4804. (function(){WdatePicker();})();
  4805. (function(){Data.get();})();
  4806. (function(){Data.set();})();
  4807. (function(){search();})();
  4808. $(function(){
  4809. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4810. getfp();
  4811. });
  4812. var Data = {
  4813. "get" : function(){
  4814. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4815. var tip = layer.load(2);
  4816. var result="";
  4817. var url = "getgyxml.do";
  4818. $.ajax({
  4819. "url" : url,
  4820. "data" : {
  4821. "start_date" : $("#dateBegin").val(),
  4822. "end_date" : $("#dateEnd").val()
  4823. },
  4824. "type" : "POST",
  4825. "dataType" : "json",
  4826. "success" : function(data) {
  4827. if(data != null && data != ""){
  4828. if ( data.status =="success"){
  4829. getfp();
  4830. alert("获取成功!");
  4831. }else {
  4832. alert(data.status);
  4833. }
  4834. }else {
  4835. alert("获取失败!");
  4836. }
  4837. },
  4838. "complete": function(){
  4839. layer.close(tip);
  4840. }
  4841. });
  4842. }else {
  4843. alert("请选择日期!");
  4844. }
  4845. },
  4846. "set" : function(){
  4847. if ( $("#fpid option:selected").text() !=""){
  4848. var tip = layer.load(2);
  4849. var gitem = $("#form1").serialize();
  4850. var jrjc;
  4851. if ($("#jrjc").prop('checked') == true){
  4852. jrjc = $("#departmentId").val();
  4853. }else {
  4854. jrjc ='N'
  4855. }
  4856. var url = "saverk.do";
  4857. $.ajax({
  4858. "url" : url,
  4859. "data" : {
  4860. "gitem" : gitem,
  4861. "jrjc" : jrjc
  4862. },
  4863. "type" : "POST",
  4864. "dataType" : "json",
  4865. "async" : true,
  4866. "success" : function(data) {
  4867. if(data.status ="success"){
  4868. alert("入库成功!");
  4869. window.location.reload();
  4870. }else {
  4871. alert(msg);
  4872. }
  4873. },
  4874. "error": function(){
  4875. alert("确认失败!");
  4876. },
  4877. "complete": function(){
  4878. layer.close(tip);
  4879. }
  4880. });
  4881. }else {
  4882. alert("请选择发票!");
  4883. }
  4884. }
  4885. }
  4886. function getfp(){
  4887. var tip = layer.load(2);
  4888. var url = "getgyfp.do";
  4889. $.ajax({
  4890. "url" : url,
  4891. "type" : "POST",
  4892. "dataType" : "json",
  4893. "async" : true,
  4894. "success" : function(data) {
  4895. if(data != null && data != ""){
  4896. $("#fpid").empty();
  4897. $("#fpid").append("_$tag_____________$tag____");
  4898. for(var i = 0; i < data.length; i++){
  4899. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4900. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4901. }
  4902. }
  4903. },
  4904. "error" : function(msg){
  4905. },
  4906. "complete": function(){
  4907. layer.close(tip);
  4908. }
  4909. });
  4910. }
  4911. $("#fpid").change(function(){
  4912. var tip = layer.load(2);
  4913. var url = "getgyrkxx.do";
  4914. $.ajax({
  4915. "url" : url,
  4916. "data" : {
  4917. "fpId" : $("#fpid").val()
  4918. },
  4919. "type" : "POST",
  4920. "dataType" : "json",
  4921. "async" : true,
  4922. "success" : function(data) {
  4923. $("#dataTable").html("");
  4924. if(data != null && data != ""){
  4925. var html = "";
  4926. for(var i = 0; i < data.length; i++){
  4927. var ID = data[i].id == null ? "" : data[i].id;
  4928. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4929. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4930. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4931. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4932. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4933. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4934. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4935. var NAME = data[i].name == null ? "" : data[i].name;
  4936. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4937. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4938. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4939. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4940. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4941. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4942. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4943. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4944. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4945. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4946. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4947. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4948. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4949. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4950. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4951. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4952. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4953. var invoice_type_cn =null;
  4954. if (invoice_type =="00" ){
  4955. invoice_type_cn="销售发票";
  4956. }else if (invoice_type == "01") {
  4957. invoice_type_cn="更正(对冲)发票";
  4958. }else if (invoice_type == "02") {
  4959. invoice_type_cn="其它类型发票";
  4960. }
  4961. html += "_$ta";
  4962. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4963. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4964. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4965. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4966. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4967. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4968. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4969. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4970. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4971. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4972. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4973. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4974. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4975. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4976. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4977. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4978. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4979. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4980. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4981. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4982. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4983. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  4984. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  4985. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  4986. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  4987. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  4988. html += "_$tag";
  4989. }
  4990. $("#dataTable").html(html);
  4991. }else {
  4992. $("#dataTable").html("");
  4993. }
  4994. },
  4995. "error" : function(msg){
  4996. },
  4997. "complete": function(){
  4998. layer.close(tip);
  4999. }
  5000. });
  5001. });
  5002. Date.prototype.Format = function (fmt) {
  5003. var o = {
  5004. "M+": this.getMonth() + 1, //月份
  5005. "d+": this.getDate(), //日
  5006. "h+": this.getHours(), //小时
  5007. "m+": this.getMinutes(), //分
  5008. "s+": this.getSeconds(), //秒
  5009. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5010. "S": this.getMilliseconds() //毫秒
  5011. };
  5012. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5013. for (var k in o)
  5014. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5015. return fmt;
  5016. }
  5017. $("#jrjc").change(function() {
  5018. if ($("#jrjc").prop('checked') == true){
  5019. $("#departmentId").removeAttr("disabled");
  5020. }else {
  5021. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5022. }
  5023. });
  5024. ----------------------------------- SOURCE END -------------------------------------
  5025. !STACK 0
  5026. java.lang.NullPointerException
  5027. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:56.219
  5028. !MESSAGE Exception occurred during problem detection:
  5029. ----------------------------------- SOURCE BEGIN -------------------------------------
  5030. (function(){WdatePicker();})();
  5031. (function(){WdatePicker();})();
  5032. (function(){Data.get();})();
  5033. (function(){Data.set();})();
  5034. (function(){search();})();
  5035. $(function(){
  5036. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5037. getfp();
  5038. });
  5039. var Data = {
  5040. "get" : function(){
  5041. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5042. var tip = layer.load(2);
  5043. var result="";
  5044. var url = "getgyxml.do";
  5045. $.ajax({
  5046. "url" : url,
  5047. "data" : {
  5048. "start_date" : $("#dateBegin").val(),
  5049. "end_date" : $("#dateEnd").val()
  5050. },
  5051. "type" : "POST",
  5052. "dataType" : "json",
  5053. "success" : function(data) {
  5054. if(data != null && data != ""){
  5055. if ( data.status =="success"){
  5056. getfp();
  5057. alert("获取成功!");
  5058. }else {
  5059. alert(data.status);
  5060. }
  5061. }else {
  5062. alert("获取失败!");
  5063. }
  5064. },
  5065. "complete": function(){
  5066. layer.close(tip);
  5067. }
  5068. });
  5069. }else {
  5070. alert("请选择日期!");
  5071. }
  5072. },
  5073. "set" : function(){
  5074. if ( $("#fpid option:selected").text() !=""){
  5075. var tip = layer.load(2);
  5076. var gitem = $("#form1").serialize();
  5077. var jrjc;
  5078. if ($("#jrjc").prop('checked') == true){
  5079. jrjc = $("#departmentId").val();
  5080. }else {
  5081. jrjc ='N'
  5082. }
  5083. var url = "saverk.do";
  5084. $.ajax({
  5085. "url" : url,
  5086. "data" : {
  5087. "gitem" : gitem,
  5088. "jrjc" : jrjc
  5089. },
  5090. "type" : "POST",
  5091. "dataType" : "json",
  5092. "async" : true,
  5093. "success" : function(data) {
  5094. if(data.status ="success"){
  5095. alert("入库成功!");
  5096. window.location.reload();
  5097. }else {
  5098. alert(msg);
  5099. }
  5100. },
  5101. "error": function(){
  5102. alert("确认失败!");
  5103. },
  5104. "complete": function(){
  5105. layer.close(tip);
  5106. }
  5107. });
  5108. }else {
  5109. alert("请选择发票!");
  5110. }
  5111. }
  5112. }
  5113. function getfp(){
  5114. var tip = layer.load(2);
  5115. var url = "getgyfp.do";
  5116. $.ajax({
  5117. "url" : url,
  5118. "type" : "POST",
  5119. "dataType" : "json",
  5120. "async" : true,
  5121. "success" : function(data) {
  5122. if(data != null && data != ""){
  5123. $("#fpid").empty();
  5124. $("#fpid").append("_$tag_____________$tag____");
  5125. for(var i = 0; i < data.length; i++){
  5126. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5127. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5128. }
  5129. }
  5130. },
  5131. "error" : function(msg){
  5132. },
  5133. "complete": function(){
  5134. layer.close(tip);
  5135. }
  5136. });
  5137. }
  5138. $("#fpid").change(function(){
  5139. var tip = layer.load(2);
  5140. var url = "getgyrkxx.do";
  5141. $.ajax({
  5142. "url" : url,
  5143. "data" : {
  5144. "fpId" : $("#fpid").val()
  5145. },
  5146. "type" : "POST",
  5147. "dataType" : "json",
  5148. "async" : true,
  5149. "success" : function(data) {
  5150. $("#dataTable").html("");
  5151. if(data != null && data != ""){
  5152. var html = "";
  5153. for(var i = 0; i < data.length; i++){
  5154. var ID = data[i].id == null ? "" : data[i].id;
  5155. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5156. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5157. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5158. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5159. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5160. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5161. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5162. var NAME = data[i].name == null ? "" : data[i].name;
  5163. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5164. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5165. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5166. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5167. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5168. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5169. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5170. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5171. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5172. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5173. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5174. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5175. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5176. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5177. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5178. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5179. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5180. var invoice_type_cn =null;
  5181. if (invoice_type =="00" ){
  5182. invoice_type_cn="销售发票";
  5183. }else if (invoice_type == "01") {
  5184. invoice_type_cn="更正(对冲)发票";
  5185. }else if (invoice_type == "02") {
  5186. invoice_type_cn="其它类型发票";
  5187. }
  5188. html += "_$ta";
  5189. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5190. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5191. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5192. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5193. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5194. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5195. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5196. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5197. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5198. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5199. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5200. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5201. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5202. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5203. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5204. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5205. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5206. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5207. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5208. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5209. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5210. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5211. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5212. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  5213. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  5214. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  5215. html += "_$tag";
  5216. }
  5217. $("#dataTable").html(html);
  5218. }else {
  5219. $("#dataTable").html("");
  5220. }
  5221. },
  5222. "error" : function(msg){
  5223. },
  5224. "complete": function(){
  5225. layer.close(tip);
  5226. }
  5227. });
  5228. });
  5229. Date.prototype.Format = function (fmt) {
  5230. var o = {
  5231. "M+": this.getMonth() + 1, //月份
  5232. "d+": this.getDate(), //日
  5233. "h+": this.getHours(), //小时
  5234. "m+": this.getMinutes(), //分
  5235. "s+": this.getSeconds(), //秒
  5236. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5237. "S": this.getMilliseconds() //毫秒
  5238. };
  5239. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5240. for (var k in o)
  5241. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5242. return fmt;
  5243. }
  5244. $("#jrjc").change(function() {
  5245. if ($("#jrjc").prop('checked') == true){
  5246. $("#departmentId").removeAttr("disabled");
  5247. }else {
  5248. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5249. }
  5250. });
  5251. ----------------------------------- SOURCE END -------------------------------------
  5252. !STACK 0
  5253. java.lang.NullPointerException
  5254. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:18:56.219
  5255. !MESSAGE java.lang.NullPointerException
  5256. !STACK 1
  5257. JavaScript Model Exception: java.lang.NullPointerException
  5258. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5259. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5260. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5261. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5262. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5263. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5264. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5265. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5266. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5267. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5268. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5269. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5270. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5271. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5272. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5273. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5274. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5275. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5276. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5277. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5278. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5279. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5280. Caused by: java.lang.NullPointerException
  5281. Caused by: java.lang.NullPointerException
  5282. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:56.220
  5283. !MESSAGE java.lang.NullPointerException
  5284. !STACK 0
  5285. java.lang.NullPointerException
  5286. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:56.603
  5287. !MESSAGE Exception occurred during problem detection:
  5288. ----------------------------------- SOURCE BEGIN -------------------------------------
  5289. (function(){WdatePicker();})();
  5290. (function(){WdatePicker();})();
  5291. (function(){Data.get();})();
  5292. (function(){Data.set();})();
  5293. (function(){search();})();
  5294. $(function(){
  5295. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5296. getfp();
  5297. });
  5298. var Data = {
  5299. "get" : function(){
  5300. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5301. var tip = layer.load(2);
  5302. var result="";
  5303. var url = "getgyxml.do";
  5304. $.ajax({
  5305. "url" : url,
  5306. "data" : {
  5307. "start_date" : $("#dateBegin").val(),
  5308. "end_date" : $("#dateEnd").val()
  5309. },
  5310. "type" : "POST",
  5311. "dataType" : "json",
  5312. "success" : function(data) {
  5313. if(data != null && data != ""){
  5314. if ( data.status =="success"){
  5315. getfp();
  5316. alert("获取成功!");
  5317. }else {
  5318. alert(data.status);
  5319. }
  5320. }else {
  5321. alert("获取失败!");
  5322. }
  5323. },
  5324. "complete": function(){
  5325. layer.close(tip);
  5326. }
  5327. });
  5328. }else {
  5329. alert("请选择日期!");
  5330. }
  5331. },
  5332. "set" : function(){
  5333. if ( $("#fpid option:selected").text() !=""){
  5334. var tip = layer.load(2);
  5335. var gitem = $("#form1").serialize();
  5336. var jrjc;
  5337. if ($("#jrjc").prop('checked') == true){
  5338. jrjc = $("#departmentId").val();
  5339. }else {
  5340. jrjc ='N'
  5341. }
  5342. var url = "saverk.do";
  5343. $.ajax({
  5344. "url" : url,
  5345. "data" : {
  5346. "gitem" : gitem,
  5347. "jrjc" : jrjc
  5348. },
  5349. "type" : "POST",
  5350. "dataType" : "json",
  5351. "async" : true,
  5352. "success" : function(data) {
  5353. if(data.status ="success"){
  5354. alert("入库成功!");
  5355. window.location.reload();
  5356. }else {
  5357. alert(msg);
  5358. }
  5359. },
  5360. "error": function(){
  5361. alert("确认失败!");
  5362. },
  5363. "complete": function(){
  5364. layer.close(tip);
  5365. }
  5366. });
  5367. }else {
  5368. alert("请选择发票!");
  5369. }
  5370. }
  5371. }
  5372. function getfp(){
  5373. var tip = layer.load(2);
  5374. var url = "getgyfp.do";
  5375. $.ajax({
  5376. "url" : url,
  5377. "type" : "POST",
  5378. "dataType" : "json",
  5379. "async" : true,
  5380. "success" : function(data) {
  5381. if(data != null && data != ""){
  5382. $("#fpid").empty();
  5383. $("#fpid").append("_$tag_____________$tag____");
  5384. for(var i = 0; i < data.length; i++){
  5385. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5386. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5387. }
  5388. }
  5389. },
  5390. "error" : function(msg){
  5391. },
  5392. "complete": function(){
  5393. layer.close(tip);
  5394. }
  5395. });
  5396. }
  5397. $("#fpid").change(function(){
  5398. var tip = layer.load(2);
  5399. var url = "getgyrkxx.do";
  5400. $.ajax({
  5401. "url" : url,
  5402. "data" : {
  5403. "fpId" : $("#fpid").val()
  5404. },
  5405. "type" : "POST",
  5406. "dataType" : "json",
  5407. "async" : true,
  5408. "success" : function(data) {
  5409. $("#dataTable").html("");
  5410. if(data != null && data != ""){
  5411. var html = "";
  5412. for(var i = 0; i < data.length; i++){
  5413. var ID = data[i].id == null ? "" : data[i].id;
  5414. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5415. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5416. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5417. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5418. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5419. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5420. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5421. var NAME = data[i].name == null ? "" : data[i].name;
  5422. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5423. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5424. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5425. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5426. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5427. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5428. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5429. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5430. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5431. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5432. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5433. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5434. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5435. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5436. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5437. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5438. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5439. var invoice_type_cn =null;
  5440. if (invoice_type =="00" ){
  5441. invoice_type_cn="销售发票";
  5442. }else if (invoice_type == "01") {
  5443. invoice_type_cn="更正(对冲)发票";
  5444. }else if (invoice_type == "02") {
  5445. invoice_type_cn="其它类型发票";
  5446. }
  5447. html += "_$ta";
  5448. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5449. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5450. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5451. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5452. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5453. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5454. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5455. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5456. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5457. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5458. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5459. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5460. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5461. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5462. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5463. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5464. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5465. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5466. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5467. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5468. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5469. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5470. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5471. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  5472. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  5473. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  5474. html += "_$tag";
  5475. }
  5476. $("#dataTable").html(html);
  5477. }else {
  5478. $("#dataTable").html("");
  5479. }
  5480. },
  5481. "error" : function(msg){
  5482. },
  5483. "complete": function(){
  5484. layer.close(tip);
  5485. }
  5486. });
  5487. });
  5488. Date.prototype.Format = function (fmt) {
  5489. var o = {
  5490. "M+": this.getMonth() + 1, //月份
  5491. "d+": this.getDate(), //日
  5492. "h+": this.getHours(), //小时
  5493. "m+": this.getMinutes(), //分
  5494. "s+": this.getSeconds(), //秒
  5495. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5496. "S": this.getMilliseconds() //毫秒
  5497. };
  5498. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5499. for (var k in o)
  5500. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5501. return fmt;
  5502. }
  5503. $("#jrjc").change(function() {
  5504. if ($("#jrjc").prop('checked') == true){
  5505. $("#departmentId").removeAttr("disabled");
  5506. }else {
  5507. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5508. }
  5509. });
  5510. ----------------------------------- SOURCE END -------------------------------------
  5511. !STACK 0
  5512. java.lang.NullPointerException
  5513. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:56.604
  5514. !MESSAGE Error while processing working copy
  5515. !STACK 1
  5516. JavaScript Model Exception: java.lang.NullPointerException
  5517. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5518. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5519. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5520. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5521. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5522. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5523. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5524. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5525. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5526. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5527. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5528. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5529. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5530. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5531. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5532. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5533. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5534. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5535. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5536. Caused by: java.lang.NullPointerException
  5537. Caused by: java.lang.NullPointerException
  5538. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:56.604
  5539. !MESSAGE java.lang.NullPointerException
  5540. !STACK 0
  5541. java.lang.NullPointerException
  5542. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:57.505
  5543. !MESSAGE Exception occurred during problem detection:
  5544. ----------------------------------- SOURCE BEGIN -------------------------------------
  5545. (function(){WdatePicker();})();
  5546. (function(){WdatePicker();})();
  5547. (function(){Data.get();})();
  5548. (function(){Data.set();})();
  5549. (function(){search();})();
  5550. $(function(){
  5551. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5552. getfp();
  5553. });
  5554. var Data = {
  5555. "get" : function(){
  5556. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5557. var tip = layer.load(2);
  5558. var result="";
  5559. var url = "getgyxml.do";
  5560. $.ajax({
  5561. "url" : url,
  5562. "data" : {
  5563. "start_date" : $("#dateBegin").val(),
  5564. "end_date" : $("#dateEnd").val()
  5565. },
  5566. "type" : "POST",
  5567. "dataType" : "json",
  5568. "success" : function(data) {
  5569. if(data != null && data != ""){
  5570. if ( data.status =="success"){
  5571. getfp();
  5572. alert("获取成功!");
  5573. }else {
  5574. alert(data.status);
  5575. }
  5576. }else {
  5577. alert("获取失败!");
  5578. }
  5579. },
  5580. "complete": function(){
  5581. layer.close(tip);
  5582. }
  5583. });
  5584. }else {
  5585. alert("请选择日期!");
  5586. }
  5587. },
  5588. "set" : function(){
  5589. if ( $("#fpid option:selected").text() !=""){
  5590. var tip = layer.load(2);
  5591. var gitem = $("#form1").serialize();
  5592. var jrjc;
  5593. if ($("#jrjc").prop('checked') == true){
  5594. jrjc = $("#departmentId").val();
  5595. }else {
  5596. jrjc ='N'
  5597. }
  5598. var url = "saverk.do";
  5599. $.ajax({
  5600. "url" : url,
  5601. "data" : {
  5602. "gitem" : gitem,
  5603. "jrjc" : jrjc
  5604. },
  5605. "type" : "POST",
  5606. "dataType" : "json",
  5607. "async" : true,
  5608. "success" : function(data) {
  5609. if(data.status ="success"){
  5610. alert("入库成功!");
  5611. window.location.reload();
  5612. }else {
  5613. alert(msg);
  5614. }
  5615. },
  5616. "error": function(){
  5617. alert("确认失败!");
  5618. },
  5619. "complete": function(){
  5620. layer.close(tip);
  5621. }
  5622. });
  5623. }else {
  5624. alert("请选择发票!");
  5625. }
  5626. }
  5627. }
  5628. function getfp(){
  5629. var tip = layer.load(2);
  5630. var url = "getgyfp.do";
  5631. $.ajax({
  5632. "url" : url,
  5633. "type" : "POST",
  5634. "dataType" : "json",
  5635. "async" : true,
  5636. "success" : function(data) {
  5637. if(data != null && data != ""){
  5638. $("#fpid").empty();
  5639. $("#fpid").append("_$tag_____________$tag____");
  5640. for(var i = 0; i < data.length; i++){
  5641. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5642. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5643. }
  5644. }
  5645. },
  5646. "error" : function(msg){
  5647. },
  5648. "complete": function(){
  5649. layer.close(tip);
  5650. }
  5651. });
  5652. }
  5653. $("#fpid").change(function(){
  5654. var tip = layer.load(2);
  5655. var url = "getgyrkxx.do";
  5656. $.ajax({
  5657. "url" : url,
  5658. "data" : {
  5659. "fpId" : $("#fpid").val()
  5660. },
  5661. "type" : "POST",
  5662. "dataType" : "json",
  5663. "async" : true,
  5664. "success" : function(data) {
  5665. $("#dataTable").html("");
  5666. if(data != null && data != ""){
  5667. var html = "";
  5668. for(var i = 0; i < data.length; i++){
  5669. var ID = data[i].id == null ? "" : data[i].id;
  5670. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5671. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5672. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5673. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5674. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5675. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5676. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5677. var NAME = data[i].name == null ? "" : data[i].name;
  5678. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5679. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5680. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5681. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5682. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5683. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5684. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5685. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5686. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5687. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5688. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5689. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5690. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5691. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5692. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5693. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5694. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5695. var invoice_type_cn =null;
  5696. if (invoice_type =="00" ){
  5697. invoice_type_cn="销售发票";
  5698. }else if (invoice_type == "01") {
  5699. invoice_type_cn="更正(对冲)发票";
  5700. }else if (invoice_type == "02") {
  5701. invoice_type_cn="其它类型发票";
  5702. }
  5703. html += "_$ta";
  5704. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5705. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5706. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5707. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5708. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5709. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5710. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5711. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5712. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5713. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5714. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5715. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5716. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5717. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5718. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5719. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5720. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5721. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5722. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5723. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5724. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5725. html += "_$tag_____________$tag___________________________________________________________________________________________________________$tag";
  5726. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5727. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  5728. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  5729. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  5730. html += "_$tag";
  5731. }
  5732. $("#dataTable").html(html);
  5733. }else {
  5734. $("#dataTable").html("");
  5735. }
  5736. },
  5737. "error" : function(msg){
  5738. },
  5739. "complete": function(){
  5740. layer.close(tip);
  5741. }
  5742. });
  5743. });
  5744. Date.prototype.Format = function (fmt) {
  5745. var o = {
  5746. "M+": this.getMonth() + 1, //月份
  5747. "d+": this.getDate(), //日
  5748. "h+": this.getHours(), //小时
  5749. "m+": this.getMinutes(), //分
  5750. "s+": this.getSeconds(), //秒
  5751. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5752. "S": this.getMilliseconds() //毫秒
  5753. };
  5754. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5755. for (var k in o)
  5756. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5757. return fmt;
  5758. }
  5759. $("#jrjc").change(function() {
  5760. if ($("#jrjc").prop('checked') == true){
  5761. $("#departmentId").removeAttr("disabled");
  5762. }else {
  5763. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5764. }
  5765. });
  5766. ----------------------------------- SOURCE END -------------------------------------
  5767. !STACK 0
  5768. java.lang.NullPointerException
  5769. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:57.985
  5770. !MESSAGE Exception occurred during problem detection:
  5771. ----------------------------------- SOURCE BEGIN -------------------------------------
  5772. (function(){WdatePicker();})();
  5773. (function(){WdatePicker();})();
  5774. (function(){Data.get();})();
  5775. (function(){Data.set();})();
  5776. (function(){search();})();
  5777. $(function(){
  5778. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5779. getfp();
  5780. });
  5781. var Data = {
  5782. "get" : function(){
  5783. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5784. var tip = layer.load(2);
  5785. var result="";
  5786. var url = "getgyxml.do";
  5787. $.ajax({
  5788. "url" : url,
  5789. "data" : {
  5790. "start_date" : $("#dateBegin").val(),
  5791. "end_date" : $("#dateEnd").val()
  5792. },
  5793. "type" : "POST",
  5794. "dataType" : "json",
  5795. "success" : function(data) {
  5796. if(data != null && data != ""){
  5797. if ( data.status =="success"){
  5798. getfp();
  5799. alert("获取成功!");
  5800. }else {
  5801. alert(data.status);
  5802. }
  5803. }else {
  5804. alert("获取失败!");
  5805. }
  5806. },
  5807. "complete": function(){
  5808. layer.close(tip);
  5809. }
  5810. });
  5811. }else {
  5812. alert("请选择日期!");
  5813. }
  5814. },
  5815. "set" : function(){
  5816. if ( $("#fpid option:selected").text() !=""){
  5817. var tip = layer.load(2);
  5818. var gitem = $("#form1").serialize();
  5819. var jrjc;
  5820. if ($("#jrjc").prop('checked') == true){
  5821. jrjc = $("#departmentId").val();
  5822. }else {
  5823. jrjc ='N'
  5824. }
  5825. var url = "saverk.do";
  5826. $.ajax({
  5827. "url" : url,
  5828. "data" : {
  5829. "gitem" : gitem,
  5830. "jrjc" : jrjc
  5831. },
  5832. "type" : "POST",
  5833. "dataType" : "json",
  5834. "async" : true,
  5835. "success" : function(data) {
  5836. if(data.status ="success"){
  5837. alert("入库成功!");
  5838. window.location.reload();
  5839. }else {
  5840. alert(msg);
  5841. }
  5842. },
  5843. "error": function(){
  5844. alert("确认失败!");
  5845. },
  5846. "complete": function(){
  5847. layer.close(tip);
  5848. }
  5849. });
  5850. }else {
  5851. alert("请选择发票!");
  5852. }
  5853. }
  5854. }
  5855. function getfp(){
  5856. var tip = layer.load(2);
  5857. var url = "getgyfp.do";
  5858. $.ajax({
  5859. "url" : url,
  5860. "type" : "POST",
  5861. "dataType" : "json",
  5862. "async" : true,
  5863. "success" : function(data) {
  5864. if(data != null && data != ""){
  5865. $("#fpid").empty();
  5866. $("#fpid").append("_$tag_____________$tag____");
  5867. for(var i = 0; i < data.length; i++){
  5868. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5869. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5870. }
  5871. }
  5872. },
  5873. "error" : function(msg){
  5874. },
  5875. "complete": function(){
  5876. layer.close(tip);
  5877. }
  5878. });
  5879. }
  5880. $("#fpid").change(function(){
  5881. var tip = layer.load(2);
  5882. var url = "getgyrkxx.do";
  5883. $.ajax({
  5884. "url" : url,
  5885. "data" : {
  5886. "fpId" : $("#fpid").val()
  5887. },
  5888. "type" : "POST",
  5889. "dataType" : "json",
  5890. "async" : true,
  5891. "success" : function(data) {
  5892. $("#dataTable").html("");
  5893. if(data != null && data != ""){
  5894. var html = "";
  5895. for(var i = 0; i < data.length; i++){
  5896. var ID = data[i].id == null ? "" : data[i].id;
  5897. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5898. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5899. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5900. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5901. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5902. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5903. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5904. var NAME = data[i].name == null ? "" : data[i].name;
  5905. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5906. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5907. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5908. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5909. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5910. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5911. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5912. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5913. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5914. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5915. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5916. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5917. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5918. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5919. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5920. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5921. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5922. var invoice_type_cn =null;
  5923. if (invoice_type =="00" ){
  5924. invoice_type_cn="销售发票";
  5925. }else if (invoice_type == "01") {
  5926. invoice_type_cn="更正(对冲)发票";
  5927. }else if (invoice_type == "02") {
  5928. invoice_type_cn="其它类型发票";
  5929. }
  5930. html += "_$ta";
  5931. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5932. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5933. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5934. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5935. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5936. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5937. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5938. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5939. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5940. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5941. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5942. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5943. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5944. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5945. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5946. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5947. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5948. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5949. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5950. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5951. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5952. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5953. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  5954. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  5955. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  5956. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  5957. html += "_$tag";
  5958. }
  5959. $("#dataTable").html(html);
  5960. }else {
  5961. $("#dataTable").html("");
  5962. }
  5963. },
  5964. "error" : function(msg){
  5965. },
  5966. "complete": function(){
  5967. layer.close(tip);
  5968. }
  5969. });
  5970. });
  5971. Date.prototype.Format = function (fmt) {
  5972. var o = {
  5973. "M+": this.getMonth() + 1, //月份
  5974. "d+": this.getDate(), //日
  5975. "h+": this.getHours(), //小时
  5976. "m+": this.getMinutes(), //分
  5977. "s+": this.getSeconds(), //秒
  5978. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5979. "S": this.getMilliseconds() //毫秒
  5980. };
  5981. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5982. for (var k in o)
  5983. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5984. return fmt;
  5985. }
  5986. $("#jrjc").change(function() {
  5987. if ($("#jrjc").prop('checked') == true){
  5988. $("#departmentId").removeAttr("disabled");
  5989. }else {
  5990. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5991. }
  5992. });
  5993. ----------------------------------- SOURCE END -------------------------------------
  5994. !STACK 0
  5995. java.lang.NullPointerException
  5996. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:57.985
  5997. !MESSAGE Error while processing working copy
  5998. !STACK 1
  5999. JavaScript Model Exception: java.lang.NullPointerException
  6000. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6001. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6002. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6003. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6004. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6005. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6006. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6007. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6008. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6009. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6010. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6011. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6012. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6013. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6014. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6015. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6016. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  6017. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  6018. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  6019. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  6020. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  6021. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  6022. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  6023. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  6024. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  6025. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  6026. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  6027. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  6028. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  6029. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  6030. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  6031. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  6032. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  6033. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  6034. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  6035. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  6036. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  6037. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  6038. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  6039. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  6040. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  6041. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6042. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  6043. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  6044. at java.lang.reflect.Method.invoke(Unknown Source)
  6045. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  6046. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  6047. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  6048. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  6049. Caused by: java.lang.NullPointerException
  6050. Caused by: java.lang.NullPointerException
  6051. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:57.986
  6052. !MESSAGE java.lang.NullPointerException
  6053. !STACK 0
  6054. java.lang.NullPointerException
  6055. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:58.623
  6056. !MESSAGE Exception occurred during problem detection:
  6057. ----------------------------------- SOURCE BEGIN -------------------------------------
  6058. (function(){WdatePicker();})();
  6059. (function(){WdatePicker();})();
  6060. (function(){Data.get();})();
  6061. (function(){Data.set();})();
  6062. (function(){search();})();
  6063. $(function(){
  6064. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6065. getfp();
  6066. });
  6067. var Data = {
  6068. "get" : function(){
  6069. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6070. var tip = layer.load(2);
  6071. var result="";
  6072. var url = "getgyxml.do";
  6073. $.ajax({
  6074. "url" : url,
  6075. "data" : {
  6076. "start_date" : $("#dateBegin").val(),
  6077. "end_date" : $("#dateEnd").val()
  6078. },
  6079. "type" : "POST",
  6080. "dataType" : "json",
  6081. "success" : function(data) {
  6082. if(data != null && data != ""){
  6083. if ( data.status =="success"){
  6084. getfp();
  6085. alert("获取成功!");
  6086. }else {
  6087. alert(data.status);
  6088. }
  6089. }else {
  6090. alert("获取失败!");
  6091. }
  6092. },
  6093. "complete": function(){
  6094. layer.close(tip);
  6095. }
  6096. });
  6097. }else {
  6098. alert("请选择日期!");
  6099. }
  6100. },
  6101. "set" : function(){
  6102. if ( $("#fpid option:selected").text() !=""){
  6103. var tip = layer.load(2);
  6104. var gitem = $("#form1").serialize();
  6105. var jrjc;
  6106. if ($("#jrjc").prop('checked') == true){
  6107. jrjc = $("#departmentId").val();
  6108. }else {
  6109. jrjc ='N'
  6110. }
  6111. var url = "saverk.do";
  6112. $.ajax({
  6113. "url" : url,
  6114. "data" : {
  6115. "gitem" : gitem,
  6116. "jrjc" : jrjc
  6117. },
  6118. "type" : "POST",
  6119. "dataType" : "json",
  6120. "async" : true,
  6121. "success" : function(data) {
  6122. if(data.status ="success"){
  6123. alert("入库成功!");
  6124. window.location.reload();
  6125. }else {
  6126. alert(msg);
  6127. }
  6128. },
  6129. "error": function(){
  6130. alert("确认失败!");
  6131. },
  6132. "complete": function(){
  6133. layer.close(tip);
  6134. }
  6135. });
  6136. }else {
  6137. alert("请选择发票!");
  6138. }
  6139. }
  6140. }
  6141. function getfp(){
  6142. var tip = layer.load(2);
  6143. var url = "getgyfp.do";
  6144. $.ajax({
  6145. "url" : url,
  6146. "type" : "POST",
  6147. "dataType" : "json",
  6148. "async" : true,
  6149. "success" : function(data) {
  6150. if(data != null && data != ""){
  6151. $("#fpid").empty();
  6152. $("#fpid").append("_$tag_____________$tag____");
  6153. for(var i = 0; i < data.length; i++){
  6154. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6155. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6156. }
  6157. }
  6158. },
  6159. "error" : function(msg){
  6160. },
  6161. "complete": function(){
  6162. layer.close(tip);
  6163. }
  6164. });
  6165. }
  6166. $("#fpid").change(function(){
  6167. var tip = layer.load(2);
  6168. var url = "getgyrkxx.do";
  6169. $.ajax({
  6170. "url" : url,
  6171. "data" : {
  6172. "fpId" : $("#fpid").val()
  6173. },
  6174. "type" : "POST",
  6175. "dataType" : "json",
  6176. "async" : true,
  6177. "success" : function(data) {
  6178. $("#dataTable").html("");
  6179. if(data != null && data != ""){
  6180. var html = "";
  6181. for(var i = 0; i < data.length; i++){
  6182. var ID = data[i].id == null ? "" : data[i].id;
  6183. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6184. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6185. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6186. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6187. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6188. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6189. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6190. var NAME = data[i].name == null ? "" : data[i].name;
  6191. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6192. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6193. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6194. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6195. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6196. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6197. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6198. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6199. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6200. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6201. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6202. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6203. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6204. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6205. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6206. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6207. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6208. var invoice_type_cn =null;
  6209. if (invoice_type =="00" ){
  6210. invoice_type_cn="销售发票";
  6211. }else if (invoice_type == "01") {
  6212. invoice_type_cn="更正(对冲)发票";
  6213. }else if (invoice_type == "02") {
  6214. invoice_type_cn="其它类型发票";
  6215. }
  6216. html += "_$ta";
  6217. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6218. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6219. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6220. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6221. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6222. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6223. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6224. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6225. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6226. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6227. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6228. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6229. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6230. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6231. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6232. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6233. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6234. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6235. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6236. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6237. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6238. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6239. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6240. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  6241. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  6242. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  6243. html += "_$tag";
  6244. }
  6245. $("#dataTable").html(html);
  6246. }else {
  6247. $("#dataTable").html("");
  6248. }
  6249. },
  6250. "error" : function(msg){
  6251. },
  6252. "complete": function(){
  6253. layer.close(tip);
  6254. }
  6255. });
  6256. });
  6257. Date.prototype.Format = function (fmt) {
  6258. var o = {
  6259. "M+": this.getMonth() + 1, //月份
  6260. "d+": this.getDate(), //日
  6261. "h+": this.getHours(), //小时
  6262. "m+": this.getMinutes(), //分
  6263. "s+": this.getSeconds(), //秒
  6264. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6265. "S": this.getMilliseconds() //毫秒
  6266. };
  6267. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6268. for (var k in o)
  6269. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6270. return fmt;
  6271. }
  6272. $("#jrjc").change(function() {
  6273. if ($("#jrjc").prop('checked') == true){
  6274. $("#departmentId").removeAttr("disabled");
  6275. }else {
  6276. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6277. }
  6278. });
  6279. ----------------------------------- SOURCE END -------------------------------------
  6280. !STACK 0
  6281. java.lang.NullPointerException
  6282. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:59.248
  6283. !MESSAGE Exception occurred during problem detection:
  6284. ----------------------------------- SOURCE BEGIN -------------------------------------
  6285. (function(){WdatePicker();})();
  6286. (function(){WdatePicker();})();
  6287. (function(){Data.get();})();
  6288. (function(){Data.set();})();
  6289. (function(){search();})();
  6290. $(function(){
  6291. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6292. getfp();
  6293. });
  6294. var Data = {
  6295. "get" : function(){
  6296. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6297. var tip = layer.load(2);
  6298. var result="";
  6299. var url = "getgyxml.do";
  6300. $.ajax({
  6301. "url" : url,
  6302. "data" : {
  6303. "start_date" : $("#dateBegin").val(),
  6304. "end_date" : $("#dateEnd").val()
  6305. },
  6306. "type" : "POST",
  6307. "dataType" : "json",
  6308. "success" : function(data) {
  6309. if(data != null && data != ""){
  6310. if ( data.status =="success"){
  6311. getfp();
  6312. alert("获取成功!");
  6313. }else {
  6314. alert(data.status);
  6315. }
  6316. }else {
  6317. alert("获取失败!");
  6318. }
  6319. },
  6320. "complete": function(){
  6321. layer.close(tip);
  6322. }
  6323. });
  6324. }else {
  6325. alert("请选择日期!");
  6326. }
  6327. },
  6328. "set" : function(){
  6329. if ( $("#fpid option:selected").text() !=""){
  6330. var tip = layer.load(2);
  6331. var gitem = $("#form1").serialize();
  6332. var jrjc;
  6333. if ($("#jrjc").prop('checked') == true){
  6334. jrjc = $("#departmentId").val();
  6335. }else {
  6336. jrjc ='N'
  6337. }
  6338. var url = "saverk.do";
  6339. $.ajax({
  6340. "url" : url,
  6341. "data" : {
  6342. "gitem" : gitem,
  6343. "jrjc" : jrjc
  6344. },
  6345. "type" : "POST",
  6346. "dataType" : "json",
  6347. "async" : true,
  6348. "success" : function(data) {
  6349. if(data.status ="success"){
  6350. alert("入库成功!");
  6351. window.location.reload();
  6352. }else {
  6353. alert(msg);
  6354. }
  6355. },
  6356. "error": function(){
  6357. alert("确认失败!");
  6358. },
  6359. "complete": function(){
  6360. layer.close(tip);
  6361. }
  6362. });
  6363. }else {
  6364. alert("请选择发票!");
  6365. }
  6366. }
  6367. }
  6368. function getfp(){
  6369. var tip = layer.load(2);
  6370. var url = "getgyfp.do";
  6371. $.ajax({
  6372. "url" : url,
  6373. "type" : "POST",
  6374. "dataType" : "json",
  6375. "async" : true,
  6376. "success" : function(data) {
  6377. if(data != null && data != ""){
  6378. $("#fpid").empty();
  6379. $("#fpid").append("_$tag_____________$tag____");
  6380. for(var i = 0; i < data.length; i++){
  6381. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6382. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6383. }
  6384. }
  6385. },
  6386. "error" : function(msg){
  6387. },
  6388. "complete": function(){
  6389. layer.close(tip);
  6390. }
  6391. });
  6392. }
  6393. $("#fpid").change(function(){
  6394. var tip = layer.load(2);
  6395. var url = "getgyrkxx.do";
  6396. $.ajax({
  6397. "url" : url,
  6398. "data" : {
  6399. "fpId" : $("#fpid").val()
  6400. },
  6401. "type" : "POST",
  6402. "dataType" : "json",
  6403. "async" : true,
  6404. "success" : function(data) {
  6405. $("#dataTable").html("");
  6406. if(data != null && data != ""){
  6407. var html = "";
  6408. for(var i = 0; i < data.length; i++){
  6409. var ID = data[i].id == null ? "" : data[i].id;
  6410. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6411. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6412. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6413. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6414. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6415. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6416. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6417. var NAME = data[i].name == null ? "" : data[i].name;
  6418. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6419. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6420. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6421. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6422. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6423. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6424. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6425. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6426. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6427. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6428. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6429. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6430. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6431. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6432. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6433. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6434. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6435. var invoice_type_cn =null;
  6436. if (invoice_type =="00" ){
  6437. invoice_type_cn="销售发票";
  6438. }else if (invoice_type == "01") {
  6439. invoice_type_cn="更正(对冲)发票";
  6440. }else if (invoice_type == "02") {
  6441. invoice_type_cn="其它类型发票";
  6442. }
  6443. html += "_$ta";
  6444. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6445. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6446. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6447. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6448. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6449. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6450. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6451. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6452. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6453. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6454. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6455. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6456. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6457. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6458. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6459. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6460. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6461. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6462. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6463. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6464. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6465. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6466. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6467. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  6468. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  6469. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  6470. html += "_$tag";
  6471. }
  6472. $("#dataTable").html(html);
  6473. }else {
  6474. $("#dataTable").html("");
  6475. }
  6476. },
  6477. "error" : function(msg){
  6478. },
  6479. "complete": function(){
  6480. layer.close(tip);
  6481. }
  6482. });
  6483. });
  6484. Date.prototype.Format = function (fmt) {
  6485. var o = {
  6486. "M+": this.getMonth() + 1, //月份
  6487. "d+": this.getDate(), //日
  6488. "h+": this.getHours(), //小时
  6489. "m+": this.getMinutes(), //分
  6490. "s+": this.getSeconds(), //秒
  6491. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6492. "S": this.getMilliseconds() //毫秒
  6493. };
  6494. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6495. for (var k in o)
  6496. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6497. return fmt;
  6498. }
  6499. $("#jrjc").change(function() {
  6500. if ($("#jrjc").prop('checked') == true){
  6501. $("#departmentId").removeAttr("disabled");
  6502. }else {
  6503. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6504. }
  6505. });
  6506. ----------------------------------- SOURCE END -------------------------------------
  6507. !STACK 0
  6508. java.lang.NullPointerException
  6509. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:18:59.248
  6510. !MESSAGE java.lang.NullPointerException
  6511. !STACK 1
  6512. JavaScript Model Exception: java.lang.NullPointerException
  6513. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6514. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  6515. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6516. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6517. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  6518. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  6519. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  6520. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  6521. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  6522. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  6523. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  6524. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  6525. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  6526. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  6527. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  6528. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  6529. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  6530. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  6531. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  6532. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  6533. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  6534. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  6535. Caused by: java.lang.NullPointerException
  6536. Caused by: java.lang.NullPointerException
  6537. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:59.248
  6538. !MESSAGE java.lang.NullPointerException
  6539. !STACK 0
  6540. java.lang.NullPointerException
  6541. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:59.642
  6542. !MESSAGE Exception occurred during problem detection:
  6543. ----------------------------------- SOURCE BEGIN -------------------------------------
  6544. (function(){WdatePicker();})();
  6545. (function(){WdatePicker();})();
  6546. (function(){Data.get();})();
  6547. (function(){Data.set();})();
  6548. (function(){search();})();
  6549. $(function(){
  6550. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6551. getfp();
  6552. });
  6553. var Data = {
  6554. "get" : function(){
  6555. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6556. var tip = layer.load(2);
  6557. var result="";
  6558. var url = "getgyxml.do";
  6559. $.ajax({
  6560. "url" : url,
  6561. "data" : {
  6562. "start_date" : $("#dateBegin").val(),
  6563. "end_date" : $("#dateEnd").val()
  6564. },
  6565. "type" : "POST",
  6566. "dataType" : "json",
  6567. "success" : function(data) {
  6568. if(data != null && data != ""){
  6569. if ( data.status =="success"){
  6570. getfp();
  6571. alert("获取成功!");
  6572. }else {
  6573. alert(data.status);
  6574. }
  6575. }else {
  6576. alert("获取失败!");
  6577. }
  6578. },
  6579. "complete": function(){
  6580. layer.close(tip);
  6581. }
  6582. });
  6583. }else {
  6584. alert("请选择日期!");
  6585. }
  6586. },
  6587. "set" : function(){
  6588. if ( $("#fpid option:selected").text() !=""){
  6589. var tip = layer.load(2);
  6590. var gitem = $("#form1").serialize();
  6591. var jrjc;
  6592. if ($("#jrjc").prop('checked') == true){
  6593. jrjc = $("#departmentId").val();
  6594. }else {
  6595. jrjc ='N'
  6596. }
  6597. var url = "saverk.do";
  6598. $.ajax({
  6599. "url" : url,
  6600. "data" : {
  6601. "gitem" : gitem,
  6602. "jrjc" : jrjc
  6603. },
  6604. "type" : "POST",
  6605. "dataType" : "json",
  6606. "async" : true,
  6607. "success" : function(data) {
  6608. if(data.status ="success"){
  6609. alert("入库成功!");
  6610. window.location.reload();
  6611. }else {
  6612. alert(msg);
  6613. }
  6614. },
  6615. "error": function(){
  6616. alert("确认失败!");
  6617. },
  6618. "complete": function(){
  6619. layer.close(tip);
  6620. }
  6621. });
  6622. }else {
  6623. alert("请选择发票!");
  6624. }
  6625. }
  6626. }
  6627. function getfp(){
  6628. var tip = layer.load(2);
  6629. var url = "getgyfp.do";
  6630. $.ajax({
  6631. "url" : url,
  6632. "type" : "POST",
  6633. "dataType" : "json",
  6634. "async" : true,
  6635. "success" : function(data) {
  6636. if(data != null && data != ""){
  6637. $("#fpid").empty();
  6638. $("#fpid").append("_$tag_____________$tag____");
  6639. for(var i = 0; i < data.length; i++){
  6640. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6641. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6642. }
  6643. }
  6644. },
  6645. "error" : function(msg){
  6646. },
  6647. "complete": function(){
  6648. layer.close(tip);
  6649. }
  6650. });
  6651. }
  6652. $("#fpid").change(function(){
  6653. var tip = layer.load(2);
  6654. var url = "getgyrkxx.do";
  6655. $.ajax({
  6656. "url" : url,
  6657. "data" : {
  6658. "fpId" : $("#fpid").val()
  6659. },
  6660. "type" : "POST",
  6661. "dataType" : "json",
  6662. "async" : true,
  6663. "success" : function(data) {
  6664. $("#dataTable").html("");
  6665. if(data != null && data != ""){
  6666. var html = "";
  6667. for(var i = 0; i < data.length; i++){
  6668. var ID = data[i].id == null ? "" : data[i].id;
  6669. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6670. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6671. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6672. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6673. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6674. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6675. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6676. var NAME = data[i].name == null ? "" : data[i].name;
  6677. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6678. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6679. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6680. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6681. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6682. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6683. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6684. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6685. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6686. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6687. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6688. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6689. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6690. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6691. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6692. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6693. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6694. var invoice_type_cn =null;
  6695. if (invoice_type =="00" ){
  6696. invoice_type_cn="销售发票";
  6697. }else if (invoice_type == "01") {
  6698. invoice_type_cn="更正(对冲)发票";
  6699. }else if (invoice_type == "02") {
  6700. invoice_type_cn="其它类型发票";
  6701. }
  6702. html += "_$ta";
  6703. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6704. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6705. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6706. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6707. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6708. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6709. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6710. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6711. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6712. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6713. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6714. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6715. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6716. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6717. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6718. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6719. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6720. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6721. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6722. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6723. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6724. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6725. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  6726. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  6727. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  6728. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  6729. html += "_$tag";
  6730. }
  6731. $("#dataTable").html(html);
  6732. }else {
  6733. $("#dataTable").html("");
  6734. }
  6735. },
  6736. "error" : function(msg){
  6737. },
  6738. "complete": function(){
  6739. layer.close(tip);
  6740. }
  6741. });
  6742. });
  6743. Date.prototype.Format = function (fmt) {
  6744. var o = {
  6745. "M+": this.getMonth() + 1, //月份
  6746. "d+": this.getDate(), //日
  6747. "h+": this.getHours(), //小时
  6748. "m+": this.getMinutes(), //分
  6749. "s+": this.getSeconds(), //秒
  6750. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6751. "S": this.getMilliseconds() //毫秒
  6752. };
  6753. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6754. for (var k in o)
  6755. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6756. return fmt;
  6757. }
  6758. $("#jrjc").change(function() {
  6759. if ($("#jrjc").prop('checked') == true){
  6760. $("#departmentId").removeAttr("disabled");
  6761. }else {
  6762. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6763. }
  6764. });
  6765. ----------------------------------- SOURCE END -------------------------------------
  6766. !STACK 0
  6767. java.lang.NullPointerException
  6768. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:18:59.643
  6769. !MESSAGE Error while processing working copy
  6770. !STACK 1
  6771. JavaScript Model Exception: java.lang.NullPointerException
  6772. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6773. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6774. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6775. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6776. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6777. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6778. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6779. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6780. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6781. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6782. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6783. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6784. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6785. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6786. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6787. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6788. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  6789. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  6790. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  6791. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  6792. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  6793. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  6794. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  6795. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  6796. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  6797. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  6798. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  6799. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  6800. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  6801. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  6802. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  6803. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  6804. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  6805. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  6806. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  6807. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  6808. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  6809. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  6810. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  6811. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  6812. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  6813. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6814. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  6815. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  6816. at java.lang.reflect.Method.invoke(Unknown Source)
  6817. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  6818. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  6819. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  6820. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  6821. Caused by: java.lang.NullPointerException
  6822. Caused by: java.lang.NullPointerException
  6823. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:18:59.643
  6824. !MESSAGE java.lang.NullPointerException
  6825. !STACK 0
  6826. java.lang.NullPointerException
  6827. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:00.302
  6828. !MESSAGE Exception occurred during problem detection:
  6829. ----------------------------------- SOURCE BEGIN -------------------------------------
  6830. (function(){WdatePicker();})();
  6831. (function(){WdatePicker();})();
  6832. (function(){Data.get();})();
  6833. (function(){Data.set();})();
  6834. (function(){search();})();
  6835. $(function(){
  6836. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6837. getfp();
  6838. });
  6839. var Data = {
  6840. "get" : function(){
  6841. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6842. var tip = layer.load(2);
  6843. var result="";
  6844. var url = "getgyxml.do";
  6845. $.ajax({
  6846. "url" : url,
  6847. "data" : {
  6848. "start_date" : $("#dateBegin").val(),
  6849. "end_date" : $("#dateEnd").val()
  6850. },
  6851. "type" : "POST",
  6852. "dataType" : "json",
  6853. "success" : function(data) {
  6854. if(data != null && data != ""){
  6855. if ( data.status =="success"){
  6856. getfp();
  6857. alert("获取成功!");
  6858. }else {
  6859. alert(data.status);
  6860. }
  6861. }else {
  6862. alert("获取失败!");
  6863. }
  6864. },
  6865. "complete": function(){
  6866. layer.close(tip);
  6867. }
  6868. });
  6869. }else {
  6870. alert("请选择日期!");
  6871. }
  6872. },
  6873. "set" : function(){
  6874. if ( $("#fpid option:selected").text() !=""){
  6875. var tip = layer.load(2);
  6876. var gitem = $("#form1").serialize();
  6877. var jrjc;
  6878. if ($("#jrjc").prop('checked') == true){
  6879. jrjc = $("#departmentId").val();
  6880. }else {
  6881. jrjc ='N'
  6882. }
  6883. var url = "saverk.do";
  6884. $.ajax({
  6885. "url" : url,
  6886. "data" : {
  6887. "gitem" : gitem,
  6888. "jrjc" : jrjc
  6889. },
  6890. "type" : "POST",
  6891. "dataType" : "json",
  6892. "async" : true,
  6893. "success" : function(data) {
  6894. if(data.status ="success"){
  6895. alert("入库成功!");
  6896. window.location.reload();
  6897. }else {
  6898. alert(msg);
  6899. }
  6900. },
  6901. "error": function(){
  6902. alert("确认失败!");
  6903. },
  6904. "complete": function(){
  6905. layer.close(tip);
  6906. }
  6907. });
  6908. }else {
  6909. alert("请选择发票!");
  6910. }
  6911. }
  6912. }
  6913. function getfp(){
  6914. var tip = layer.load(2);
  6915. var url = "getgyfp.do";
  6916. $.ajax({
  6917. "url" : url,
  6918. "type" : "POST",
  6919. "dataType" : "json",
  6920. "async" : true,
  6921. "success" : function(data) {
  6922. if(data != null && data != ""){
  6923. $("#fpid").empty();
  6924. $("#fpid").append("_$tag_____________$tag____");
  6925. for(var i = 0; i < data.length; i++){
  6926. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6927. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6928. }
  6929. }
  6930. },
  6931. "error" : function(msg){
  6932. },
  6933. "complete": function(){
  6934. layer.close(tip);
  6935. }
  6936. });
  6937. }
  6938. $("#fpid").change(function(){
  6939. var tip = layer.load(2);
  6940. var url = "getgyrkxx.do";
  6941. $.ajax({
  6942. "url" : url,
  6943. "data" : {
  6944. "fpId" : $("#fpid").val()
  6945. },
  6946. "type" : "POST",
  6947. "dataType" : "json",
  6948. "async" : true,
  6949. "success" : function(data) {
  6950. $("#dataTable").html("");
  6951. if(data != null && data != ""){
  6952. var html = "";
  6953. for(var i = 0; i < data.length; i++){
  6954. var ID = data[i].id == null ? "" : data[i].id;
  6955. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6956. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6957. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6958. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6959. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6960. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6961. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6962. var NAME = data[i].name == null ? "" : data[i].name;
  6963. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6964. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6965. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6966. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6967. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6968. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6969. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6970. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6971. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6972. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6973. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6974. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6975. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6976. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6977. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6978. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6979. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6980. var invoice_type_cn =null;
  6981. if (invoice_type =="00" ){
  6982. invoice_type_cn="销售发票";
  6983. }else if (invoice_type == "01") {
  6984. invoice_type_cn="更正(对冲)发票";
  6985. }else if (invoice_type == "02") {
  6986. invoice_type_cn="其它类型发票";
  6987. }
  6988. html += "_$ta";
  6989. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6990. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6991. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6992. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6993. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6994. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6995. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6996. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6997. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6998. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6999. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7000. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7001. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7002. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7003. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7004. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7005. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7006. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7007. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7008. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7009. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7010. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7011. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7012. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  7013. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  7014. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  7015. html += "_$tag";
  7016. }
  7017. $("#dataTable").html(html);
  7018. }else {
  7019. $("#dataTable").html("");
  7020. }
  7021. },
  7022. "error" : function(msg){
  7023. },
  7024. "complete": function(){
  7025. layer.close(tip);
  7026. }
  7027. });
  7028. });
  7029. Date.prototype.Format = function (fmt) {
  7030. var o = {
  7031. "M+": this.getMonth() + 1, //月份
  7032. "d+": this.getDate(), //日
  7033. "h+": this.getHours(), //小时
  7034. "m+": this.getMinutes(), //分
  7035. "s+": this.getSeconds(), //秒
  7036. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7037. "S": this.getMilliseconds() //毫秒
  7038. };
  7039. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7040. for (var k in o)
  7041. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7042. return fmt;
  7043. }
  7044. $("#jrjc").change(function() {
  7045. if ($("#jrjc").prop('checked') == true){
  7046. $("#departmentId").removeAttr("disabled");
  7047. }else {
  7048. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7049. }
  7050. });
  7051. ----------------------------------- SOURCE END -------------------------------------
  7052. !STACK 0
  7053. java.lang.NullPointerException
  7054. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:00.959
  7055. !MESSAGE Exception occurred during problem detection:
  7056. ----------------------------------- SOURCE BEGIN -------------------------------------
  7057. (function(){WdatePicker();})();
  7058. (function(){WdatePicker();})();
  7059. (function(){Data.get();})();
  7060. (function(){Data.set();})();
  7061. (function(){search();})();
  7062. $(function(){
  7063. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7064. getfp();
  7065. });
  7066. var Data = {
  7067. "get" : function(){
  7068. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7069. var tip = layer.load(2);
  7070. var result="";
  7071. var url = "getgyxml.do";
  7072. $.ajax({
  7073. "url" : url,
  7074. "data" : {
  7075. "start_date" : $("#dateBegin").val(),
  7076. "end_date" : $("#dateEnd").val()
  7077. },
  7078. "type" : "POST",
  7079. "dataType" : "json",
  7080. "success" : function(data) {
  7081. if(data != null && data != ""){
  7082. if ( data.status =="success"){
  7083. getfp();
  7084. alert("获取成功!");
  7085. }else {
  7086. alert(data.status);
  7087. }
  7088. }else {
  7089. alert("获取失败!");
  7090. }
  7091. },
  7092. "complete": function(){
  7093. layer.close(tip);
  7094. }
  7095. });
  7096. }else {
  7097. alert("请选择日期!");
  7098. }
  7099. },
  7100. "set" : function(){
  7101. if ( $("#fpid option:selected").text() !=""){
  7102. var tip = layer.load(2);
  7103. var gitem = $("#form1").serialize();
  7104. var jrjc;
  7105. if ($("#jrjc").prop('checked') == true){
  7106. jrjc = $("#departmentId").val();
  7107. }else {
  7108. jrjc ='N'
  7109. }
  7110. var url = "saverk.do";
  7111. $.ajax({
  7112. "url" : url,
  7113. "data" : {
  7114. "gitem" : gitem,
  7115. "jrjc" : jrjc
  7116. },
  7117. "type" : "POST",
  7118. "dataType" : "json",
  7119. "async" : true,
  7120. "success" : function(data) {
  7121. if(data.status ="success"){
  7122. alert("入库成功!");
  7123. window.location.reload();
  7124. }else {
  7125. alert(msg);
  7126. }
  7127. },
  7128. "error": function(){
  7129. alert("确认失败!");
  7130. },
  7131. "complete": function(){
  7132. layer.close(tip);
  7133. }
  7134. });
  7135. }else {
  7136. alert("请选择发票!");
  7137. }
  7138. }
  7139. }
  7140. function getfp(){
  7141. var tip = layer.load(2);
  7142. var url = "getgyfp.do";
  7143. $.ajax({
  7144. "url" : url,
  7145. "type" : "POST",
  7146. "dataType" : "json",
  7147. "async" : true,
  7148. "success" : function(data) {
  7149. if(data != null && data != ""){
  7150. $("#fpid").empty();
  7151. $("#fpid").append("_$tag_____________$tag____");
  7152. for(var i = 0; i < data.length; i++){
  7153. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7154. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7155. }
  7156. }
  7157. },
  7158. "error" : function(msg){
  7159. },
  7160. "complete": function(){
  7161. layer.close(tip);
  7162. }
  7163. });
  7164. }
  7165. $("#fpid").change(function(){
  7166. var tip = layer.load(2);
  7167. var url = "getgyrkxx.do";
  7168. $.ajax({
  7169. "url" : url,
  7170. "data" : {
  7171. "fpId" : $("#fpid").val()
  7172. },
  7173. "type" : "POST",
  7174. "dataType" : "json",
  7175. "async" : true,
  7176. "success" : function(data) {
  7177. $("#dataTable").html("");
  7178. if(data != null && data != ""){
  7179. var html = "";
  7180. for(var i = 0; i < data.length; i++){
  7181. var ID = data[i].id == null ? "" : data[i].id;
  7182. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7183. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7184. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7185. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7186. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7187. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7188. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7189. var NAME = data[i].name == null ? "" : data[i].name;
  7190. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7191. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7192. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7193. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7194. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7195. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7196. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7197. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7198. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7199. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7200. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7201. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7202. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7203. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7204. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7205. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7206. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7207. var invoice_type_cn =null;
  7208. if (invoice_type =="00" ){
  7209. invoice_type_cn="销售发票";
  7210. }else if (invoice_type == "01") {
  7211. invoice_type_cn="更正(对冲)发票";
  7212. }else if (invoice_type == "02") {
  7213. invoice_type_cn="其它类型发票";
  7214. }
  7215. html += "_$ta";
  7216. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7217. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7218. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7219. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7220. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7221. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7222. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7223. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7224. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7225. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7226. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7227. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7228. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7229. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7230. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7231. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7232. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7233. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7234. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7235. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7236. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7237. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7238. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7239. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  7240. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  7241. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  7242. html += "_$tag";
  7243. }
  7244. $("#dataTable").html(html);
  7245. }else {
  7246. $("#dataTable").html("");
  7247. }
  7248. },
  7249. "error" : function(msg){
  7250. },
  7251. "complete": function(){
  7252. layer.close(tip);
  7253. }
  7254. });
  7255. });
  7256. Date.prototype.Format = function (fmt) {
  7257. var o = {
  7258. "M+": this.getMonth() + 1, //月份
  7259. "d+": this.getDate(), //日
  7260. "h+": this.getHours(), //小时
  7261. "m+": this.getMinutes(), //分
  7262. "s+": this.getSeconds(), //秒
  7263. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7264. "S": this.getMilliseconds() //毫秒
  7265. };
  7266. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7267. for (var k in o)
  7268. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7269. return fmt;
  7270. }
  7271. $("#jrjc").change(function() {
  7272. if ($("#jrjc").prop('checked') == true){
  7273. $("#departmentId").removeAttr("disabled");
  7274. }else {
  7275. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7276. }
  7277. });
  7278. ----------------------------------- SOURCE END -------------------------------------
  7279. !STACK 0
  7280. java.lang.NullPointerException
  7281. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:00.960
  7282. !MESSAGE Error while processing working copy
  7283. !STACK 1
  7284. JavaScript Model Exception: java.lang.NullPointerException
  7285. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7286. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7287. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7288. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7289. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7290. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7291. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7292. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7293. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7294. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7295. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7296. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7297. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7298. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7299. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7300. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7301. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  7302. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  7303. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  7304. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  7305. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  7306. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  7307. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  7308. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  7309. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  7310. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  7311. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  7312. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  7313. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  7314. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  7315. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  7316. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  7317. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  7318. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  7319. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  7320. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  7321. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  7322. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  7323. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  7324. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  7325. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  7326. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  7327. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  7328. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  7329. at java.lang.reflect.Method.invoke(Unknown Source)
  7330. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  7331. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  7332. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  7333. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  7334. Caused by: java.lang.NullPointerException
  7335. Caused by: java.lang.NullPointerException
  7336. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:00.960
  7337. !MESSAGE java.lang.NullPointerException
  7338. !STACK 0
  7339. java.lang.NullPointerException
  7340. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:01.577
  7341. !MESSAGE Exception occurred during problem detection:
  7342. ----------------------------------- SOURCE BEGIN -------------------------------------
  7343. (function(){WdatePicker();})();
  7344. (function(){WdatePicker();})();
  7345. (function(){Data.get();})();
  7346. (function(){Data.set();})();
  7347. (function(){search();})();
  7348. $(function(){
  7349. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7350. getfp();
  7351. });
  7352. var Data = {
  7353. "get" : function(){
  7354. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7355. var tip = layer.load(2);
  7356. var result="";
  7357. var url = "getgyxml.do";
  7358. $.ajax({
  7359. "url" : url,
  7360. "data" : {
  7361. "start_date" : $("#dateBegin").val(),
  7362. "end_date" : $("#dateEnd").val()
  7363. },
  7364. "type" : "POST",
  7365. "dataType" : "json",
  7366. "success" : function(data) {
  7367. if(data != null && data != ""){
  7368. if ( data.status =="success"){
  7369. getfp();
  7370. alert("获取成功!");
  7371. }else {
  7372. alert(data.status);
  7373. }
  7374. }else {
  7375. alert("获取失败!");
  7376. }
  7377. },
  7378. "complete": function(){
  7379. layer.close(tip);
  7380. }
  7381. });
  7382. }else {
  7383. alert("请选择日期!");
  7384. }
  7385. },
  7386. "set" : function(){
  7387. if ( $("#fpid option:selected").text() !=""){
  7388. var tip = layer.load(2);
  7389. var gitem = $("#form1").serialize();
  7390. var jrjc;
  7391. if ($("#jrjc").prop('checked') == true){
  7392. jrjc = $("#departmentId").val();
  7393. }else {
  7394. jrjc ='N'
  7395. }
  7396. var url = "saverk.do";
  7397. $.ajax({
  7398. "url" : url,
  7399. "data" : {
  7400. "gitem" : gitem,
  7401. "jrjc" : jrjc
  7402. },
  7403. "type" : "POST",
  7404. "dataType" : "json",
  7405. "async" : true,
  7406. "success" : function(data) {
  7407. if(data.status ="success"){
  7408. alert("入库成功!");
  7409. window.location.reload();
  7410. }else {
  7411. alert(msg);
  7412. }
  7413. },
  7414. "error": function(){
  7415. alert("确认失败!");
  7416. },
  7417. "complete": function(){
  7418. layer.close(tip);
  7419. }
  7420. });
  7421. }else {
  7422. alert("请选择发票!");
  7423. }
  7424. }
  7425. }
  7426. function getfp(){
  7427. var tip = layer.load(2);
  7428. var url = "getgyfp.do";
  7429. $.ajax({
  7430. "url" : url,
  7431. "type" : "POST",
  7432. "dataType" : "json",
  7433. "async" : true,
  7434. "success" : function(data) {
  7435. if(data != null && data != ""){
  7436. $("#fpid").empty();
  7437. $("#fpid").append("_$tag_____________$tag____");
  7438. for(var i = 0; i < data.length; i++){
  7439. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7440. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7441. }
  7442. }
  7443. },
  7444. "error" : function(msg){
  7445. },
  7446. "complete": function(){
  7447. layer.close(tip);
  7448. }
  7449. });
  7450. }
  7451. $("#fpid").change(function(){
  7452. var tip = layer.load(2);
  7453. var url = "getgyrkxx.do";
  7454. $.ajax({
  7455. "url" : url,
  7456. "data" : {
  7457. "fpId" : $("#fpid").val()
  7458. },
  7459. "type" : "POST",
  7460. "dataType" : "json",
  7461. "async" : true,
  7462. "success" : function(data) {
  7463. $("#dataTable").html("");
  7464. if(data != null && data != ""){
  7465. var html = "";
  7466. for(var i = 0; i < data.length; i++){
  7467. var ID = data[i].id == null ? "" : data[i].id;
  7468. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7469. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7470. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7471. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7472. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7473. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7474. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7475. var NAME = data[i].name == null ? "" : data[i].name;
  7476. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7477. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7478. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7479. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7480. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7481. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7482. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7483. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7484. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7485. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7486. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7487. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7488. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7489. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7490. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7491. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7492. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7493. var invoice_type_cn =null;
  7494. if (invoice_type =="00" ){
  7495. invoice_type_cn="销售发票";
  7496. }else if (invoice_type == "01") {
  7497. invoice_type_cn="更正(对冲)发票";
  7498. }else if (invoice_type == "02") {
  7499. invoice_type_cn="其它类型发票";
  7500. }
  7501. html += "_$ta";
  7502. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7503. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7504. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7505. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7506. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7507. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7508. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7509. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7510. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7511. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7512. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7513. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7514. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7515. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7516. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7517. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7518. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7519. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7520. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7521. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7522. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7523. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7524. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7525. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  7526. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  7527. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  7528. html += "_$tag";
  7529. }
  7530. $("#dataTable").html(html);
  7531. }else {
  7532. $("#dataTable").html("");
  7533. }
  7534. },
  7535. "error" : function(msg){
  7536. },
  7537. "complete": function(){
  7538. layer.close(tip);
  7539. }
  7540. });
  7541. });
  7542. Date.prototype.Format = function (fmt) {
  7543. var o = {
  7544. "M+": this.getMonth() + 1, //月份
  7545. "d+": this.getDate(), //日
  7546. "h+": this.getHours(), //小时
  7547. "m+": this.getMinutes(), //分
  7548. "s+": this.getSeconds(), //秒
  7549. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7550. "S": this.getMilliseconds() //毫秒
  7551. };
  7552. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7553. for (var k in o)
  7554. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7555. return fmt;
  7556. }
  7557. $("#jrjc").change(function() {
  7558. if ($("#jrjc").prop('checked') == true){
  7559. $("#departmentId").removeAttr("disabled");
  7560. }else {
  7561. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7562. }
  7563. });
  7564. ----------------------------------- SOURCE END -------------------------------------
  7565. !STACK 0
  7566. java.lang.NullPointerException
  7567. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:02.092
  7568. !MESSAGE Exception occurred during problem detection:
  7569. ----------------------------------- SOURCE BEGIN -------------------------------------
  7570. (function(){WdatePicker();})();
  7571. (function(){WdatePicker();})();
  7572. (function(){Data.get();})();
  7573. (function(){Data.set();})();
  7574. (function(){search();})();
  7575. $(function(){
  7576. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7577. getfp();
  7578. });
  7579. var Data = {
  7580. "get" : function(){
  7581. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7582. var tip = layer.load(2);
  7583. var result="";
  7584. var url = "getgyxml.do";
  7585. $.ajax({
  7586. "url" : url,
  7587. "data" : {
  7588. "start_date" : $("#dateBegin").val(),
  7589. "end_date" : $("#dateEnd").val()
  7590. },
  7591. "type" : "POST",
  7592. "dataType" : "json",
  7593. "success" : function(data) {
  7594. if(data != null && data != ""){
  7595. if ( data.status =="success"){
  7596. getfp();
  7597. alert("获取成功!");
  7598. }else {
  7599. alert(data.status);
  7600. }
  7601. }else {
  7602. alert("获取失败!");
  7603. }
  7604. },
  7605. "complete": function(){
  7606. layer.close(tip);
  7607. }
  7608. });
  7609. }else {
  7610. alert("请选择日期!");
  7611. }
  7612. },
  7613. "set" : function(){
  7614. if ( $("#fpid option:selected").text() !=""){
  7615. var tip = layer.load(2);
  7616. var gitem = $("#form1").serialize();
  7617. var jrjc;
  7618. if ($("#jrjc").prop('checked') == true){
  7619. jrjc = $("#departmentId").val();
  7620. }else {
  7621. jrjc ='N'
  7622. }
  7623. var url = "saverk.do";
  7624. $.ajax({
  7625. "url" : url,
  7626. "data" : {
  7627. "gitem" : gitem,
  7628. "jrjc" : jrjc
  7629. },
  7630. "type" : "POST",
  7631. "dataType" : "json",
  7632. "async" : true,
  7633. "success" : function(data) {
  7634. if(data.status ="success"){
  7635. alert("入库成功!");
  7636. window.location.reload();
  7637. }else {
  7638. alert(msg);
  7639. }
  7640. },
  7641. "error": function(){
  7642. alert("确认失败!");
  7643. },
  7644. "complete": function(){
  7645. layer.close(tip);
  7646. }
  7647. });
  7648. }else {
  7649. alert("请选择发票!");
  7650. }
  7651. }
  7652. }
  7653. function getfp(){
  7654. var tip = layer.load(2);
  7655. var url = "getgyfp.do";
  7656. $.ajax({
  7657. "url" : url,
  7658. "type" : "POST",
  7659. "dataType" : "json",
  7660. "async" : true,
  7661. "success" : function(data) {
  7662. if(data != null && data != ""){
  7663. $("#fpid").empty();
  7664. $("#fpid").append("_$tag_____________$tag____");
  7665. for(var i = 0; i < data.length; i++){
  7666. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7667. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7668. }
  7669. }
  7670. },
  7671. "error" : function(msg){
  7672. },
  7673. "complete": function(){
  7674. layer.close(tip);
  7675. }
  7676. });
  7677. }
  7678. $("#fpid").change(function(){
  7679. var tip = layer.load(2);
  7680. var url = "getgyrkxx.do";
  7681. $.ajax({
  7682. "url" : url,
  7683. "data" : {
  7684. "fpId" : $("#fpid").val()
  7685. },
  7686. "type" : "POST",
  7687. "dataType" : "json",
  7688. "async" : true,
  7689. "success" : function(data) {
  7690. $("#dataTable").html("");
  7691. if(data != null && data != ""){
  7692. var html = "";
  7693. for(var i = 0; i < data.length; i++){
  7694. var ID = data[i].id == null ? "" : data[i].id;
  7695. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7696. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7697. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7698. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7699. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7700. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7701. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7702. var NAME = data[i].name == null ? "" : data[i].name;
  7703. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7704. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7705. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7706. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7707. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7708. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7709. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7710. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7711. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7712. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7713. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7714. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7715. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7716. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7717. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7718. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7719. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7720. var invoice_type_cn =null;
  7721. if (invoice_type =="00" ){
  7722. invoice_type_cn="销售发票";
  7723. }else if (invoice_type == "01") {
  7724. invoice_type_cn="更正(对冲)发票";
  7725. }else if (invoice_type == "02") {
  7726. invoice_type_cn="其它类型发票";
  7727. }
  7728. html += "_$ta";
  7729. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7730. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7731. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7732. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7733. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7734. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7735. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7736. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7737. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7738. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7739. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7740. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7741. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7742. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7743. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7744. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7745. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7746. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7747. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7748. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7749. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7750. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7751. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  7752. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  7753. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  7754. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  7755. html += "_$tag";
  7756. }
  7757. $("#dataTable").html(html);
  7758. }else {
  7759. $("#dataTable").html("");
  7760. }
  7761. },
  7762. "error" : function(msg){
  7763. },
  7764. "complete": function(){
  7765. layer.close(tip);
  7766. }
  7767. });
  7768. });
  7769. Date.prototype.Format = function (fmt) {
  7770. var o = {
  7771. "M+": this.getMonth() + 1, //月份
  7772. "d+": this.getDate(), //日
  7773. "h+": this.getHours(), //小时
  7774. "m+": this.getMinutes(), //分
  7775. "s+": this.getSeconds(), //秒
  7776. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7777. "S": this.getMilliseconds() //毫秒
  7778. };
  7779. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7780. for (var k in o)
  7781. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7782. return fmt;
  7783. }
  7784. $("#jrjc").change(function() {
  7785. if ($("#jrjc").prop('checked') == true){
  7786. $("#departmentId").removeAttr("disabled");
  7787. }else {
  7788. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7789. }
  7790. });
  7791. ----------------------------------- SOURCE END -------------------------------------
  7792. !STACK 0
  7793. java.lang.NullPointerException
  7794. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:02.092
  7795. !MESSAGE Error while processing working copy
  7796. !STACK 1
  7797. JavaScript Model Exception: java.lang.NullPointerException
  7798. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7799. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7800. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7801. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7802. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7803. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7804. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7805. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7806. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7807. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7808. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7809. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7810. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7811. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7812. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7813. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7814. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7815. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7816. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7817. Caused by: java.lang.NullPointerException
  7818. Caused by: java.lang.NullPointerException
  7819. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:02.092
  7820. !MESSAGE java.lang.NullPointerException
  7821. !STACK 0
  7822. java.lang.NullPointerException
  7823. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:03.127
  7824. !MESSAGE Exception occurred during problem detection:
  7825. ----------------------------------- SOURCE BEGIN -------------------------------------
  7826. (function(){WdatePicker();})();
  7827. (function(){WdatePicker();})();
  7828. (function(){Data.get();})();
  7829. (function(){Data.set();})();
  7830. (function(){search();})();
  7831. $(function(){
  7832. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7833. getfp();
  7834. });
  7835. var Data = {
  7836. "get" : function(){
  7837. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7838. var tip = layer.load(2);
  7839. var result="";
  7840. var url = "getgyxml.do";
  7841. $.ajax({
  7842. "url" : url,
  7843. "data" : {
  7844. "start_date" : $("#dateBegin").val(),
  7845. "end_date" : $("#dateEnd").val()
  7846. },
  7847. "type" : "POST",
  7848. "dataType" : "json",
  7849. "success" : function(data) {
  7850. if(data != null && data != ""){
  7851. if ( data.status =="success"){
  7852. getfp();
  7853. alert("获取成功!");
  7854. }else {
  7855. alert(data.status);
  7856. }
  7857. }else {
  7858. alert("获取失败!");
  7859. }
  7860. },
  7861. "complete": function(){
  7862. layer.close(tip);
  7863. }
  7864. });
  7865. }else {
  7866. alert("请选择日期!");
  7867. }
  7868. },
  7869. "set" : function(){
  7870. if ( $("#fpid option:selected").text() !=""){
  7871. var tip = layer.load(2);
  7872. var gitem = $("#form1").serialize();
  7873. var jrjc;
  7874. if ($("#jrjc").prop('checked') == true){
  7875. jrjc = $("#departmentId").val();
  7876. }else {
  7877. jrjc ='N'
  7878. }
  7879. var url = "saverk.do";
  7880. $.ajax({
  7881. "url" : url,
  7882. "data" : {
  7883. "gitem" : gitem,
  7884. "jrjc" : jrjc
  7885. },
  7886. "type" : "POST",
  7887. "dataType" : "json",
  7888. "async" : true,
  7889. "success" : function(data) {
  7890. if(data.status ="success"){
  7891. alert("入库成功!");
  7892. window.location.reload();
  7893. }else {
  7894. alert(msg);
  7895. }
  7896. },
  7897. "error": function(){
  7898. alert("确认失败!");
  7899. },
  7900. "complete": function(){
  7901. layer.close(tip);
  7902. }
  7903. });
  7904. }else {
  7905. alert("请选择发票!");
  7906. }
  7907. }
  7908. }
  7909. function getfp(){
  7910. var tip = layer.load(2);
  7911. var url = "getgyfp.do";
  7912. $.ajax({
  7913. "url" : url,
  7914. "type" : "POST",
  7915. "dataType" : "json",
  7916. "async" : true,
  7917. "success" : function(data) {
  7918. if(data != null && data != ""){
  7919. $("#fpid").empty();
  7920. $("#fpid").append("_$tag_____________$tag____");
  7921. for(var i = 0; i < data.length; i++){
  7922. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7923. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7924. }
  7925. }
  7926. },
  7927. "error" : function(msg){
  7928. },
  7929. "complete": function(){
  7930. layer.close(tip);
  7931. }
  7932. });
  7933. }
  7934. $("#fpid").change(function(){
  7935. var tip = layer.load(2);
  7936. var url = "getgyrkxx.do";
  7937. $.ajax({
  7938. "url" : url,
  7939. "data" : {
  7940. "fpId" : $("#fpid").val()
  7941. },
  7942. "type" : "POST",
  7943. "dataType" : "json",
  7944. "async" : true,
  7945. "success" : function(data) {
  7946. $("#dataTable").html("");
  7947. if(data != null && data != ""){
  7948. var html = "";
  7949. for(var i = 0; i < data.length; i++){
  7950. var ID = data[i].id == null ? "" : data[i].id;
  7951. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7952. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7953. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7954. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7955. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7956. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7957. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7958. var NAME = data[i].name == null ? "" : data[i].name;
  7959. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7960. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7961. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7962. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7963. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7964. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7965. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7966. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7967. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7968. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7969. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7970. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7971. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7972. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7973. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7974. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7975. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7976. var invoice_type_cn =null;
  7977. if (invoice_type =="00" ){
  7978. invoice_type_cn="销售发票";
  7979. }else if (invoice_type == "01") {
  7980. invoice_type_cn="更正(对冲)发票";
  7981. }else if (invoice_type == "02") {
  7982. invoice_type_cn="其它类型发票";
  7983. }
  7984. html += "_$ta";
  7985. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7986. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7988. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7989. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7990. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7991. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7992. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7993. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7994. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7995. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7996. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7997. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7998. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7999. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8000. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8001. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8002. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8003. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8004. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8005. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8006. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8007. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________$tag";
  8008. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  8009. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  8010. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  8011. html += "_$tag";
  8012. }
  8013. $("#dataTable").html(html);
  8014. }else {
  8015. $("#dataTable").html("");
  8016. }
  8017. },
  8018. "error" : function(msg){
  8019. },
  8020. "complete": function(){
  8021. layer.close(tip);
  8022. }
  8023. });
  8024. });
  8025. Date.prototype.Format = function (fmt) {
  8026. var o = {
  8027. "M+": this.getMonth() + 1, //月份
  8028. "d+": this.getDate(), //日
  8029. "h+": this.getHours(), //小时
  8030. "m+": this.getMinutes(), //分
  8031. "s+": this.getSeconds(), //秒
  8032. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8033. "S": this.getMilliseconds() //毫秒
  8034. };
  8035. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8036. for (var k in o)
  8037. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8038. return fmt;
  8039. }
  8040. $("#jrjc").change(function() {
  8041. if ($("#jrjc").prop('checked') == true){
  8042. $("#departmentId").removeAttr("disabled");
  8043. }else {
  8044. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8045. }
  8046. });
  8047. ----------------------------------- SOURCE END -------------------------------------
  8048. !STACK 0
  8049. java.lang.NullPointerException
  8050. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:11.873
  8051. !MESSAGE Exception occurred during problem detection:
  8052. ----------------------------------- SOURCE BEGIN -------------------------------------
  8053. (function(){WdatePicker();})();
  8054. (function(){WdatePicker();})();
  8055. (function(){Data.get();})();
  8056. (function(){Data.set();})();
  8057. (function(){search();})();
  8058. $(function(){
  8059. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8060. getfp();
  8061. });
  8062. var Data = {
  8063. "get" : function(){
  8064. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8065. var tip = layer.load(2);
  8066. var result="";
  8067. var url = "getgyxml.do";
  8068. $.ajax({
  8069. "url" : url,
  8070. "data" : {
  8071. "start_date" : $("#dateBegin").val(),
  8072. "end_date" : $("#dateEnd").val()
  8073. },
  8074. "type" : "POST",
  8075. "dataType" : "json",
  8076. "success" : function(data) {
  8077. if(data != null && data != ""){
  8078. if ( data.status =="success"){
  8079. getfp();
  8080. alert("获取成功!");
  8081. }else {
  8082. alert(data.status);
  8083. }
  8084. }else {
  8085. alert("获取失败!");
  8086. }
  8087. },
  8088. "complete": function(){
  8089. layer.close(tip);
  8090. }
  8091. });
  8092. }else {
  8093. alert("请选择日期!");
  8094. }
  8095. },
  8096. "set" : function(){
  8097. if ( $("#fpid option:selected").text() !=""){
  8098. var tip = layer.load(2);
  8099. var gitem = $("#form1").serialize();
  8100. var jrjc;
  8101. if ($("#jrjc").prop('checked') == true){
  8102. jrjc = $("#departmentId").val();
  8103. }else {
  8104. jrjc ='N'
  8105. }
  8106. var url = "saverk.do";
  8107. $.ajax({
  8108. "url" : url,
  8109. "data" : {
  8110. "gitem" : gitem,
  8111. "jrjc" : jrjc
  8112. },
  8113. "type" : "POST",
  8114. "dataType" : "json",
  8115. "async" : true,
  8116. "success" : function(data) {
  8117. if(data.status ="success"){
  8118. alert("入库成功!");
  8119. window.location.reload();
  8120. }else {
  8121. alert(msg);
  8122. }
  8123. },
  8124. "error": function(){
  8125. alert("确认失败!");
  8126. },
  8127. "complete": function(){
  8128. layer.close(tip);
  8129. }
  8130. });
  8131. }else {
  8132. alert("请选择发票!");
  8133. }
  8134. }
  8135. }
  8136. function getfp(){
  8137. var tip = layer.load(2);
  8138. var url = "getgyfp.do";
  8139. $.ajax({
  8140. "url" : url,
  8141. "type" : "POST",
  8142. "dataType" : "json",
  8143. "async" : true,
  8144. "success" : function(data) {
  8145. if(data != null && data != ""){
  8146. $("#fpid").empty();
  8147. $("#fpid").append("_$tag_____________$tag____");
  8148. for(var i = 0; i < data.length; i++){
  8149. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8150. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8151. }
  8152. }
  8153. },
  8154. "error" : function(msg){
  8155. },
  8156. "complete": function(){
  8157. layer.close(tip);
  8158. }
  8159. });
  8160. }
  8161. $("#fpid").change(function(){
  8162. var tip = layer.load(2);
  8163. var url = "getgyrkxx.do";
  8164. $.ajax({
  8165. "url" : url,
  8166. "data" : {
  8167. "fpId" : $("#fpid").val()
  8168. },
  8169. "type" : "POST",
  8170. "dataType" : "json",
  8171. "async" : true,
  8172. "success" : function(data) {
  8173. $("#dataTable").html("");
  8174. if(data != null && data != ""){
  8175. var html = "";
  8176. for(var i = 0; i < data.length; i++){
  8177. var ID = data[i].id == null ? "" : data[i].id;
  8178. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8179. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8180. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8181. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8182. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8183. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8184. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8185. var NAME = data[i].name == null ? "" : data[i].name;
  8186. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8187. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8188. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8189. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8190. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8191. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8192. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8193. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8194. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8195. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8196. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8197. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8198. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8199. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8200. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8201. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8202. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8203. var invoice_type_cn =null;
  8204. if (invoice_type =="00" ){
  8205. invoice_type_cn="销售发票";
  8206. }else if (invoice_type == "01") {
  8207. invoice_type_cn="更正(对冲)发票";
  8208. }else if (invoice_type == "02") {
  8209. invoice_type_cn="其它类型发票";
  8210. }
  8211. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________$tag";
  8229. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8230. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  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";
  8236. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  8237. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  8238. html += "_$tag";
  8239. }
  8240. $("#dataTable").html(html);
  8241. }else {
  8242. $("#dataTable").html("");
  8243. }
  8244. },
  8245. "error" : function(msg){
  8246. },
  8247. "complete": function(){
  8248. layer.close(tip);
  8249. }
  8250. });
  8251. });
  8252. Date.prototype.Format = function (fmt) {
  8253. var o = {
  8254. "M+": this.getMonth() + 1, //月份
  8255. "d+": this.getDate(), //日
  8256. "h+": this.getHours(), //小时
  8257. "m+": this.getMinutes(), //分
  8258. "s+": this.getSeconds(), //秒
  8259. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8260. "S": this.getMilliseconds() //毫秒
  8261. };
  8262. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8263. for (var k in o)
  8264. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8265. return fmt;
  8266. }
  8267. $("#jrjc").change(function() {
  8268. if ($("#jrjc").prop('checked') == true){
  8269. $("#departmentId").removeAttr("disabled");
  8270. }else {
  8271. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8272. }
  8273. });
  8274. ----------------------------------- SOURCE END -------------------------------------
  8275. !STACK 0
  8276. java.lang.NullPointerException
  8277. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:11.874
  8278. !MESSAGE Error while processing working copy
  8279. !STACK 1
  8280. JavaScript Model Exception: java.lang.NullPointerException
  8281. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8282. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8283. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8284. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8285. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8286. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8287. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8288. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8289. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8290. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8291. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8292. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8293. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8294. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8295. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8296. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8297. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8298. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8299. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8300. Caused by: java.lang.NullPointerException
  8301. Caused by: java.lang.NullPointerException
  8302. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:11.874
  8303. !MESSAGE java.lang.NullPointerException
  8304. !STACK 0
  8305. java.lang.NullPointerException
  8306. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:12.533
  8307. !MESSAGE Exception occurred during problem detection:
  8308. ----------------------------------- SOURCE BEGIN -------------------------------------
  8309. (function(){WdatePicker();})();
  8310. (function(){WdatePicker();})();
  8311. (function(){Data.get();})();
  8312. (function(){Data.set();})();
  8313. (function(){search();})();
  8314. $(function(){
  8315. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8316. getfp();
  8317. });
  8318. var Data = {
  8319. "get" : function(){
  8320. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8321. var tip = layer.load(2);
  8322. var result="";
  8323. var url = "getgyxml.do";
  8324. $.ajax({
  8325. "url" : url,
  8326. "data" : {
  8327. "start_date" : $("#dateBegin").val(),
  8328. "end_date" : $("#dateEnd").val()
  8329. },
  8330. "type" : "POST",
  8331. "dataType" : "json",
  8332. "success" : function(data) {
  8333. if(data != null && data != ""){
  8334. if ( data.status =="success"){
  8335. getfp();
  8336. alert("获取成功!");
  8337. }else {
  8338. alert(data.status);
  8339. }
  8340. }else {
  8341. alert("获取失败!");
  8342. }
  8343. },
  8344. "complete": function(){
  8345. layer.close(tip);
  8346. }
  8347. });
  8348. }else {
  8349. alert("请选择日期!");
  8350. }
  8351. },
  8352. "set" : function(){
  8353. if ( $("#fpid option:selected").text() !=""){
  8354. var tip = layer.load(2);
  8355. var gitem = $("#form1").serialize();
  8356. var jrjc;
  8357. if ($("#jrjc").prop('checked') == true){
  8358. jrjc = $("#departmentId").val();
  8359. }else {
  8360. jrjc ='N'
  8361. }
  8362. var url = "saverk.do";
  8363. $.ajax({
  8364. "url" : url,
  8365. "data" : {
  8366. "gitem" : gitem,
  8367. "jrjc" : jrjc
  8368. },
  8369. "type" : "POST",
  8370. "dataType" : "json",
  8371. "async" : true,
  8372. "success" : function(data) {
  8373. if(data.status ="success"){
  8374. alert("入库成功!");
  8375. window.location.reload();
  8376. }else {
  8377. alert(msg);
  8378. }
  8379. },
  8380. "error": function(){
  8381. alert("确认失败!");
  8382. },
  8383. "complete": function(){
  8384. layer.close(tip);
  8385. }
  8386. });
  8387. }else {
  8388. alert("请选择发票!");
  8389. }
  8390. }
  8391. }
  8392. function getfp(){
  8393. var tip = layer.load(2);
  8394. var url = "getgyfp.do";
  8395. $.ajax({
  8396. "url" : url,
  8397. "type" : "POST",
  8398. "dataType" : "json",
  8399. "async" : true,
  8400. "success" : function(data) {
  8401. if(data != null && data != ""){
  8402. $("#fpid").empty();
  8403. $("#fpid").append("_$tag_____________$tag____");
  8404. for(var i = 0; i < data.length; i++){
  8405. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8406. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8407. }
  8408. }
  8409. },
  8410. "error" : function(msg){
  8411. },
  8412. "complete": function(){
  8413. layer.close(tip);
  8414. }
  8415. });
  8416. }
  8417. $("#fpid").change(function(){
  8418. var tip = layer.load(2);
  8419. var url = "getgyrkxx.do";
  8420. $.ajax({
  8421. "url" : url,
  8422. "data" : {
  8423. "fpId" : $("#fpid").val()
  8424. },
  8425. "type" : "POST",
  8426. "dataType" : "json",
  8427. "async" : true,
  8428. "success" : function(data) {
  8429. $("#dataTable").html("");
  8430. if(data != null && data != ""){
  8431. var html = "";
  8432. for(var i = 0; i < data.length; i++){
  8433. var ID = data[i].id == null ? "" : data[i].id;
  8434. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8435. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8436. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8437. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8438. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8439. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8440. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8441. var NAME = data[i].name == null ? "" : data[i].name;
  8442. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8443. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8444. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8445. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8446. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8447. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8448. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8449. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8450. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8451. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8452. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8453. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8454. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8455. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8456. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8457. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8458. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8459. var invoice_type_cn =null;
  8460. if (invoice_type =="00" ){
  8461. invoice_type_cn="销售发票";
  8462. }else if (invoice_type == "01") {
  8463. invoice_type_cn="更正(对冲)发票";
  8464. }else if (invoice_type == "02") {
  8465. invoice_type_cn="其它类型发票";
  8466. }
  8467. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________$tag";
  8477. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8478. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  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";
  8484. html += "_$tag_____________$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";
  8495. }
  8496. $("#dataTable").html(html);
  8497. }else {
  8498. $("#dataTable").html("");
  8499. }
  8500. },
  8501. "error" : function(msg){
  8502. },
  8503. "complete": function(){
  8504. layer.close(tip);
  8505. }
  8506. });
  8507. });
  8508. Date.prototype.Format = function (fmt) {
  8509. var o = {
  8510. "M+": this.getMonth() + 1, //月份
  8511. "d+": this.getDate(), //日
  8512. "h+": this.getHours(), //小时
  8513. "m+": this.getMinutes(), //分
  8514. "s+": this.getSeconds(), //秒
  8515. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8516. "S": this.getMilliseconds() //毫秒
  8517. };
  8518. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8519. for (var k in o)
  8520. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8521. return fmt;
  8522. }
  8523. $("#jrjc").change(function() {
  8524. if ($("#jrjc").prop('checked') == true){
  8525. $("#departmentId").removeAttr("disabled");
  8526. }else {
  8527. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8528. }
  8529. });
  8530. ----------------------------------- SOURCE END -------------------------------------
  8531. !STACK 0
  8532. java.lang.NullPointerException
  8533. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:13.828
  8534. !MESSAGE Exception occurred during problem detection:
  8535. ----------------------------------- SOURCE BEGIN -------------------------------------
  8536. (function(){WdatePicker();})();
  8537. (function(){WdatePicker();})();
  8538. (function(){Data.get();})();
  8539. (function(){Data.set();})();
  8540. (function(){search();})();
  8541. $(function(){
  8542. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8543. getfp();
  8544. });
  8545. var Data = {
  8546. "get" : function(){
  8547. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8548. var tip = layer.load(2);
  8549. var result="";
  8550. var url = "getgyxml.do";
  8551. $.ajax({
  8552. "url" : url,
  8553. "data" : {
  8554. "start_date" : $("#dateBegin").val(),
  8555. "end_date" : $("#dateEnd").val()
  8556. },
  8557. "type" : "POST",
  8558. "dataType" : "json",
  8559. "success" : function(data) {
  8560. if(data != null && data != ""){
  8561. if ( data.status =="success"){
  8562. getfp();
  8563. alert("获取成功!");
  8564. }else {
  8565. alert(data.status);
  8566. }
  8567. }else {
  8568. alert("获取失败!");
  8569. }
  8570. },
  8571. "complete": function(){
  8572. layer.close(tip);
  8573. }
  8574. });
  8575. }else {
  8576. alert("请选择日期!");
  8577. }
  8578. },
  8579. "set" : function(){
  8580. if ( $("#fpid option:selected").text() !=""){
  8581. var tip = layer.load(2);
  8582. var gitem = $("#form1").serialize();
  8583. var jrjc;
  8584. if ($("#jrjc").prop('checked') == true){
  8585. jrjc = $("#departmentId").val();
  8586. }else {
  8587. jrjc ='N'
  8588. }
  8589. var url = "saverk.do";
  8590. $.ajax({
  8591. "url" : url,
  8592. "data" : {
  8593. "gitem" : gitem,
  8594. "jrjc" : jrjc
  8595. },
  8596. "type" : "POST",
  8597. "dataType" : "json",
  8598. "async" : true,
  8599. "success" : function(data) {
  8600. if(data.status ="success"){
  8601. alert("入库成功!");
  8602. window.location.reload();
  8603. }else {
  8604. alert(msg);
  8605. }
  8606. },
  8607. "error": function(){
  8608. alert("确认失败!");
  8609. },
  8610. "complete": function(){
  8611. layer.close(tip);
  8612. }
  8613. });
  8614. }else {
  8615. alert("请选择发票!");
  8616. }
  8617. }
  8618. }
  8619. function getfp(){
  8620. var tip = layer.load(2);
  8621. var url = "getgyfp.do";
  8622. $.ajax({
  8623. "url" : url,
  8624. "type" : "POST",
  8625. "dataType" : "json",
  8626. "async" : true,
  8627. "success" : function(data) {
  8628. if(data != null && data != ""){
  8629. $("#fpid").empty();
  8630. $("#fpid").append("_$tag_____________$tag____");
  8631. for(var i = 0; i < data.length; i++){
  8632. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8633. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8634. }
  8635. }
  8636. },
  8637. "error" : function(msg){
  8638. },
  8639. "complete": function(){
  8640. layer.close(tip);
  8641. }
  8642. });
  8643. }
  8644. $("#fpid").change(function(){
  8645. var tip = layer.load(2);
  8646. var url = "getgyrkxx.do";
  8647. $.ajax({
  8648. "url" : url,
  8649. "data" : {
  8650. "fpId" : $("#fpid").val()
  8651. },
  8652. "type" : "POST",
  8653. "dataType" : "json",
  8654. "async" : true,
  8655. "success" : function(data) {
  8656. $("#dataTable").html("");
  8657. if(data != null && data != ""){
  8658. var html = "";
  8659. for(var i = 0; i < data.length; i++){
  8660. var ID = data[i].id == null ? "" : data[i].id;
  8661. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8662. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8663. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8664. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8665. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8666. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8667. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8668. var NAME = data[i].name == null ? "" : data[i].name;
  8669. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8670. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8671. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8672. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8673. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8674. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8675. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8676. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8677. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8678. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8679. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8680. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8681. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8682. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8683. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8684. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8685. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8686. var invoice_type_cn =null;
  8687. if (invoice_type =="00" ){
  8688. invoice_type_cn="销售发票";
  8689. }else if (invoice_type == "01") {
  8690. invoice_type_cn="更正(对冲)发票";
  8691. }else if (invoice_type == "02") {
  8692. invoice_type_cn="其它类型发票";
  8693. }
  8694. html += "_$ta";
  8695. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8696. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8697. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8698. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8699. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8700. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8701. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8702. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8703. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8704. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8705. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8706. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8707. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8708. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8709. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8710. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8711. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8712. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8713. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8714. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8715. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8716. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8717. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8718. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  8719. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  8720. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  8721. html += "_$tag";
  8722. }
  8723. $("#dataTable").html(html);
  8724. }else {
  8725. $("#dataTable").html("");
  8726. }
  8727. },
  8728. "error" : function(msg){
  8729. },
  8730. "complete": function(){
  8731. layer.close(tip);
  8732. }
  8733. });
  8734. });
  8735. Date.prototype.Format = function (fmt) {
  8736. var o = {
  8737. "M+": this.getMonth() + 1, //月份
  8738. "d+": this.getDate(), //日
  8739. "h+": this.getHours(), //小时
  8740. "m+": this.getMinutes(), //分
  8741. "s+": this.getSeconds(), //秒
  8742. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8743. "S": this.getMilliseconds() //毫秒
  8744. };
  8745. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8746. for (var k in o)
  8747. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8748. return fmt;
  8749. }
  8750. $("#jrjc").change(function() {
  8751. if ($("#jrjc").prop('checked') == true){
  8752. $("#departmentId").removeAttr("disabled");
  8753. }else {
  8754. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8755. }
  8756. });
  8757. ----------------------------------- SOURCE END -------------------------------------
  8758. !STACK 0
  8759. java.lang.NullPointerException
  8760. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:19:13.829
  8761. !MESSAGE java.lang.NullPointerException
  8762. !STACK 1
  8763. JavaScript Model Exception: java.lang.NullPointerException
  8764. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8765. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8766. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8767. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8768. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8769. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8770. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8771. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8772. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8773. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8774. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8775. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8776. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8777. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8778. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8779. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8780. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8781. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8782. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8783. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8784. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8785. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8786. Caused by: java.lang.NullPointerException
  8787. Caused by: java.lang.NullPointerException
  8788. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:13.829
  8789. !MESSAGE java.lang.NullPointerException
  8790. !STACK 0
  8791. java.lang.NullPointerException
  8792. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:15.112
  8793. !MESSAGE Exception occurred during problem detection:
  8794. ----------------------------------- SOURCE BEGIN -------------------------------------
  8795. (function(){WdatePicker();})();
  8796. (function(){WdatePicker();})();
  8797. (function(){Data.get();})();
  8798. (function(){Data.set();})();
  8799. (function(){search();})();
  8800. $(function(){
  8801. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8802. getfp();
  8803. });
  8804. var Data = {
  8805. "get" : function(){
  8806. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8807. var tip = layer.load(2);
  8808. var result="";
  8809. var url = "getgyxml.do";
  8810. $.ajax({
  8811. "url" : url,
  8812. "data" : {
  8813. "start_date" : $("#dateBegin").val(),
  8814. "end_date" : $("#dateEnd").val()
  8815. },
  8816. "type" : "POST",
  8817. "dataType" : "json",
  8818. "success" : function(data) {
  8819. if(data != null && data != ""){
  8820. if ( data.status =="success"){
  8821. getfp();
  8822. alert("获取成功!");
  8823. }else {
  8824. alert(data.status);
  8825. }
  8826. }else {
  8827. alert("获取失败!");
  8828. }
  8829. },
  8830. "complete": function(){
  8831. layer.close(tip);
  8832. }
  8833. });
  8834. }else {
  8835. alert("请选择日期!");
  8836. }
  8837. },
  8838. "set" : function(){
  8839. if ( $("#fpid option:selected").text() !=""){
  8840. var tip = layer.load(2);
  8841. var gitem = $("#form1").serialize();
  8842. var jrjc;
  8843. if ($("#jrjc").prop('checked') == true){
  8844. jrjc = $("#departmentId").val();
  8845. }else {
  8846. jrjc ='N'
  8847. }
  8848. var url = "saverk.do";
  8849. $.ajax({
  8850. "url" : url,
  8851. "data" : {
  8852. "gitem" : gitem,
  8853. "jrjc" : jrjc
  8854. },
  8855. "type" : "POST",
  8856. "dataType" : "json",
  8857. "async" : true,
  8858. "success" : function(data) {
  8859. if(data.status ="success"){
  8860. alert("入库成功!");
  8861. window.location.reload();
  8862. }else {
  8863. alert(msg);
  8864. }
  8865. },
  8866. "error": function(){
  8867. alert("确认失败!");
  8868. },
  8869. "complete": function(){
  8870. layer.close(tip);
  8871. }
  8872. });
  8873. }else {
  8874. alert("请选择发票!");
  8875. }
  8876. }
  8877. }
  8878. function getfp(){
  8879. var tip = layer.load(2);
  8880. var url = "getgyfp.do";
  8881. $.ajax({
  8882. "url" : url,
  8883. "type" : "POST",
  8884. "dataType" : "json",
  8885. "async" : true,
  8886. "success" : function(data) {
  8887. if(data != null && data != ""){
  8888. $("#fpid").empty();
  8889. $("#fpid").append("_$tag_____________$tag____");
  8890. for(var i = 0; i < data.length; i++){
  8891. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8892. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8893. }
  8894. }
  8895. },
  8896. "error" : function(msg){
  8897. },
  8898. "complete": function(){
  8899. layer.close(tip);
  8900. }
  8901. });
  8902. }
  8903. $("#fpid").change(function(){
  8904. var tip = layer.load(2);
  8905. var url = "getgyrkxx.do";
  8906. $.ajax({
  8907. "url" : url,
  8908. "data" : {
  8909. "fpId" : $("#fpid").val()
  8910. },
  8911. "type" : "POST",
  8912. "dataType" : "json",
  8913. "async" : true,
  8914. "success" : function(data) {
  8915. $("#dataTable").html("");
  8916. if(data != null && data != ""){
  8917. var html = "";
  8918. for(var i = 0; i < data.length; i++){
  8919. var ID = data[i].id == null ? "" : data[i].id;
  8920. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8921. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8922. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8923. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8924. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8925. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8926. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8927. var NAME = data[i].name == null ? "" : data[i].name;
  8928. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8929. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8930. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8931. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8932. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8933. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8934. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8935. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8936. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8937. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8938. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8939. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8940. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8941. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8942. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8943. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8944. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8945. var invoice_type_cn =null;
  8946. if (invoice_type =="00" ){
  8947. invoice_type_cn="销售发票";
  8948. }else if (invoice_type == "01") {
  8949. invoice_type_cn="更正(对冲)发票";
  8950. }else if (invoice_type == "02") {
  8951. invoice_type_cn="其它类型发票";
  8952. }
  8953. html += "_$ta";
  8954. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8955. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8956. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8957. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8958. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8959. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8960. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8961. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8962. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8963. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8964. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8965. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8966. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8967. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8968. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8969. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8970. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8971. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8972. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8973. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8974. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8975. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8976. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8977. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  8978. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  8979. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  8980. html += "_$tag";
  8981. }
  8982. $("#dataTable").html(html);
  8983. }else {
  8984. $("#dataTable").html("");
  8985. }
  8986. },
  8987. "error" : function(msg){
  8988. },
  8989. "complete": function(){
  8990. layer.close(tip);
  8991. }
  8992. });
  8993. });
  8994. Date.prototype.Format = function (fmt) {
  8995. var o = {
  8996. "M+": this.getMonth() + 1, //月份
  8997. "d+": this.getDate(), //日
  8998. "h+": this.getHours(), //小时
  8999. "m+": this.getMinutes(), //分
  9000. "s+": this.getSeconds(), //秒
  9001. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9002. "S": this.getMilliseconds() //毫秒
  9003. };
  9004. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9005. for (var k in o)
  9006. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9007. return fmt;
  9008. }
  9009. $("#jrjc").change(function() {
  9010. if ($("#jrjc").prop('checked') == true){
  9011. $("#departmentId").removeAttr("disabled");
  9012. }else {
  9013. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9014. }
  9015. });
  9016. ----------------------------------- SOURCE END -------------------------------------
  9017. !STACK 0
  9018. java.lang.NullPointerException
  9019. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:15.112
  9020. !MESSAGE Error while processing working copy
  9021. !STACK 1
  9022. JavaScript Model Exception: java.lang.NullPointerException
  9023. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9024. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9025. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9026. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9027. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9028. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9029. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9030. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9031. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9032. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9033. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9034. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9035. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9036. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9037. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9038. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9039. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  9040. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  9041. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  9042. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  9043. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  9044. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  9045. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  9046. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  9047. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  9048. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  9049. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  9050. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  9051. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  9052. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  9053. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  9054. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  9055. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  9056. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  9057. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  9058. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  9059. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  9060. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  9061. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  9062. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  9063. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  9064. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  9065. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  9066. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  9067. at java.lang.reflect.Method.invoke(Unknown Source)
  9068. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  9069. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  9070. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  9071. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  9072. Caused by: java.lang.NullPointerException
  9073. Caused by: java.lang.NullPointerException
  9074. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:15.112
  9075. !MESSAGE java.lang.NullPointerException
  9076. !STACK 0
  9077. java.lang.NullPointerException
  9078. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:15.788
  9079. !MESSAGE Exception occurred during problem detection:
  9080. ----------------------------------- SOURCE BEGIN -------------------------------------
  9081. (function(){WdatePicker();})();
  9082. (function(){WdatePicker();})();
  9083. (function(){Data.get();})();
  9084. (function(){Data.set();})();
  9085. (function(){search();})();
  9086. $(function(){
  9087. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9088. getfp();
  9089. });
  9090. var Data = {
  9091. "get" : function(){
  9092. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9093. var tip = layer.load(2);
  9094. var result="";
  9095. var url = "getgyxml.do";
  9096. $.ajax({
  9097. "url" : url,
  9098. "data" : {
  9099. "start_date" : $("#dateBegin").val(),
  9100. "end_date" : $("#dateEnd").val()
  9101. },
  9102. "type" : "POST",
  9103. "dataType" : "json",
  9104. "success" : function(data) {
  9105. if(data != null && data != ""){
  9106. if ( data.status =="success"){
  9107. getfp();
  9108. alert("获取成功!");
  9109. }else {
  9110. alert(data.status);
  9111. }
  9112. }else {
  9113. alert("获取失败!");
  9114. }
  9115. },
  9116. "complete": function(){
  9117. layer.close(tip);
  9118. }
  9119. });
  9120. }else {
  9121. alert("请选择日期!");
  9122. }
  9123. },
  9124. "set" : function(){
  9125. if ( $("#fpid option:selected").text() !=""){
  9126. var tip = layer.load(2);
  9127. var gitem = $("#form1").serialize();
  9128. var jrjc;
  9129. if ($("#jrjc").prop('checked') == true){
  9130. jrjc = $("#departmentId").val();
  9131. }else {
  9132. jrjc ='N'
  9133. }
  9134. var url = "saverk.do";
  9135. $.ajax({
  9136. "url" : url,
  9137. "data" : {
  9138. "gitem" : gitem,
  9139. "jrjc" : jrjc
  9140. },
  9141. "type" : "POST",
  9142. "dataType" : "json",
  9143. "async" : true,
  9144. "success" : function(data) {
  9145. if(data.status ="success"){
  9146. alert("入库成功!");
  9147. window.location.reload();
  9148. }else {
  9149. alert(msg);
  9150. }
  9151. },
  9152. "error": function(){
  9153. alert("确认失败!");
  9154. },
  9155. "complete": function(){
  9156. layer.close(tip);
  9157. }
  9158. });
  9159. }else {
  9160. alert("请选择发票!");
  9161. }
  9162. }
  9163. }
  9164. function getfp(){
  9165. var tip = layer.load(2);
  9166. var url = "getgyfp.do";
  9167. $.ajax({
  9168. "url" : url,
  9169. "type" : "POST",
  9170. "dataType" : "json",
  9171. "async" : true,
  9172. "success" : function(data) {
  9173. if(data != null && data != ""){
  9174. $("#fpid").empty();
  9175. $("#fpid").append("_$tag_____________$tag____");
  9176. for(var i = 0; i < data.length; i++){
  9177. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9178. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9179. }
  9180. }
  9181. },
  9182. "error" : function(msg){
  9183. },
  9184. "complete": function(){
  9185. layer.close(tip);
  9186. }
  9187. });
  9188. }
  9189. $("#fpid").change(function(){
  9190. var tip = layer.load(2);
  9191. var url = "getgyrkxx.do";
  9192. $.ajax({
  9193. "url" : url,
  9194. "data" : {
  9195. "fpId" : $("#fpid").val()
  9196. },
  9197. "type" : "POST",
  9198. "dataType" : "json",
  9199. "async" : true,
  9200. "success" : function(data) {
  9201. $("#dataTable").html("");
  9202. if(data != null && data != ""){
  9203. var html = "";
  9204. for(var i = 0; i < data.length; i++){
  9205. var ID = data[i].id == null ? "" : data[i].id;
  9206. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9207. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9208. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9209. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9210. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9211. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9212. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9213. var NAME = data[i].name == null ? "" : data[i].name;
  9214. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9215. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9216. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9217. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9218. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9219. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9220. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9221. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9222. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9223. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9224. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9225. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9226. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9227. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9228. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9229. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9230. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9231. var invoice_type_cn =null;
  9232. if (invoice_type =="00" ){
  9233. invoice_type_cn="销售发票";
  9234. }else if (invoice_type == "01") {
  9235. invoice_type_cn="更正(对冲)发票";
  9236. }else if (invoice_type == "02") {
  9237. invoice_type_cn="其它类型发票";
  9238. }
  9239. html += "_$ta";
  9240. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9241. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9242. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9243. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9244. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9245. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9246. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9247. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9248. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9249. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9250. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9251. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9252. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9253. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9254. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9255. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9256. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9257. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9258. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9259. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9260. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9261. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9262. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9263. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  9264. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  9265. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  9266. html += "_$tag";
  9267. }
  9268. $("#dataTable").html(html);
  9269. }else {
  9270. $("#dataTable").html("");
  9271. }
  9272. },
  9273. "error" : function(msg){
  9274. },
  9275. "complete": function(){
  9276. layer.close(tip);
  9277. }
  9278. });
  9279. });
  9280. Date.prototype.Format = function (fmt) {
  9281. var o = {
  9282. "M+": this.getMonth() + 1, //月份
  9283. "d+": this.getDate(), //日
  9284. "h+": this.getHours(), //小时
  9285. "m+": this.getMinutes(), //分
  9286. "s+": this.getSeconds(), //秒
  9287. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9288. "S": this.getMilliseconds() //毫秒
  9289. };
  9290. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9291. for (var k in o)
  9292. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9293. return fmt;
  9294. }
  9295. $("#jrjc").change(function() {
  9296. if ($("#jrjc").prop('checked') == true){
  9297. $("#departmentId").removeAttr("disabled");
  9298. }else {
  9299. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9300. }
  9301. });
  9302. ----------------------------------- SOURCE END -------------------------------------
  9303. !STACK 0
  9304. java.lang.NullPointerException
  9305. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:16.210
  9306. !MESSAGE Exception occurred during problem detection:
  9307. ----------------------------------- SOURCE BEGIN -------------------------------------
  9308. (function(){WdatePicker();})();
  9309. (function(){WdatePicker();})();
  9310. (function(){Data.get();})();
  9311. (function(){Data.set();})();
  9312. (function(){search();})();
  9313. $(function(){
  9314. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9315. getfp();
  9316. });
  9317. var Data = {
  9318. "get" : function(){
  9319. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9320. var tip = layer.load(2);
  9321. var result="";
  9322. var url = "getgyxml.do";
  9323. $.ajax({
  9324. "url" : url,
  9325. "data" : {
  9326. "start_date" : $("#dateBegin").val(),
  9327. "end_date" : $("#dateEnd").val()
  9328. },
  9329. "type" : "POST",
  9330. "dataType" : "json",
  9331. "success" : function(data) {
  9332. if(data != null && data != ""){
  9333. if ( data.status =="success"){
  9334. getfp();
  9335. alert("获取成功!");
  9336. }else {
  9337. alert(data.status);
  9338. }
  9339. }else {
  9340. alert("获取失败!");
  9341. }
  9342. },
  9343. "complete": function(){
  9344. layer.close(tip);
  9345. }
  9346. });
  9347. }else {
  9348. alert("请选择日期!");
  9349. }
  9350. },
  9351. "set" : function(){
  9352. if ( $("#fpid option:selected").text() !=""){
  9353. var tip = layer.load(2);
  9354. var gitem = $("#form1").serialize();
  9355. var jrjc;
  9356. if ($("#jrjc").prop('checked') == true){
  9357. jrjc = $("#departmentId").val();
  9358. }else {
  9359. jrjc ='N'
  9360. }
  9361. var url = "saverk.do";
  9362. $.ajax({
  9363. "url" : url,
  9364. "data" : {
  9365. "gitem" : gitem,
  9366. "jrjc" : jrjc
  9367. },
  9368. "type" : "POST",
  9369. "dataType" : "json",
  9370. "async" : true,
  9371. "success" : function(data) {
  9372. if(data.status ="success"){
  9373. alert("入库成功!");
  9374. window.location.reload();
  9375. }else {
  9376. alert(msg);
  9377. }
  9378. },
  9379. "error": function(){
  9380. alert("确认失败!");
  9381. },
  9382. "complete": function(){
  9383. layer.close(tip);
  9384. }
  9385. });
  9386. }else {
  9387. alert("请选择发票!");
  9388. }
  9389. }
  9390. }
  9391. function getfp(){
  9392. var tip = layer.load(2);
  9393. var url = "getgyfp.do";
  9394. $.ajax({
  9395. "url" : url,
  9396. "type" : "POST",
  9397. "dataType" : "json",
  9398. "async" : true,
  9399. "success" : function(data) {
  9400. if(data != null && data != ""){
  9401. $("#fpid").empty();
  9402. $("#fpid").append("_$tag_____________$tag____");
  9403. for(var i = 0; i < data.length; i++){
  9404. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9405. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9406. }
  9407. }
  9408. },
  9409. "error" : function(msg){
  9410. },
  9411. "complete": function(){
  9412. layer.close(tip);
  9413. }
  9414. });
  9415. }
  9416. $("#fpid").change(function(){
  9417. var tip = layer.load(2);
  9418. var url = "getgyrkxx.do";
  9419. $.ajax({
  9420. "url" : url,
  9421. "data" : {
  9422. "fpId" : $("#fpid").val()
  9423. },
  9424. "type" : "POST",
  9425. "dataType" : "json",
  9426. "async" : true,
  9427. "success" : function(data) {
  9428. $("#dataTable").html("");
  9429. if(data != null && data != ""){
  9430. var html = "";
  9431. for(var i = 0; i < data.length; i++){
  9432. var ID = data[i].id == null ? "" : data[i].id;
  9433. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9434. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9435. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9436. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9437. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9438. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9439. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9440. var NAME = data[i].name == null ? "" : data[i].name;
  9441. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9442. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9443. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9444. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9445. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9446. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9447. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9448. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9449. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9450. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9451. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9452. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9453. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9454. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9455. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9456. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9457. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9458. var invoice_type_cn =null;
  9459. if (invoice_type =="00" ){
  9460. invoice_type_cn="销售发票";
  9461. }else if (invoice_type == "01") {
  9462. invoice_type_cn="更正(对冲)发票";
  9463. }else if (invoice_type == "02") {
  9464. invoice_type_cn="其它类型发票";
  9465. }
  9466. html += "_$ta";
  9467. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9468. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9469. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9470. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9471. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9472. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9473. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9474. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9475. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9476. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9477. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9478. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9479. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9480. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9481. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9482. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9483. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9484. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9485. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9486. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9487. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9488. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9489. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9490. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  9491. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  9492. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  9493. html += "_$tag";
  9494. }
  9495. $("#dataTable").html(html);
  9496. }else {
  9497. $("#dataTable").html("");
  9498. }
  9499. },
  9500. "error" : function(msg){
  9501. },
  9502. "complete": function(){
  9503. layer.close(tip);
  9504. }
  9505. });
  9506. });
  9507. Date.prototype.Format = function (fmt) {
  9508. var o = {
  9509. "M+": this.getMonth() + 1, //月份
  9510. "d+": this.getDate(), //日
  9511. "h+": this.getHours(), //小时
  9512. "m+": this.getMinutes(), //分
  9513. "s+": this.getSeconds(), //秒
  9514. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9515. "S": this.getMilliseconds() //毫秒
  9516. };
  9517. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9518. for (var k in o)
  9519. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9520. return fmt;
  9521. }
  9522. $("#jrjc").change(function() {
  9523. if ($("#jrjc").prop('checked') == true){
  9524. $("#departmentId").removeAttr("disabled");
  9525. }else {
  9526. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9527. }
  9528. });
  9529. ----------------------------------- SOURCE END -------------------------------------
  9530. !STACK 0
  9531. java.lang.NullPointerException
  9532. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:16.210
  9533. !MESSAGE Error while processing working copy
  9534. !STACK 1
  9535. JavaScript Model Exception: java.lang.NullPointerException
  9536. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9537. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9538. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9539. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9540. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9541. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9542. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9543. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9544. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9545. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9546. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9547. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9548. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9549. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9550. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9551. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9552. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  9553. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  9554. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  9555. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  9556. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  9557. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  9558. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  9559. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  9560. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  9561. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  9562. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  9563. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  9564. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  9565. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  9566. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  9567. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  9568. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  9569. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  9570. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  9571. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  9572. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  9573. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  9574. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  9575. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  9576. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  9577. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  9578. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  9579. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  9580. at java.lang.reflect.Method.invoke(Unknown Source)
  9581. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  9582. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  9583. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  9584. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  9585. Caused by: java.lang.NullPointerException
  9586. Caused by: java.lang.NullPointerException
  9587. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:16.211
  9588. !MESSAGE java.lang.NullPointerException
  9589. !STACK 0
  9590. java.lang.NullPointerException
  9591. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:17.133
  9592. !MESSAGE Exception occurred during problem detection:
  9593. ----------------------------------- SOURCE BEGIN -------------------------------------
  9594. (function(){WdatePicker();})();
  9595. (function(){WdatePicker();})();
  9596. (function(){Data.get();})();
  9597. (function(){Data.set();})();
  9598. (function(){search();})();
  9599. $(function(){
  9600. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9601. getfp();
  9602. });
  9603. var Data = {
  9604. "get" : function(){
  9605. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9606. var tip = layer.load(2);
  9607. var result="";
  9608. var url = "getgyxml.do";
  9609. $.ajax({
  9610. "url" : url,
  9611. "data" : {
  9612. "start_date" : $("#dateBegin").val(),
  9613. "end_date" : $("#dateEnd").val()
  9614. },
  9615. "type" : "POST",
  9616. "dataType" : "json",
  9617. "success" : function(data) {
  9618. if(data != null && data != ""){
  9619. if ( data.status =="success"){
  9620. getfp();
  9621. alert("获取成功!");
  9622. }else {
  9623. alert(data.status);
  9624. }
  9625. }else {
  9626. alert("获取失败!");
  9627. }
  9628. },
  9629. "complete": function(){
  9630. layer.close(tip);
  9631. }
  9632. });
  9633. }else {
  9634. alert("请选择日期!");
  9635. }
  9636. },
  9637. "set" : function(){
  9638. if ( $("#fpid option:selected").text() !=""){
  9639. var tip = layer.load(2);
  9640. var gitem = $("#form1").serialize();
  9641. var jrjc;
  9642. if ($("#jrjc").prop('checked') == true){
  9643. jrjc = $("#departmentId").val();
  9644. }else {
  9645. jrjc ='N'
  9646. }
  9647. var url = "saverk.do";
  9648. $.ajax({
  9649. "url" : url,
  9650. "data" : {
  9651. "gitem" : gitem,
  9652. "jrjc" : jrjc
  9653. },
  9654. "type" : "POST",
  9655. "dataType" : "json",
  9656. "async" : true,
  9657. "success" : function(data) {
  9658. if(data.status ="success"){
  9659. alert("入库成功!");
  9660. window.location.reload();
  9661. }else {
  9662. alert(msg);
  9663. }
  9664. },
  9665. "error": function(){
  9666. alert("确认失败!");
  9667. },
  9668. "complete": function(){
  9669. layer.close(tip);
  9670. }
  9671. });
  9672. }else {
  9673. alert("请选择发票!");
  9674. }
  9675. }
  9676. }
  9677. function getfp(){
  9678. var tip = layer.load(2);
  9679. var url = "getgyfp.do";
  9680. $.ajax({
  9681. "url" : url,
  9682. "type" : "POST",
  9683. "dataType" : "json",
  9684. "async" : true,
  9685. "success" : function(data) {
  9686. if(data != null && data != ""){
  9687. $("#fpid").empty();
  9688. $("#fpid").append("_$tag_____________$tag____");
  9689. for(var i = 0; i < data.length; i++){
  9690. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9691. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9692. }
  9693. }
  9694. },
  9695. "error" : function(msg){
  9696. },
  9697. "complete": function(){
  9698. layer.close(tip);
  9699. }
  9700. });
  9701. }
  9702. $("#fpid").change(function(){
  9703. var tip = layer.load(2);
  9704. var url = "getgyrkxx.do";
  9705. $.ajax({
  9706. "url" : url,
  9707. "data" : {
  9708. "fpId" : $("#fpid").val()
  9709. },
  9710. "type" : "POST",
  9711. "dataType" : "json",
  9712. "async" : true,
  9713. "success" : function(data) {
  9714. $("#dataTable").html("");
  9715. if(data != null && data != ""){
  9716. var html = "";
  9717. for(var i = 0; i < data.length; i++){
  9718. var ID = data[i].id == null ? "" : data[i].id;
  9719. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9720. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9721. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9722. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9723. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9724. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9725. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9726. var NAME = data[i].name == null ? "" : data[i].name;
  9727. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9728. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9729. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9730. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9731. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9732. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9733. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9734. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9735. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9736. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9737. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9738. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9739. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9740. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9741. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9742. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9743. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9744. var invoice_type_cn =null;
  9745. if (invoice_type =="00" ){
  9746. invoice_type_cn="销售发票";
  9747. }else if (invoice_type == "01") {
  9748. invoice_type_cn="更正(对冲)发票";
  9749. }else if (invoice_type == "02") {
  9750. invoice_type_cn="其它类型发票";
  9751. }
  9752. html += "_$ta";
  9753. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9754. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9755. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9756. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9757. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9758. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9759. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9760. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9761. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9762. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9763. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9764. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9765. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9766. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9767. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9768. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9769. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9770. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9771. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9772. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9773. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9774. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9775. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9776. html += "_$tag_____________$tag_____________________________________________________________________________________________________________$tag";
  9777. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  9778. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  9779. html += "_$tag";
  9780. }
  9781. $("#dataTable").html(html);
  9782. }else {
  9783. $("#dataTable").html("");
  9784. }
  9785. },
  9786. "error" : function(msg){
  9787. },
  9788. "complete": function(){
  9789. layer.close(tip);
  9790. }
  9791. });
  9792. });
  9793. Date.prototype.Format = function (fmt) {
  9794. var o = {
  9795. "M+": this.getMonth() + 1, //月份
  9796. "d+": this.getDate(), //日
  9797. "h+": this.getHours(), //小时
  9798. "m+": this.getMinutes(), //分
  9799. "s+": this.getSeconds(), //秒
  9800. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9801. "S": this.getMilliseconds() //毫秒
  9802. };
  9803. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9804. for (var k in o)
  9805. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9806. return fmt;
  9807. }
  9808. $("#jrjc").change(function() {
  9809. if ($("#jrjc").prop('checked') == true){
  9810. $("#departmentId").removeAttr("disabled");
  9811. }else {
  9812. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9813. }
  9814. });
  9815. ----------------------------------- SOURCE END -------------------------------------
  9816. !STACK 0
  9817. java.lang.NullPointerException
  9818. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:17.546
  9819. !MESSAGE Exception occurred during problem detection:
  9820. ----------------------------------- SOURCE BEGIN -------------------------------------
  9821. (function(){WdatePicker();})();
  9822. (function(){WdatePicker();})();
  9823. (function(){Data.get();})();
  9824. (function(){Data.set();})();
  9825. (function(){search();})();
  9826. $(function(){
  9827. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9828. getfp();
  9829. });
  9830. var Data = {
  9831. "get" : function(){
  9832. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9833. var tip = layer.load(2);
  9834. var result="";
  9835. var url = "getgyxml.do";
  9836. $.ajax({
  9837. "url" : url,
  9838. "data" : {
  9839. "start_date" : $("#dateBegin").val(),
  9840. "end_date" : $("#dateEnd").val()
  9841. },
  9842. "type" : "POST",
  9843. "dataType" : "json",
  9844. "success" : function(data) {
  9845. if(data != null && data != ""){
  9846. if ( data.status =="success"){
  9847. getfp();
  9848. alert("获取成功!");
  9849. }else {
  9850. alert(data.status);
  9851. }
  9852. }else {
  9853. alert("获取失败!");
  9854. }
  9855. },
  9856. "complete": function(){
  9857. layer.close(tip);
  9858. }
  9859. });
  9860. }else {
  9861. alert("请选择日期!");
  9862. }
  9863. },
  9864. "set" : function(){
  9865. if ( $("#fpid option:selected").text() !=""){
  9866. var tip = layer.load(2);
  9867. var gitem = $("#form1").serialize();
  9868. var jrjc;
  9869. if ($("#jrjc").prop('checked') == true){
  9870. jrjc = $("#departmentId").val();
  9871. }else {
  9872. jrjc ='N'
  9873. }
  9874. var url = "saverk.do";
  9875. $.ajax({
  9876. "url" : url,
  9877. "data" : {
  9878. "gitem" : gitem,
  9879. "jrjc" : jrjc
  9880. },
  9881. "type" : "POST",
  9882. "dataType" : "json",
  9883. "async" : true,
  9884. "success" : function(data) {
  9885. if(data.status ="success"){
  9886. alert("入库成功!");
  9887. window.location.reload();
  9888. }else {
  9889. alert(msg);
  9890. }
  9891. },
  9892. "error": function(){
  9893. alert("确认失败!");
  9894. },
  9895. "complete": function(){
  9896. layer.close(tip);
  9897. }
  9898. });
  9899. }else {
  9900. alert("请选择发票!");
  9901. }
  9902. }
  9903. }
  9904. function getfp(){
  9905. var tip = layer.load(2);
  9906. var url = "getgyfp.do";
  9907. $.ajax({
  9908. "url" : url,
  9909. "type" : "POST",
  9910. "dataType" : "json",
  9911. "async" : true,
  9912. "success" : function(data) {
  9913. if(data != null && data != ""){
  9914. $("#fpid").empty();
  9915. $("#fpid").append("_$tag_____________$tag____");
  9916. for(var i = 0; i < data.length; i++){
  9917. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9918. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9919. }
  9920. }
  9921. },
  9922. "error" : function(msg){
  9923. },
  9924. "complete": function(){
  9925. layer.close(tip);
  9926. }
  9927. });
  9928. }
  9929. $("#fpid").change(function(){
  9930. var tip = layer.load(2);
  9931. var url = "getgyrkxx.do";
  9932. $.ajax({
  9933. "url" : url,
  9934. "data" : {
  9935. "fpId" : $("#fpid").val()
  9936. },
  9937. "type" : "POST",
  9938. "dataType" : "json",
  9939. "async" : true,
  9940. "success" : function(data) {
  9941. $("#dataTable").html("");
  9942. if(data != null && data != ""){
  9943. var html = "";
  9944. for(var i = 0; i < data.length; i++){
  9945. var ID = data[i].id == null ? "" : data[i].id;
  9946. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9947. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9948. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9949. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9950. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9951. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9952. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9953. var NAME = data[i].name == null ? "" : data[i].name;
  9954. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9955. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9956. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9957. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9958. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9959. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9960. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9961. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9962. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9963. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9964. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9965. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9966. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9967. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9968. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9969. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9970. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9971. var invoice_type_cn =null;
  9972. if (invoice_type =="00" ){
  9973. invoice_type_cn="销售发票";
  9974. }else if (invoice_type == "01") {
  9975. invoice_type_cn="更正(对冲)发票";
  9976. }else if (invoice_type == "02") {
  9977. invoice_type_cn="其它类型发票";
  9978. }
  9979. html += "_$ta";
  9980. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9981. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9982. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9983. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9984. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9985. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9986. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9988. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9989. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9990. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9991. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9992. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9993. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9994. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9995. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9996. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9997. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9998. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9999. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10000. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10001. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10002. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10003. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10004. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  10005. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  10006. html += "_$tag";
  10007. }
  10008. $("#dataTable").html(html);
  10009. }else {
  10010. $("#dataTable").html("");
  10011. }
  10012. },
  10013. "error" : function(msg){
  10014. },
  10015. "complete": function(){
  10016. layer.close(tip);
  10017. }
  10018. });
  10019. });
  10020. Date.prototype.Format = function (fmt) {
  10021. var o = {
  10022. "M+": this.getMonth() + 1, //月份
  10023. "d+": this.getDate(), //日
  10024. "h+": this.getHours(), //小时
  10025. "m+": this.getMinutes(), //分
  10026. "s+": this.getSeconds(), //秒
  10027. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10028. "S": this.getMilliseconds() //毫秒
  10029. };
  10030. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10031. for (var k in o)
  10032. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10033. return fmt;
  10034. }
  10035. $("#jrjc").change(function() {
  10036. if ($("#jrjc").prop('checked') == true){
  10037. $("#departmentId").removeAttr("disabled");
  10038. }else {
  10039. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10040. }
  10041. });
  10042. ----------------------------------- SOURCE END -------------------------------------
  10043. !STACK 0
  10044. java.lang.NullPointerException
  10045. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:17.547
  10046. !MESSAGE Error while processing working copy
  10047. !STACK 1
  10048. JavaScript Model Exception: java.lang.NullPointerException
  10049. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10050. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10051. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10052. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10053. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10054. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10055. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10056. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10057. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10058. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10059. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10060. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10061. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10062. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10063. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10064. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10065. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  10066. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  10067. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  10068. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  10069. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  10070. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  10071. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  10072. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  10073. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  10074. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  10075. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  10076. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  10077. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  10078. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  10079. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  10080. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  10081. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  10082. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  10083. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  10084. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  10085. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  10086. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  10087. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  10088. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  10089. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  10090. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  10091. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  10092. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  10093. at java.lang.reflect.Method.invoke(Unknown Source)
  10094. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  10095. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  10096. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  10097. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  10098. Caused by: java.lang.NullPointerException
  10099. Caused by: java.lang.NullPointerException
  10100. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:17.547
  10101. !MESSAGE java.lang.NullPointerException
  10102. !STACK 0
  10103. java.lang.NullPointerException
  10104. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:18.174
  10105. !MESSAGE Exception occurred during problem detection:
  10106. ----------------------------------- SOURCE BEGIN -------------------------------------
  10107. (function(){WdatePicker();})();
  10108. (function(){WdatePicker();})();
  10109. (function(){Data.get();})();
  10110. (function(){Data.set();})();
  10111. (function(){search();})();
  10112. $(function(){
  10113. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10114. getfp();
  10115. });
  10116. var Data = {
  10117. "get" : function(){
  10118. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10119. var tip = layer.load(2);
  10120. var result="";
  10121. var url = "getgyxml.do";
  10122. $.ajax({
  10123. "url" : url,
  10124. "data" : {
  10125. "start_date" : $("#dateBegin").val(),
  10126. "end_date" : $("#dateEnd").val()
  10127. },
  10128. "type" : "POST",
  10129. "dataType" : "json",
  10130. "success" : function(data) {
  10131. if(data != null && data != ""){
  10132. if ( data.status =="success"){
  10133. getfp();
  10134. alert("获取成功!");
  10135. }else {
  10136. alert(data.status);
  10137. }
  10138. }else {
  10139. alert("获取失败!");
  10140. }
  10141. },
  10142. "complete": function(){
  10143. layer.close(tip);
  10144. }
  10145. });
  10146. }else {
  10147. alert("请选择日期!");
  10148. }
  10149. },
  10150. "set" : function(){
  10151. if ( $("#fpid option:selected").text() !=""){
  10152. var tip = layer.load(2);
  10153. var gitem = $("#form1").serialize();
  10154. var jrjc;
  10155. if ($("#jrjc").prop('checked') == true){
  10156. jrjc = $("#departmentId").val();
  10157. }else {
  10158. jrjc ='N'
  10159. }
  10160. var url = "saverk.do";
  10161. $.ajax({
  10162. "url" : url,
  10163. "data" : {
  10164. "gitem" : gitem,
  10165. "jrjc" : jrjc
  10166. },
  10167. "type" : "POST",
  10168. "dataType" : "json",
  10169. "async" : true,
  10170. "success" : function(data) {
  10171. if(data.status ="success"){
  10172. alert("入库成功!");
  10173. window.location.reload();
  10174. }else {
  10175. alert(msg);
  10176. }
  10177. },
  10178. "error": function(){
  10179. alert("确认失败!");
  10180. },
  10181. "complete": function(){
  10182. layer.close(tip);
  10183. }
  10184. });
  10185. }else {
  10186. alert("请选择发票!");
  10187. }
  10188. }
  10189. }
  10190. function getfp(){
  10191. var tip = layer.load(2);
  10192. var url = "getgyfp.do";
  10193. $.ajax({
  10194. "url" : url,
  10195. "type" : "POST",
  10196. "dataType" : "json",
  10197. "async" : true,
  10198. "success" : function(data) {
  10199. if(data != null && data != ""){
  10200. $("#fpid").empty();
  10201. $("#fpid").append("_$tag_____________$tag____");
  10202. for(var i = 0; i < data.length; i++){
  10203. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10204. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10205. }
  10206. }
  10207. },
  10208. "error" : function(msg){
  10209. },
  10210. "complete": function(){
  10211. layer.close(tip);
  10212. }
  10213. });
  10214. }
  10215. $("#fpid").change(function(){
  10216. var tip = layer.load(2);
  10217. var url = "getgyrkxx.do";
  10218. $.ajax({
  10219. "url" : url,
  10220. "data" : {
  10221. "fpId" : $("#fpid").val()
  10222. },
  10223. "type" : "POST",
  10224. "dataType" : "json",
  10225. "async" : true,
  10226. "success" : function(data) {
  10227. $("#dataTable").html("");
  10228. if(data != null && data != ""){
  10229. var html = "";
  10230. for(var i = 0; i < data.length; i++){
  10231. var ID = data[i].id == null ? "" : data[i].id;
  10232. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10233. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10234. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10235. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10236. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10237. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10238. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10239. var NAME = data[i].name == null ? "" : data[i].name;
  10240. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10241. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10242. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10243. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10244. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10245. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10246. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10247. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10248. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10249. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10250. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10251. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10252. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10253. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10254. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10255. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10256. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10257. var invoice_type_cn =null;
  10258. if (invoice_type =="00" ){
  10259. invoice_type_cn="销售发票";
  10260. }else if (invoice_type == "01") {
  10261. invoice_type_cn="更正(对冲)发票";
  10262. }else if (invoice_type == "02") {
  10263. invoice_type_cn="其它类型发票";
  10264. }
  10265. html += "_$ta";
  10266. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10268. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10269. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10270. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10271. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10272. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10273. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10274. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10275. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10276. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10277. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10278. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10279. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10280. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10281. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10282. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10283. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10284. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10285. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10286. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10287. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10288. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10289. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10290. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  10291. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  10292. html += "_$tag";
  10293. }
  10294. $("#dataTable").html(html);
  10295. }else {
  10296. $("#dataTable").html("");
  10297. }
  10298. },
  10299. "error" : function(msg){
  10300. },
  10301. "complete": function(){
  10302. layer.close(tip);
  10303. }
  10304. });
  10305. });
  10306. Date.prototype.Format = function (fmt) {
  10307. var o = {
  10308. "M+": this.getMonth() + 1, //月份
  10309. "d+": this.getDate(), //日
  10310. "h+": this.getHours(), //小时
  10311. "m+": this.getMinutes(), //分
  10312. "s+": this.getSeconds(), //秒
  10313. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10314. "S": this.getMilliseconds() //毫秒
  10315. };
  10316. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10317. for (var k in o)
  10318. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10319. return fmt;
  10320. }
  10321. $("#jrjc").change(function() {
  10322. if ($("#jrjc").prop('checked') == true){
  10323. $("#departmentId").removeAttr("disabled");
  10324. }else {
  10325. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10326. }
  10327. });
  10328. ----------------------------------- SOURCE END -------------------------------------
  10329. !STACK 0
  10330. java.lang.NullPointerException
  10331. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:18.814
  10332. !MESSAGE Exception occurred during problem detection:
  10333. ----------------------------------- SOURCE BEGIN -------------------------------------
  10334. (function(){WdatePicker();})();
  10335. (function(){WdatePicker();})();
  10336. (function(){Data.get();})();
  10337. (function(){Data.set();})();
  10338. (function(){search();})();
  10339. $(function(){
  10340. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10341. getfp();
  10342. });
  10343. var Data = {
  10344. "get" : function(){
  10345. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10346. var tip = layer.load(2);
  10347. var result="";
  10348. var url = "getgyxml.do";
  10349. $.ajax({
  10350. "url" : url,
  10351. "data" : {
  10352. "start_date" : $("#dateBegin").val(),
  10353. "end_date" : $("#dateEnd").val()
  10354. },
  10355. "type" : "POST",
  10356. "dataType" : "json",
  10357. "success" : function(data) {
  10358. if(data != null && data != ""){
  10359. if ( data.status =="success"){
  10360. getfp();
  10361. alert("获取成功!");
  10362. }else {
  10363. alert(data.status);
  10364. }
  10365. }else {
  10366. alert("获取失败!");
  10367. }
  10368. },
  10369. "complete": function(){
  10370. layer.close(tip);
  10371. }
  10372. });
  10373. }else {
  10374. alert("请选择日期!");
  10375. }
  10376. },
  10377. "set" : function(){
  10378. if ( $("#fpid option:selected").text() !=""){
  10379. var tip = layer.load(2);
  10380. var gitem = $("#form1").serialize();
  10381. var jrjc;
  10382. if ($("#jrjc").prop('checked') == true){
  10383. jrjc = $("#departmentId").val();
  10384. }else {
  10385. jrjc ='N'
  10386. }
  10387. var url = "saverk.do";
  10388. $.ajax({
  10389. "url" : url,
  10390. "data" : {
  10391. "gitem" : gitem,
  10392. "jrjc" : jrjc
  10393. },
  10394. "type" : "POST",
  10395. "dataType" : "json",
  10396. "async" : true,
  10397. "success" : function(data) {
  10398. if(data.status ="success"){
  10399. alert("入库成功!");
  10400. window.location.reload();
  10401. }else {
  10402. alert(msg);
  10403. }
  10404. },
  10405. "error": function(){
  10406. alert("确认失败!");
  10407. },
  10408. "complete": function(){
  10409. layer.close(tip);
  10410. }
  10411. });
  10412. }else {
  10413. alert("请选择发票!");
  10414. }
  10415. }
  10416. }
  10417. function getfp(){
  10418. var tip = layer.load(2);
  10419. var url = "getgyfp.do";
  10420. $.ajax({
  10421. "url" : url,
  10422. "type" : "POST",
  10423. "dataType" : "json",
  10424. "async" : true,
  10425. "success" : function(data) {
  10426. if(data != null && data != ""){
  10427. $("#fpid").empty();
  10428. $("#fpid").append("_$tag_____________$tag____");
  10429. for(var i = 0; i < data.length; i++){
  10430. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10431. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10432. }
  10433. }
  10434. },
  10435. "error" : function(msg){
  10436. },
  10437. "complete": function(){
  10438. layer.close(tip);
  10439. }
  10440. });
  10441. }
  10442. $("#fpid").change(function(){
  10443. var tip = layer.load(2);
  10444. var url = "getgyrkxx.do";
  10445. $.ajax({
  10446. "url" : url,
  10447. "data" : {
  10448. "fpId" : $("#fpid").val()
  10449. },
  10450. "type" : "POST",
  10451. "dataType" : "json",
  10452. "async" : true,
  10453. "success" : function(data) {
  10454. $("#dataTable").html("");
  10455. if(data != null && data != ""){
  10456. var html = "";
  10457. for(var i = 0; i < data.length; i++){
  10458. var ID = data[i].id == null ? "" : data[i].id;
  10459. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10460. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10461. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10462. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10463. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10464. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10465. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10466. var NAME = data[i].name == null ? "" : data[i].name;
  10467. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10468. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10469. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10470. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10471. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10472. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10473. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10474. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10475. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10476. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10477. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10478. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10479. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10480. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10481. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10482. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10483. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10484. var invoice_type_cn =null;
  10485. if (invoice_type =="00" ){
  10486. invoice_type_cn="销售发票";
  10487. }else if (invoice_type == "01") {
  10488. invoice_type_cn="更正(对冲)发票";
  10489. }else if (invoice_type == "02") {
  10490. invoice_type_cn="其它类型发票";
  10491. }
  10492. html += "_$ta";
  10493. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10494. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10495. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10496. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10497. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10498. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10499. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10500. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10501. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10502. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10503. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10504. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10505. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10506. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10507. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10508. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10509. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10510. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10511. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10512. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10513. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10514. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10515. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10516. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10517. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  10518. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  10519. html += "_$tag";
  10520. }
  10521. $("#dataTable").html(html);
  10522. }else {
  10523. $("#dataTable").html("");
  10524. }
  10525. },
  10526. "error" : function(msg){
  10527. },
  10528. "complete": function(){
  10529. layer.close(tip);
  10530. }
  10531. });
  10532. });
  10533. Date.prototype.Format = function (fmt) {
  10534. var o = {
  10535. "M+": this.getMonth() + 1, //月份
  10536. "d+": this.getDate(), //日
  10537. "h+": this.getHours(), //小时
  10538. "m+": this.getMinutes(), //分
  10539. "s+": this.getSeconds(), //秒
  10540. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10541. "S": this.getMilliseconds() //毫秒
  10542. };
  10543. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10544. for (var k in o)
  10545. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10546. return fmt;
  10547. }
  10548. $("#jrjc").change(function() {
  10549. if ($("#jrjc").prop('checked') == true){
  10550. $("#departmentId").removeAttr("disabled");
  10551. }else {
  10552. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10553. }
  10554. });
  10555. ----------------------------------- SOURCE END -------------------------------------
  10556. !STACK 0
  10557. java.lang.NullPointerException
  10558. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:19:18.815
  10559. !MESSAGE java.lang.NullPointerException
  10560. !STACK 1
  10561. JavaScript Model Exception: java.lang.NullPointerException
  10562. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10563. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  10564. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10565. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10566. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  10567. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  10568. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  10569. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  10570. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  10571. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  10572. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  10573. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  10574. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  10575. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  10576. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  10577. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  10578. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  10579. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  10580. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  10581. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  10582. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  10583. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  10584. Caused by: java.lang.NullPointerException
  10585. Caused by: java.lang.NullPointerException
  10586. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:18.815
  10587. !MESSAGE java.lang.NullPointerException
  10588. !STACK 0
  10589. java.lang.NullPointerException
  10590. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:19.207
  10591. !MESSAGE Exception occurred during problem detection:
  10592. ----------------------------------- SOURCE BEGIN -------------------------------------
  10593. (function(){WdatePicker();})();
  10594. (function(){WdatePicker();})();
  10595. (function(){Data.get();})();
  10596. (function(){Data.set();})();
  10597. (function(){search();})();
  10598. $(function(){
  10599. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10600. getfp();
  10601. });
  10602. var Data = {
  10603. "get" : function(){
  10604. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10605. var tip = layer.load(2);
  10606. var result="";
  10607. var url = "getgyxml.do";
  10608. $.ajax({
  10609. "url" : url,
  10610. "data" : {
  10611. "start_date" : $("#dateBegin").val(),
  10612. "end_date" : $("#dateEnd").val()
  10613. },
  10614. "type" : "POST",
  10615. "dataType" : "json",
  10616. "success" : function(data) {
  10617. if(data != null && data != ""){
  10618. if ( data.status =="success"){
  10619. getfp();
  10620. alert("获取成功!");
  10621. }else {
  10622. alert(data.status);
  10623. }
  10624. }else {
  10625. alert("获取失败!");
  10626. }
  10627. },
  10628. "complete": function(){
  10629. layer.close(tip);
  10630. }
  10631. });
  10632. }else {
  10633. alert("请选择日期!");
  10634. }
  10635. },
  10636. "set" : function(){
  10637. if ( $("#fpid option:selected").text() !=""){
  10638. var tip = layer.load(2);
  10639. var gitem = $("#form1").serialize();
  10640. var jrjc;
  10641. if ($("#jrjc").prop('checked') == true){
  10642. jrjc = $("#departmentId").val();
  10643. }else {
  10644. jrjc ='N'
  10645. }
  10646. var url = "saverk.do";
  10647. $.ajax({
  10648. "url" : url,
  10649. "data" : {
  10650. "gitem" : gitem,
  10651. "jrjc" : jrjc
  10652. },
  10653. "type" : "POST",
  10654. "dataType" : "json",
  10655. "async" : true,
  10656. "success" : function(data) {
  10657. if(data.status ="success"){
  10658. alert("入库成功!");
  10659. window.location.reload();
  10660. }else {
  10661. alert(msg);
  10662. }
  10663. },
  10664. "error": function(){
  10665. alert("确认失败!");
  10666. },
  10667. "complete": function(){
  10668. layer.close(tip);
  10669. }
  10670. });
  10671. }else {
  10672. alert("请选择发票!");
  10673. }
  10674. }
  10675. }
  10676. function getfp(){
  10677. var tip = layer.load(2);
  10678. var url = "getgyfp.do";
  10679. $.ajax({
  10680. "url" : url,
  10681. "type" : "POST",
  10682. "dataType" : "json",
  10683. "async" : true,
  10684. "success" : function(data) {
  10685. if(data != null && data != ""){
  10686. $("#fpid").empty();
  10687. $("#fpid").append("_$tag_____________$tag____");
  10688. for(var i = 0; i < data.length; i++){
  10689. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10690. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10691. }
  10692. }
  10693. },
  10694. "error" : function(msg){
  10695. },
  10696. "complete": function(){
  10697. layer.close(tip);
  10698. }
  10699. });
  10700. }
  10701. $("#fpid").change(function(){
  10702. var tip = layer.load(2);
  10703. var url = "getgyrkxx.do";
  10704. $.ajax({
  10705. "url" : url,
  10706. "data" : {
  10707. "fpId" : $("#fpid").val()
  10708. },
  10709. "type" : "POST",
  10710. "dataType" : "json",
  10711. "async" : true,
  10712. "success" : function(data) {
  10713. $("#dataTable").html("");
  10714. if(data != null && data != ""){
  10715. var html = "";
  10716. for(var i = 0; i < data.length; i++){
  10717. var ID = data[i].id == null ? "" : data[i].id;
  10718. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10719. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10720. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10721. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10722. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10723. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10724. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10725. var NAME = data[i].name == null ? "" : data[i].name;
  10726. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10727. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10728. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10729. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10730. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10731. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10732. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10733. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10734. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10735. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10736. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10737. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10738. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10739. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10740. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10741. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10742. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10743. var invoice_type_cn =null;
  10744. if (invoice_type =="00" ){
  10745. invoice_type_cn="销售发票";
  10746. }else if (invoice_type == "01") {
  10747. invoice_type_cn="更正(对冲)发票";
  10748. }else if (invoice_type == "02") {
  10749. invoice_type_cn="其它类型发票";
  10750. }
  10751. html += "_$ta";
  10752. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10753. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10754. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10755. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10756. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10757. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10758. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10759. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10760. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10761. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10762. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10763. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10764. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10765. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10766. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10767. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10768. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10769. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10770. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10771. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10772. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10773. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10774. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10775. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10776. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  10777. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  10778. html += "_$tag";
  10779. }
  10780. $("#dataTable").html(html);
  10781. }else {
  10782. $("#dataTable").html("");
  10783. }
  10784. },
  10785. "error" : function(msg){
  10786. },
  10787. "complete": function(){
  10788. layer.close(tip);
  10789. }
  10790. });
  10791. });
  10792. Date.prototype.Format = function (fmt) {
  10793. var o = {
  10794. "M+": this.getMonth() + 1, //月份
  10795. "d+": this.getDate(), //日
  10796. "h+": this.getHours(), //小时
  10797. "m+": this.getMinutes(), //分
  10798. "s+": this.getSeconds(), //秒
  10799. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10800. "S": this.getMilliseconds() //毫秒
  10801. };
  10802. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10803. for (var k in o)
  10804. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10805. return fmt;
  10806. }
  10807. $("#jrjc").change(function() {
  10808. if ($("#jrjc").prop('checked') == true){
  10809. $("#departmentId").removeAttr("disabled");
  10810. }else {
  10811. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10812. }
  10813. });
  10814. ----------------------------------- SOURCE END -------------------------------------
  10815. !STACK 0
  10816. java.lang.NullPointerException
  10817. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:19.208
  10818. !MESSAGE Error while processing working copy
  10819. !STACK 1
  10820. JavaScript Model Exception: java.lang.NullPointerException
  10821. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10822. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10823. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10824. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10825. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10826. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10827. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10828. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10829. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10830. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10831. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10832. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10833. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10834. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10835. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10836. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10837. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  10838. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  10839. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  10840. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  10841. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  10842. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  10843. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  10844. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  10845. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  10846. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  10847. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  10848. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  10849. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  10850. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  10851. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  10852. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  10853. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  10854. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  10855. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  10856. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  10857. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  10858. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  10859. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  10860. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  10861. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  10862. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  10863. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  10864. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  10865. at java.lang.reflect.Method.invoke(Unknown Source)
  10866. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  10867. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  10868. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  10869. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  10870. Caused by: java.lang.NullPointerException
  10871. Caused by: java.lang.NullPointerException
  10872. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:19.208
  10873. !MESSAGE java.lang.NullPointerException
  10874. !STACK 0
  10875. java.lang.NullPointerException
  10876. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:19.846
  10877. !MESSAGE Exception occurred during problem detection:
  10878. ----------------------------------- SOURCE BEGIN -------------------------------------
  10879. (function(){WdatePicker();})();
  10880. (function(){WdatePicker();})();
  10881. (function(){Data.get();})();
  10882. (function(){Data.set();})();
  10883. (function(){search();})();
  10884. $(function(){
  10885. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10886. getfp();
  10887. });
  10888. var Data = {
  10889. "get" : function(){
  10890. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10891. var tip = layer.load(2);
  10892. var result="";
  10893. var url = "getgyxml.do";
  10894. $.ajax({
  10895. "url" : url,
  10896. "data" : {
  10897. "start_date" : $("#dateBegin").val(),
  10898. "end_date" : $("#dateEnd").val()
  10899. },
  10900. "type" : "POST",
  10901. "dataType" : "json",
  10902. "success" : function(data) {
  10903. if(data != null && data != ""){
  10904. if ( data.status =="success"){
  10905. getfp();
  10906. alert("获取成功!");
  10907. }else {
  10908. alert(data.status);
  10909. }
  10910. }else {
  10911. alert("获取失败!");
  10912. }
  10913. },
  10914. "complete": function(){
  10915. layer.close(tip);
  10916. }
  10917. });
  10918. }else {
  10919. alert("请选择日期!");
  10920. }
  10921. },
  10922. "set" : function(){
  10923. if ( $("#fpid option:selected").text() !=""){
  10924. var tip = layer.load(2);
  10925. var gitem = $("#form1").serialize();
  10926. var jrjc;
  10927. if ($("#jrjc").prop('checked') == true){
  10928. jrjc = $("#departmentId").val();
  10929. }else {
  10930. jrjc ='N'
  10931. }
  10932. var url = "saverk.do";
  10933. $.ajax({
  10934. "url" : url,
  10935. "data" : {
  10936. "gitem" : gitem,
  10937. "jrjc" : jrjc
  10938. },
  10939. "type" : "POST",
  10940. "dataType" : "json",
  10941. "async" : true,
  10942. "success" : function(data) {
  10943. if(data.status ="success"){
  10944. alert("入库成功!");
  10945. window.location.reload();
  10946. }else {
  10947. alert(msg);
  10948. }
  10949. },
  10950. "error": function(){
  10951. alert("确认失败!");
  10952. },
  10953. "complete": function(){
  10954. layer.close(tip);
  10955. }
  10956. });
  10957. }else {
  10958. alert("请选择发票!");
  10959. }
  10960. }
  10961. }
  10962. function getfp(){
  10963. var tip = layer.load(2);
  10964. var url = "getgyfp.do";
  10965. $.ajax({
  10966. "url" : url,
  10967. "type" : "POST",
  10968. "dataType" : "json",
  10969. "async" : true,
  10970. "success" : function(data) {
  10971. if(data != null && data != ""){
  10972. $("#fpid").empty();
  10973. $("#fpid").append("_$tag_____________$tag____");
  10974. for(var i = 0; i < data.length; i++){
  10975. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10976. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10977. }
  10978. }
  10979. },
  10980. "error" : function(msg){
  10981. },
  10982. "complete": function(){
  10983. layer.close(tip);
  10984. }
  10985. });
  10986. }
  10987. $("#fpid").change(function(){
  10988. var tip = layer.load(2);
  10989. var url = "getgyrkxx.do";
  10990. $.ajax({
  10991. "url" : url,
  10992. "data" : {
  10993. "fpId" : $("#fpid").val()
  10994. },
  10995. "type" : "POST",
  10996. "dataType" : "json",
  10997. "async" : true,
  10998. "success" : function(data) {
  10999. $("#dataTable").html("");
  11000. if(data != null && data != ""){
  11001. var html = "";
  11002. for(var i = 0; i < data.length; i++){
  11003. var ID = data[i].id == null ? "" : data[i].id;
  11004. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11005. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11006. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11007. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11008. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11009. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11010. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11011. var NAME = data[i].name == null ? "" : data[i].name;
  11012. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11013. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11014. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11015. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11016. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11017. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11018. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11019. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11020. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11021. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11022. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11023. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11024. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11025. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11026. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11027. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11028. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11029. var invoice_type_cn =null;
  11030. if (invoice_type =="00" ){
  11031. invoice_type_cn="销售发票";
  11032. }else if (invoice_type == "01") {
  11033. invoice_type_cn="更正(对冲)发票";
  11034. }else if (invoice_type == "02") {
  11035. invoice_type_cn="其它类型发票";
  11036. }
  11037. html += "_$ta";
  11038. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11039. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11040. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11041. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11042. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11043. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11044. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11045. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11046. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11047. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11048. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11049. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11050. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11051. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11052. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11053. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11054. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11055. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11056. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11057. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11058. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11059. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11060. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11061. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11062. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  11063. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  11064. html += "_$tag";
  11065. }
  11066. $("#dataTable").html(html);
  11067. }else {
  11068. $("#dataTable").html("");
  11069. }
  11070. },
  11071. "error" : function(msg){
  11072. },
  11073. "complete": function(){
  11074. layer.close(tip);
  11075. }
  11076. });
  11077. });
  11078. Date.prototype.Format = function (fmt) {
  11079. var o = {
  11080. "M+": this.getMonth() + 1, //月份
  11081. "d+": this.getDate(), //日
  11082. "h+": this.getHours(), //小时
  11083. "m+": this.getMinutes(), //分
  11084. "s+": this.getSeconds(), //秒
  11085. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11086. "S": this.getMilliseconds() //毫秒
  11087. };
  11088. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11089. for (var k in o)
  11090. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11091. return fmt;
  11092. }
  11093. $("#jrjc").change(function() {
  11094. if ($("#jrjc").prop('checked') == true){
  11095. $("#departmentId").removeAttr("disabled");
  11096. }else {
  11097. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11098. }
  11099. });
  11100. ----------------------------------- SOURCE END -------------------------------------
  11101. !STACK 0
  11102. java.lang.NullPointerException
  11103. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:20.653
  11104. !MESSAGE Exception occurred during problem detection:
  11105. ----------------------------------- SOURCE BEGIN -------------------------------------
  11106. (function(){WdatePicker();})();
  11107. (function(){WdatePicker();})();
  11108. (function(){Data.get();})();
  11109. (function(){Data.set();})();
  11110. (function(){search();})();
  11111. $(function(){
  11112. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11113. getfp();
  11114. });
  11115. var Data = {
  11116. "get" : function(){
  11117. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11118. var tip = layer.load(2);
  11119. var result="";
  11120. var url = "getgyxml.do";
  11121. $.ajax({
  11122. "url" : url,
  11123. "data" : {
  11124. "start_date" : $("#dateBegin").val(),
  11125. "end_date" : $("#dateEnd").val()
  11126. },
  11127. "type" : "POST",
  11128. "dataType" : "json",
  11129. "success" : function(data) {
  11130. if(data != null && data != ""){
  11131. if ( data.status =="success"){
  11132. getfp();
  11133. alert("获取成功!");
  11134. }else {
  11135. alert(data.status);
  11136. }
  11137. }else {
  11138. alert("获取失败!");
  11139. }
  11140. },
  11141. "complete": function(){
  11142. layer.close(tip);
  11143. }
  11144. });
  11145. }else {
  11146. alert("请选择日期!");
  11147. }
  11148. },
  11149. "set" : function(){
  11150. if ( $("#fpid option:selected").text() !=""){
  11151. var tip = layer.load(2);
  11152. var gitem = $("#form1").serialize();
  11153. var jrjc;
  11154. if ($("#jrjc").prop('checked') == true){
  11155. jrjc = $("#departmentId").val();
  11156. }else {
  11157. jrjc ='N'
  11158. }
  11159. var url = "saverk.do";
  11160. $.ajax({
  11161. "url" : url,
  11162. "data" : {
  11163. "gitem" : gitem,
  11164. "jrjc" : jrjc
  11165. },
  11166. "type" : "POST",
  11167. "dataType" : "json",
  11168. "async" : true,
  11169. "success" : function(data) {
  11170. if(data.status ="success"){
  11171. alert("入库成功!");
  11172. window.location.reload();
  11173. }else {
  11174. alert(msg);
  11175. }
  11176. },
  11177. "error": function(){
  11178. alert("确认失败!");
  11179. },
  11180. "complete": function(){
  11181. layer.close(tip);
  11182. }
  11183. });
  11184. }else {
  11185. alert("请选择发票!");
  11186. }
  11187. }
  11188. }
  11189. function getfp(){
  11190. var tip = layer.load(2);
  11191. var url = "getgyfp.do";
  11192. $.ajax({
  11193. "url" : url,
  11194. "type" : "POST",
  11195. "dataType" : "json",
  11196. "async" : true,
  11197. "success" : function(data) {
  11198. if(data != null && data != ""){
  11199. $("#fpid").empty();
  11200. $("#fpid").append("_$tag_____________$tag____");
  11201. for(var i = 0; i < data.length; i++){
  11202. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11203. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11204. }
  11205. }
  11206. },
  11207. "error" : function(msg){
  11208. },
  11209. "complete": function(){
  11210. layer.close(tip);
  11211. }
  11212. });
  11213. }
  11214. $("#fpid").change(function(){
  11215. var tip = layer.load(2);
  11216. var url = "getgyrkxx.do";
  11217. $.ajax({
  11218. "url" : url,
  11219. "data" : {
  11220. "fpId" : $("#fpid").val()
  11221. },
  11222. "type" : "POST",
  11223. "dataType" : "json",
  11224. "async" : true,
  11225. "success" : function(data) {
  11226. $("#dataTable").html("");
  11227. if(data != null && data != ""){
  11228. var html = "";
  11229. for(var i = 0; i < data.length; i++){
  11230. var ID = data[i].id == null ? "" : data[i].id;
  11231. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11232. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11233. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11234. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11235. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11236. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11237. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11238. var NAME = data[i].name == null ? "" : data[i].name;
  11239. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11240. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11241. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11242. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11243. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11244. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11245. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11246. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11247. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11248. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11249. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11250. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11251. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11252. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11253. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11254. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11255. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11256. var invoice_type_cn =null;
  11257. if (invoice_type =="00" ){
  11258. invoice_type_cn="销售发票";
  11259. }else if (invoice_type == "01") {
  11260. invoice_type_cn="更正(对冲)发票";
  11261. }else if (invoice_type == "02") {
  11262. invoice_type_cn="其它类型发票";
  11263. }
  11264. html += "_$ta";
  11265. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11266. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11268. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11269. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11270. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11271. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11272. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11273. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11274. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11275. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11276. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11277. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11278. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11279. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11280. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11281. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11282. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11283. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11284. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11285. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11286. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11287. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11288. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11289. html += "_$tag_____________$tag_______________________________________________________________________________________________________________$tag";
  11290. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  11291. html += "_$tag";
  11292. }
  11293. $("#dataTable").html(html);
  11294. }else {
  11295. $("#dataTable").html("");
  11296. }
  11297. },
  11298. "error" : function(msg){
  11299. },
  11300. "complete": function(){
  11301. layer.close(tip);
  11302. }
  11303. });
  11304. });
  11305. Date.prototype.Format = function (fmt) {
  11306. var o = {
  11307. "M+": this.getMonth() + 1, //月份
  11308. "d+": this.getDate(), //日
  11309. "h+": this.getHours(), //小时
  11310. "m+": this.getMinutes(), //分
  11311. "s+": this.getSeconds(), //秒
  11312. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11313. "S": this.getMilliseconds() //毫秒
  11314. };
  11315. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11316. for (var k in o)
  11317. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11318. return fmt;
  11319. }
  11320. $("#jrjc").change(function() {
  11321. if ($("#jrjc").prop('checked') == true){
  11322. $("#departmentId").removeAttr("disabled");
  11323. }else {
  11324. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11325. }
  11326. });
  11327. ----------------------------------- SOURCE END -------------------------------------
  11328. !STACK 0
  11329. java.lang.NullPointerException
  11330. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:20.654
  11331. !MESSAGE Error while processing working copy
  11332. !STACK 1
  11333. JavaScript Model Exception: java.lang.NullPointerException
  11334. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11335. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11336. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11337. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11338. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11339. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11340. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11341. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11342. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11343. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11344. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11345. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11346. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11347. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11348. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11349. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11350. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11351. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11352. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11353. Caused by: java.lang.NullPointerException
  11354. Caused by: java.lang.NullPointerException
  11355. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:20.654
  11356. !MESSAGE java.lang.NullPointerException
  11357. !STACK 0
  11358. java.lang.NullPointerException
  11359. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:21.306
  11360. !MESSAGE Exception occurred during problem detection:
  11361. ----------------------------------- SOURCE BEGIN -------------------------------------
  11362. (function(){WdatePicker();})();
  11363. (function(){WdatePicker();})();
  11364. (function(){Data.get();})();
  11365. (function(){Data.set();})();
  11366. (function(){search();})();
  11367. $(function(){
  11368. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11369. getfp();
  11370. });
  11371. var Data = {
  11372. "get" : function(){
  11373. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11374. var tip = layer.load(2);
  11375. var result="";
  11376. var url = "getgyxml.do";
  11377. $.ajax({
  11378. "url" : url,
  11379. "data" : {
  11380. "start_date" : $("#dateBegin").val(),
  11381. "end_date" : $("#dateEnd").val()
  11382. },
  11383. "type" : "POST",
  11384. "dataType" : "json",
  11385. "success" : function(data) {
  11386. if(data != null && data != ""){
  11387. if ( data.status =="success"){
  11388. getfp();
  11389. alert("获取成功!");
  11390. }else {
  11391. alert(data.status);
  11392. }
  11393. }else {
  11394. alert("获取失败!");
  11395. }
  11396. },
  11397. "complete": function(){
  11398. layer.close(tip);
  11399. }
  11400. });
  11401. }else {
  11402. alert("请选择日期!");
  11403. }
  11404. },
  11405. "set" : function(){
  11406. if ( $("#fpid option:selected").text() !=""){
  11407. var tip = layer.load(2);
  11408. var gitem = $("#form1").serialize();
  11409. var jrjc;
  11410. if ($("#jrjc").prop('checked') == true){
  11411. jrjc = $("#departmentId").val();
  11412. }else {
  11413. jrjc ='N'
  11414. }
  11415. var url = "saverk.do";
  11416. $.ajax({
  11417. "url" : url,
  11418. "data" : {
  11419. "gitem" : gitem,
  11420. "jrjc" : jrjc
  11421. },
  11422. "type" : "POST",
  11423. "dataType" : "json",
  11424. "async" : true,
  11425. "success" : function(data) {
  11426. if(data.status ="success"){
  11427. alert("入库成功!");
  11428. window.location.reload();
  11429. }else {
  11430. alert(msg);
  11431. }
  11432. },
  11433. "error": function(){
  11434. alert("确认失败!");
  11435. },
  11436. "complete": function(){
  11437. layer.close(tip);
  11438. }
  11439. });
  11440. }else {
  11441. alert("请选择发票!");
  11442. }
  11443. }
  11444. }
  11445. function getfp(){
  11446. var tip = layer.load(2);
  11447. var url = "getgyfp.do";
  11448. $.ajax({
  11449. "url" : url,
  11450. "type" : "POST",
  11451. "dataType" : "json",
  11452. "async" : true,
  11453. "success" : function(data) {
  11454. if(data != null && data != ""){
  11455. $("#fpid").empty();
  11456. $("#fpid").append("_$tag_____________$tag____");
  11457. for(var i = 0; i < data.length; i++){
  11458. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11459. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11460. }
  11461. }
  11462. },
  11463. "error" : function(msg){
  11464. },
  11465. "complete": function(){
  11466. layer.close(tip);
  11467. }
  11468. });
  11469. }
  11470. $("#fpid").change(function(){
  11471. var tip = layer.load(2);
  11472. var url = "getgyrkxx.do";
  11473. $.ajax({
  11474. "url" : url,
  11475. "data" : {
  11476. "fpId" : $("#fpid").val()
  11477. },
  11478. "type" : "POST",
  11479. "dataType" : "json",
  11480. "async" : true,
  11481. "success" : function(data) {
  11482. $("#dataTable").html("");
  11483. if(data != null && data != ""){
  11484. var html = "";
  11485. for(var i = 0; i < data.length; i++){
  11486. var ID = data[i].id == null ? "" : data[i].id;
  11487. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11488. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11489. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11490. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11491. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11492. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11493. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11494. var NAME = data[i].name == null ? "" : data[i].name;
  11495. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11496. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11497. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11498. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11499. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11500. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11501. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11502. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11503. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11504. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11505. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11506. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11507. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11508. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11509. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11510. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11511. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11512. var invoice_type_cn =null;
  11513. if (invoice_type =="00" ){
  11514. invoice_type_cn="销售发票";
  11515. }else if (invoice_type == "01") {
  11516. invoice_type_cn="更正(对冲)发票";
  11517. }else if (invoice_type == "02") {
  11518. invoice_type_cn="其它类型发票";
  11519. }
  11520. html += "_$ta";
  11521. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11522. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11523. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11524. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11525. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11526. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11527. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11528. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11529. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11530. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11531. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11532. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11533. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11534. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11535. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11536. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11537. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11538. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11539. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11540. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11541. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11542. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11543. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11544. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11545. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11546. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  11547. html += "_$tag";
  11548. }
  11549. $("#dataTable").html(html);
  11550. }else {
  11551. $("#dataTable").html("");
  11552. }
  11553. },
  11554. "error" : function(msg){
  11555. },
  11556. "complete": function(){
  11557. layer.close(tip);
  11558. }
  11559. });
  11560. });
  11561. Date.prototype.Format = function (fmt) {
  11562. var o = {
  11563. "M+": this.getMonth() + 1, //月份
  11564. "d+": this.getDate(), //日
  11565. "h+": this.getHours(), //小时
  11566. "m+": this.getMinutes(), //分
  11567. "s+": this.getSeconds(), //秒
  11568. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11569. "S": this.getMilliseconds() //毫秒
  11570. };
  11571. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11572. for (var k in o)
  11573. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11574. return fmt;
  11575. }
  11576. $("#jrjc").change(function() {
  11577. if ($("#jrjc").prop('checked') == true){
  11578. $("#departmentId").removeAttr("disabled");
  11579. }else {
  11580. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11581. }
  11582. });
  11583. ----------------------------------- SOURCE END -------------------------------------
  11584. !STACK 0
  11585. java.lang.NullPointerException
  11586. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:21.819
  11587. !MESSAGE Exception occurred during problem detection:
  11588. ----------------------------------- SOURCE BEGIN -------------------------------------
  11589. (function(){WdatePicker();})();
  11590. (function(){WdatePicker();})();
  11591. (function(){Data.get();})();
  11592. (function(){Data.set();})();
  11593. (function(){search();})();
  11594. $(function(){
  11595. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11596. getfp();
  11597. });
  11598. var Data = {
  11599. "get" : function(){
  11600. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11601. var tip = layer.load(2);
  11602. var result="";
  11603. var url = "getgyxml.do";
  11604. $.ajax({
  11605. "url" : url,
  11606. "data" : {
  11607. "start_date" : $("#dateBegin").val(),
  11608. "end_date" : $("#dateEnd").val()
  11609. },
  11610. "type" : "POST",
  11611. "dataType" : "json",
  11612. "success" : function(data) {
  11613. if(data != null && data != ""){
  11614. if ( data.status =="success"){
  11615. getfp();
  11616. alert("获取成功!");
  11617. }else {
  11618. alert(data.status);
  11619. }
  11620. }else {
  11621. alert("获取失败!");
  11622. }
  11623. },
  11624. "complete": function(){
  11625. layer.close(tip);
  11626. }
  11627. });
  11628. }else {
  11629. alert("请选择日期!");
  11630. }
  11631. },
  11632. "set" : function(){
  11633. if ( $("#fpid option:selected").text() !=""){
  11634. var tip = layer.load(2);
  11635. var gitem = $("#form1").serialize();
  11636. var jrjc;
  11637. if ($("#jrjc").prop('checked') == true){
  11638. jrjc = $("#departmentId").val();
  11639. }else {
  11640. jrjc ='N'
  11641. }
  11642. var url = "saverk.do";
  11643. $.ajax({
  11644. "url" : url,
  11645. "data" : {
  11646. "gitem" : gitem,
  11647. "jrjc" : jrjc
  11648. },
  11649. "type" : "POST",
  11650. "dataType" : "json",
  11651. "async" : true,
  11652. "success" : function(data) {
  11653. if(data.status ="success"){
  11654. alert("入库成功!");
  11655. window.location.reload();
  11656. }else {
  11657. alert(msg);
  11658. }
  11659. },
  11660. "error": function(){
  11661. alert("确认失败!");
  11662. },
  11663. "complete": function(){
  11664. layer.close(tip);
  11665. }
  11666. });
  11667. }else {
  11668. alert("请选择发票!");
  11669. }
  11670. }
  11671. }
  11672. function getfp(){
  11673. var tip = layer.load(2);
  11674. var url = "getgyfp.do";
  11675. $.ajax({
  11676. "url" : url,
  11677. "type" : "POST",
  11678. "dataType" : "json",
  11679. "async" : true,
  11680. "success" : function(data) {
  11681. if(data != null && data != ""){
  11682. $("#fpid").empty();
  11683. $("#fpid").append("_$tag_____________$tag____");
  11684. for(var i = 0; i < data.length; i++){
  11685. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11686. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11687. }
  11688. }
  11689. },
  11690. "error" : function(msg){
  11691. },
  11692. "complete": function(){
  11693. layer.close(tip);
  11694. }
  11695. });
  11696. }
  11697. $("#fpid").change(function(){
  11698. var tip = layer.load(2);
  11699. var url = "getgyrkxx.do";
  11700. $.ajax({
  11701. "url" : url,
  11702. "data" : {
  11703. "fpId" : $("#fpid").val()
  11704. },
  11705. "type" : "POST",
  11706. "dataType" : "json",
  11707. "async" : true,
  11708. "success" : function(data) {
  11709. $("#dataTable").html("");
  11710. if(data != null && data != ""){
  11711. var html = "";
  11712. for(var i = 0; i < data.length; i++){
  11713. var ID = data[i].id == null ? "" : data[i].id;
  11714. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11715. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11716. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11717. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11718. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11719. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11720. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11721. var NAME = data[i].name == null ? "" : data[i].name;
  11722. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11723. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11724. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11725. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11726. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11727. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11728. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11729. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11730. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11731. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11732. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11733. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11734. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11735. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11736. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11737. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11738. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11739. var invoice_type_cn =null;
  11740. if (invoice_type =="00" ){
  11741. invoice_type_cn="销售发票";
  11742. }else if (invoice_type == "01") {
  11743. invoice_type_cn="更正(对冲)发票";
  11744. }else if (invoice_type == "02") {
  11745. invoice_type_cn="其它类型发票";
  11746. }
  11747. html += "_$ta";
  11748. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11749. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11750. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11751. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11752. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11753. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11754. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11755. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11756. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11757. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11758. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11759. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11760. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11761. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11762. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11763. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11764. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11765. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11766. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11767. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11768. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11769. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11770. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11771. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11772. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11773. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________________$tag";
  11774. html += "_$tag";
  11775. }
  11776. $("#dataTable").html(html);
  11777. }else {
  11778. $("#dataTable").html("");
  11779. }
  11780. },
  11781. "error" : function(msg){
  11782. },
  11783. "complete": function(){
  11784. layer.close(tip);
  11785. }
  11786. });
  11787. });
  11788. Date.prototype.Format = function (fmt) {
  11789. var o = {
  11790. "M+": this.getMonth() + 1, //月份
  11791. "d+": this.getDate(), //日
  11792. "h+": this.getHours(), //小时
  11793. "m+": this.getMinutes(), //分
  11794. "s+": this.getSeconds(), //秒
  11795. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11796. "S": this.getMilliseconds() //毫秒
  11797. };
  11798. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11799. for (var k in o)
  11800. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11801. return fmt;
  11802. }
  11803. $("#jrjc").change(function() {
  11804. if ($("#jrjc").prop('checked') == true){
  11805. $("#departmentId").removeAttr("disabled");
  11806. }else {
  11807. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11808. }
  11809. });
  11810. ----------------------------------- SOURCE END -------------------------------------
  11811. !STACK 0
  11812. java.lang.NullPointerException
  11813. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:19:21.820
  11814. !MESSAGE java.lang.NullPointerException
  11815. !STACK 1
  11816. JavaScript Model Exception: java.lang.NullPointerException
  11817. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11818. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  11819. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11820. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11821. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  11822. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  11823. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  11824. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  11825. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  11826. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  11827. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  11828. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  11829. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  11830. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  11831. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  11832. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  11833. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  11834. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  11835. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  11836. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  11837. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  11838. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  11839. Caused by: java.lang.NullPointerException
  11840. Caused by: java.lang.NullPointerException
  11841. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:21.820
  11842. !MESSAGE java.lang.NullPointerException
  11843. !STACK 0
  11844. java.lang.NullPointerException
  11845. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:23.500
  11846. !MESSAGE Exception occurred during problem detection:
  11847. ----------------------------------- SOURCE BEGIN -------------------------------------
  11848. (function(){WdatePicker();})();
  11849. (function(){WdatePicker();})();
  11850. (function(){Data.get();})();
  11851. (function(){Data.set();})();
  11852. (function(){search();})();
  11853. $(function(){
  11854. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11855. getfp();
  11856. });
  11857. var Data = {
  11858. "get" : function(){
  11859. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11860. var tip = layer.load(2);
  11861. var result="";
  11862. var url = "getgyxml.do";
  11863. $.ajax({
  11864. "url" : url,
  11865. "data" : {
  11866. "start_date" : $("#dateBegin").val(),
  11867. "end_date" : $("#dateEnd").val()
  11868. },
  11869. "type" : "POST",
  11870. "dataType" : "json",
  11871. "success" : function(data) {
  11872. if(data != null && data != ""){
  11873. if ( data.status =="success"){
  11874. getfp();
  11875. alert("获取成功!");
  11876. }else {
  11877. alert(data.status);
  11878. }
  11879. }else {
  11880. alert("获取失败!");
  11881. }
  11882. },
  11883. "complete": function(){
  11884. layer.close(tip);
  11885. }
  11886. });
  11887. }else {
  11888. alert("请选择日期!");
  11889. }
  11890. },
  11891. "set" : function(){
  11892. if ( $("#fpid option:selected").text() !=""){
  11893. var tip = layer.load(2);
  11894. var gitem = $("#form1").serialize();
  11895. var jrjc;
  11896. if ($("#jrjc").prop('checked') == true){
  11897. jrjc = $("#departmentId").val();
  11898. }else {
  11899. jrjc ='N'
  11900. }
  11901. var url = "saverk.do";
  11902. $.ajax({
  11903. "url" : url,
  11904. "data" : {
  11905. "gitem" : gitem,
  11906. "jrjc" : jrjc
  11907. },
  11908. "type" : "POST",
  11909. "dataType" : "json",
  11910. "async" : true,
  11911. "success" : function(data) {
  11912. if(data.status ="success"){
  11913. alert("入库成功!");
  11914. window.location.reload();
  11915. }else {
  11916. alert(msg);
  11917. }
  11918. },
  11919. "error": function(){
  11920. alert("确认失败!");
  11921. },
  11922. "complete": function(){
  11923. layer.close(tip);
  11924. }
  11925. });
  11926. }else {
  11927. alert("请选择发票!");
  11928. }
  11929. }
  11930. }
  11931. function getfp(){
  11932. var tip = layer.load(2);
  11933. var url = "getgyfp.do";
  11934. $.ajax({
  11935. "url" : url,
  11936. "type" : "POST",
  11937. "dataType" : "json",
  11938. "async" : true,
  11939. "success" : function(data) {
  11940. if(data != null && data != ""){
  11941. $("#fpid").empty();
  11942. $("#fpid").append("_$tag_____________$tag____");
  11943. for(var i = 0; i < data.length; i++){
  11944. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11945. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11946. }
  11947. }
  11948. },
  11949. "error" : function(msg){
  11950. },
  11951. "complete": function(){
  11952. layer.close(tip);
  11953. }
  11954. });
  11955. }
  11956. $("#fpid").change(function(){
  11957. var tip = layer.load(2);
  11958. var url = "getgyrkxx.do";
  11959. $.ajax({
  11960. "url" : url,
  11961. "data" : {
  11962. "fpId" : $("#fpid").val()
  11963. },
  11964. "type" : "POST",
  11965. "dataType" : "json",
  11966. "async" : true,
  11967. "success" : function(data) {
  11968. $("#dataTable").html("");
  11969. if(data != null && data != ""){
  11970. var html = "";
  11971. for(var i = 0; i < data.length; i++){
  11972. var ID = data[i].id == null ? "" : data[i].id;
  11973. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11974. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11975. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11976. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11977. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11978. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11979. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11980. var NAME = data[i].name == null ? "" : data[i].name;
  11981. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11982. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11983. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11984. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11985. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11986. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11987. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11988. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11989. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11990. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11991. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11992. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11993. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11994. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11995. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11996. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11997. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11998. var invoice_type_cn =null;
  11999. if (invoice_type =="00" ){
  12000. invoice_type_cn="销售发票";
  12001. }else if (invoice_type == "01") {
  12002. invoice_type_cn="更正(对冲)发票";
  12003. }else if (invoice_type == "02") {
  12004. invoice_type_cn="其它类型发票";
  12005. }
  12006. html += "_$ta";
  12007. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12008. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12009. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12010. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12011. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12012. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12013. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12014. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12015. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12016. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12017. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12018. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12019. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12020. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12021. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12022. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12023. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12024. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12025. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12026. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12027. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12028. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12029. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12030. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12031. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12032. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12033. html += "_$tag";
  12034. }
  12035. $("#dataTable").html(html);
  12036. }else {
  12037. $("#dataTable").html("");
  12038. }
  12039. },
  12040. "error" : function(msg){
  12041. },
  12042. "complete": function(){
  12043. layer.close(tip);
  12044. }
  12045. });
  12046. });
  12047. Date.prototype.Format = function (fmt) {
  12048. var o = {
  12049. "M+": this.getMonth() + 1, //月份
  12050. "d+": this.getDate(), //日
  12051. "h+": this.getHours(), //小时
  12052. "m+": this.getMinutes(), //分
  12053. "s+": this.getSeconds(), //秒
  12054. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12055. "S": this.getMilliseconds() //毫秒
  12056. };
  12057. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12058. for (var k in o)
  12059. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12060. return fmt;
  12061. }
  12062. $("#jrjc").change(function() {
  12063. if ($("#jrjc").prop('checked') == true){
  12064. $("#departmentId").removeAttr("disabled");
  12065. }else {
  12066. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12067. }
  12068. });
  12069. ----------------------------------- SOURCE END -------------------------------------
  12070. !STACK 0
  12071. java.lang.NullPointerException
  12072. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:19:23.501
  12073. !MESSAGE java.lang.NullPointerException
  12074. !STACK 1
  12075. JavaScript Model Exception: java.lang.NullPointerException
  12076. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12077. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  12078. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12079. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12080. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  12081. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  12082. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  12083. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  12084. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  12085. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  12086. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  12087. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  12088. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  12089. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  12090. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  12091. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  12092. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  12093. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  12094. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  12095. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  12096. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  12097. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  12098. Caused by: java.lang.NullPointerException
  12099. Caused by: java.lang.NullPointerException
  12100. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:23.501
  12101. !MESSAGE java.lang.NullPointerException
  12102. !STACK 0
  12103. java.lang.NullPointerException
  12104. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:23.850
  12105. !MESSAGE Exception occurred during problem detection:
  12106. ----------------------------------- SOURCE BEGIN -------------------------------------
  12107. (function(){WdatePicker();})();
  12108. (function(){WdatePicker();})();
  12109. (function(){Data.get();})();
  12110. (function(){Data.set();})();
  12111. (function(){search();})();
  12112. $(function(){
  12113. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12114. getfp();
  12115. });
  12116. var Data = {
  12117. "get" : function(){
  12118. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12119. var tip = layer.load(2);
  12120. var result="";
  12121. var url = "getgyxml.do";
  12122. $.ajax({
  12123. "url" : url,
  12124. "data" : {
  12125. "start_date" : $("#dateBegin").val(),
  12126. "end_date" : $("#dateEnd").val()
  12127. },
  12128. "type" : "POST",
  12129. "dataType" : "json",
  12130. "success" : function(data) {
  12131. if(data != null && data != ""){
  12132. if ( data.status =="success"){
  12133. getfp();
  12134. alert("获取成功!");
  12135. }else {
  12136. alert(data.status);
  12137. }
  12138. }else {
  12139. alert("获取失败!");
  12140. }
  12141. },
  12142. "complete": function(){
  12143. layer.close(tip);
  12144. }
  12145. });
  12146. }else {
  12147. alert("请选择日期!");
  12148. }
  12149. },
  12150. "set" : function(){
  12151. if ( $("#fpid option:selected").text() !=""){
  12152. var tip = layer.load(2);
  12153. var gitem = $("#form1").serialize();
  12154. var jrjc;
  12155. if ($("#jrjc").prop('checked') == true){
  12156. jrjc = $("#departmentId").val();
  12157. }else {
  12158. jrjc ='N'
  12159. }
  12160. var url = "saverk.do";
  12161. $.ajax({
  12162. "url" : url,
  12163. "data" : {
  12164. "gitem" : gitem,
  12165. "jrjc" : jrjc
  12166. },
  12167. "type" : "POST",
  12168. "dataType" : "json",
  12169. "async" : true,
  12170. "success" : function(data) {
  12171. if(data.status ="success"){
  12172. alert("入库成功!");
  12173. window.location.reload();
  12174. }else {
  12175. alert(msg);
  12176. }
  12177. },
  12178. "error": function(){
  12179. alert("确认失败!");
  12180. },
  12181. "complete": function(){
  12182. layer.close(tip);
  12183. }
  12184. });
  12185. }else {
  12186. alert("请选择发票!");
  12187. }
  12188. }
  12189. }
  12190. function getfp(){
  12191. var tip = layer.load(2);
  12192. var url = "getgyfp.do";
  12193. $.ajax({
  12194. "url" : url,
  12195. "type" : "POST",
  12196. "dataType" : "json",
  12197. "async" : true,
  12198. "success" : function(data) {
  12199. if(data != null && data != ""){
  12200. $("#fpid").empty();
  12201. $("#fpid").append("_$tag_____________$tag____");
  12202. for(var i = 0; i < data.length; i++){
  12203. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12204. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12205. }
  12206. }
  12207. },
  12208. "error" : function(msg){
  12209. },
  12210. "complete": function(){
  12211. layer.close(tip);
  12212. }
  12213. });
  12214. }
  12215. $("#fpid").change(function(){
  12216. var tip = layer.load(2);
  12217. var url = "getgyrkxx.do";
  12218. $.ajax({
  12219. "url" : url,
  12220. "data" : {
  12221. "fpId" : $("#fpid").val()
  12222. },
  12223. "type" : "POST",
  12224. "dataType" : "json",
  12225. "async" : true,
  12226. "success" : function(data) {
  12227. $("#dataTable").html("");
  12228. if(data != null && data != ""){
  12229. var html = "";
  12230. for(var i = 0; i < data.length; i++){
  12231. var ID = data[i].id == null ? "" : data[i].id;
  12232. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12233. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12234. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12235. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12236. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12237. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12238. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12239. var NAME = data[i].name == null ? "" : data[i].name;
  12240. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12241. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12242. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12243. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12244. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12245. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12246. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12247. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12248. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12249. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12250. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12251. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12252. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12253. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12254. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12255. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12256. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12257. var invoice_type_cn =null;
  12258. if (invoice_type =="00" ){
  12259. invoice_type_cn="销售发票";
  12260. }else if (invoice_type == "01") {
  12261. invoice_type_cn="更正(对冲)发票";
  12262. }else if (invoice_type == "02") {
  12263. invoice_type_cn="其它类型发票";
  12264. }
  12265. html += "_$ta";
  12266. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12268. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12269. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12270. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12271. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12272. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12273. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12274. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12275. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12276. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12277. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12278. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12279. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12280. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12281. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12282. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12283. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12284. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12285. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12286. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12287. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12288. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12289. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12290. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12291. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12292. html += "_$tag";
  12293. }
  12294. $("#dataTable").html(html);
  12295. }else {
  12296. $("#dataTable").html("");
  12297. }
  12298. },
  12299. "error" : function(msg){
  12300. },
  12301. "complete": function(){
  12302. layer.close(tip);
  12303. }
  12304. });
  12305. });
  12306. Date.prototype.Format = function (fmt) {
  12307. var o = {
  12308. "M+": this.getMonth() + 1, //月份
  12309. "d+": this.getDate(), //日
  12310. "h+": this.getHours(), //小时
  12311. "m+": this.getMinutes(), //分
  12312. "s+": this.getSeconds(), //秒
  12313. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12314. "S": this.getMilliseconds() //毫秒
  12315. };
  12316. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12317. for (var k in o)
  12318. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12319. return fmt;
  12320. }
  12321. $("#jrjc").change(function() {
  12322. if ($("#jrjc").prop('checked') == true){
  12323. $("#departmentId").removeAttr("disabled");
  12324. }else {
  12325. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12326. }
  12327. });
  12328. ----------------------------------- SOURCE END -------------------------------------
  12329. !STACK 0
  12330. java.lang.NullPointerException
  12331. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:23.850
  12332. !MESSAGE Error while processing working copy
  12333. !STACK 1
  12334. JavaScript Model Exception: java.lang.NullPointerException
  12335. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12336. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12337. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12338. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12339. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12340. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12341. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12342. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12343. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12344. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12345. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12346. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12347. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12348. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12349. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12350. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12351. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12352. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12353. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12354. Caused by: java.lang.NullPointerException
  12355. Caused by: java.lang.NullPointerException
  12356. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:23.850
  12357. !MESSAGE java.lang.NullPointerException
  12358. !STACK 0
  12359. java.lang.NullPointerException
  12360. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:24.479
  12361. !MESSAGE Exception occurred during problem detection:
  12362. ----------------------------------- SOURCE BEGIN -------------------------------------
  12363. (function(){WdatePicker();})();
  12364. (function(){WdatePicker();})();
  12365. (function(){Data.get();})();
  12366. (function(){Data.set();})();
  12367. (function(){search();})();
  12368. $(function(){
  12369. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12370. getfp();
  12371. });
  12372. var Data = {
  12373. "get" : function(){
  12374. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12375. var tip = layer.load(2);
  12376. var result="";
  12377. var url = "getgyxml.do";
  12378. $.ajax({
  12379. "url" : url,
  12380. "data" : {
  12381. "start_date" : $("#dateBegin").val(),
  12382. "end_date" : $("#dateEnd").val()
  12383. },
  12384. "type" : "POST",
  12385. "dataType" : "json",
  12386. "success" : function(data) {
  12387. if(data != null && data != ""){
  12388. if ( data.status =="success"){
  12389. getfp();
  12390. alert("获取成功!");
  12391. }else {
  12392. alert(data.status);
  12393. }
  12394. }else {
  12395. alert("获取失败!");
  12396. }
  12397. },
  12398. "complete": function(){
  12399. layer.close(tip);
  12400. }
  12401. });
  12402. }else {
  12403. alert("请选择日期!");
  12404. }
  12405. },
  12406. "set" : function(){
  12407. if ( $("#fpid option:selected").text() !=""){
  12408. var tip = layer.load(2);
  12409. var gitem = $("#form1").serialize();
  12410. var jrjc;
  12411. if ($("#jrjc").prop('checked') == true){
  12412. jrjc = $("#departmentId").val();
  12413. }else {
  12414. jrjc ='N'
  12415. }
  12416. var url = "saverk.do";
  12417. $.ajax({
  12418. "url" : url,
  12419. "data" : {
  12420. "gitem" : gitem,
  12421. "jrjc" : jrjc
  12422. },
  12423. "type" : "POST",
  12424. "dataType" : "json",
  12425. "async" : true,
  12426. "success" : function(data) {
  12427. if(data.status ="success"){
  12428. alert("入库成功!");
  12429. window.location.reload();
  12430. }else {
  12431. alert(msg);
  12432. }
  12433. },
  12434. "error": function(){
  12435. alert("确认失败!");
  12436. },
  12437. "complete": function(){
  12438. layer.close(tip);
  12439. }
  12440. });
  12441. }else {
  12442. alert("请选择发票!");
  12443. }
  12444. }
  12445. }
  12446. function getfp(){
  12447. var tip = layer.load(2);
  12448. var url = "getgyfp.do";
  12449. $.ajax({
  12450. "url" : url,
  12451. "type" : "POST",
  12452. "dataType" : "json",
  12453. "async" : true,
  12454. "success" : function(data) {
  12455. if(data != null && data != ""){
  12456. $("#fpid").empty();
  12457. $("#fpid").append("_$tag_____________$tag____");
  12458. for(var i = 0; i < data.length; i++){
  12459. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12460. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12461. }
  12462. }
  12463. },
  12464. "error" : function(msg){
  12465. },
  12466. "complete": function(){
  12467. layer.close(tip);
  12468. }
  12469. });
  12470. }
  12471. $("#fpid").change(function(){
  12472. var tip = layer.load(2);
  12473. var url = "getgyrkxx.do";
  12474. $.ajax({
  12475. "url" : url,
  12476. "data" : {
  12477. "fpId" : $("#fpid").val()
  12478. },
  12479. "type" : "POST",
  12480. "dataType" : "json",
  12481. "async" : true,
  12482. "success" : function(data) {
  12483. $("#dataTable").html("");
  12484. if(data != null && data != ""){
  12485. var html = "";
  12486. for(var i = 0; i < data.length; i++){
  12487. var ID = data[i].id == null ? "" : data[i].id;
  12488. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12489. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12490. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12491. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12492. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12493. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12494. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12495. var NAME = data[i].name == null ? "" : data[i].name;
  12496. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12497. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12498. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12499. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12500. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12501. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12502. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12503. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12504. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12505. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12506. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12507. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12508. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12509. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12510. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12511. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12512. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12513. var invoice_type_cn =null;
  12514. if (invoice_type =="00" ){
  12515. invoice_type_cn="销售发票";
  12516. }else if (invoice_type == "01") {
  12517. invoice_type_cn="更正(对冲)发票";
  12518. }else if (invoice_type == "02") {
  12519. invoice_type_cn="其它类型发票";
  12520. }
  12521. html += "_$ta";
  12522. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12523. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12524. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12525. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12526. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12527. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12528. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12529. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12530. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12531. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12532. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12533. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12534. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12535. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12536. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12537. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12538. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12539. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12540. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12541. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12542. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12543. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12544. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12545. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12546. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12547. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12548. html += "_$tag";
  12549. }
  12550. $("#dataTable").html(html);
  12551. }else {
  12552. $("#dataTable").html("");
  12553. }
  12554. },
  12555. "error" : function(msg){
  12556. },
  12557. "complete": function(){
  12558. layer.close(tip);
  12559. }
  12560. });
  12561. });
  12562. Date.prototype.Format = function (fmt) {
  12563. var o = {
  12564. "M+": this.getMonth() + 1, //月份
  12565. "d+": this.getDate(), //日
  12566. "h+": this.getHours(), //小时
  12567. "m+": this.getMinutes(), //分
  12568. "s+": this.getSeconds(), //秒
  12569. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12570. "S": this.getMilliseconds() //毫秒
  12571. };
  12572. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12573. for (var k in o)
  12574. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12575. return fmt;
  12576. }
  12577. $("#jrjc").change(function() {
  12578. if ($("#jrjc").prop('checked') == true){
  12579. $("#departmentId").removeAttr("disabled");
  12580. }else {
  12581. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12582. }
  12583. });
  12584. ----------------------------------- SOURCE END -------------------------------------
  12585. !STACK 0
  12586. java.lang.NullPointerException
  12587. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:27.661
  12588. !MESSAGE Exception occurred during problem detection:
  12589. ----------------------------------- SOURCE BEGIN -------------------------------------
  12590. (function(){WdatePicker();})();
  12591. (function(){WdatePicker();})();
  12592. (function(){Data.get();})();
  12593. (function(){Data.set();})();
  12594. (function(){search();})();
  12595. $(function(){
  12596. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12597. getfp();
  12598. });
  12599. var Data = {
  12600. "get" : function(){
  12601. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12602. var tip = layer.load(2);
  12603. var result="";
  12604. var url = "getgyxml.do";
  12605. $.ajax({
  12606. "url" : url,
  12607. "data" : {
  12608. "start_date" : $("#dateBegin").val(),
  12609. "end_date" : $("#dateEnd").val()
  12610. },
  12611. "type" : "POST",
  12612. "dataType" : "json",
  12613. "success" : function(data) {
  12614. if(data != null && data != ""){
  12615. if ( data.status =="success"){
  12616. getfp();
  12617. alert("获取成功!");
  12618. }else {
  12619. alert(data.status);
  12620. }
  12621. }else {
  12622. alert("获取失败!");
  12623. }
  12624. },
  12625. "complete": function(){
  12626. layer.close(tip);
  12627. }
  12628. });
  12629. }else {
  12630. alert("请选择日期!");
  12631. }
  12632. },
  12633. "set" : function(){
  12634. if ( $("#fpid option:selected").text() !=""){
  12635. var tip = layer.load(2);
  12636. var gitem = $("#form1").serialize();
  12637. var jrjc;
  12638. if ($("#jrjc").prop('checked') == true){
  12639. jrjc = $("#departmentId").val();
  12640. }else {
  12641. jrjc ='N'
  12642. }
  12643. var url = "saverk.do";
  12644. $.ajax({
  12645. "url" : url,
  12646. "data" : {
  12647. "gitem" : gitem,
  12648. "jrjc" : jrjc
  12649. },
  12650. "type" : "POST",
  12651. "dataType" : "json",
  12652. "async" : true,
  12653. "success" : function(data) {
  12654. if(data.status ="success"){
  12655. alert("入库成功!");
  12656. window.location.reload();
  12657. }else {
  12658. alert(msg);
  12659. }
  12660. },
  12661. "error": function(){
  12662. alert("确认失败!");
  12663. },
  12664. "complete": function(){
  12665. layer.close(tip);
  12666. }
  12667. });
  12668. }else {
  12669. alert("请选择发票!");
  12670. }
  12671. }
  12672. }
  12673. function getfp(){
  12674. var tip = layer.load(2);
  12675. var url = "getgyfp.do";
  12676. $.ajax({
  12677. "url" : url,
  12678. "type" : "POST",
  12679. "dataType" : "json",
  12680. "async" : true,
  12681. "success" : function(data) {
  12682. if(data != null && data != ""){
  12683. $("#fpid").empty();
  12684. $("#fpid").append("_$tag_____________$tag____");
  12685. for(var i = 0; i < data.length; i++){
  12686. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12687. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12688. }
  12689. }
  12690. },
  12691. "error" : function(msg){
  12692. },
  12693. "complete": function(){
  12694. layer.close(tip);
  12695. }
  12696. });
  12697. }
  12698. $("#fpid").change(function(){
  12699. var tip = layer.load(2);
  12700. var url = "getgyrkxx.do";
  12701. $.ajax({
  12702. "url" : url,
  12703. "data" : {
  12704. "fpId" : $("#fpid").val()
  12705. },
  12706. "type" : "POST",
  12707. "dataType" : "json",
  12708. "async" : true,
  12709. "success" : function(data) {
  12710. $("#dataTable").html("");
  12711. if(data != null && data != ""){
  12712. var html = "";
  12713. for(var i = 0; i < data.length; i++){
  12714. var ID = data[i].id == null ? "" : data[i].id;
  12715. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12716. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12717. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12718. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12719. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12720. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12721. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12722. var NAME = data[i].name == null ? "" : data[i].name;
  12723. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12724. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12725. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12726. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12727. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12728. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12729. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12730. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12731. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12732. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12733. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12734. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12735. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12736. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12737. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12738. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12739. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12740. var invoice_type_cn =null;
  12741. if (invoice_type =="00" ){
  12742. invoice_type_cn="销售发票";
  12743. }else if (invoice_type == "01") {
  12744. invoice_type_cn="更正(对冲)发票";
  12745. }else if (invoice_type == "02") {
  12746. invoice_type_cn="其它类型发票";
  12747. }
  12748. html += "_$ta";
  12749. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12750. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12751. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12752. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  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";
  12758. html += "_$tag_____________$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_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12772. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12773. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12774. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12775. html += "_$tag";
  12776. }
  12777. $("#dataTable").html(html);
  12778. }else {
  12779. $("#dataTable").html("");
  12780. }
  12781. },
  12782. "error" : function(msg){
  12783. },
  12784. "complete": function(){
  12785. layer.close(tip);
  12786. }
  12787. });
  12788. });
  12789. Date.prototype.Format = function (fmt) {
  12790. var o = {
  12791. "M+": this.getMonth() + 1, //月份
  12792. "d+": this.getDate(), //日
  12793. "h+": this.getHours(), //小时
  12794. "m+": this.getMinutes(), //分
  12795. "s+": this.getSeconds(), //秒
  12796. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12797. "S": this.getMilliseconds() //毫秒
  12798. };
  12799. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12800. for (var k in o)
  12801. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12802. return fmt;
  12803. }
  12804. $("#jrjc").change(function() {
  12805. if ($("#jrjc").prop('checked') == true){
  12806. $("#departmentId").removeAttr("disabled");
  12807. }else {
  12808. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12809. }
  12810. });
  12811. ----------------------------------- SOURCE END -------------------------------------
  12812. !STACK 0
  12813. java.lang.NullPointerException
  12814. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:27.662
  12815. !MESSAGE Error while processing working copy
  12816. !STACK 1
  12817. JavaScript Model Exception: java.lang.NullPointerException
  12818. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12819. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12820. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12821. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12822. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12823. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12824. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12825. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12826. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12827. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12828. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12829. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12830. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12831. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12832. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12833. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12834. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12835. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12836. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12837. Caused by: java.lang.NullPointerException
  12838. Caused by: java.lang.NullPointerException
  12839. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:19:27.662
  12840. !MESSAGE java.lang.NullPointerException
  12841. !STACK 0
  12842. java.lang.NullPointerException
  12843. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:19:28.631
  12844. !MESSAGE Exception occurred during problem detection:
  12845. ----------------------------------- SOURCE BEGIN -------------------------------------
  12846. (function(){WdatePicker();})();
  12847. (function(){WdatePicker();})();
  12848. (function(){Data.get();})();
  12849. (function(){Data.set();})();
  12850. (function(){search();})();
  12851. $(function(){
  12852. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12853. getfp();
  12854. });
  12855. var Data = {
  12856. "get" : function(){
  12857. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12858. var tip = layer.load(2);
  12859. var result="";
  12860. var url = "getgyxml.do";
  12861. $.ajax({
  12862. "url" : url,
  12863. "data" : {
  12864. "start_date" : $("#dateBegin").val(),
  12865. "end_date" : $("#dateEnd").val()
  12866. },
  12867. "type" : "POST",
  12868. "dataType" : "json",
  12869. "success" : function(data) {
  12870. if(data != null && data != ""){
  12871. if ( data.status =="success"){
  12872. getfp();
  12873. alert("获取成功!");
  12874. }else {
  12875. alert(data.status);
  12876. }
  12877. }else {
  12878. alert("获取失败!");
  12879. }
  12880. },
  12881. "complete": function(){
  12882. layer.close(tip);
  12883. }
  12884. });
  12885. }else {
  12886. alert("请选择日期!");
  12887. }
  12888. },
  12889. "set" : function(){
  12890. if ( $("#fpid option:selected").text() !=""){
  12891. var tip = layer.load(2);
  12892. var gitem = $("#form1").serialize();
  12893. var jrjc;
  12894. if ($("#jrjc").prop('checked') == true){
  12895. jrjc = $("#departmentId").val();
  12896. }else {
  12897. jrjc ='N'
  12898. }
  12899. var url = "saverk.do";
  12900. $.ajax({
  12901. "url" : url,
  12902. "data" : {
  12903. "gitem" : gitem,
  12904. "jrjc" : jrjc
  12905. },
  12906. "type" : "POST",
  12907. "dataType" : "json",
  12908. "async" : true,
  12909. "success" : function(data) {
  12910. if(data.status ="success"){
  12911. alert("入库成功!");
  12912. window.location.reload();
  12913. }else {
  12914. alert(msg);
  12915. }
  12916. },
  12917. "error": function(){
  12918. alert("确认失败!");
  12919. },
  12920. "complete": function(){
  12921. layer.close(tip);
  12922. }
  12923. });
  12924. }else {
  12925. alert("请选择发票!");
  12926. }
  12927. }
  12928. }
  12929. function getfp(){
  12930. var tip = layer.load(2);
  12931. var url = "getgyfp.do";
  12932. $.ajax({
  12933. "url" : url,
  12934. "type" : "POST",
  12935. "dataType" : "json",
  12936. "async" : true,
  12937. "success" : function(data) {
  12938. if(data != null && data != ""){
  12939. $("#fpid").empty();
  12940. $("#fpid").append("_$tag_____________$tag____");
  12941. for(var i = 0; i < data.length; i++){
  12942. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12943. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12944. }
  12945. }
  12946. },
  12947. "error" : function(msg){
  12948. },
  12949. "complete": function(){
  12950. layer.close(tip);
  12951. }
  12952. });
  12953. }
  12954. $("#fpid").change(function(){
  12955. var tip = layer.load(2);
  12956. var url = "getgyrkxx.do";
  12957. $.ajax({
  12958. "url" : url,
  12959. "data" : {
  12960. "fpId" : $("#fpid").val()
  12961. },
  12962. "type" : "POST",
  12963. "dataType" : "json",
  12964. "async" : true,
  12965. "success" : function(data) {
  12966. $("#dataTable").html("");
  12967. if(data != null && data != ""){
  12968. var html = "";
  12969. for(var i = 0; i < data.length; i++){
  12970. var ID = data[i].id == null ? "" : data[i].id;
  12971. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12972. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12973. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12974. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12975. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12976. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12977. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12978. var NAME = data[i].name == null ? "" : data[i].name;
  12979. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12980. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12981. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12982. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12983. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12984. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12985. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12986. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12987. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12988. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12989. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12990. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12991. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12992. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12993. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12994. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12995. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12996. var invoice_type_cn =null;
  12997. if (invoice_type =="00" ){
  12998. invoice_type_cn="销售发票";
  12999. }else if (invoice_type == "01") {
  13000. invoice_type_cn="更正(对冲)发票";
  13001. }else if (invoice_type == "02") {
  13002. invoice_type_cn="其它类型发票";
  13003. }
  13004. html += "_$ta";
  13005. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13006. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13007. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13008. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13009. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13010. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13011. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13012. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13013. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13014. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13015. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13016. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13017. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13018. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13019. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13020. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13021. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13022. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13023. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13024. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13025. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13026. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13027. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13028. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13029. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13030. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13031. html += "_$tag";
  13032. }
  13033. $("#dataTable").html(html);
  13034. }else {
  13035. $("#dataTable").html("");
  13036. }
  13037. },
  13038. "error" : function(msg){
  13039. },
  13040. "complete": function(){
  13041. layer.close(tip);
  13042. }
  13043. });
  13044. });
  13045. Date.prototype.Format = function (fmt) {
  13046. var o = {
  13047. "M+": this.getMonth() + 1, //月份
  13048. "d+": this.getDate(), //日
  13049. "h+": this.getHours(), //小时
  13050. "m+": this.getMinutes(), //分
  13051. "s+": this.getSeconds(), //秒
  13052. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13053. "S": this.getMilliseconds() //毫秒
  13054. };
  13055. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13056. for (var k in o)
  13057. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13058. return fmt;
  13059. }
  13060. $("#jrjc").change(function() {
  13061. if ($("#jrjc").prop('checked') == true){
  13062. $("#departmentId").removeAttr("disabled");
  13063. }else {
  13064. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13065. }
  13066. });
  13067. ----------------------------------- SOURCE END -------------------------------------
  13068. !STACK 0
  13069. java.lang.NullPointerException
  13070. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:20:42.640
  13071. !MESSAGE Exception occurred during problem detection:
  13072. ----------------------------------- SOURCE BEGIN -------------------------------------
  13073. (function(){WdatePicker();})();
  13074. (function(){WdatePicker();})();
  13075. (function(){Data.get();})();
  13076. (function(){Data.set();})();
  13077. (function(){search();})();
  13078. $(function(){
  13079. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13080. getfp();
  13081. });
  13082. var Data = {
  13083. "get" : function(){
  13084. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13085. var tip = layer.load(2);
  13086. var result="";
  13087. var url = "getgyxml.do";
  13088. $.ajax({
  13089. "url" : url,
  13090. "data" : {
  13091. "start_date" : $("#dateBegin").val(),
  13092. "end_date" : $("#dateEnd").val()
  13093. },
  13094. "type" : "POST",
  13095. "dataType" : "json",
  13096. "success" : function(data) {
  13097. if(data != null && data != ""){
  13098. if ( data.status =="success"){
  13099. getfp();
  13100. alert("获取成功!");
  13101. }else {
  13102. alert(data.status);
  13103. }
  13104. }else {
  13105. alert("获取失败!");
  13106. }
  13107. },
  13108. "complete": function(){
  13109. layer.close(tip);
  13110. }
  13111. });
  13112. }else {
  13113. alert("请选择日期!");
  13114. }
  13115. },
  13116. "set" : function(){
  13117. if ( $("#fpid option:selected").text() !=""){
  13118. var tip = layer.load(2);
  13119. var gitem = $("#form1").serialize();
  13120. var jrjc;
  13121. if ($("#jrjc").prop('checked') == true){
  13122. jrjc = $("#departmentId").val();
  13123. }else {
  13124. jrjc ='N'
  13125. }
  13126. var url = "saverk.do";
  13127. $.ajax({
  13128. "url" : url,
  13129. "data" : {
  13130. "gitem" : gitem,
  13131. "jrjc" : jrjc
  13132. },
  13133. "type" : "POST",
  13134. "dataType" : "json",
  13135. "async" : true,
  13136. "success" : function(data) {
  13137. if(data.status ="success"){
  13138. alert("入库成功!");
  13139. window.location.reload();
  13140. }else {
  13141. alert(msg);
  13142. }
  13143. },
  13144. "error": function(){
  13145. alert("确认失败!");
  13146. },
  13147. "complete": function(){
  13148. layer.close(tip);
  13149. }
  13150. });
  13151. }else {
  13152. alert("请选择发票!");
  13153. }
  13154. }
  13155. }
  13156. function getfp(){
  13157. var tip = layer.load(2);
  13158. var url = "getgyfp.do";
  13159. $.ajax({
  13160. "url" : url,
  13161. "type" : "POST",
  13162. "dataType" : "json",
  13163. "async" : true,
  13164. "success" : function(data) {
  13165. if(data != null && data != ""){
  13166. $("#fpid").empty();
  13167. $("#fpid").append("_$tag_____________$tag____");
  13168. for(var i = 0; i < data.length; i++){
  13169. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13170. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13171. }
  13172. }
  13173. },
  13174. "error" : function(msg){
  13175. },
  13176. "complete": function(){
  13177. layer.close(tip);
  13178. }
  13179. });
  13180. }
  13181. $("#fpid").change(function(){
  13182. var tip = layer.load(2);
  13183. var url = "getgyrkxx.do";
  13184. $.ajax({
  13185. "url" : url,
  13186. "data" : {
  13187. "fpId" : $("#fpid").val()
  13188. },
  13189. "type" : "POST",
  13190. "dataType" : "json",
  13191. "async" : true,
  13192. "success" : function(data) {
  13193. $("#dataTable").html("");
  13194. if(data != null && data != ""){
  13195. var html = "";
  13196. for(var i = 0; i < data.length; i++){
  13197. var ID = data[i].id == null ? "" : data[i].id;
  13198. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13199. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13200. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13201. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13202. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13203. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13204. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13205. var NAME = data[i].name == null ? "" : data[i].name;
  13206. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13207. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13208. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13209. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13210. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13211. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13212. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13213. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13214. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13215. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13216. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13217. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13218. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13219. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13220. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13221. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13222. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13223. var invoice_type_cn =null;
  13224. if (invoice_type =="00" ){
  13225. invoice_type_cn="销售发票";
  13226. }else if (invoice_type == "01") {
  13227. invoice_type_cn="更正(对冲)发票";
  13228. }else if (invoice_type == "02") {
  13229. invoice_type_cn="其它类型发票";
  13230. }
  13231. html += "_$ta";
  13232. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13233. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13234. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13235. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13236. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13237. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13238. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13239. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13240. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13241. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13242. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13243. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13244. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13245. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13246. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13247. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13248. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13249. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13250. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13251. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13252. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13253. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13254. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13255. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13256. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13257. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13258. html += "_$tag";
  13259. }
  13260. $("#dataTable").html(html);
  13261. }else {
  13262. $("#dataTable").html("");
  13263. }
  13264. },
  13265. "error" : function(msg){
  13266. },
  13267. "complete": function(){
  13268. layer.close(tip);
  13269. }
  13270. });
  13271. });
  13272. Date.prototype.Format = function (fmt) {
  13273. var o = {
  13274. "M+": this.getMonth() + 1, //月份
  13275. "d+": this.getDate(), //日
  13276. "h+": this.getHours(), //小时
  13277. "m+": this.getMinutes(), //分
  13278. "s+": this.getSeconds(), //秒
  13279. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13280. "S": this.getMilliseconds() //毫秒
  13281. };
  13282. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13283. for (var k in o)
  13284. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13285. return fmt;
  13286. }
  13287. $("#jrjc").change(function() {
  13288. if ($("#jrjc").prop('checked') == true){
  13289. $("#departmentId").removeAttr("disabled");
  13290. }else {
  13291. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13292. }
  13293. });
  13294. ----------------------------------- SOURCE END -------------------------------------
  13295. !STACK 0
  13296. java.lang.NullPointerException
  13297. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:20:42.640
  13298. !MESSAGE Error while processing working copy
  13299. !STACK 1
  13300. JavaScript Model Exception: java.lang.NullPointerException
  13301. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13302. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13303. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13304. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13305. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13306. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13307. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13308. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13309. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13310. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13311. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13312. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13313. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13314. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13315. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13316. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13317. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13318. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13319. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13320. Caused by: java.lang.NullPointerException
  13321. Caused by: java.lang.NullPointerException
  13322. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:20:42.641
  13323. !MESSAGE java.lang.NullPointerException
  13324. !STACK 0
  13325. java.lang.NullPointerException
  13326. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:20:43.919
  13327. !MESSAGE Exception occurred during problem detection:
  13328. ----------------------------------- SOURCE BEGIN -------------------------------------
  13329. (function(){WdatePicker();})();
  13330. (function(){WdatePicker();})();
  13331. (function(){Data.get();})();
  13332. (function(){Data.set();})();
  13333. (function(){search();})();
  13334. $(function(){
  13335. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13336. getfp();
  13337. });
  13338. var Data = {
  13339. "get" : function(){
  13340. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13341. var tip = layer.load(2);
  13342. var result="";
  13343. var url = "getgyxml.do";
  13344. $.ajax({
  13345. "url" : url,
  13346. "data" : {
  13347. "start_date" : $("#dateBegin").val(),
  13348. "end_date" : $("#dateEnd").val()
  13349. },
  13350. "type" : "POST",
  13351. "dataType" : "json",
  13352. "success" : function(data) {
  13353. if(data != null && data != ""){
  13354. if ( data.status =="success"){
  13355. getfp();
  13356. alert("获取成功!");
  13357. }else {
  13358. alert(data.status);
  13359. }
  13360. }else {
  13361. alert("获取失败!");
  13362. }
  13363. },
  13364. "complete": function(){
  13365. layer.close(tip);
  13366. }
  13367. });
  13368. }else {
  13369. alert("请选择日期!");
  13370. }
  13371. },
  13372. "set" : function(){
  13373. if ( $("#fpid option:selected").text() !=""){
  13374. var tip = layer.load(2);
  13375. var gitem = $("#form1").serialize();
  13376. var jrjc;
  13377. if ($("#jrjc").prop('checked') == true){
  13378. jrjc = $("#departmentId").val();
  13379. }else {
  13380. jrjc ='N'
  13381. }
  13382. var url = "saverk.do";
  13383. $.ajax({
  13384. "url" : url,
  13385. "data" : {
  13386. "gitem" : gitem,
  13387. "jrjc" : jrjc
  13388. },
  13389. "type" : "POST",
  13390. "dataType" : "json",
  13391. "async" : true,
  13392. "success" : function(data) {
  13393. if(data.status ="success"){
  13394. alert("入库成功!");
  13395. window.location.reload();
  13396. }else {
  13397. alert(msg);
  13398. }
  13399. },
  13400. "error": function(){
  13401. alert("确认失败!");
  13402. },
  13403. "complete": function(){
  13404. layer.close(tip);
  13405. }
  13406. });
  13407. }else {
  13408. alert("请选择发票!");
  13409. }
  13410. }
  13411. }
  13412. function getfp(){
  13413. var tip = layer.load(2);
  13414. var url = "getgyfp.do";
  13415. $.ajax({
  13416. "url" : url,
  13417. "type" : "POST",
  13418. "dataType" : "json",
  13419. "async" : true,
  13420. "success" : function(data) {
  13421. if(data != null && data != ""){
  13422. $("#fpid").empty();
  13423. $("#fpid").append("_$tag_____________$tag____");
  13424. for(var i = 0; i < data.length; i++){
  13425. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13426. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13427. }
  13428. }
  13429. },
  13430. "error" : function(msg){
  13431. },
  13432. "complete": function(){
  13433. layer.close(tip);
  13434. }
  13435. });
  13436. }
  13437. $("#fpid").change(function(){
  13438. var tip = layer.load(2);
  13439. var url = "getgyrkxx.do";
  13440. $.ajax({
  13441. "url" : url,
  13442. "data" : {
  13443. "fpId" : $("#fpid").val()
  13444. },
  13445. "type" : "POST",
  13446. "dataType" : "json",
  13447. "async" : true,
  13448. "success" : function(data) {
  13449. $("#dataTable").html("");
  13450. if(data != null && data != ""){
  13451. var html = "";
  13452. for(var i = 0; i < data.length; i++){
  13453. var ID = data[i].id == null ? "" : data[i].id;
  13454. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13455. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13456. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13457. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13458. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13459. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13460. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13461. var NAME = data[i].name == null ? "" : data[i].name;
  13462. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13463. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13464. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13465. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13466. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13467. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13468. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13469. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13470. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13471. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13472. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13473. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13474. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13475. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13476. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13477. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13478. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13479. var invoice_type_cn =null;
  13480. if (invoice_type =="00" ){
  13481. invoice_type_cn="销售发票";
  13482. }else if (invoice_type == "01") {
  13483. invoice_type_cn="更正(对冲)发票";
  13484. }else if (invoice_type == "02") {
  13485. invoice_type_cn="其它类型发票";
  13486. }
  13487. html += "_$ta";
  13488. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13489. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13490. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13491. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13492. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13493. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13494. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13495. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13496. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13497. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13498. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13499. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13500. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13501. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13502. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13503. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13504. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13505. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13506. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13507. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13508. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13509. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13510. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13511. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13512. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13513. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13514. html += "_$tag";
  13515. }
  13516. $("#dataTable").html(html);
  13517. }else {
  13518. $("#dataTable").html("");
  13519. }
  13520. },
  13521. "error" : function(msg){
  13522. },
  13523. "complete": function(){
  13524. layer.close(tip);
  13525. }
  13526. });
  13527. });
  13528. Date.prototype.Format = function (fmt) {
  13529. var o = {
  13530. "M+": this.getMonth() + 1, //月份
  13531. "d+": this.getDate(), //日
  13532. "h+": this.getHours(), //小时
  13533. "m+": this.getMinutes(), //分
  13534. "s+": this.getSeconds(), //秒
  13535. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13536. "S": this.getMilliseconds() //毫秒
  13537. };
  13538. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13539. for (var k in o)
  13540. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13541. return fmt;
  13542. }
  13543. $("#jrjc").change(function() {
  13544. if ($("#jrjc").prop('checked') == true){
  13545. $("#departmentId").removeAttr("disabled");
  13546. }else {
  13547. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13548. }
  13549. });
  13550. ----------------------------------- SOURCE END -------------------------------------
  13551. !STACK 0
  13552. java.lang.NullPointerException
  13553. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:30.570
  13554. !MESSAGE Exception occurred during problem detection:
  13555. ----------------------------------- SOURCE BEGIN -------------------------------------
  13556. (function(){WdatePicker();})();
  13557. (function(){WdatePicker();})();
  13558. (function(){Data.get();})();
  13559. (function(){Data.set();})();
  13560. (function(){search();})();
  13561. $(function(){
  13562. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13563. getfp();
  13564. });
  13565. var Data = {
  13566. "get" : function(){
  13567. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13568. var tip = layer.load(2);
  13569. var result="";
  13570. var url = "getgyxml.do";
  13571. $.ajax({
  13572. "url" : url,
  13573. "data" : {
  13574. "start_date" : $("#dateBegin").val(),
  13575. "end_date" : $("#dateEnd").val()
  13576. },
  13577. "type" : "POST",
  13578. "dataType" : "json",
  13579. "success" : function(data) {
  13580. if(data != null && data != ""){
  13581. if ( data.status =="success"){
  13582. getfp();
  13583. alert("获取成功!");
  13584. }else {
  13585. alert(data.status);
  13586. }
  13587. }else {
  13588. alert("获取失败!");
  13589. }
  13590. },
  13591. "complete": function(){
  13592. layer.close(tip);
  13593. }
  13594. });
  13595. }else {
  13596. alert("请选择日期!");
  13597. }
  13598. },
  13599. "set" : function(){
  13600. if ( $("#fpid option:selected").text() !=""){
  13601. var tip = layer.load(2);
  13602. var gitem = $("#form1").serialize();
  13603. var jrjc;
  13604. if ($("#jrjc").prop('checked') == true){
  13605. jrjc = $("#departmentId").val();
  13606. }else {
  13607. jrjc ='N'
  13608. }
  13609. var url = "saverk.do";
  13610. $.ajax({
  13611. "url" : url,
  13612. "data" : {
  13613. "gitem" : gitem,
  13614. "jrjc" : jrjc
  13615. },
  13616. "type" : "POST",
  13617. "dataType" : "json",
  13618. "async" : true,
  13619. "success" : function(data) {
  13620. if(data.status ="success"){
  13621. alert("入库成功!");
  13622. window.location.reload();
  13623. }else {
  13624. alert(msg);
  13625. }
  13626. },
  13627. "error": function(){
  13628. alert("确认失败!");
  13629. },
  13630. "complete": function(){
  13631. layer.close(tip);
  13632. }
  13633. });
  13634. }else {
  13635. alert("请选择发票!");
  13636. }
  13637. }
  13638. }
  13639. function getfp(){
  13640. var tip = layer.load(2);
  13641. var url = "getgyfp.do";
  13642. $.ajax({
  13643. "url" : url,
  13644. "type" : "POST",
  13645. "dataType" : "json",
  13646. "async" : true,
  13647. "success" : function(data) {
  13648. if(data != null && data != ""){
  13649. $("#fpid").empty();
  13650. $("#fpid").append("_$tag_____________$tag____");
  13651. for(var i = 0; i < data.length; i++){
  13652. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13653. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13654. }
  13655. }
  13656. },
  13657. "error" : function(msg){
  13658. },
  13659. "complete": function(){
  13660. layer.close(tip);
  13661. }
  13662. });
  13663. }
  13664. $("#fpid").change(function(){
  13665. var tip = layer.load(2);
  13666. var url = "getgyrkxx.do";
  13667. $.ajax({
  13668. "url" : url,
  13669. "data" : {
  13670. "fpId" : $("#fpid").val()
  13671. },
  13672. "type" : "POST",
  13673. "dataType" : "json",
  13674. "async" : true,
  13675. "success" : function(data) {
  13676. $("#dataTable").html("");
  13677. if(data != null && data != ""){
  13678. var html = "";
  13679. for(var i = 0; i < data.length; i++){
  13680. var ID = data[i].id == null ? "" : data[i].id;
  13681. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13682. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13683. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13684. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13685. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13686. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13687. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13688. var NAME = data[i].name == null ? "" : data[i].name;
  13689. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13690. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13691. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13692. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13693. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13694. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13695. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13696. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13697. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13698. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13699. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13700. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13701. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13702. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13703. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13704. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13705. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13706. var invoice_type_cn =null;
  13707. if (invoice_type =="00" ){
  13708. invoice_type_cn="销售发票";
  13709. }else if (invoice_type == "01") {
  13710. invoice_type_cn="更正(对冲)发票";
  13711. }else if (invoice_type == "02") {
  13712. invoice_type_cn="其它类型发票";
  13713. }
  13714. html += "_$ta";
  13715. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13716. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13717. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13718. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13719. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13720. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13721. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13722. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13723. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13724. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13725. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13726. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13727. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13728. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13729. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13730. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13731. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13732. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13733. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13734. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13735. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13736. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13737. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13738. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13739. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13740. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13741. html += "_$tag";
  13742. }
  13743. $("#dataTable").html(html);
  13744. }else {
  13745. $("#dataTable").html("");
  13746. }
  13747. },
  13748. "error" : function(msg){
  13749. },
  13750. "complete": function(){
  13751. layer.close(tip);
  13752. }
  13753. });
  13754. });
  13755. Date.prototype.Format = function (fmt) {
  13756. var o = {
  13757. "M+": this.getMonth() + 1, //月份
  13758. "d+": this.getDate(), //日
  13759. "h+": this.getHours(), //小时
  13760. "m+": this.getMinutes(), //分
  13761. "s+": this.getSeconds(), //秒
  13762. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13763. "S": this.getMilliseconds() //毫秒
  13764. };
  13765. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13766. for (var k in o)
  13767. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13768. return fmt;
  13769. }
  13770. $("#jrjc").change(function() {
  13771. if ($("#jrjc").prop('checked') == true){
  13772. $("#departmentId").removeAttr("disabled");
  13773. }else {
  13774. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13775. }
  13776. });
  13777. ----------------------------------- SOURCE END -------------------------------------
  13778. !STACK 0
  13779. java.lang.NullPointerException
  13780. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:30.571
  13781. !MESSAGE Error while processing working copy
  13782. !STACK 1
  13783. JavaScript Model Exception: java.lang.NullPointerException
  13784. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13785. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13786. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13787. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13788. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13789. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13790. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13791. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13792. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13793. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13794. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13795. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13796. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13797. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13798. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13799. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13800. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13801. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13802. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13803. Caused by: java.lang.NullPointerException
  13804. Caused by: java.lang.NullPointerException
  13805. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:21:30.571
  13806. !MESSAGE java.lang.NullPointerException
  13807. !STACK 0
  13808. java.lang.NullPointerException
  13809. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:31.559
  13810. !MESSAGE Exception occurred during problem detection:
  13811. ----------------------------------- SOURCE BEGIN -------------------------------------
  13812. (function(){WdatePicker();})();
  13813. (function(){WdatePicker();})();
  13814. (function(){Data.get();})();
  13815. (function(){Data.set();})();
  13816. (function(){search();})();
  13817. $(function(){
  13818. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13819. getfp();
  13820. });
  13821. var Data = {
  13822. "get" : function(){
  13823. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13824. var tip = layer.load(2);
  13825. var result="";
  13826. var url = "getgyxml.do";
  13827. $.ajax({
  13828. "url" : url,
  13829. "data" : {
  13830. "start_date" : $("#dateBegin").val(),
  13831. "end_date" : $("#dateEnd").val()
  13832. },
  13833. "type" : "POST",
  13834. "dataType" : "json",
  13835. "success" : function(data) {
  13836. if(data != null && data != ""){
  13837. if ( data.status =="success"){
  13838. getfp();
  13839. alert("获取成功!");
  13840. }else {
  13841. alert(data.status);
  13842. }
  13843. }else {
  13844. alert("获取失败!");
  13845. }
  13846. },
  13847. "complete": function(){
  13848. layer.close(tip);
  13849. }
  13850. });
  13851. }else {
  13852. alert("请选择日期!");
  13853. }
  13854. },
  13855. "set" : function(){
  13856. if ( $("#fpid option:selected").text() !=""){
  13857. var tip = layer.load(2);
  13858. var gitem = $("#form1").serialize();
  13859. var jrjc;
  13860. if ($("#jrjc").prop('checked') == true){
  13861. jrjc = $("#departmentId").val();
  13862. }else {
  13863. jrjc ='N'
  13864. }
  13865. var url = "saverk.do";
  13866. $.ajax({
  13867. "url" : url,
  13868. "data" : {
  13869. "gitem" : gitem,
  13870. "jrjc" : jrjc
  13871. },
  13872. "type" : "POST",
  13873. "dataType" : "json",
  13874. "async" : true,
  13875. "success" : function(data) {
  13876. if(data.status ="success"){
  13877. alert("入库成功!");
  13878. window.location.reload();
  13879. }else {
  13880. alert(msg);
  13881. }
  13882. },
  13883. "error": function(){
  13884. alert("确认失败!");
  13885. },
  13886. "complete": function(){
  13887. layer.close(tip);
  13888. }
  13889. });
  13890. }else {
  13891. alert("请选择发票!");
  13892. }
  13893. }
  13894. }
  13895. function getfp(){
  13896. var tip = layer.load(2);
  13897. var url = "getgyfp.do";
  13898. $.ajax({
  13899. "url" : url,
  13900. "type" : "POST",
  13901. "dataType" : "json",
  13902. "async" : true,
  13903. "success" : function(data) {
  13904. if(data != null && data != ""){
  13905. $("#fpid").empty();
  13906. $("#fpid").append("_$tag_____________$tag____");
  13907. for(var i = 0; i < data.length; i++){
  13908. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13909. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13910. }
  13911. }
  13912. },
  13913. "error" : function(msg){
  13914. },
  13915. "complete": function(){
  13916. layer.close(tip);
  13917. }
  13918. });
  13919. }
  13920. $("#fpid").change(function(){
  13921. var tip = layer.load(2);
  13922. var url = "getgyrkxx.do";
  13923. $.ajax({
  13924. "url" : url,
  13925. "data" : {
  13926. "fpId" : $("#fpid").val()
  13927. },
  13928. "type" : "POST",
  13929. "dataType" : "json",
  13930. "async" : true,
  13931. "success" : function(data) {
  13932. $("#dataTable").html("");
  13933. if(data != null && data != ""){
  13934. var html = "";
  13935. for(var i = 0; i < data.length; i++){
  13936. var ID = data[i].id == null ? "" : data[i].id;
  13937. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13938. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13939. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13940. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13941. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13942. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13943. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13944. var NAME = data[i].name == null ? "" : data[i].name;
  13945. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13946. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13947. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13948. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13949. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13950. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13951. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13952. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13953. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13954. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13955. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13956. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13957. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13958. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13959. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13960. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13961. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13962. var invoice_type_cn =null;
  13963. if (invoice_type =="00" ){
  13964. invoice_type_cn="销售发票";
  13965. }else if (invoice_type == "01") {
  13966. invoice_type_cn="更正(对冲)发票";
  13967. }else if (invoice_type == "02") {
  13968. invoice_type_cn="其它类型发票";
  13969. }
  13970. html += "_$ta";
  13971. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13972. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13973. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13974. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13975. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13976. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13977. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13978. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13979. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13980. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13981. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13982. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13983. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13984. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13985. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13986. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13988. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13989. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13990. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13991. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13992. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13993. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13994. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13995. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13996. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13997. html += "_$tag";
  13998. }
  13999. $("#dataTable").html(html);
  14000. }else {
  14001. $("#dataTable").html("");
  14002. }
  14003. },
  14004. "error" : function(msg){
  14005. },
  14006. "complete": function(){
  14007. layer.close(tip);
  14008. }
  14009. });
  14010. });
  14011. Date.prototype.Format = function (fmt) {
  14012. var o = {
  14013. "M+": this.getMonth() + 1, //月份
  14014. "d+": this.getDate(), //日
  14015. "h+": this.getHours(), //小时
  14016. "m+": this.getMinutes(), //分
  14017. "s+": this.getSeconds(), //秒
  14018. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  14019. "S": this.getMilliseconds() //毫秒
  14020. };
  14021. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  14022. for (var k in o)
  14023. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  14024. return fmt;
  14025. }
  14026. $("#jrjc").change(function() {
  14027. if ($("#jrjc").prop('checked') == true){
  14028. $("#departmentId").removeAttr("disabled");
  14029. }else {
  14030. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14031. }
  14032. });
  14033. ----------------------------------- SOURCE END -------------------------------------
  14034. !STACK 0
  14035. java.lang.NullPointerException
  14036. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:21:32.553
  14037. !MESSAGE Exception occurred during problem detection:
  14038. ----------------------------------- SOURCE BEGIN -------------------------------------
  14039. (function(){WdatePicker();})();
  14040. (function(){WdatePicker();})();
  14041. (function(){Data.get();})();
  14042. (function(){Data.set();})();
  14043. (function(){search();})();
  14044. $(function(){
  14045. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14046. getfp();
  14047. });
  14048. var Data = {
  14049. "get" : function(){
  14050. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  14051. var tip = layer.load(2);
  14052. var result="";
  14053. var url = "getgyxml.do";
  14054. $.ajax({
  14055. "url" : url,
  14056. "data" : {
  14057. "start_date" : $("#dateBegin").val(),
  14058. "end_date" : $("#dateEnd").val()
  14059. },
  14060. "type" : "POST",
  14061. "dataType" : "json",
  14062. "success" : function(data) {
  14063. if(data != null && data != ""){
  14064. if ( data.status =="success"){
  14065. getfp();
  14066. alert("获取成功!");
  14067. }else {
  14068. alert(data.status);
  14069. }
  14070. }else {
  14071. alert("获取失败!");
  14072. }
  14073. },
  14074. "complete": function(){
  14075. layer.close(tip);
  14076. }
  14077. });
  14078. }else {
  14079. alert("请选择日期!");
  14080. }
  14081. },
  14082. "set" : function(){
  14083. if ( $("#fpid option:selected").text() !=""){
  14084. var tip = layer.load(2);
  14085. var gitem = $("#form1").serialize();
  14086. var jrjc;
  14087. if ($("#jrjc").prop('checked') == true){
  14088. jrjc = $("#departmentId").val();
  14089. }else {
  14090. jrjc ='N'
  14091. }
  14092. var url = "saverk.do";
  14093. $.ajax({
  14094. "url" : url,
  14095. "data" : {
  14096. "gitem" : gitem,
  14097. "jrjc" : jrjc
  14098. },
  14099. "type" : "POST",
  14100. "dataType" : "json",
  14101. "async" : true,
  14102. "success" : function(data) {
  14103. if(data.status ="success"){
  14104. alert("入库成功!");
  14105. window.location.reload();
  14106. }else {
  14107. alert(msg);
  14108. }
  14109. },
  14110. "error": function(){
  14111. alert("确认失败!");
  14112. },
  14113. "complete": function(){
  14114. layer.close(tip);
  14115. }
  14116. });
  14117. }else {
  14118. alert("请选择发票!");
  14119. }
  14120. }
  14121. }
  14122. function getfp(){
  14123. var tip = layer.load(2);
  14124. var url = "getgyfp.do";
  14125. $.ajax({
  14126. "url" : url,
  14127. "type" : "POST",
  14128. "dataType" : "json",
  14129. "async" : true,
  14130. "success" : function(data) {
  14131. if(data != null && data != ""){
  14132. $("#fpid").empty();
  14133. $("#fpid").append("_$tag_____________$tag____");
  14134. for(var i = 0; i < data.length; i++){
  14135. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  14136. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  14137. }
  14138. }
  14139. },
  14140. "error" : function(msg){
  14141. },
  14142. "complete": function(){
  14143. layer.close(tip);
  14144. }
  14145. });
  14146. }
  14147. $("#fpid").change(function(){
  14148. var tip = layer.load(2);
  14149. var url = "getgyrkxx.do";
  14150. $.ajax({
  14151. "url" : url,
  14152. "data" : {
  14153. "fpId" : $("#fpid").val()
  14154. },
  14155. "type" : "POST",
  14156. "dataType" : "json",
  14157. "async" : true,
  14158. "success" : function(data) {
  14159. $("#dataTable").html("");
  14160. if(data != null && data != ""){
  14161. var html = "";
  14162. for(var i = 0; i < data.length; i++){
  14163. var ID = data[i].id == null ? "" : data[i].id;
  14164. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  14165. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  14166. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  14167. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  14168. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  14169. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  14170. var GOODS = data[i].goods == null ? "" : data[i].goods;
  14171. var NAME = data[i].name == null ? "" : data[i].name;
  14172. var SPEC = data[i].spec == null ? "" : data[i].spec;
  14173. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  14174. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  14175. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  14176. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  14177. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  14178. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  14179. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  14180. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  14181. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  14182. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  14183. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  14184. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  14185. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  14186. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  14187. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  14188. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  14189. var invoice_type_cn =null;
  14190. if (invoice_type =="00" ){
  14191. invoice_type_cn="销售发票";
  14192. }else if (invoice_type == "01") {
  14193. invoice_type_cn="更正(对冲)发票";
  14194. }else if (invoice_type == "02") {
  14195. invoice_type_cn="其它类型发票";
  14196. }
  14197. html += "_$ta";
  14198. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  14199. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14200. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14201. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14202. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14203. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14204. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  14205. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14206. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  14207. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  14208. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14209. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14210. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  14211. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  14212. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  14213. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  14214. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14215. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14216. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14217. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  14218. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  14219. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  14220. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  14221. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  14222. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  14223. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  14224. html += "_$tag";
  14225. }
  14226. $("#dataTable").html(html);
  14227. }else {
  14228. $("#dataTable").html("");
  14229. }
  14230. },
  14231. "error" : function(msg){
  14232. },
  14233. "complete": function(){
  14234. layer.close(tip);
  14235. }
  14236. });
  14237. });
  14238. Date.prototype.Format = function (fmt) {
  14239. var o = {
  14240. "M+": this.getMonth() + 1, //月份
  14241. "d+": this.getDate(), //日
  14242. "h+": this.getHours(), //小时
  14243. "m+": this.getMinutes(), //分
  14244. "s+": this.getSeconds(), //秒
  14245. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  14246. "S": this.getMilliseconds() //毫秒
  14247. };
  14248. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  14249. for (var k in o)
  14250. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  14251. return fmt;
  14252. }
  14253. $("#jrjc").change(function() {
  14254. if ($("#jrjc").prop('checked') == true){
  14255. $("#departmentId").removeAttr("disabled");
  14256. }else {
  14257. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  14258. }
  14259. });
  14260. ----------------------------------- SOURCE END -------------------------------------
  14261. !STACK 0
  14262. java.lang.NullPointerException