.bak_9.log 987 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707
  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_8.log
  9. Created Time: 2018-06-21 09:31:42.442
  10. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:42.442
  11. !MESSAGE Exception occurred during problem detection:
  12. ----------------------------------- SOURCE BEGIN -------------------------------------
  13. (function(){WdatePicker();})();
  14. (function(){WdatePicker();})();
  15. (function(){Data.get();})();
  16. (function(){Data.set();})();
  17. (function(){search();})();
  18. $(function(){
  19. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  20. getfp();
  21. });
  22. var Data = {
  23. "get" : function(){
  24. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  25. var tip = layer.load(2);
  26. var result="";
  27. var url = "getgyxml.do";
  28. $.ajax({
  29. "url" : url,
  30. "data" : {
  31. "start_date" : $("#dateBegin").val(),
  32. "end_date" : $("#dateEnd").val()
  33. },
  34. "type" : "POST",
  35. "dataType" : "json",
  36. "success" : function(data) {
  37. if(data != null && data != ""){
  38. if ( data.status =="success"){
  39. getfp();
  40. alert("获取成功!");
  41. }else {
  42. alert(data.status);
  43. }
  44. }else {
  45. alert("获取失败!");
  46. }
  47. },
  48. "complete": function(){
  49. layer.close(tip);
  50. }
  51. });
  52. }else {
  53. alert("请选择日期!");
  54. }
  55. },
  56. "set" : function(){
  57. if ( $("#fpid option:selected").text() !=""){
  58. var tip = layer.load(2);
  59. var gitem = $("#form1").serialize();
  60. var jrjc;
  61. if ($("#jrjc").prop('checked') == true){
  62. jrjc = $("#departmentId").val();
  63. }else {
  64. jrjc ='N'
  65. }
  66. var url = "saverk.do";
  67. $.ajax({
  68. "url" : url,
  69. "data" : {
  70. "gitem" : gitem,
  71. "jrjc" : jrjc
  72. },
  73. "type" : "POST",
  74. "dataType" : "json",
  75. "async" : true,
  76. "success" : function(data) {
  77. if(data.status ="success"){
  78. alert("入库成功!");
  79. window.location.reload();
  80. }else {
  81. alert(msg);
  82. }
  83. },
  84. "error": function(){
  85. alert("确认失败!");
  86. },
  87. "complete": function(){
  88. layer.close(tip);
  89. }
  90. });
  91. }else {
  92. alert("请选择发票!");
  93. }
  94. }
  95. }
  96. function getfp(){
  97. var tip = layer.load(2);
  98. var url = "getgyfp.do";
  99. $.ajax({
  100. "url" : url,
  101. "type" : "POST",
  102. "dataType" : "json",
  103. "async" : true,
  104. "success" : function(data) {
  105. if(data != null && data != ""){
  106. $("#fpid").empty();
  107. $("#fpid").append("_$tag_____________$tag____");
  108. for(var i = 0; i < data.length; i++){
  109. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  110. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  111. }
  112. }
  113. },
  114. "error" : function(msg){
  115. },
  116. "complete": function(){
  117. layer.close(tip);
  118. }
  119. });
  120. }
  121. $("#fpid").change(function(){
  122. var tip = layer.load(2);
  123. var url = "getgyrkxx.do";
  124. var sum_total=0;
  125. $.ajax({
  126. "url" : url,
  127. "data" : {
  128. "fpId" : $("#fpid").val()
  129. },
  130. "type" : "POST",
  131. "dataType" : "json",
  132. "async" : true,
  133. "success" : function(data) {
  134. $("#dataTable").html("");
  135. if(data != null && data != ""){
  136. var html = "";
  137. for(var i = 0; i < data.length; i++){
  138. var ID = data[i].id == null ? "" : data[i].id;
  139. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  140. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  141. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  142. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  143. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  144. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  145. var GOODS = data[i].goods == null ? "" : data[i].goods;
  146. var NAME = data[i].name == null ? "" : data[i].name;
  147. var SPEC = data[i].spec == null ? "" : data[i].spec;
  148. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  149. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  150. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  151. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  152. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  153. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  154. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  155. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  156. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  157. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  158. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  159. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  160. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  161. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  162. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  163. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  164. sum_total = sum_total + DPRC
  165. var invoice_type_cn =null;
  166. if (invoice_type =="00" ){
  167. invoice_type_cn="销售发票";
  168. }else if (invoice_type == "01") {
  169. invoice_type_cn="更正(对冲)发票";
  170. }else if (invoice_type == "02") {
  171. invoice_type_cn="其它类型发票";
  172. }
  173. html += "_$ta";
  174. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  175. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  176. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  177. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  178. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  179. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  180. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  181. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  182. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  183. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  184. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  185. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  186. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  187. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  188. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  189. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  190. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  191. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  192. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  193. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  194. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  195. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  196. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  197. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  198. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  199. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  200. html += "_$tag";
  201. }
  202. html += "_$ta";
  203. html += "_$tag_____________$tag__________________________________________________________________$tag";
  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";
  230. $("#dataTable").html(html);
  231. }else {
  232. $("#dataTable").html("");
  233. }
  234. },
  235. "error" : function(msg){
  236. },
  237. "complete": function(){
  238. layer.close(tip);
  239. }
  240. });
  241. });
  242. Date.prototype.Format = function (fmt) {
  243. var o = {
  244. "M+": this.getMonth() + 1, //月份
  245. "d+": this.getDate(), //日
  246. "h+": this.getHours(), //小时
  247. "m+": this.getMinutes(), //分
  248. "s+": this.getSeconds(), //秒
  249. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  250. "S": this.getMilliseconds() //毫秒
  251. };
  252. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  253. for (var k in o)
  254. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  255. return fmt;
  256. }
  257. $("#jrjc").change(function() {
  258. if ($("#jrjc").prop('checked') == true){
  259. $("#departmentId").removeAttr("disabled");
  260. }else {
  261. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  262. }
  263. });
  264. ----------------------------------- SOURCE END -------------------------------------
  265. !STACK 0
  266. java.lang.NullPointerException
  267. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:42.442
  268. !MESSAGE Error while processing working copy
  269. !STACK 1
  270. JavaScript Model Exception: java.lang.NullPointerException
  271. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  272. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  273. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  274. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  275. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  276. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  277. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  278. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  279. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  280. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  281. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  282. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  283. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  284. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  285. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  286. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  287. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  288. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  289. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  290. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  291. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  292. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  293. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  294. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  295. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  296. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  297. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  298. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  299. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  300. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  301. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  302. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  303. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  304. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  305. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  306. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  307. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  308. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  309. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  310. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  311. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  312. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  313. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  314. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  315. at java.lang.reflect.Method.invoke(Unknown Source)
  316. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  317. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  318. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  319. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  320. Caused by: java.lang.NullPointerException
  321. Caused by: java.lang.NullPointerException
  322. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:42.443
  323. !MESSAGE java.lang.NullPointerException
  324. !STACK 0
  325. java.lang.NullPointerException
  326. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:43.497
  327. !MESSAGE Exception occurred during problem detection:
  328. ----------------------------------- SOURCE BEGIN -------------------------------------
  329. (function(){WdatePicker();})();
  330. (function(){WdatePicker();})();
  331. (function(){Data.get();})();
  332. (function(){Data.set();})();
  333. (function(){search();})();
  334. $(function(){
  335. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  336. getfp();
  337. });
  338. var Data = {
  339. "get" : function(){
  340. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  341. var tip = layer.load(2);
  342. var result="";
  343. var url = "getgyxml.do";
  344. $.ajax({
  345. "url" : url,
  346. "data" : {
  347. "start_date" : $("#dateBegin").val(),
  348. "end_date" : $("#dateEnd").val()
  349. },
  350. "type" : "POST",
  351. "dataType" : "json",
  352. "success" : function(data) {
  353. if(data != null && data != ""){
  354. if ( data.status =="success"){
  355. getfp();
  356. alert("获取成功!");
  357. }else {
  358. alert(data.status);
  359. }
  360. }else {
  361. alert("获取失败!");
  362. }
  363. },
  364. "complete": function(){
  365. layer.close(tip);
  366. }
  367. });
  368. }else {
  369. alert("请选择日期!");
  370. }
  371. },
  372. "set" : function(){
  373. if ( $("#fpid option:selected").text() !=""){
  374. var tip = layer.load(2);
  375. var gitem = $("#form1").serialize();
  376. var jrjc;
  377. if ($("#jrjc").prop('checked') == true){
  378. jrjc = $("#departmentId").val();
  379. }else {
  380. jrjc ='N'
  381. }
  382. var url = "saverk.do";
  383. $.ajax({
  384. "url" : url,
  385. "data" : {
  386. "gitem" : gitem,
  387. "jrjc" : jrjc
  388. },
  389. "type" : "POST",
  390. "dataType" : "json",
  391. "async" : true,
  392. "success" : function(data) {
  393. if(data.status ="success"){
  394. alert("入库成功!");
  395. window.location.reload();
  396. }else {
  397. alert(msg);
  398. }
  399. },
  400. "error": function(){
  401. alert("确认失败!");
  402. },
  403. "complete": function(){
  404. layer.close(tip);
  405. }
  406. });
  407. }else {
  408. alert("请选择发票!");
  409. }
  410. }
  411. }
  412. function getfp(){
  413. var tip = layer.load(2);
  414. var url = "getgyfp.do";
  415. $.ajax({
  416. "url" : url,
  417. "type" : "POST",
  418. "dataType" : "json",
  419. "async" : true,
  420. "success" : function(data) {
  421. if(data != null && data != ""){
  422. $("#fpid").empty();
  423. $("#fpid").append("_$tag_____________$tag____");
  424. for(var i = 0; i < data.length; i++){
  425. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  426. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  427. }
  428. }
  429. },
  430. "error" : function(msg){
  431. },
  432. "complete": function(){
  433. layer.close(tip);
  434. }
  435. });
  436. }
  437. $("#fpid").change(function(){
  438. var tip = layer.load(2);
  439. var url = "getgyrkxx.do";
  440. var sum_total=0;
  441. $.ajax({
  442. "url" : url,
  443. "data" : {
  444. "fpId" : $("#fpid").val()
  445. },
  446. "type" : "POST",
  447. "dataType" : "json",
  448. "async" : true,
  449. "success" : function(data) {
  450. $("#dataTable").html("");
  451. if(data != null && data != ""){
  452. var html = "";
  453. for(var i = 0; i < data.length; i++){
  454. var ID = data[i].id == null ? "" : data[i].id;
  455. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  456. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  457. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  458. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  459. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  460. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  461. var GOODS = data[i].goods == null ? "" : data[i].goods;
  462. var NAME = data[i].name == null ? "" : data[i].name;
  463. var SPEC = data[i].spec == null ? "" : data[i].spec;
  464. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  465. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  466. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  467. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  468. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  469. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  470. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  471. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  472. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  473. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  474. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  475. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  476. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  477. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  478. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  479. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  480. sum_total = sum_total + DPRC
  481. var invoice_type_cn =null;
  482. if (invoice_type =="00" ){
  483. invoice_type_cn="销售发票";
  484. }else if (invoice_type == "01") {
  485. invoice_type_cn="更正(对冲)发票";
  486. }else if (invoice_type == "02") {
  487. invoice_type_cn="其它类型发票";
  488. }
  489. html += "_$ta";
  490. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  491. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  492. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  493. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  494. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  495. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  496. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  497. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  498. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  499. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  500. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  501. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  502. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  503. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  504. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  505. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  506. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  507. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  508. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  509. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  510. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  511. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  512. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  513. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  514. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  515. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  516. html += "_$tag";
  517. }
  518. html += "_$ta";
  519. html += "_$tag_____________$tag__________________________________________________________________$tag";
  520. html += "_$tag_____________$tag__________________________________________________________________$tag";
  521. html += "_$tag_____________$tag__________________________________________________________________$tag";
  522. html += "_$tag_____________$tag__________________________________________________________________$tag";
  523. html += "_$tag_____________$tag__________________________________________________________________$tag";
  524. html += "_$tag_____________$tag__________________________________________________________________$tag";
  525. html += "_$tag_____________$tag__________________________________________________________________$tag";
  526. html += "_$tag_____________$tag__________________________________________________________________$tag";
  527. html += "_$tag_____________$tag__________________________________________________________________$tag";
  528. html += "_$tag_____________$tag__________________________________________________________________$tag";
  529. html += "_$tag_____________$tag__________________________________________________________________$tag";
  530. html += "_$tag_____________$tag__________________________________________________________________$tag";
  531. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  532. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  533. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  534. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  535. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  536. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  537. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  538. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  539. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  540. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  541. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  542. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  543. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  544. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  545. html += "_$tag";
  546. $("#dataTable").html(html);
  547. }else {
  548. $("#dataTable").html("");
  549. }
  550. },
  551. "error" : function(msg){
  552. },
  553. "complete": function(){
  554. layer.close(tip);
  555. }
  556. });
  557. });
  558. Date.prototype.Format = function (fmt) {
  559. var o = {
  560. "M+": this.getMonth() + 1, //月份
  561. "d+": this.getDate(), //日
  562. "h+": this.getHours(), //小时
  563. "m+": this.getMinutes(), //分
  564. "s+": this.getSeconds(), //秒
  565. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  566. "S": this.getMilliseconds() //毫秒
  567. };
  568. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  569. for (var k in o)
  570. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  571. return fmt;
  572. }
  573. $("#jrjc").change(function() {
  574. if ($("#jrjc").prop('checked') == true){
  575. $("#departmentId").removeAttr("disabled");
  576. }else {
  577. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  578. }
  579. });
  580. ----------------------------------- SOURCE END -------------------------------------
  581. !STACK 0
  582. java.lang.NullPointerException
  583. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:43.879
  584. !MESSAGE Exception occurred during problem detection:
  585. ----------------------------------- SOURCE BEGIN -------------------------------------
  586. (function(){WdatePicker();})();
  587. (function(){WdatePicker();})();
  588. (function(){Data.get();})();
  589. (function(){Data.set();})();
  590. (function(){search();})();
  591. $(function(){
  592. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  593. getfp();
  594. });
  595. var Data = {
  596. "get" : function(){
  597. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  598. var tip = layer.load(2);
  599. var result="";
  600. var url = "getgyxml.do";
  601. $.ajax({
  602. "url" : url,
  603. "data" : {
  604. "start_date" : $("#dateBegin").val(),
  605. "end_date" : $("#dateEnd").val()
  606. },
  607. "type" : "POST",
  608. "dataType" : "json",
  609. "success" : function(data) {
  610. if(data != null && data != ""){
  611. if ( data.status =="success"){
  612. getfp();
  613. alert("获取成功!");
  614. }else {
  615. alert(data.status);
  616. }
  617. }else {
  618. alert("获取失败!");
  619. }
  620. },
  621. "complete": function(){
  622. layer.close(tip);
  623. }
  624. });
  625. }else {
  626. alert("请选择日期!");
  627. }
  628. },
  629. "set" : function(){
  630. if ( $("#fpid option:selected").text() !=""){
  631. var tip = layer.load(2);
  632. var gitem = $("#form1").serialize();
  633. var jrjc;
  634. if ($("#jrjc").prop('checked') == true){
  635. jrjc = $("#departmentId").val();
  636. }else {
  637. jrjc ='N'
  638. }
  639. var url = "saverk.do";
  640. $.ajax({
  641. "url" : url,
  642. "data" : {
  643. "gitem" : gitem,
  644. "jrjc" : jrjc
  645. },
  646. "type" : "POST",
  647. "dataType" : "json",
  648. "async" : true,
  649. "success" : function(data) {
  650. if(data.status ="success"){
  651. alert("入库成功!");
  652. window.location.reload();
  653. }else {
  654. alert(msg);
  655. }
  656. },
  657. "error": function(){
  658. alert("确认失败!");
  659. },
  660. "complete": function(){
  661. layer.close(tip);
  662. }
  663. });
  664. }else {
  665. alert("请选择发票!");
  666. }
  667. }
  668. }
  669. function getfp(){
  670. var tip = layer.load(2);
  671. var url = "getgyfp.do";
  672. $.ajax({
  673. "url" : url,
  674. "type" : "POST",
  675. "dataType" : "json",
  676. "async" : true,
  677. "success" : function(data) {
  678. if(data != null && data != ""){
  679. $("#fpid").empty();
  680. $("#fpid").append("_$tag_____________$tag____");
  681. for(var i = 0; i < data.length; i++){
  682. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  683. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  684. }
  685. }
  686. },
  687. "error" : function(msg){
  688. },
  689. "complete": function(){
  690. layer.close(tip);
  691. }
  692. });
  693. }
  694. $("#fpid").change(function(){
  695. var tip = layer.load(2);
  696. var url = "getgyrkxx.do";
  697. var sum_total=0;
  698. $.ajax({
  699. "url" : url,
  700. "data" : {
  701. "fpId" : $("#fpid").val()
  702. },
  703. "type" : "POST",
  704. "dataType" : "json",
  705. "async" : true,
  706. "success" : function(data) {
  707. $("#dataTable").html("");
  708. if(data != null && data != ""){
  709. var html = "";
  710. for(var i = 0; i < data.length; i++){
  711. var ID = data[i].id == null ? "" : data[i].id;
  712. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  713. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  714. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  715. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  716. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  717. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  718. var GOODS = data[i].goods == null ? "" : data[i].goods;
  719. var NAME = data[i].name == null ? "" : data[i].name;
  720. var SPEC = data[i].spec == null ? "" : data[i].spec;
  721. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  722. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  723. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  724. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  725. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  726. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  727. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  728. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  729. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  730. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  731. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  732. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  733. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  734. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  735. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  736. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  737. sum_total = sum_total + DPRC
  738. var invoice_type_cn =null;
  739. if (invoice_type =="00" ){
  740. invoice_type_cn="销售发票";
  741. }else if (invoice_type == "01") {
  742. invoice_type_cn="更正(对冲)发票";
  743. }else if (invoice_type == "02") {
  744. invoice_type_cn="其它类型发票";
  745. }
  746. html += "_$ta";
  747. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  748. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  749. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  750. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  751. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  752. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  753. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  754. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  755. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  756. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  757. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  758. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  759. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  760. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  761. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  762. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  763. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  764. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  765. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  766. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  767. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  768. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  769. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  770. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  771. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  772. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  773. html += "_$tag";
  774. }
  775. html += "_$ta";
  776. html += "_$tag_____________$tag__________________________________________________________________$tag";
  777. html += "_$tag_____________$tag__________________________________________________________________$tag";
  778. html += "_$tag_____________$tag__________________________________________________________________$tag";
  779. html += "_$tag_____________$tag__________________________________________________________________$tag";
  780. html += "_$tag_____________$tag__________________________________________________________________$tag";
  781. html += "_$tag_____________$tag__________________________________________________________________$tag";
  782. html += "_$tag_____________$tag__________________________________________________________________$tag";
  783. html += "_$tag_____________$tag__________________________________________________________________$tag";
  784. html += "_$tag_____________$tag__________________________________________________________________$tag";
  785. html += "_$tag_____________$tag__________________________________________________________________$tag";
  786. html += "_$tag_____________$tag__________________________________________________________________$tag";
  787. html += "_$tag_____________$tag__________________________________________________________________$tag";
  788. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  789. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  790. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  791. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  792. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  793. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  794. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  795. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  796. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  797. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  798. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  799. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  800. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  801. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  802. html += "_$tag";
  803. $("#dataTable").html(html);
  804. }else {
  805. $("#dataTable").html("");
  806. }
  807. },
  808. "error" : function(msg){
  809. },
  810. "complete": function(){
  811. layer.close(tip);
  812. }
  813. });
  814. });
  815. Date.prototype.Format = function (fmt) {
  816. var o = {
  817. "M+": this.getMonth() + 1, //月份
  818. "d+": this.getDate(), //日
  819. "h+": this.getHours(), //小时
  820. "m+": this.getMinutes(), //分
  821. "s+": this.getSeconds(), //秒
  822. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  823. "S": this.getMilliseconds() //毫秒
  824. };
  825. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  826. for (var k in o)
  827. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  828. return fmt;
  829. }
  830. $("#jrjc").change(function() {
  831. if ($("#jrjc").prop('checked') == true){
  832. $("#departmentId").removeAttr("disabled");
  833. }else {
  834. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  835. }
  836. });
  837. ----------------------------------- SOURCE END -------------------------------------
  838. !STACK 0
  839. java.lang.NullPointerException
  840. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:43.880
  841. !MESSAGE Error while processing working copy
  842. !STACK 1
  843. JavaScript Model Exception: java.lang.NullPointerException
  844. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  845. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  846. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  847. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  848. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  849. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  850. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  851. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  852. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  853. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  854. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  855. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  856. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  857. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  858. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  859. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  860. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  861. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  862. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  863. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  864. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  865. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  866. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  867. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  868. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  869. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  870. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  871. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  872. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  873. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  874. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  875. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  876. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  877. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  878. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  879. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  880. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  881. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  882. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  883. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  884. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  885. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  886. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  887. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  888. at java.lang.reflect.Method.invoke(Unknown Source)
  889. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  890. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  891. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  892. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  893. Caused by: java.lang.NullPointerException
  894. Caused by: java.lang.NullPointerException
  895. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:43.880
  896. !MESSAGE java.lang.NullPointerException
  897. !STACK 0
  898. java.lang.NullPointerException
  899. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:45.168
  900. !MESSAGE Exception occurred during problem detection:
  901. ----------------------------------- SOURCE BEGIN -------------------------------------
  902. (function(){WdatePicker();})();
  903. (function(){WdatePicker();})();
  904. (function(){Data.get();})();
  905. (function(){Data.set();})();
  906. (function(){search();})();
  907. $(function(){
  908. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  909. getfp();
  910. });
  911. var Data = {
  912. "get" : function(){
  913. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  914. var tip = layer.load(2);
  915. var result="";
  916. var url = "getgyxml.do";
  917. $.ajax({
  918. "url" : url,
  919. "data" : {
  920. "start_date" : $("#dateBegin").val(),
  921. "end_date" : $("#dateEnd").val()
  922. },
  923. "type" : "POST",
  924. "dataType" : "json",
  925. "success" : function(data) {
  926. if(data != null && data != ""){
  927. if ( data.status =="success"){
  928. getfp();
  929. alert("获取成功!");
  930. }else {
  931. alert(data.status);
  932. }
  933. }else {
  934. alert("获取失败!");
  935. }
  936. },
  937. "complete": function(){
  938. layer.close(tip);
  939. }
  940. });
  941. }else {
  942. alert("请选择日期!");
  943. }
  944. },
  945. "set" : function(){
  946. if ( $("#fpid option:selected").text() !=""){
  947. var tip = layer.load(2);
  948. var gitem = $("#form1").serialize();
  949. var jrjc;
  950. if ($("#jrjc").prop('checked') == true){
  951. jrjc = $("#departmentId").val();
  952. }else {
  953. jrjc ='N'
  954. }
  955. var url = "saverk.do";
  956. $.ajax({
  957. "url" : url,
  958. "data" : {
  959. "gitem" : gitem,
  960. "jrjc" : jrjc
  961. },
  962. "type" : "POST",
  963. "dataType" : "json",
  964. "async" : true,
  965. "success" : function(data) {
  966. if(data.status ="success"){
  967. alert("入库成功!");
  968. window.location.reload();
  969. }else {
  970. alert(msg);
  971. }
  972. },
  973. "error": function(){
  974. alert("确认失败!");
  975. },
  976. "complete": function(){
  977. layer.close(tip);
  978. }
  979. });
  980. }else {
  981. alert("请选择发票!");
  982. }
  983. }
  984. }
  985. function getfp(){
  986. var tip = layer.load(2);
  987. var url = "getgyfp.do";
  988. $.ajax({
  989. "url" : url,
  990. "type" : "POST",
  991. "dataType" : "json",
  992. "async" : true,
  993. "success" : function(data) {
  994. if(data != null && data != ""){
  995. $("#fpid").empty();
  996. $("#fpid").append("_$tag_____________$tag____");
  997. for(var i = 0; i < data.length; i++){
  998. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  999. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1000. }
  1001. }
  1002. },
  1003. "error" : function(msg){
  1004. },
  1005. "complete": function(){
  1006. layer.close(tip);
  1007. }
  1008. });
  1009. }
  1010. $("#fpid").change(function(){
  1011. var tip = layer.load(2);
  1012. var url = "getgyrkxx.do";
  1013. var sum_total=0;
  1014. $.ajax({
  1015. "url" : url,
  1016. "data" : {
  1017. "fpId" : $("#fpid").val()
  1018. },
  1019. "type" : "POST",
  1020. "dataType" : "json",
  1021. "async" : true,
  1022. "success" : function(data) {
  1023. $("#dataTable").html("");
  1024. if(data != null && data != ""){
  1025. var html = "";
  1026. for(var i = 0; i < data.length; i++){
  1027. var ID = data[i].id == null ? "" : data[i].id;
  1028. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1029. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1030. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1031. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1032. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1033. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1034. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1035. var NAME = data[i].name == null ? "" : data[i].name;
  1036. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1037. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1038. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1039. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1040. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1041. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1042. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1043. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1044. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1045. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1046. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1047. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1048. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1049. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1050. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1051. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1052. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1053. sum_total = sum_total + DPRC
  1054. var invoice_type_cn =null;
  1055. if (invoice_type =="00" ){
  1056. invoice_type_cn="销售发票";
  1057. }else if (invoice_type == "01") {
  1058. invoice_type_cn="更正(对冲)发票";
  1059. }else if (invoice_type == "02") {
  1060. invoice_type_cn="其它类型发票";
  1061. }
  1062. html += "_$ta";
  1063. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1064. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1065. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1066. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1067. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1068. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1069. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1070. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1071. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1072. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1073. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1074. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1075. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1076. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1077. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1078. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1079. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1080. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1081. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1082. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1083. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1084. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1085. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1086. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1087. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1088. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1089. html += "_$tag";
  1090. }
  1091. html += "_$ta";
  1092. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1093. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1094. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1095. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1096. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1097. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1098. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1099. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1100. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1101. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1102. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1103. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1104. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  1105. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  1106. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1107. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1108. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1109. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1110. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1111. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1112. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1113. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1114. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1115. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1116. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1117. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1118. html += "_$tag";
  1119. $("#dataTable").html(html);
  1120. }else {
  1121. $("#dataTable").html("");
  1122. }
  1123. },
  1124. "error" : function(msg){
  1125. },
  1126. "complete": function(){
  1127. layer.close(tip);
  1128. }
  1129. });
  1130. });
  1131. Date.prototype.Format = function (fmt) {
  1132. var o = {
  1133. "M+": this.getMonth() + 1, //月份
  1134. "d+": this.getDate(), //日
  1135. "h+": this.getHours(), //小时
  1136. "m+": this.getMinutes(), //分
  1137. "s+": this.getSeconds(), //秒
  1138. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1139. "S": this.getMilliseconds() //毫秒
  1140. };
  1141. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1142. for (var k in o)
  1143. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1144. return fmt;
  1145. }
  1146. $("#jrjc").change(function() {
  1147. if ($("#jrjc").prop('checked') == true){
  1148. $("#departmentId").removeAttr("disabled");
  1149. }else {
  1150. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1151. }
  1152. });
  1153. ----------------------------------- SOURCE END -------------------------------------
  1154. !STACK 0
  1155. java.lang.NullPointerException
  1156. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:45.692
  1157. !MESSAGE Exception occurred during problem detection:
  1158. ----------------------------------- SOURCE BEGIN -------------------------------------
  1159. (function(){WdatePicker();})();
  1160. (function(){WdatePicker();})();
  1161. (function(){Data.get();})();
  1162. (function(){Data.set();})();
  1163. (function(){search();})();
  1164. $(function(){
  1165. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1166. getfp();
  1167. });
  1168. var Data = {
  1169. "get" : function(){
  1170. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1171. var tip = layer.load(2);
  1172. var result="";
  1173. var url = "getgyxml.do";
  1174. $.ajax({
  1175. "url" : url,
  1176. "data" : {
  1177. "start_date" : $("#dateBegin").val(),
  1178. "end_date" : $("#dateEnd").val()
  1179. },
  1180. "type" : "POST",
  1181. "dataType" : "json",
  1182. "success" : function(data) {
  1183. if(data != null && data != ""){
  1184. if ( data.status =="success"){
  1185. getfp();
  1186. alert("获取成功!");
  1187. }else {
  1188. alert(data.status);
  1189. }
  1190. }else {
  1191. alert("获取失败!");
  1192. }
  1193. },
  1194. "complete": function(){
  1195. layer.close(tip);
  1196. }
  1197. });
  1198. }else {
  1199. alert("请选择日期!");
  1200. }
  1201. },
  1202. "set" : function(){
  1203. if ( $("#fpid option:selected").text() !=""){
  1204. var tip = layer.load(2);
  1205. var gitem = $("#form1").serialize();
  1206. var jrjc;
  1207. if ($("#jrjc").prop('checked') == true){
  1208. jrjc = $("#departmentId").val();
  1209. }else {
  1210. jrjc ='N'
  1211. }
  1212. var url = "saverk.do";
  1213. $.ajax({
  1214. "url" : url,
  1215. "data" : {
  1216. "gitem" : gitem,
  1217. "jrjc" : jrjc
  1218. },
  1219. "type" : "POST",
  1220. "dataType" : "json",
  1221. "async" : true,
  1222. "success" : function(data) {
  1223. if(data.status ="success"){
  1224. alert("入库成功!");
  1225. window.location.reload();
  1226. }else {
  1227. alert(msg);
  1228. }
  1229. },
  1230. "error": function(){
  1231. alert("确认失败!");
  1232. },
  1233. "complete": function(){
  1234. layer.close(tip);
  1235. }
  1236. });
  1237. }else {
  1238. alert("请选择发票!");
  1239. }
  1240. }
  1241. }
  1242. function getfp(){
  1243. var tip = layer.load(2);
  1244. var url = "getgyfp.do";
  1245. $.ajax({
  1246. "url" : url,
  1247. "type" : "POST",
  1248. "dataType" : "json",
  1249. "async" : true,
  1250. "success" : function(data) {
  1251. if(data != null && data != ""){
  1252. $("#fpid").empty();
  1253. $("#fpid").append("_$tag_____________$tag____");
  1254. for(var i = 0; i < data.length; i++){
  1255. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1256. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1257. }
  1258. }
  1259. },
  1260. "error" : function(msg){
  1261. },
  1262. "complete": function(){
  1263. layer.close(tip);
  1264. }
  1265. });
  1266. }
  1267. $("#fpid").change(function(){
  1268. var tip = layer.load(2);
  1269. var url = "getgyrkxx.do";
  1270. var sum_total=0;
  1271. $.ajax({
  1272. "url" : url,
  1273. "data" : {
  1274. "fpId" : $("#fpid").val()
  1275. },
  1276. "type" : "POST",
  1277. "dataType" : "json",
  1278. "async" : true,
  1279. "success" : function(data) {
  1280. $("#dataTable").html("");
  1281. if(data != null && data != ""){
  1282. var html = "";
  1283. for(var i = 0; i < data.length; i++){
  1284. var ID = data[i].id == null ? "" : data[i].id;
  1285. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1286. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1287. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1288. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1289. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1290. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1291. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1292. var NAME = data[i].name == null ? "" : data[i].name;
  1293. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1294. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1295. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1296. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1297. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1298. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1299. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1300. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1301. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1302. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1303. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1304. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1305. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1306. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1307. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1308. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1309. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1310. sum_total = sum_total + DPRC
  1311. var invoice_type_cn =null;
  1312. if (invoice_type =="00" ){
  1313. invoice_type_cn="销售发票";
  1314. }else if (invoice_type == "01") {
  1315. invoice_type_cn="更正(对冲)发票";
  1316. }else if (invoice_type == "02") {
  1317. invoice_type_cn="其它类型发票";
  1318. }
  1319. html += "_$ta";
  1320. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1321. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1322. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1323. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1324. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1325. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1326. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1327. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1328. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1329. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1330. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1331. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1332. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1333. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1334. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1335. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1336. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1337. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1338. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1339. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1340. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1341. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1342. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1343. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1344. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1345. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1346. html += "_$tag";
  1347. }
  1348. html += "_$ta";
  1349. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1350. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1351. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1352. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1353. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1354. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1355. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1356. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1357. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1358. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1359. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1360. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1361. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  1362. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  1363. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1364. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1365. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1366. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1367. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1368. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1369. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1370. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1371. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1372. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1373. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1374. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1375. html += "_$tag";
  1376. $("#dataTable").html(html);
  1377. }else {
  1378. $("#dataTable").html("");
  1379. }
  1380. },
  1381. "error" : function(msg){
  1382. },
  1383. "complete": function(){
  1384. layer.close(tip);
  1385. }
  1386. });
  1387. });
  1388. Date.prototype.Format = function (fmt) {
  1389. var o = {
  1390. "M+": this.getMonth() + 1, //月份
  1391. "d+": this.getDate(), //日
  1392. "h+": this.getHours(), //小时
  1393. "m+": this.getMinutes(), //分
  1394. "s+": this.getSeconds(), //秒
  1395. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1396. "S": this.getMilliseconds() //毫秒
  1397. };
  1398. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1399. for (var k in o)
  1400. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1401. return fmt;
  1402. }
  1403. $("#jrjc").change(function() {
  1404. if ($("#jrjc").prop('checked') == true){
  1405. $("#departmentId").removeAttr("disabled");
  1406. }else {
  1407. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1408. }
  1409. });
  1410. ----------------------------------- SOURCE END -------------------------------------
  1411. !STACK 0
  1412. java.lang.NullPointerException
  1413. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:45.693
  1414. !MESSAGE Error while processing working copy
  1415. !STACK 1
  1416. JavaScript Model Exception: java.lang.NullPointerException
  1417. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1418. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1419. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1420. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1421. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1422. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1423. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1424. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1425. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1426. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1427. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1428. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1429. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1430. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1431. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1432. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1433. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1434. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1435. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1436. Caused by: java.lang.NullPointerException
  1437. Caused by: java.lang.NullPointerException
  1438. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:45.693
  1439. !MESSAGE java.lang.NullPointerException
  1440. !STACK 0
  1441. java.lang.NullPointerException
  1442. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:46.763
  1443. !MESSAGE Exception occurred during problem detection:
  1444. ----------------------------------- SOURCE BEGIN -------------------------------------
  1445. (function(){WdatePicker();})();
  1446. (function(){WdatePicker();})();
  1447. (function(){Data.get();})();
  1448. (function(){Data.set();})();
  1449. (function(){search();})();
  1450. $(function(){
  1451. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1452. getfp();
  1453. });
  1454. var Data = {
  1455. "get" : function(){
  1456. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1457. var tip = layer.load(2);
  1458. var result="";
  1459. var url = "getgyxml.do";
  1460. $.ajax({
  1461. "url" : url,
  1462. "data" : {
  1463. "start_date" : $("#dateBegin").val(),
  1464. "end_date" : $("#dateEnd").val()
  1465. },
  1466. "type" : "POST",
  1467. "dataType" : "json",
  1468. "success" : function(data) {
  1469. if(data != null && data != ""){
  1470. if ( data.status =="success"){
  1471. getfp();
  1472. alert("获取成功!");
  1473. }else {
  1474. alert(data.status);
  1475. }
  1476. }else {
  1477. alert("获取失败!");
  1478. }
  1479. },
  1480. "complete": function(){
  1481. layer.close(tip);
  1482. }
  1483. });
  1484. }else {
  1485. alert("请选择日期!");
  1486. }
  1487. },
  1488. "set" : function(){
  1489. if ( $("#fpid option:selected").text() !=""){
  1490. var tip = layer.load(2);
  1491. var gitem = $("#form1").serialize();
  1492. var jrjc;
  1493. if ($("#jrjc").prop('checked') == true){
  1494. jrjc = $("#departmentId").val();
  1495. }else {
  1496. jrjc ='N'
  1497. }
  1498. var url = "saverk.do";
  1499. $.ajax({
  1500. "url" : url,
  1501. "data" : {
  1502. "gitem" : gitem,
  1503. "jrjc" : jrjc
  1504. },
  1505. "type" : "POST",
  1506. "dataType" : "json",
  1507. "async" : true,
  1508. "success" : function(data) {
  1509. if(data.status ="success"){
  1510. alert("入库成功!");
  1511. window.location.reload();
  1512. }else {
  1513. alert(msg);
  1514. }
  1515. },
  1516. "error": function(){
  1517. alert("确认失败!");
  1518. },
  1519. "complete": function(){
  1520. layer.close(tip);
  1521. }
  1522. });
  1523. }else {
  1524. alert("请选择发票!");
  1525. }
  1526. }
  1527. }
  1528. function getfp(){
  1529. var tip = layer.load(2);
  1530. var url = "getgyfp.do";
  1531. $.ajax({
  1532. "url" : url,
  1533. "type" : "POST",
  1534. "dataType" : "json",
  1535. "async" : true,
  1536. "success" : function(data) {
  1537. if(data != null && data != ""){
  1538. $("#fpid").empty();
  1539. $("#fpid").append("_$tag_____________$tag____");
  1540. for(var i = 0; i < data.length; i++){
  1541. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1542. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1543. }
  1544. }
  1545. },
  1546. "error" : function(msg){
  1547. },
  1548. "complete": function(){
  1549. layer.close(tip);
  1550. }
  1551. });
  1552. }
  1553. $("#fpid").change(function(){
  1554. var tip = layer.load(2);
  1555. var url = "getgyrkxx.do";
  1556. var sum_total=0;
  1557. $.ajax({
  1558. "url" : url,
  1559. "data" : {
  1560. "fpId" : $("#fpid").val()
  1561. },
  1562. "type" : "POST",
  1563. "dataType" : "json",
  1564. "async" : true,
  1565. "success" : function(data) {
  1566. $("#dataTable").html("");
  1567. if(data != null && data != ""){
  1568. var html = "";
  1569. for(var i = 0; i < data.length; i++){
  1570. var ID = data[i].id == null ? "" : data[i].id;
  1571. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1572. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1573. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1574. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1575. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1576. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1577. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1578. var NAME = data[i].name == null ? "" : data[i].name;
  1579. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1580. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1581. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1582. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1583. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1584. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1585. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1586. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1587. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1588. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1589. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1590. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1591. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1592. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1593. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1594. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1595. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1596. sum_total = sum_total + DPRC
  1597. var invoice_type_cn =null;
  1598. if (invoice_type =="00" ){
  1599. invoice_type_cn="销售发票";
  1600. }else if (invoice_type == "01") {
  1601. invoice_type_cn="更正(对冲)发票";
  1602. }else if (invoice_type == "02") {
  1603. invoice_type_cn="其它类型发票";
  1604. }
  1605. html += "_$ta";
  1606. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1607. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1608. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1609. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1610. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1611. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1612. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1613. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1614. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1615. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1616. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1617. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1618. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1619. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1620. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1621. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1622. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1623. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1624. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1625. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1626. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1627. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1628. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1629. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1630. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1631. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1632. html += "_$tag";
  1633. }
  1634. html += "_$ta";
  1635. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1636. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1637. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1638. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1639. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1640. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1641. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1642. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1643. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1644. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1645. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1646. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1647. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  1648. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  1649. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1650. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1651. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1652. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1653. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1654. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1655. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1656. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1657. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1658. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1659. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1660. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1661. html += "_$tag";
  1662. $("#dataTable").html(html);
  1663. }else {
  1664. $("#dataTable").html("");
  1665. }
  1666. },
  1667. "error" : function(msg){
  1668. },
  1669. "complete": function(){
  1670. layer.close(tip);
  1671. }
  1672. });
  1673. });
  1674. Date.prototype.Format = function (fmt) {
  1675. var o = {
  1676. "M+": this.getMonth() + 1, //月份
  1677. "d+": this.getDate(), //日
  1678. "h+": this.getHours(), //小时
  1679. "m+": this.getMinutes(), //分
  1680. "s+": this.getSeconds(), //秒
  1681. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1682. "S": this.getMilliseconds() //毫秒
  1683. };
  1684. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1685. for (var k in o)
  1686. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1687. return fmt;
  1688. }
  1689. $("#jrjc").change(function() {
  1690. if ($("#jrjc").prop('checked') == true){
  1691. $("#departmentId").removeAttr("disabled");
  1692. }else {
  1693. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1694. }
  1695. });
  1696. ----------------------------------- SOURCE END -------------------------------------
  1697. !STACK 0
  1698. java.lang.NullPointerException
  1699. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:47.172
  1700. !MESSAGE Exception occurred during problem detection:
  1701. ----------------------------------- SOURCE BEGIN -------------------------------------
  1702. (function(){WdatePicker();})();
  1703. (function(){WdatePicker();})();
  1704. (function(){Data.get();})();
  1705. (function(){Data.set();})();
  1706. (function(){search();})();
  1707. $(function(){
  1708. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1709. getfp();
  1710. });
  1711. var Data = {
  1712. "get" : function(){
  1713. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1714. var tip = layer.load(2);
  1715. var result="";
  1716. var url = "getgyxml.do";
  1717. $.ajax({
  1718. "url" : url,
  1719. "data" : {
  1720. "start_date" : $("#dateBegin").val(),
  1721. "end_date" : $("#dateEnd").val()
  1722. },
  1723. "type" : "POST",
  1724. "dataType" : "json",
  1725. "success" : function(data) {
  1726. if(data != null && data != ""){
  1727. if ( data.status =="success"){
  1728. getfp();
  1729. alert("获取成功!");
  1730. }else {
  1731. alert(data.status);
  1732. }
  1733. }else {
  1734. alert("获取失败!");
  1735. }
  1736. },
  1737. "complete": function(){
  1738. layer.close(tip);
  1739. }
  1740. });
  1741. }else {
  1742. alert("请选择日期!");
  1743. }
  1744. },
  1745. "set" : function(){
  1746. if ( $("#fpid option:selected").text() !=""){
  1747. var tip = layer.load(2);
  1748. var gitem = $("#form1").serialize();
  1749. var jrjc;
  1750. if ($("#jrjc").prop('checked') == true){
  1751. jrjc = $("#departmentId").val();
  1752. }else {
  1753. jrjc ='N'
  1754. }
  1755. var url = "saverk.do";
  1756. $.ajax({
  1757. "url" : url,
  1758. "data" : {
  1759. "gitem" : gitem,
  1760. "jrjc" : jrjc
  1761. },
  1762. "type" : "POST",
  1763. "dataType" : "json",
  1764. "async" : true,
  1765. "success" : function(data) {
  1766. if(data.status ="success"){
  1767. alert("入库成功!");
  1768. window.location.reload();
  1769. }else {
  1770. alert(msg);
  1771. }
  1772. },
  1773. "error": function(){
  1774. alert("确认失败!");
  1775. },
  1776. "complete": function(){
  1777. layer.close(tip);
  1778. }
  1779. });
  1780. }else {
  1781. alert("请选择发票!");
  1782. }
  1783. }
  1784. }
  1785. function getfp(){
  1786. var tip = layer.load(2);
  1787. var url = "getgyfp.do";
  1788. $.ajax({
  1789. "url" : url,
  1790. "type" : "POST",
  1791. "dataType" : "json",
  1792. "async" : true,
  1793. "success" : function(data) {
  1794. if(data != null && data != ""){
  1795. $("#fpid").empty();
  1796. $("#fpid").append("_$tag_____________$tag____");
  1797. for(var i = 0; i < data.length; i++){
  1798. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1799. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1800. }
  1801. }
  1802. },
  1803. "error" : function(msg){
  1804. },
  1805. "complete": function(){
  1806. layer.close(tip);
  1807. }
  1808. });
  1809. }
  1810. $("#fpid").change(function(){
  1811. var tip = layer.load(2);
  1812. var url = "getgyrkxx.do";
  1813. var sum_total=0;
  1814. $.ajax({
  1815. "url" : url,
  1816. "data" : {
  1817. "fpId" : $("#fpid").val()
  1818. },
  1819. "type" : "POST",
  1820. "dataType" : "json",
  1821. "async" : true,
  1822. "success" : function(data) {
  1823. $("#dataTable").html("");
  1824. if(data != null && data != ""){
  1825. var html = "";
  1826. for(var i = 0; i < data.length; i++){
  1827. var ID = data[i].id == null ? "" : data[i].id;
  1828. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1829. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1830. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1831. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1832. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1833. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1834. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1835. var NAME = data[i].name == null ? "" : data[i].name;
  1836. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1837. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1838. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1839. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1840. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1841. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1842. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1843. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1844. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1845. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1846. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1847. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1848. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1849. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1850. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1851. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1852. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1853. sum_total = sum_total + DPRC
  1854. var invoice_type_cn =null;
  1855. if (invoice_type =="00" ){
  1856. invoice_type_cn="销售发票";
  1857. }else if (invoice_type == "01") {
  1858. invoice_type_cn="更正(对冲)发票";
  1859. }else if (invoice_type == "02") {
  1860. invoice_type_cn="其它类型发票";
  1861. }
  1862. html += "_$ta";
  1863. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1864. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1865. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1866. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1867. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1868. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1869. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1870. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1871. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1872. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1873. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1874. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1875. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1876. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1877. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1878. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1879. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1880. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1881. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1882. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1883. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1884. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1885. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1886. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1887. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1888. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1889. html += "_$tag";
  1890. }
  1891. html += "_$ta";
  1892. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1893. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1894. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1895. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1896. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1897. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1898. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1899. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1900. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1901. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1902. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1903. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1904. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  1905. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  1906. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1907. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1908. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1909. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1910. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1911. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1912. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1913. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1914. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1915. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1916. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1917. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1918. html += "_$tag";
  1919. $("#dataTable").html(html);
  1920. }else {
  1921. $("#dataTable").html("");
  1922. }
  1923. },
  1924. "error" : function(msg){
  1925. },
  1926. "complete": function(){
  1927. layer.close(tip);
  1928. }
  1929. });
  1930. });
  1931. Date.prototype.Format = function (fmt) {
  1932. var o = {
  1933. "M+": this.getMonth() + 1, //月份
  1934. "d+": this.getDate(), //日
  1935. "h+": this.getHours(), //小时
  1936. "m+": this.getMinutes(), //分
  1937. "s+": this.getSeconds(), //秒
  1938. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1939. "S": this.getMilliseconds() //毫秒
  1940. };
  1941. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1942. for (var k in o)
  1943. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1944. return fmt;
  1945. }
  1946. $("#jrjc").change(function() {
  1947. if ($("#jrjc").prop('checked') == true){
  1948. $("#departmentId").removeAttr("disabled");
  1949. }else {
  1950. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1951. }
  1952. });
  1953. ----------------------------------- SOURCE END -------------------------------------
  1954. !STACK 0
  1955. java.lang.NullPointerException
  1956. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:47.172
  1957. !MESSAGE Error while processing working copy
  1958. !STACK 1
  1959. JavaScript Model Exception: java.lang.NullPointerException
  1960. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1961. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1962. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1963. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1964. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1965. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1966. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1967. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1968. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1969. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1970. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1971. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1972. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1973. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1974. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1975. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1976. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  1977. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  1978. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  1979. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  1980. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  1981. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  1982. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  1983. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  1984. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  1985. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  1986. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  1987. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  1988. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  1989. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  1990. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  1991. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  1992. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  1993. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  1994. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  1995. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  1996. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  1997. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  1998. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  1999. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  2000. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  2001. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  2002. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  2003. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  2004. at java.lang.reflect.Method.invoke(Unknown Source)
  2005. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  2006. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  2007. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  2008. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  2009. Caused by: java.lang.NullPointerException
  2010. Caused by: java.lang.NullPointerException
  2011. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:47.173
  2012. !MESSAGE java.lang.NullPointerException
  2013. !STACK 0
  2014. java.lang.NullPointerException
  2015. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:48.210
  2016. !MESSAGE Exception occurred during problem detection:
  2017. ----------------------------------- SOURCE BEGIN -------------------------------------
  2018. (function(){WdatePicker();})();
  2019. (function(){WdatePicker();})();
  2020. (function(){Data.get();})();
  2021. (function(){Data.set();})();
  2022. (function(){search();})();
  2023. $(function(){
  2024. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2025. getfp();
  2026. });
  2027. var Data = {
  2028. "get" : function(){
  2029. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2030. var tip = layer.load(2);
  2031. var result="";
  2032. var url = "getgyxml.do";
  2033. $.ajax({
  2034. "url" : url,
  2035. "data" : {
  2036. "start_date" : $("#dateBegin").val(),
  2037. "end_date" : $("#dateEnd").val()
  2038. },
  2039. "type" : "POST",
  2040. "dataType" : "json",
  2041. "success" : function(data) {
  2042. if(data != null && data != ""){
  2043. if ( data.status =="success"){
  2044. getfp();
  2045. alert("获取成功!");
  2046. }else {
  2047. alert(data.status);
  2048. }
  2049. }else {
  2050. alert("获取失败!");
  2051. }
  2052. },
  2053. "complete": function(){
  2054. layer.close(tip);
  2055. }
  2056. });
  2057. }else {
  2058. alert("请选择日期!");
  2059. }
  2060. },
  2061. "set" : function(){
  2062. if ( $("#fpid option:selected").text() !=""){
  2063. var tip = layer.load(2);
  2064. var gitem = $("#form1").serialize();
  2065. var jrjc;
  2066. if ($("#jrjc").prop('checked') == true){
  2067. jrjc = $("#departmentId").val();
  2068. }else {
  2069. jrjc ='N'
  2070. }
  2071. var url = "saverk.do";
  2072. $.ajax({
  2073. "url" : url,
  2074. "data" : {
  2075. "gitem" : gitem,
  2076. "jrjc" : jrjc
  2077. },
  2078. "type" : "POST",
  2079. "dataType" : "json",
  2080. "async" : true,
  2081. "success" : function(data) {
  2082. if(data.status ="success"){
  2083. alert("入库成功!");
  2084. window.location.reload();
  2085. }else {
  2086. alert(msg);
  2087. }
  2088. },
  2089. "error": function(){
  2090. alert("确认失败!");
  2091. },
  2092. "complete": function(){
  2093. layer.close(tip);
  2094. }
  2095. });
  2096. }else {
  2097. alert("请选择发票!");
  2098. }
  2099. }
  2100. }
  2101. function getfp(){
  2102. var tip = layer.load(2);
  2103. var url = "getgyfp.do";
  2104. $.ajax({
  2105. "url" : url,
  2106. "type" : "POST",
  2107. "dataType" : "json",
  2108. "async" : true,
  2109. "success" : function(data) {
  2110. if(data != null && data != ""){
  2111. $("#fpid").empty();
  2112. $("#fpid").append("_$tag_____________$tag____");
  2113. for(var i = 0; i < data.length; i++){
  2114. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2115. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2116. }
  2117. }
  2118. },
  2119. "error" : function(msg){
  2120. },
  2121. "complete": function(){
  2122. layer.close(tip);
  2123. }
  2124. });
  2125. }
  2126. $("#fpid").change(function(){
  2127. var tip = layer.load(2);
  2128. var url = "getgyrkxx.do";
  2129. var sum_total=0;
  2130. $.ajax({
  2131. "url" : url,
  2132. "data" : {
  2133. "fpId" : $("#fpid").val()
  2134. },
  2135. "type" : "POST",
  2136. "dataType" : "json",
  2137. "async" : true,
  2138. "success" : function(data) {
  2139. $("#dataTable").html("");
  2140. if(data != null && data != ""){
  2141. var html = "";
  2142. for(var i = 0; i < data.length; i++){
  2143. var ID = data[i].id == null ? "" : data[i].id;
  2144. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2145. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2146. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2147. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2148. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2149. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2150. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2151. var NAME = data[i].name == null ? "" : data[i].name;
  2152. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2153. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2154. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2155. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2156. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2157. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2158. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2159. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2160. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2161. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2162. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2163. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2164. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2165. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2166. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2167. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2168. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2169. sum_total = sum_total + DPRC
  2170. var invoice_type_cn =null;
  2171. if (invoice_type =="00" ){
  2172. invoice_type_cn="销售发票";
  2173. }else if (invoice_type == "01") {
  2174. invoice_type_cn="更正(对冲)发票";
  2175. }else if (invoice_type == "02") {
  2176. invoice_type_cn="其它类型发票";
  2177. }
  2178. html += "_$ta";
  2179. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2180. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2181. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2182. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2183. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2184. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2185. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2186. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2187. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2188. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2189. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2190. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2191. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2192. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2193. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2194. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2195. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  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";
  2206. }
  2207. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  2223. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2224. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2225. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2226. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2227. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2228. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2229. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2230. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2231. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2232. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2233. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2234. html += "_$tag";
  2235. $("#dataTable").html(html);
  2236. }else {
  2237. $("#dataTable").html("");
  2238. }
  2239. },
  2240. "error" : function(msg){
  2241. },
  2242. "complete": function(){
  2243. layer.close(tip);
  2244. }
  2245. });
  2246. });
  2247. Date.prototype.Format = function (fmt) {
  2248. var o = {
  2249. "M+": this.getMonth() + 1, //月份
  2250. "d+": this.getDate(), //日
  2251. "h+": this.getHours(), //小时
  2252. "m+": this.getMinutes(), //分
  2253. "s+": this.getSeconds(), //秒
  2254. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2255. "S": this.getMilliseconds() //毫秒
  2256. };
  2257. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2258. for (var k in o)
  2259. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2260. return fmt;
  2261. }
  2262. $("#jrjc").change(function() {
  2263. if ($("#jrjc").prop('checked') == true){
  2264. $("#departmentId").removeAttr("disabled");
  2265. }else {
  2266. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2267. }
  2268. });
  2269. ----------------------------------- SOURCE END -------------------------------------
  2270. !STACK 0
  2271. java.lang.NullPointerException
  2272. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:48.664
  2273. !MESSAGE Exception occurred during problem detection:
  2274. ----------------------------------- SOURCE BEGIN -------------------------------------
  2275. (function(){WdatePicker();})();
  2276. (function(){WdatePicker();})();
  2277. (function(){Data.get();})();
  2278. (function(){Data.set();})();
  2279. (function(){search();})();
  2280. $(function(){
  2281. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2282. getfp();
  2283. });
  2284. var Data = {
  2285. "get" : function(){
  2286. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2287. var tip = layer.load(2);
  2288. var result="";
  2289. var url = "getgyxml.do";
  2290. $.ajax({
  2291. "url" : url,
  2292. "data" : {
  2293. "start_date" : $("#dateBegin").val(),
  2294. "end_date" : $("#dateEnd").val()
  2295. },
  2296. "type" : "POST",
  2297. "dataType" : "json",
  2298. "success" : function(data) {
  2299. if(data != null && data != ""){
  2300. if ( data.status =="success"){
  2301. getfp();
  2302. alert("获取成功!");
  2303. }else {
  2304. alert(data.status);
  2305. }
  2306. }else {
  2307. alert("获取失败!");
  2308. }
  2309. },
  2310. "complete": function(){
  2311. layer.close(tip);
  2312. }
  2313. });
  2314. }else {
  2315. alert("请选择日期!");
  2316. }
  2317. },
  2318. "set" : function(){
  2319. if ( $("#fpid option:selected").text() !=""){
  2320. var tip = layer.load(2);
  2321. var gitem = $("#form1").serialize();
  2322. var jrjc;
  2323. if ($("#jrjc").prop('checked') == true){
  2324. jrjc = $("#departmentId").val();
  2325. }else {
  2326. jrjc ='N'
  2327. }
  2328. var url = "saverk.do";
  2329. $.ajax({
  2330. "url" : url,
  2331. "data" : {
  2332. "gitem" : gitem,
  2333. "jrjc" : jrjc
  2334. },
  2335. "type" : "POST",
  2336. "dataType" : "json",
  2337. "async" : true,
  2338. "success" : function(data) {
  2339. if(data.status ="success"){
  2340. alert("入库成功!");
  2341. window.location.reload();
  2342. }else {
  2343. alert(msg);
  2344. }
  2345. },
  2346. "error": function(){
  2347. alert("确认失败!");
  2348. },
  2349. "complete": function(){
  2350. layer.close(tip);
  2351. }
  2352. });
  2353. }else {
  2354. alert("请选择发票!");
  2355. }
  2356. }
  2357. }
  2358. function getfp(){
  2359. var tip = layer.load(2);
  2360. var url = "getgyfp.do";
  2361. $.ajax({
  2362. "url" : url,
  2363. "type" : "POST",
  2364. "dataType" : "json",
  2365. "async" : true,
  2366. "success" : function(data) {
  2367. if(data != null && data != ""){
  2368. $("#fpid").empty();
  2369. $("#fpid").append("_$tag_____________$tag____");
  2370. for(var i = 0; i < data.length; i++){
  2371. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2372. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2373. }
  2374. }
  2375. },
  2376. "error" : function(msg){
  2377. },
  2378. "complete": function(){
  2379. layer.close(tip);
  2380. }
  2381. });
  2382. }
  2383. $("#fpid").change(function(){
  2384. var tip = layer.load(2);
  2385. var url = "getgyrkxx.do";
  2386. var sum_total=0;
  2387. $.ajax({
  2388. "url" : url,
  2389. "data" : {
  2390. "fpId" : $("#fpid").val()
  2391. },
  2392. "type" : "POST",
  2393. "dataType" : "json",
  2394. "async" : true,
  2395. "success" : function(data) {
  2396. $("#dataTable").html("");
  2397. if(data != null && data != ""){
  2398. var html = "";
  2399. for(var i = 0; i < data.length; i++){
  2400. var ID = data[i].id == null ? "" : data[i].id;
  2401. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2402. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2403. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2404. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2405. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2406. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2407. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2408. var NAME = data[i].name == null ? "" : data[i].name;
  2409. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2410. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2411. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2412. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2413. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2414. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2415. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2416. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2417. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2418. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2419. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2420. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2421. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2422. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2423. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2424. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2425. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2426. sum_total = sum_total + DPRC
  2427. var invoice_type_cn =null;
  2428. if (invoice_type =="00" ){
  2429. invoice_type_cn="销售发票";
  2430. }else if (invoice_type == "01") {
  2431. invoice_type_cn="更正(对冲)发票";
  2432. }else if (invoice_type == "02") {
  2433. invoice_type_cn="其它类型发票";
  2434. }
  2435. html += "_$ta";
  2436. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2437. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2438. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2439. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2440. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2441. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2442. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2443. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2444. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2445. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2446. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2447. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2448. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2449. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2450. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2451. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2452. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2453. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2454. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  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";
  2463. }
  2464. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________$tag";
  2482. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2483. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2484. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2485. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2486. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2487. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2488. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2489. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2490. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2491. html += "_$tag";
  2492. $("#dataTable").html(html);
  2493. }else {
  2494. $("#dataTable").html("");
  2495. }
  2496. },
  2497. "error" : function(msg){
  2498. },
  2499. "complete": function(){
  2500. layer.close(tip);
  2501. }
  2502. });
  2503. });
  2504. Date.prototype.Format = function (fmt) {
  2505. var o = {
  2506. "M+": this.getMonth() + 1, //月份
  2507. "d+": this.getDate(), //日
  2508. "h+": this.getHours(), //小时
  2509. "m+": this.getMinutes(), //分
  2510. "s+": this.getSeconds(), //秒
  2511. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2512. "S": this.getMilliseconds() //毫秒
  2513. };
  2514. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2515. for (var k in o)
  2516. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2517. return fmt;
  2518. }
  2519. $("#jrjc").change(function() {
  2520. if ($("#jrjc").prop('checked') == true){
  2521. $("#departmentId").removeAttr("disabled");
  2522. }else {
  2523. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2524. }
  2525. });
  2526. ----------------------------------- SOURCE END -------------------------------------
  2527. !STACK 0
  2528. java.lang.NullPointerException
  2529. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:48.665
  2530. !MESSAGE Error while processing working copy
  2531. !STACK 1
  2532. JavaScript Model Exception: java.lang.NullPointerException
  2533. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2534. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2535. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2536. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2537. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2538. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2539. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2540. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2541. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2542. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2543. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2544. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2545. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2546. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2547. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2548. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2549. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  2550. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  2551. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  2552. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  2553. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  2554. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  2555. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  2556. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  2557. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  2558. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  2559. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  2560. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  2561. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  2562. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  2563. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  2564. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  2565. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  2566. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  2567. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  2568. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  2569. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  2570. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  2571. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  2572. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  2573. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  2574. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  2575. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  2576. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  2577. at java.lang.reflect.Method.invoke(Unknown Source)
  2578. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  2579. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  2580. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  2581. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  2582. Caused by: java.lang.NullPointerException
  2583. Caused by: java.lang.NullPointerException
  2584. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:48.665
  2585. !MESSAGE java.lang.NullPointerException
  2586. !STACK 0
  2587. java.lang.NullPointerException
  2588. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:49.314
  2589. !MESSAGE Exception occurred during problem detection:
  2590. ----------------------------------- SOURCE BEGIN -------------------------------------
  2591. (function(){WdatePicker();})();
  2592. (function(){WdatePicker();})();
  2593. (function(){Data.get();})();
  2594. (function(){Data.set();})();
  2595. (function(){search();})();
  2596. $(function(){
  2597. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2598. getfp();
  2599. });
  2600. var Data = {
  2601. "get" : function(){
  2602. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2603. var tip = layer.load(2);
  2604. var result="";
  2605. var url = "getgyxml.do";
  2606. $.ajax({
  2607. "url" : url,
  2608. "data" : {
  2609. "start_date" : $("#dateBegin").val(),
  2610. "end_date" : $("#dateEnd").val()
  2611. },
  2612. "type" : "POST",
  2613. "dataType" : "json",
  2614. "success" : function(data) {
  2615. if(data != null && data != ""){
  2616. if ( data.status =="success"){
  2617. getfp();
  2618. alert("获取成功!");
  2619. }else {
  2620. alert(data.status);
  2621. }
  2622. }else {
  2623. alert("获取失败!");
  2624. }
  2625. },
  2626. "complete": function(){
  2627. layer.close(tip);
  2628. }
  2629. });
  2630. }else {
  2631. alert("请选择日期!");
  2632. }
  2633. },
  2634. "set" : function(){
  2635. if ( $("#fpid option:selected").text() !=""){
  2636. var tip = layer.load(2);
  2637. var gitem = $("#form1").serialize();
  2638. var jrjc;
  2639. if ($("#jrjc").prop('checked') == true){
  2640. jrjc = $("#departmentId").val();
  2641. }else {
  2642. jrjc ='N'
  2643. }
  2644. var url = "saverk.do";
  2645. $.ajax({
  2646. "url" : url,
  2647. "data" : {
  2648. "gitem" : gitem,
  2649. "jrjc" : jrjc
  2650. },
  2651. "type" : "POST",
  2652. "dataType" : "json",
  2653. "async" : true,
  2654. "success" : function(data) {
  2655. if(data.status ="success"){
  2656. alert("入库成功!");
  2657. window.location.reload();
  2658. }else {
  2659. alert(msg);
  2660. }
  2661. },
  2662. "error": function(){
  2663. alert("确认失败!");
  2664. },
  2665. "complete": function(){
  2666. layer.close(tip);
  2667. }
  2668. });
  2669. }else {
  2670. alert("请选择发票!");
  2671. }
  2672. }
  2673. }
  2674. function getfp(){
  2675. var tip = layer.load(2);
  2676. var url = "getgyfp.do";
  2677. $.ajax({
  2678. "url" : url,
  2679. "type" : "POST",
  2680. "dataType" : "json",
  2681. "async" : true,
  2682. "success" : function(data) {
  2683. if(data != null && data != ""){
  2684. $("#fpid").empty();
  2685. $("#fpid").append("_$tag_____________$tag____");
  2686. for(var i = 0; i < data.length; i++){
  2687. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2688. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2689. }
  2690. }
  2691. },
  2692. "error" : function(msg){
  2693. },
  2694. "complete": function(){
  2695. layer.close(tip);
  2696. }
  2697. });
  2698. }
  2699. $("#fpid").change(function(){
  2700. var tip = layer.load(2);
  2701. var url = "getgyrkxx.do";
  2702. var sum_total=0;
  2703. $.ajax({
  2704. "url" : url,
  2705. "data" : {
  2706. "fpId" : $("#fpid").val()
  2707. },
  2708. "type" : "POST",
  2709. "dataType" : "json",
  2710. "async" : true,
  2711. "success" : function(data) {
  2712. $("#dataTable").html("");
  2713. if(data != null && data != ""){
  2714. var html = "";
  2715. for(var i = 0; i < data.length; i++){
  2716. var ID = data[i].id == null ? "" : data[i].id;
  2717. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2718. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2719. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2720. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2721. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2722. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2723. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2724. var NAME = data[i].name == null ? "" : data[i].name;
  2725. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2726. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2727. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2728. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2729. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2730. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2731. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2732. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2733. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2734. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2735. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2736. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2737. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2738. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2739. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2740. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2741. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2742. sum_total = sum_total + DPRC
  2743. var invoice_type_cn =null;
  2744. if (invoice_type =="00" ){
  2745. invoice_type_cn="销售发票";
  2746. }else if (invoice_type == "01") {
  2747. invoice_type_cn="更正(对冲)发票";
  2748. }else if (invoice_type == "02") {
  2749. invoice_type_cn="其它类型发票";
  2750. }
  2751. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  2768. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2769. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2770. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2771. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2772. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2773. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2774. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2775. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2776. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2777. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2778. html += "_$tag";
  2779. }
  2780. html += "_$ta";
  2781. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2782. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2783. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2784. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2785. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2786. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2787. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2788. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2789. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2790. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2791. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2792. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2793. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  2794. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  2795. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2796. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2797. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2798. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2799. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2800. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2801. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2802. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2803. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2804. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2805. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2806. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2807. html += "_$tag";
  2808. $("#dataTable").html(html);
  2809. }else {
  2810. $("#dataTable").html("");
  2811. }
  2812. },
  2813. "error" : function(msg){
  2814. },
  2815. "complete": function(){
  2816. layer.close(tip);
  2817. }
  2818. });
  2819. });
  2820. Date.prototype.Format = function (fmt) {
  2821. var o = {
  2822. "M+": this.getMonth() + 1, //月份
  2823. "d+": this.getDate(), //日
  2824. "h+": this.getHours(), //小时
  2825. "m+": this.getMinutes(), //分
  2826. "s+": this.getSeconds(), //秒
  2827. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2828. "S": this.getMilliseconds() //毫秒
  2829. };
  2830. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2831. for (var k in o)
  2832. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2833. return fmt;
  2834. }
  2835. $("#jrjc").change(function() {
  2836. if ($("#jrjc").prop('checked') == true){
  2837. $("#departmentId").removeAttr("disabled");
  2838. }else {
  2839. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2840. }
  2841. });
  2842. ----------------------------------- SOURCE END -------------------------------------
  2843. !STACK 0
  2844. java.lang.NullPointerException
  2845. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:50.154
  2846. !MESSAGE Exception occurred during problem detection:
  2847. ----------------------------------- SOURCE BEGIN -------------------------------------
  2848. (function(){WdatePicker();})();
  2849. (function(){WdatePicker();})();
  2850. (function(){Data.get();})();
  2851. (function(){Data.set();})();
  2852. (function(){search();})();
  2853. $(function(){
  2854. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2855. getfp();
  2856. });
  2857. var Data = {
  2858. "get" : function(){
  2859. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2860. var tip = layer.load(2);
  2861. var result="";
  2862. var url = "getgyxml.do";
  2863. $.ajax({
  2864. "url" : url,
  2865. "data" : {
  2866. "start_date" : $("#dateBegin").val(),
  2867. "end_date" : $("#dateEnd").val()
  2868. },
  2869. "type" : "POST",
  2870. "dataType" : "json",
  2871. "success" : function(data) {
  2872. if(data != null && data != ""){
  2873. if ( data.status =="success"){
  2874. getfp();
  2875. alert("获取成功!");
  2876. }else {
  2877. alert(data.status);
  2878. }
  2879. }else {
  2880. alert("获取失败!");
  2881. }
  2882. },
  2883. "complete": function(){
  2884. layer.close(tip);
  2885. }
  2886. });
  2887. }else {
  2888. alert("请选择日期!");
  2889. }
  2890. },
  2891. "set" : function(){
  2892. if ( $("#fpid option:selected").text() !=""){
  2893. var tip = layer.load(2);
  2894. var gitem = $("#form1").serialize();
  2895. var jrjc;
  2896. if ($("#jrjc").prop('checked') == true){
  2897. jrjc = $("#departmentId").val();
  2898. }else {
  2899. jrjc ='N'
  2900. }
  2901. var url = "saverk.do";
  2902. $.ajax({
  2903. "url" : url,
  2904. "data" : {
  2905. "gitem" : gitem,
  2906. "jrjc" : jrjc
  2907. },
  2908. "type" : "POST",
  2909. "dataType" : "json",
  2910. "async" : true,
  2911. "success" : function(data) {
  2912. if(data.status ="success"){
  2913. alert("入库成功!");
  2914. window.location.reload();
  2915. }else {
  2916. alert(msg);
  2917. }
  2918. },
  2919. "error": function(){
  2920. alert("确认失败!");
  2921. },
  2922. "complete": function(){
  2923. layer.close(tip);
  2924. }
  2925. });
  2926. }else {
  2927. alert("请选择发票!");
  2928. }
  2929. }
  2930. }
  2931. function getfp(){
  2932. var tip = layer.load(2);
  2933. var url = "getgyfp.do";
  2934. $.ajax({
  2935. "url" : url,
  2936. "type" : "POST",
  2937. "dataType" : "json",
  2938. "async" : true,
  2939. "success" : function(data) {
  2940. if(data != null && data != ""){
  2941. $("#fpid").empty();
  2942. $("#fpid").append("_$tag_____________$tag____");
  2943. for(var i = 0; i < data.length; i++){
  2944. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2945. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2946. }
  2947. }
  2948. },
  2949. "error" : function(msg){
  2950. },
  2951. "complete": function(){
  2952. layer.close(tip);
  2953. }
  2954. });
  2955. }
  2956. $("#fpid").change(function(){
  2957. var tip = layer.load(2);
  2958. var url = "getgyrkxx.do";
  2959. var sum_total=0;
  2960. $.ajax({
  2961. "url" : url,
  2962. "data" : {
  2963. "fpId" : $("#fpid").val()
  2964. },
  2965. "type" : "POST",
  2966. "dataType" : "json",
  2967. "async" : true,
  2968. "success" : function(data) {
  2969. $("#dataTable").html("");
  2970. if(data != null && data != ""){
  2971. var html = "";
  2972. for(var i = 0; i < data.length; i++){
  2973. var ID = data[i].id == null ? "" : data[i].id;
  2974. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2975. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2976. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2977. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2978. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2979. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2980. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2981. var NAME = data[i].name == null ? "" : data[i].name;
  2982. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2983. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2984. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2985. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2986. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2987. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2988. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2989. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2990. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2991. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2992. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2993. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2994. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2995. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2996. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2997. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2998. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2999. sum_total = sum_total + DPRC
  3000. var invoice_type_cn =null;
  3001. if (invoice_type =="00" ){
  3002. invoice_type_cn="销售发票";
  3003. }else if (invoice_type == "01") {
  3004. invoice_type_cn="更正(对冲)发票";
  3005. }else if (invoice_type == "02") {
  3006. invoice_type_cn="其它类型发票";
  3007. }
  3008. html += "_$ta";
  3009. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3010. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3011. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3012. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3013. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3014. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3015. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3016. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3017. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3018. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3019. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3020. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3021. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3022. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3023. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3024. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3025. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3026. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3027. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3028. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3029. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3030. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3031. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3032. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3033. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3034. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3035. html += "_$tag";
  3036. }
  3037. html += "_$ta";
  3038. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3039. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3040. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3041. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3042. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3043. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3044. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3045. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3046. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3047. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3048. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3049. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3050. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  3051. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3052. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3053. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3054. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3055. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3056. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3057. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3058. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3059. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3060. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3061. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3062. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3063. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3064. html += "_$tag";
  3065. $("#dataTable").html(html);
  3066. }else {
  3067. $("#dataTable").html("");
  3068. }
  3069. },
  3070. "error" : function(msg){
  3071. },
  3072. "complete": function(){
  3073. layer.close(tip);
  3074. }
  3075. });
  3076. });
  3077. Date.prototype.Format = function (fmt) {
  3078. var o = {
  3079. "M+": this.getMonth() + 1, //月份
  3080. "d+": this.getDate(), //日
  3081. "h+": this.getHours(), //小时
  3082. "m+": this.getMinutes(), //分
  3083. "s+": this.getSeconds(), //秒
  3084. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3085. "S": this.getMilliseconds() //毫秒
  3086. };
  3087. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3088. for (var k in o)
  3089. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3090. return fmt;
  3091. }
  3092. $("#jrjc").change(function() {
  3093. if ($("#jrjc").prop('checked') == true){
  3094. $("#departmentId").removeAttr("disabled");
  3095. }else {
  3096. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3097. }
  3098. });
  3099. ----------------------------------- SOURCE END -------------------------------------
  3100. !STACK 0
  3101. java.lang.NullPointerException
  3102. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:50.154
  3103. !MESSAGE Error while processing working copy
  3104. !STACK 1
  3105. JavaScript Model Exception: java.lang.NullPointerException
  3106. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3107. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3108. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3109. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3110. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3111. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3112. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3113. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3114. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3115. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3116. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3117. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3118. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3119. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3120. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3121. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3122. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3123. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3124. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3125. Caused by: java.lang.NullPointerException
  3126. Caused by: java.lang.NullPointerException
  3127. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:50.154
  3128. !MESSAGE java.lang.NullPointerException
  3129. !STACK 0
  3130. java.lang.NullPointerException
  3131. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:50.846
  3132. !MESSAGE Exception occurred during problem detection:
  3133. ----------------------------------- SOURCE BEGIN -------------------------------------
  3134. (function(){WdatePicker();})();
  3135. (function(){WdatePicker();})();
  3136. (function(){Data.get();})();
  3137. (function(){Data.set();})();
  3138. (function(){search();})();
  3139. $(function(){
  3140. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3141. getfp();
  3142. });
  3143. var Data = {
  3144. "get" : function(){
  3145. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3146. var tip = layer.load(2);
  3147. var result="";
  3148. var url = "getgyxml.do";
  3149. $.ajax({
  3150. "url" : url,
  3151. "data" : {
  3152. "start_date" : $("#dateBegin").val(),
  3153. "end_date" : $("#dateEnd").val()
  3154. },
  3155. "type" : "POST",
  3156. "dataType" : "json",
  3157. "success" : function(data) {
  3158. if(data != null && data != ""){
  3159. if ( data.status =="success"){
  3160. getfp();
  3161. alert("获取成功!");
  3162. }else {
  3163. alert(data.status);
  3164. }
  3165. }else {
  3166. alert("获取失败!");
  3167. }
  3168. },
  3169. "complete": function(){
  3170. layer.close(tip);
  3171. }
  3172. });
  3173. }else {
  3174. alert("请选择日期!");
  3175. }
  3176. },
  3177. "set" : function(){
  3178. if ( $("#fpid option:selected").text() !=""){
  3179. var tip = layer.load(2);
  3180. var gitem = $("#form1").serialize();
  3181. var jrjc;
  3182. if ($("#jrjc").prop('checked') == true){
  3183. jrjc = $("#departmentId").val();
  3184. }else {
  3185. jrjc ='N'
  3186. }
  3187. var url = "saverk.do";
  3188. $.ajax({
  3189. "url" : url,
  3190. "data" : {
  3191. "gitem" : gitem,
  3192. "jrjc" : jrjc
  3193. },
  3194. "type" : "POST",
  3195. "dataType" : "json",
  3196. "async" : true,
  3197. "success" : function(data) {
  3198. if(data.status ="success"){
  3199. alert("入库成功!");
  3200. window.location.reload();
  3201. }else {
  3202. alert(msg);
  3203. }
  3204. },
  3205. "error": function(){
  3206. alert("确认失败!");
  3207. },
  3208. "complete": function(){
  3209. layer.close(tip);
  3210. }
  3211. });
  3212. }else {
  3213. alert("请选择发票!");
  3214. }
  3215. }
  3216. }
  3217. function getfp(){
  3218. var tip = layer.load(2);
  3219. var url = "getgyfp.do";
  3220. $.ajax({
  3221. "url" : url,
  3222. "type" : "POST",
  3223. "dataType" : "json",
  3224. "async" : true,
  3225. "success" : function(data) {
  3226. if(data != null && data != ""){
  3227. $("#fpid").empty();
  3228. $("#fpid").append("_$tag_____________$tag____");
  3229. for(var i = 0; i < data.length; i++){
  3230. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3231. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3232. }
  3233. }
  3234. },
  3235. "error" : function(msg){
  3236. },
  3237. "complete": function(){
  3238. layer.close(tip);
  3239. }
  3240. });
  3241. }
  3242. $("#fpid").change(function(){
  3243. var tip = layer.load(2);
  3244. var url = "getgyrkxx.do";
  3245. var sum_total=0;
  3246. $.ajax({
  3247. "url" : url,
  3248. "data" : {
  3249. "fpId" : $("#fpid").val()
  3250. },
  3251. "type" : "POST",
  3252. "dataType" : "json",
  3253. "async" : true,
  3254. "success" : function(data) {
  3255. $("#dataTable").html("");
  3256. if(data != null && data != ""){
  3257. var html = "";
  3258. for(var i = 0; i < data.length; i++){
  3259. var ID = data[i].id == null ? "" : data[i].id;
  3260. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3261. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3262. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3263. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3264. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3265. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3266. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3267. var NAME = data[i].name == null ? "" : data[i].name;
  3268. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3269. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3270. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3271. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3272. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3273. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3274. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3275. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3276. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3277. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3278. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3279. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3280. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3281. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3282. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3283. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3284. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3285. sum_total = sum_total + DPRC
  3286. var invoice_type_cn =null;
  3287. if (invoice_type =="00" ){
  3288. invoice_type_cn="销售发票";
  3289. }else if (invoice_type == "01") {
  3290. invoice_type_cn="更正(对冲)发票";
  3291. }else if (invoice_type == "02") {
  3292. invoice_type_cn="其它类型发票";
  3293. }
  3294. html += "_$ta";
  3295. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3296. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3297. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3298. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3299. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3300. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3301. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3302. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3303. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3304. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3305. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3306. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3307. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3308. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3309. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3310. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3311. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3312. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3313. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3314. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3315. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3316. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3317. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3318. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3319. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3320. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3321. html += "_$tag";
  3322. }
  3323. html += "_$ta";
  3324. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3325. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3326. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3327. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3328. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3329. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3330. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3331. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3332. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3333. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3334. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3335. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3336. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  3337. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3338. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3339. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3340. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3341. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3342. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3343. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3344. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3345. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3346. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3347. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3348. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3349. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3350. html += "_$tag";
  3351. $("#dataTable").html(html);
  3352. }else {
  3353. $("#dataTable").html("");
  3354. }
  3355. },
  3356. "error" : function(msg){
  3357. },
  3358. "complete": function(){
  3359. layer.close(tip);
  3360. }
  3361. });
  3362. });
  3363. Date.prototype.Format = function (fmt) {
  3364. var o = {
  3365. "M+": this.getMonth() + 1, //月份
  3366. "d+": this.getDate(), //日
  3367. "h+": this.getHours(), //小时
  3368. "m+": this.getMinutes(), //分
  3369. "s+": this.getSeconds(), //秒
  3370. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3371. "S": this.getMilliseconds() //毫秒
  3372. };
  3373. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3374. for (var k in o)
  3375. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3376. return fmt;
  3377. }
  3378. $("#jrjc").change(function() {
  3379. if ($("#jrjc").prop('checked') == true){
  3380. $("#departmentId").removeAttr("disabled");
  3381. }else {
  3382. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3383. }
  3384. });
  3385. ----------------------------------- SOURCE END -------------------------------------
  3386. !STACK 0
  3387. java.lang.NullPointerException
  3388. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:51.250
  3389. !MESSAGE Exception occurred during problem detection:
  3390. ----------------------------------- SOURCE BEGIN -------------------------------------
  3391. (function(){WdatePicker();})();
  3392. (function(){WdatePicker();})();
  3393. (function(){Data.get();})();
  3394. (function(){Data.set();})();
  3395. (function(){search();})();
  3396. $(function(){
  3397. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3398. getfp();
  3399. });
  3400. var Data = {
  3401. "get" : function(){
  3402. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3403. var tip = layer.load(2);
  3404. var result="";
  3405. var url = "getgyxml.do";
  3406. $.ajax({
  3407. "url" : url,
  3408. "data" : {
  3409. "start_date" : $("#dateBegin").val(),
  3410. "end_date" : $("#dateEnd").val()
  3411. },
  3412. "type" : "POST",
  3413. "dataType" : "json",
  3414. "success" : function(data) {
  3415. if(data != null && data != ""){
  3416. if ( data.status =="success"){
  3417. getfp();
  3418. alert("获取成功!");
  3419. }else {
  3420. alert(data.status);
  3421. }
  3422. }else {
  3423. alert("获取失败!");
  3424. }
  3425. },
  3426. "complete": function(){
  3427. layer.close(tip);
  3428. }
  3429. });
  3430. }else {
  3431. alert("请选择日期!");
  3432. }
  3433. },
  3434. "set" : function(){
  3435. if ( $("#fpid option:selected").text() !=""){
  3436. var tip = layer.load(2);
  3437. var gitem = $("#form1").serialize();
  3438. var jrjc;
  3439. if ($("#jrjc").prop('checked') == true){
  3440. jrjc = $("#departmentId").val();
  3441. }else {
  3442. jrjc ='N'
  3443. }
  3444. var url = "saverk.do";
  3445. $.ajax({
  3446. "url" : url,
  3447. "data" : {
  3448. "gitem" : gitem,
  3449. "jrjc" : jrjc
  3450. },
  3451. "type" : "POST",
  3452. "dataType" : "json",
  3453. "async" : true,
  3454. "success" : function(data) {
  3455. if(data.status ="success"){
  3456. alert("入库成功!");
  3457. window.location.reload();
  3458. }else {
  3459. alert(msg);
  3460. }
  3461. },
  3462. "error": function(){
  3463. alert("确认失败!");
  3464. },
  3465. "complete": function(){
  3466. layer.close(tip);
  3467. }
  3468. });
  3469. }else {
  3470. alert("请选择发票!");
  3471. }
  3472. }
  3473. }
  3474. function getfp(){
  3475. var tip = layer.load(2);
  3476. var url = "getgyfp.do";
  3477. $.ajax({
  3478. "url" : url,
  3479. "type" : "POST",
  3480. "dataType" : "json",
  3481. "async" : true,
  3482. "success" : function(data) {
  3483. if(data != null && data != ""){
  3484. $("#fpid").empty();
  3485. $("#fpid").append("_$tag_____________$tag____");
  3486. for(var i = 0; i < data.length; i++){
  3487. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3488. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3489. }
  3490. }
  3491. },
  3492. "error" : function(msg){
  3493. },
  3494. "complete": function(){
  3495. layer.close(tip);
  3496. }
  3497. });
  3498. }
  3499. $("#fpid").change(function(){
  3500. var tip = layer.load(2);
  3501. var url = "getgyrkxx.do";
  3502. var sum_total=0;
  3503. $.ajax({
  3504. "url" : url,
  3505. "data" : {
  3506. "fpId" : $("#fpid").val()
  3507. },
  3508. "type" : "POST",
  3509. "dataType" : "json",
  3510. "async" : true,
  3511. "success" : function(data) {
  3512. $("#dataTable").html("");
  3513. if(data != null && data != ""){
  3514. var html = "";
  3515. for(var i = 0; i < data.length; i++){
  3516. var ID = data[i].id == null ? "" : data[i].id;
  3517. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3518. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3519. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3520. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3521. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3522. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3523. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3524. var NAME = data[i].name == null ? "" : data[i].name;
  3525. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3526. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3527. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3528. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3529. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3530. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3531. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3532. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3533. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3534. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3535. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3536. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3537. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3538. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3539. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3540. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3541. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3542. sum_total = sum_total + DPRC
  3543. var invoice_type_cn =null;
  3544. if (invoice_type =="00" ){
  3545. invoice_type_cn="销售发票";
  3546. }else if (invoice_type == "01") {
  3547. invoice_type_cn="更正(对冲)发票";
  3548. }else if (invoice_type == "02") {
  3549. invoice_type_cn="其它类型发票";
  3550. }
  3551. html += "_$ta";
  3552. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3553. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3554. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3555. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3556. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3557. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3558. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3559. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3560. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3561. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3562. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3563. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3564. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3565. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3566. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3567. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3568. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3569. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3570. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3571. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3572. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3573. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3574. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3575. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3576. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3577. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3578. html += "_$tag";
  3579. }
  3580. html += "_$ta";
  3581. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3582. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3583. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3584. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3585. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3586. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3587. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3588. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3589. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3590. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3591. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3592. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3593. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  3594. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3595. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3596. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3597. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3598. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3599. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3600. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3601. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3602. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3603. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3604. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3605. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3606. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3607. html += "_$tag";
  3608. $("#dataTable").html(html);
  3609. }else {
  3610. $("#dataTable").html("");
  3611. }
  3612. },
  3613. "error" : function(msg){
  3614. },
  3615. "complete": function(){
  3616. layer.close(tip);
  3617. }
  3618. });
  3619. });
  3620. Date.prototype.Format = function (fmt) {
  3621. var o = {
  3622. "M+": this.getMonth() + 1, //月份
  3623. "d+": this.getDate(), //日
  3624. "h+": this.getHours(), //小时
  3625. "m+": this.getMinutes(), //分
  3626. "s+": this.getSeconds(), //秒
  3627. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3628. "S": this.getMilliseconds() //毫秒
  3629. };
  3630. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3631. for (var k in o)
  3632. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3633. return fmt;
  3634. }
  3635. $("#jrjc").change(function() {
  3636. if ($("#jrjc").prop('checked') == true){
  3637. $("#departmentId").removeAttr("disabled");
  3638. }else {
  3639. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3640. }
  3641. });
  3642. ----------------------------------- SOURCE END -------------------------------------
  3643. !STACK 0
  3644. java.lang.NullPointerException
  3645. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:51.250
  3646. !MESSAGE java.lang.NullPointerException
  3647. !STACK 1
  3648. JavaScript Model Exception: java.lang.NullPointerException
  3649. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3650. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3651. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3652. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3653. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3654. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3655. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3656. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3657. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3658. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3659. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3660. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3661. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3662. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3663. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3664. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3665. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3666. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3667. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3668. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3669. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3670. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3671. Caused by: java.lang.NullPointerException
  3672. Caused by: java.lang.NullPointerException
  3673. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:51.250
  3674. !MESSAGE java.lang.NullPointerException
  3675. !STACK 0
  3676. java.lang.NullPointerException
  3677. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:55.337
  3678. !MESSAGE Exception occurred during problem detection:
  3679. ----------------------------------- SOURCE BEGIN -------------------------------------
  3680. (function(){WdatePicker();})();
  3681. (function(){WdatePicker();})();
  3682. (function(){Data.get();})();
  3683. (function(){Data.set();})();
  3684. (function(){search();})();
  3685. $(function(){
  3686. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3687. getfp();
  3688. });
  3689. var Data = {
  3690. "get" : function(){
  3691. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3692. var tip = layer.load(2);
  3693. var result="";
  3694. var url = "getgyxml.do";
  3695. $.ajax({
  3696. "url" : url,
  3697. "data" : {
  3698. "start_date" : $("#dateBegin").val(),
  3699. "end_date" : $("#dateEnd").val()
  3700. },
  3701. "type" : "POST",
  3702. "dataType" : "json",
  3703. "success" : function(data) {
  3704. if(data != null && data != ""){
  3705. if ( data.status =="success"){
  3706. getfp();
  3707. alert("获取成功!");
  3708. }else {
  3709. alert(data.status);
  3710. }
  3711. }else {
  3712. alert("获取失败!");
  3713. }
  3714. },
  3715. "complete": function(){
  3716. layer.close(tip);
  3717. }
  3718. });
  3719. }else {
  3720. alert("请选择日期!");
  3721. }
  3722. },
  3723. "set" : function(){
  3724. if ( $("#fpid option:selected").text() !=""){
  3725. var tip = layer.load(2);
  3726. var gitem = $("#form1").serialize();
  3727. var jrjc;
  3728. if ($("#jrjc").prop('checked') == true){
  3729. jrjc = $("#departmentId").val();
  3730. }else {
  3731. jrjc ='N'
  3732. }
  3733. var url = "saverk.do";
  3734. $.ajax({
  3735. "url" : url,
  3736. "data" : {
  3737. "gitem" : gitem,
  3738. "jrjc" : jrjc
  3739. },
  3740. "type" : "POST",
  3741. "dataType" : "json",
  3742. "async" : true,
  3743. "success" : function(data) {
  3744. if(data.status ="success"){
  3745. alert("入库成功!");
  3746. window.location.reload();
  3747. }else {
  3748. alert(msg);
  3749. }
  3750. },
  3751. "error": function(){
  3752. alert("确认失败!");
  3753. },
  3754. "complete": function(){
  3755. layer.close(tip);
  3756. }
  3757. });
  3758. }else {
  3759. alert("请选择发票!");
  3760. }
  3761. }
  3762. }
  3763. function getfp(){
  3764. var tip = layer.load(2);
  3765. var url = "getgyfp.do";
  3766. $.ajax({
  3767. "url" : url,
  3768. "type" : "POST",
  3769. "dataType" : "json",
  3770. "async" : true,
  3771. "success" : function(data) {
  3772. if(data != null && data != ""){
  3773. $("#fpid").empty();
  3774. $("#fpid").append("_$tag_____________$tag____");
  3775. for(var i = 0; i < data.length; i++){
  3776. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3777. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3778. }
  3779. }
  3780. },
  3781. "error" : function(msg){
  3782. },
  3783. "complete": function(){
  3784. layer.close(tip);
  3785. }
  3786. });
  3787. }
  3788. $("#fpid").change(function(){
  3789. var tip = layer.load(2);
  3790. var url = "getgyrkxx.do";
  3791. var sum_total=0;
  3792. $.ajax({
  3793. "url" : url,
  3794. "data" : {
  3795. "fpId" : $("#fpid").val()
  3796. },
  3797. "type" : "POST",
  3798. "dataType" : "json",
  3799. "async" : true,
  3800. "success" : function(data) {
  3801. $("#dataTable").html("");
  3802. if(data != null && data != ""){
  3803. var html = "";
  3804. for(var i = 0; i < data.length; i++){
  3805. var ID = data[i].id == null ? "" : data[i].id;
  3806. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3807. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3808. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3809. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3810. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3811. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3812. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3813. var NAME = data[i].name == null ? "" : data[i].name;
  3814. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3815. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3816. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3817. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3818. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3819. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3820. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3821. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3822. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3823. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3824. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3825. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3826. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3827. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3828. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3829. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3830. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3831. sum_total = sum_total + DPRC
  3832. var invoice_type_cn =null;
  3833. if (invoice_type =="00" ){
  3834. invoice_type_cn="销售发票";
  3835. }else if (invoice_type == "01") {
  3836. invoice_type_cn="更正(对冲)发票";
  3837. }else if (invoice_type == "02") {
  3838. invoice_type_cn="其它类型发票";
  3839. }
  3840. html += "_$ta";
  3841. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3842. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3843. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3844. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3845. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3846. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3847. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3848. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3849. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3850. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3851. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3852. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3853. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3854. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3855. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3856. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3857. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3858. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3859. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3860. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3861. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3862. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3863. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3864. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3865. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3866. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3867. html += "_$tag";
  3868. }
  3869. html += "_$ta";
  3870. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3871. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3872. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3873. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3874. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3875. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3876. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3877. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3878. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3879. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3880. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3881. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3882. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  3883. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3884. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3885. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3886. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3887. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3888. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3889. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3890. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3891. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3892. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3893. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3894. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3895. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3896. html += "_$tag";
  3897. $("#dataTable").html(html);
  3898. }else {
  3899. $("#dataTable").html("");
  3900. }
  3901. },
  3902. "error" : function(msg){
  3903. },
  3904. "complete": function(){
  3905. layer.close(tip);
  3906. }
  3907. });
  3908. });
  3909. Date.prototype.Format = function (fmt) {
  3910. var o = {
  3911. "M+": this.getMonth() + 1, //月份
  3912. "d+": this.getDate(), //日
  3913. "h+": this.getHours(), //小时
  3914. "m+": this.getMinutes(), //分
  3915. "s+": this.getSeconds(), //秒
  3916. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3917. "S": this.getMilliseconds() //毫秒
  3918. };
  3919. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3920. for (var k in o)
  3921. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3922. return fmt;
  3923. }
  3924. $("#jrjc").change(function() {
  3925. if ($("#jrjc").prop('checked') == true){
  3926. $("#departmentId").removeAttr("disabled");
  3927. }else {
  3928. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3929. }
  3930. });
  3931. ----------------------------------- SOURCE END -------------------------------------
  3932. !STACK 0
  3933. java.lang.NullPointerException
  3934. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:55.337
  3935. !MESSAGE Error while processing working copy
  3936. !STACK 1
  3937. JavaScript Model Exception: java.lang.NullPointerException
  3938. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3939. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3940. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3941. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3942. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3943. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3944. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3945. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3946. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3947. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3948. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3949. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3950. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3951. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3952. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3953. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3954. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3955. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3956. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3957. Caused by: java.lang.NullPointerException
  3958. Caused by: java.lang.NullPointerException
  3959. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:55.337
  3960. !MESSAGE java.lang.NullPointerException
  3961. !STACK 0
  3962. java.lang.NullPointerException
  3963. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:56.051
  3964. !MESSAGE Exception occurred during problem detection:
  3965. ----------------------------------- SOURCE BEGIN -------------------------------------
  3966. (function(){WdatePicker();})();
  3967. (function(){WdatePicker();})();
  3968. (function(){Data.get();})();
  3969. (function(){Data.set();})();
  3970. (function(){search();})();
  3971. $(function(){
  3972. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3973. getfp();
  3974. });
  3975. var Data = {
  3976. "get" : function(){
  3977. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3978. var tip = layer.load(2);
  3979. var result="";
  3980. var url = "getgyxml.do";
  3981. $.ajax({
  3982. "url" : url,
  3983. "data" : {
  3984. "start_date" : $("#dateBegin").val(),
  3985. "end_date" : $("#dateEnd").val()
  3986. },
  3987. "type" : "POST",
  3988. "dataType" : "json",
  3989. "success" : function(data) {
  3990. if(data != null && data != ""){
  3991. if ( data.status =="success"){
  3992. getfp();
  3993. alert("获取成功!");
  3994. }else {
  3995. alert(data.status);
  3996. }
  3997. }else {
  3998. alert("获取失败!");
  3999. }
  4000. },
  4001. "complete": function(){
  4002. layer.close(tip);
  4003. }
  4004. });
  4005. }else {
  4006. alert("请选择日期!");
  4007. }
  4008. },
  4009. "set" : function(){
  4010. if ( $("#fpid option:selected").text() !=""){
  4011. var tip = layer.load(2);
  4012. var gitem = $("#form1").serialize();
  4013. var jrjc;
  4014. if ($("#jrjc").prop('checked') == true){
  4015. jrjc = $("#departmentId").val();
  4016. }else {
  4017. jrjc ='N'
  4018. }
  4019. var url = "saverk.do";
  4020. $.ajax({
  4021. "url" : url,
  4022. "data" : {
  4023. "gitem" : gitem,
  4024. "jrjc" : jrjc
  4025. },
  4026. "type" : "POST",
  4027. "dataType" : "json",
  4028. "async" : true,
  4029. "success" : function(data) {
  4030. if(data.status ="success"){
  4031. alert("入库成功!");
  4032. window.location.reload();
  4033. }else {
  4034. alert(msg);
  4035. }
  4036. },
  4037. "error": function(){
  4038. alert("确认失败!");
  4039. },
  4040. "complete": function(){
  4041. layer.close(tip);
  4042. }
  4043. });
  4044. }else {
  4045. alert("请选择发票!");
  4046. }
  4047. }
  4048. }
  4049. function getfp(){
  4050. var tip = layer.load(2);
  4051. var url = "getgyfp.do";
  4052. $.ajax({
  4053. "url" : url,
  4054. "type" : "POST",
  4055. "dataType" : "json",
  4056. "async" : true,
  4057. "success" : function(data) {
  4058. if(data != null && data != ""){
  4059. $("#fpid").empty();
  4060. $("#fpid").append("_$tag_____________$tag____");
  4061. for(var i = 0; i < data.length; i++){
  4062. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4063. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4064. }
  4065. }
  4066. },
  4067. "error" : function(msg){
  4068. },
  4069. "complete": function(){
  4070. layer.close(tip);
  4071. }
  4072. });
  4073. }
  4074. $("#fpid").change(function(){
  4075. var tip = layer.load(2);
  4076. var url = "getgyrkxx.do";
  4077. var sum_total=0;
  4078. $.ajax({
  4079. "url" : url,
  4080. "data" : {
  4081. "fpId" : $("#fpid").val()
  4082. },
  4083. "type" : "POST",
  4084. "dataType" : "json",
  4085. "async" : true,
  4086. "success" : function(data) {
  4087. $("#dataTable").html("");
  4088. if(data != null && data != ""){
  4089. var html = "";
  4090. for(var i = 0; i < data.length; i++){
  4091. var ID = data[i].id == null ? "" : data[i].id;
  4092. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4093. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4094. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4095. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4096. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4097. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4098. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4099. var NAME = data[i].name == null ? "" : data[i].name;
  4100. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4101. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4102. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4103. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4104. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4105. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4106. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4107. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4108. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4109. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4110. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4111. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4112. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4113. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4114. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4115. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4116. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4117. sum_total = sum_total + DPRC
  4118. var invoice_type_cn =null;
  4119. if (invoice_type =="00" ){
  4120. invoice_type_cn="销售发票";
  4121. }else if (invoice_type == "01") {
  4122. invoice_type_cn="更正(对冲)发票";
  4123. }else if (invoice_type == "02") {
  4124. invoice_type_cn="其它类型发票";
  4125. }
  4126. html += "_$ta";
  4127. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4128. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4129. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4130. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4131. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4132. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4133. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4134. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4135. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4136. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4137. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4138. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4139. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4140. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4141. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4142. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4143. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4144. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4145. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4146. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4147. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4148. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4149. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4150. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4151. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4152. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4153. html += "_$tag";
  4154. }
  4155. html += "_$ta";
  4156. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4157. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4158. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4159. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4160. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4161. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4162. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4163. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4164. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4165. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4166. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4167. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4168. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  4169. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4170. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4171. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4172. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4173. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4174. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4175. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4176. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4177. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4178. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4179. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4180. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4181. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4182. html += "_$tag";
  4183. $("#dataTable").html(html);
  4184. }else {
  4185. $("#dataTable").html("");
  4186. }
  4187. },
  4188. "error" : function(msg){
  4189. },
  4190. "complete": function(){
  4191. layer.close(tip);
  4192. }
  4193. });
  4194. });
  4195. Date.prototype.Format = function (fmt) {
  4196. var o = {
  4197. "M+": this.getMonth() + 1, //月份
  4198. "d+": this.getDate(), //日
  4199. "h+": this.getHours(), //小时
  4200. "m+": this.getMinutes(), //分
  4201. "s+": this.getSeconds(), //秒
  4202. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4203. "S": this.getMilliseconds() //毫秒
  4204. };
  4205. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4206. for (var k in o)
  4207. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4208. return fmt;
  4209. }
  4210. $("#jrjc").change(function() {
  4211. if ($("#jrjc").prop('checked') == true){
  4212. $("#departmentId").removeAttr("disabled");
  4213. }else {
  4214. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4215. }
  4216. });
  4217. ----------------------------------- SOURCE END -------------------------------------
  4218. !STACK 0
  4219. java.lang.NullPointerException
  4220. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:00.653
  4221. !MESSAGE Exception occurred during problem detection:
  4222. ----------------------------------- SOURCE BEGIN -------------------------------------
  4223. (function(){WdatePicker();})();
  4224. (function(){WdatePicker();})();
  4225. (function(){Data.get();})();
  4226. (function(){Data.set();})();
  4227. (function(){search();})();
  4228. $(function(){
  4229. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4230. getfp();
  4231. });
  4232. var Data = {
  4233. "get" : function(){
  4234. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4235. var tip = layer.load(2);
  4236. var result="";
  4237. var url = "getgyxml.do";
  4238. $.ajax({
  4239. "url" : url,
  4240. "data" : {
  4241. "start_date" : $("#dateBegin").val(),
  4242. "end_date" : $("#dateEnd").val()
  4243. },
  4244. "type" : "POST",
  4245. "dataType" : "json",
  4246. "success" : function(data) {
  4247. if(data != null && data != ""){
  4248. if ( data.status =="success"){
  4249. getfp();
  4250. alert("获取成功!");
  4251. }else {
  4252. alert(data.status);
  4253. }
  4254. }else {
  4255. alert("获取失败!");
  4256. }
  4257. },
  4258. "complete": function(){
  4259. layer.close(tip);
  4260. }
  4261. });
  4262. }else {
  4263. alert("请选择日期!");
  4264. }
  4265. },
  4266. "set" : function(){
  4267. if ( $("#fpid option:selected").text() !=""){
  4268. var tip = layer.load(2);
  4269. var gitem = $("#form1").serialize();
  4270. var jrjc;
  4271. if ($("#jrjc").prop('checked') == true){
  4272. jrjc = $("#departmentId").val();
  4273. }else {
  4274. jrjc ='N'
  4275. }
  4276. var url = "saverk.do";
  4277. $.ajax({
  4278. "url" : url,
  4279. "data" : {
  4280. "gitem" : gitem,
  4281. "jrjc" : jrjc
  4282. },
  4283. "type" : "POST",
  4284. "dataType" : "json",
  4285. "async" : true,
  4286. "success" : function(data) {
  4287. if(data.status ="success"){
  4288. alert("入库成功!");
  4289. window.location.reload();
  4290. }else {
  4291. alert(msg);
  4292. }
  4293. },
  4294. "error": function(){
  4295. alert("确认失败!");
  4296. },
  4297. "complete": function(){
  4298. layer.close(tip);
  4299. }
  4300. });
  4301. }else {
  4302. alert("请选择发票!");
  4303. }
  4304. }
  4305. }
  4306. function getfp(){
  4307. var tip = layer.load(2);
  4308. var url = "getgyfp.do";
  4309. $.ajax({
  4310. "url" : url,
  4311. "type" : "POST",
  4312. "dataType" : "json",
  4313. "async" : true,
  4314. "success" : function(data) {
  4315. if(data != null && data != ""){
  4316. $("#fpid").empty();
  4317. $("#fpid").append("_$tag_____________$tag____");
  4318. for(var i = 0; i < data.length; i++){
  4319. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4320. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4321. }
  4322. }
  4323. },
  4324. "error" : function(msg){
  4325. },
  4326. "complete": function(){
  4327. layer.close(tip);
  4328. }
  4329. });
  4330. }
  4331. $("#fpid").change(function(){
  4332. var tip = layer.load(2);
  4333. var url = "getgyrkxx.do";
  4334. var sum_total=0;
  4335. $.ajax({
  4336. "url" : url,
  4337. "data" : {
  4338. "fpId" : $("#fpid").val()
  4339. },
  4340. "type" : "POST",
  4341. "dataType" : "json",
  4342. "async" : true,
  4343. "success" : function(data) {
  4344. $("#dataTable").html("");
  4345. if(data != null && data != ""){
  4346. var html = "";
  4347. for(var i = 0; i < data.length; i++){
  4348. var ID = data[i].id == null ? "" : data[i].id;
  4349. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4350. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4351. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4352. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4353. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4354. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4355. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4356. var NAME = data[i].name == null ? "" : data[i].name;
  4357. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4358. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4359. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4360. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4361. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4362. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4363. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4364. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4365. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4366. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4367. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4368. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4369. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4370. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4371. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4372. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4373. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4374. sum_total = sum_total + DPRC
  4375. var invoice_type_cn =null;
  4376. if (invoice_type =="00" ){
  4377. invoice_type_cn="销售发票";
  4378. }else if (invoice_type == "01") {
  4379. invoice_type_cn="更正(对冲)发票";
  4380. }else if (invoice_type == "02") {
  4381. invoice_type_cn="其它类型发票";
  4382. }
  4383. html += "_$ta";
  4384. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4385. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4386. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4387. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4388. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4389. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4390. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4391. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4392. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4393. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4394. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4395. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4396. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4397. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4398. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4399. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4400. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4401. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4402. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4403. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4404. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4405. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4406. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4407. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4408. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4409. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4410. html += "_$tag";
  4411. }
  4412. html += "_$ta";
  4413. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4414. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4415. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4416. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4417. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4418. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4419. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4420. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4421. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4422. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4423. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4424. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4425. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  4426. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4427. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4428. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4429. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4430. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4431. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4432. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4433. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4434. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4435. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4436. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4437. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4438. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4439. html += "_$tag";
  4440. $("#dataTable").html(html);
  4441. }else {
  4442. $("#dataTable").html("");
  4443. }
  4444. },
  4445. "error" : function(msg){
  4446. },
  4447. "complete": function(){
  4448. layer.close(tip);
  4449. }
  4450. });
  4451. });
  4452. Date.prototype.Format = function (fmt) {
  4453. var o = {
  4454. "M+": this.getMonth() + 1, //月份
  4455. "d+": this.getDate(), //日
  4456. "h+": this.getHours(), //小时
  4457. "m+": this.getMinutes(), //分
  4458. "s+": this.getSeconds(), //秒
  4459. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4460. "S": this.getMilliseconds() //毫秒
  4461. };
  4462. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4463. for (var k in o)
  4464. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4465. return fmt;
  4466. }
  4467. $("#jrjc").change(function() {
  4468. if ($("#jrjc").prop('checked') == true){
  4469. $("#departmentId").removeAttr("disabled");
  4470. }else {
  4471. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4472. }
  4473. });
  4474. ----------------------------------- SOURCE END -------------------------------------
  4475. !STACK 0
  4476. java.lang.NullPointerException
  4477. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:00.653
  4478. !MESSAGE java.lang.NullPointerException
  4479. !STACK 1
  4480. JavaScript Model Exception: java.lang.NullPointerException
  4481. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4482. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  4483. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4484. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4485. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  4486. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  4487. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  4488. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  4489. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  4490. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  4491. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  4492. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  4493. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  4494. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  4495. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  4496. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  4497. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  4498. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  4499. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  4500. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  4501. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  4502. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  4503. Caused by: java.lang.NullPointerException
  4504. Caused by: java.lang.NullPointerException
  4505. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:00.653
  4506. !MESSAGE java.lang.NullPointerException
  4507. !STACK 0
  4508. java.lang.NullPointerException
  4509. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:03.299
  4510. !MESSAGE Exception occurred during problem detection:
  4511. ----------------------------------- SOURCE BEGIN -------------------------------------
  4512. (function(){WdatePicker();})();
  4513. (function(){WdatePicker();})();
  4514. (function(){Data.get();})();
  4515. (function(){Data.set();})();
  4516. (function(){search();})();
  4517. $(function(){
  4518. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4519. getfp();
  4520. });
  4521. var Data = {
  4522. "get" : function(){
  4523. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4524. var tip = layer.load(2);
  4525. var result="";
  4526. var url = "getgyxml.do";
  4527. $.ajax({
  4528. "url" : url,
  4529. "data" : {
  4530. "start_date" : $("#dateBegin").val(),
  4531. "end_date" : $("#dateEnd").val()
  4532. },
  4533. "type" : "POST",
  4534. "dataType" : "json",
  4535. "success" : function(data) {
  4536. if(data != null && data != ""){
  4537. if ( data.status =="success"){
  4538. getfp();
  4539. alert("获取成功!");
  4540. }else {
  4541. alert(data.status);
  4542. }
  4543. }else {
  4544. alert("获取失败!");
  4545. }
  4546. },
  4547. "complete": function(){
  4548. layer.close(tip);
  4549. }
  4550. });
  4551. }else {
  4552. alert("请选择日期!");
  4553. }
  4554. },
  4555. "set" : function(){
  4556. if ( $("#fpid option:selected").text() !=""){
  4557. var tip = layer.load(2);
  4558. var gitem = $("#form1").serialize();
  4559. var jrjc;
  4560. if ($("#jrjc").prop('checked') == true){
  4561. jrjc = $("#departmentId").val();
  4562. }else {
  4563. jrjc ='N'
  4564. }
  4565. var url = "saverk.do";
  4566. $.ajax({
  4567. "url" : url,
  4568. "data" : {
  4569. "gitem" : gitem,
  4570. "jrjc" : jrjc
  4571. },
  4572. "type" : "POST",
  4573. "dataType" : "json",
  4574. "async" : true,
  4575. "success" : function(data) {
  4576. if(data.status ="success"){
  4577. alert("入库成功!");
  4578. window.location.reload();
  4579. }else {
  4580. alert(msg);
  4581. }
  4582. },
  4583. "error": function(){
  4584. alert("确认失败!");
  4585. },
  4586. "complete": function(){
  4587. layer.close(tip);
  4588. }
  4589. });
  4590. }else {
  4591. alert("请选择发票!");
  4592. }
  4593. }
  4594. }
  4595. function getfp(){
  4596. var tip = layer.load(2);
  4597. var url = "getgyfp.do";
  4598. $.ajax({
  4599. "url" : url,
  4600. "type" : "POST",
  4601. "dataType" : "json",
  4602. "async" : true,
  4603. "success" : function(data) {
  4604. if(data != null && data != ""){
  4605. $("#fpid").empty();
  4606. $("#fpid").append("_$tag_____________$tag____");
  4607. for(var i = 0; i < data.length; i++){
  4608. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4609. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4610. }
  4611. }
  4612. },
  4613. "error" : function(msg){
  4614. },
  4615. "complete": function(){
  4616. layer.close(tip);
  4617. }
  4618. });
  4619. }
  4620. $("#fpid").change(function(){
  4621. var tip = layer.load(2);
  4622. var url = "getgyrkxx.do";
  4623. var sum_total=0;
  4624. $.ajax({
  4625. "url" : url,
  4626. "data" : {
  4627. "fpId" : $("#fpid").val()
  4628. },
  4629. "type" : "POST",
  4630. "dataType" : "json",
  4631. "async" : true,
  4632. "success" : function(data) {
  4633. $("#dataTable").html("");
  4634. if(data != null && data != ""){
  4635. var html = "";
  4636. for(var i = 0; i < data.length; i++){
  4637. var ID = data[i].id == null ? "" : data[i].id;
  4638. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4639. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4640. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4641. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4642. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4643. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4644. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4645. var NAME = data[i].name == null ? "" : data[i].name;
  4646. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4647. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4648. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4649. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4650. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4651. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4652. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4653. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4654. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4655. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4656. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4657. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4658. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4659. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4660. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4661. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4662. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4663. sum_total = sum_total + DPRC
  4664. var invoice_type_cn =null;
  4665. if (invoice_type =="00" ){
  4666. invoice_type_cn="销售发票";
  4667. }else if (invoice_type == "01") {
  4668. invoice_type_cn="更正(对冲)发票";
  4669. }else if (invoice_type == "02") {
  4670. invoice_type_cn="其它类型发票";
  4671. }
  4672. html += "_$ta";
  4673. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4674. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4675. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  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";
  4700. }
  4701. html += "_$ta";
  4702. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4703. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4704. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4705. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4706. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4707. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4708. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4709. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4710. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4711. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4712. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4713. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4714. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  4715. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4716. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4717. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4718. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4719. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4720. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4721. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4722. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4723. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4724. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4725. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4726. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4727. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4728. html += "_$tag";
  4729. $("#dataTable").html(html);
  4730. }else {
  4731. $("#dataTable").html("");
  4732. }
  4733. },
  4734. "error" : function(msg){
  4735. },
  4736. "complete": function(){
  4737. layer.close(tip);
  4738. }
  4739. });
  4740. });
  4741. Date.prototype.Format = function (fmt) {
  4742. var o = {
  4743. "M+": this.getMonth() + 1, //月份
  4744. "d+": this.getDate(), //日
  4745. "h+": this.getHours(), //小时
  4746. "m+": this.getMinutes(), //分
  4747. "s+": this.getSeconds(), //秒
  4748. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4749. "S": this.getMilliseconds() //毫秒
  4750. };
  4751. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4752. for (var k in o)
  4753. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4754. return fmt;
  4755. }
  4756. $("#jrjc").change(function() {
  4757. if ($("#jrjc").prop('checked') == true){
  4758. $("#departmentId").removeAttr("disabled");
  4759. }else {
  4760. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4761. }
  4762. });
  4763. ----------------------------------- SOURCE END -------------------------------------
  4764. !STACK 0
  4765. java.lang.NullPointerException
  4766. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:03.299
  4767. !MESSAGE java.lang.NullPointerException
  4768. !STACK 1
  4769. JavaScript Model Exception: java.lang.NullPointerException
  4770. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4771. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  4772. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4773. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4774. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  4775. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  4776. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  4777. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  4778. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  4779. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  4780. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  4781. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  4782. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  4783. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  4784. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  4785. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  4786. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  4787. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  4788. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  4789. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  4790. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  4791. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  4792. Caused by: java.lang.NullPointerException
  4793. Caused by: java.lang.NullPointerException
  4794. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:03.300
  4795. !MESSAGE java.lang.NullPointerException
  4796. !STACK 0
  4797. java.lang.NullPointerException
  4798. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:05.228
  4799. !MESSAGE Exception occurred during problem detection:
  4800. ----------------------------------- SOURCE BEGIN -------------------------------------
  4801. (function(){WdatePicker();})();
  4802. (function(){WdatePicker();})();
  4803. (function(){Data.get();})();
  4804. (function(){Data.set();})();
  4805. (function(){search();})();
  4806. $(function(){
  4807. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4808. getfp();
  4809. });
  4810. var Data = {
  4811. "get" : function(){
  4812. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4813. var tip = layer.load(2);
  4814. var result="";
  4815. var url = "getgyxml.do";
  4816. $.ajax({
  4817. "url" : url,
  4818. "data" : {
  4819. "start_date" : $("#dateBegin").val(),
  4820. "end_date" : $("#dateEnd").val()
  4821. },
  4822. "type" : "POST",
  4823. "dataType" : "json",
  4824. "success" : function(data) {
  4825. if(data != null && data != ""){
  4826. if ( data.status =="success"){
  4827. getfp();
  4828. alert("获取成功!");
  4829. }else {
  4830. alert(data.status);
  4831. }
  4832. }else {
  4833. alert("获取失败!");
  4834. }
  4835. },
  4836. "complete": function(){
  4837. layer.close(tip);
  4838. }
  4839. });
  4840. }else {
  4841. alert("请选择日期!");
  4842. }
  4843. },
  4844. "set" : function(){
  4845. if ( $("#fpid option:selected").text() !=""){
  4846. var tip = layer.load(2);
  4847. var gitem = $("#form1").serialize();
  4848. var jrjc;
  4849. if ($("#jrjc").prop('checked') == true){
  4850. jrjc = $("#departmentId").val();
  4851. }else {
  4852. jrjc ='N'
  4853. }
  4854. var url = "saverk.do";
  4855. $.ajax({
  4856. "url" : url,
  4857. "data" : {
  4858. "gitem" : gitem,
  4859. "jrjc" : jrjc
  4860. },
  4861. "type" : "POST",
  4862. "dataType" : "json",
  4863. "async" : true,
  4864. "success" : function(data) {
  4865. if(data.status ="success"){
  4866. alert("入库成功!");
  4867. window.location.reload();
  4868. }else {
  4869. alert(msg);
  4870. }
  4871. },
  4872. "error": function(){
  4873. alert("确认失败!");
  4874. },
  4875. "complete": function(){
  4876. layer.close(tip);
  4877. }
  4878. });
  4879. }else {
  4880. alert("请选择发票!");
  4881. }
  4882. }
  4883. }
  4884. function getfp(){
  4885. var tip = layer.load(2);
  4886. var url = "getgyfp.do";
  4887. $.ajax({
  4888. "url" : url,
  4889. "type" : "POST",
  4890. "dataType" : "json",
  4891. "async" : true,
  4892. "success" : function(data) {
  4893. if(data != null && data != ""){
  4894. $("#fpid").empty();
  4895. $("#fpid").append("_$tag_____________$tag____");
  4896. for(var i = 0; i < data.length; i++){
  4897. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4898. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4899. }
  4900. }
  4901. },
  4902. "error" : function(msg){
  4903. },
  4904. "complete": function(){
  4905. layer.close(tip);
  4906. }
  4907. });
  4908. }
  4909. $("#fpid").change(function(){
  4910. var tip = layer.load(2);
  4911. var url = "getgyrkxx.do";
  4912. var sum_total=0;
  4913. $.ajax({
  4914. "url" : url,
  4915. "data" : {
  4916. "fpId" : $("#fpid").val()
  4917. },
  4918. "type" : "POST",
  4919. "dataType" : "json",
  4920. "async" : true,
  4921. "success" : function(data) {
  4922. $("#dataTable").html("");
  4923. if(data != null && data != ""){
  4924. var html = "";
  4925. for(var i = 0; i < data.length; i++){
  4926. var ID = data[i].id == null ? "" : data[i].id;
  4927. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4928. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4929. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4930. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4931. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4932. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4933. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4934. var NAME = data[i].name == null ? "" : data[i].name;
  4935. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4936. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4937. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4938. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4939. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4940. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4941. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4942. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4943. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4944. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4945. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4946. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4947. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4948. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4949. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4950. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4951. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4952. sum_total = sum_total + DPRC
  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. html += "_$ta";
  4991. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4992. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4993. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4994. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4995. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4996. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4997. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4998. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4999. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5000. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5001. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5002. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5003. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  5004. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5005. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5006. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5007. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5008. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5009. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5010. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5011. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5012. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5013. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5014. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5015. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5016. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5017. html += "_$tag";
  5018. $("#dataTable").html(html);
  5019. }else {
  5020. $("#dataTable").html("");
  5021. }
  5022. },
  5023. "error" : function(msg){
  5024. },
  5025. "complete": function(){
  5026. layer.close(tip);
  5027. }
  5028. });
  5029. });
  5030. Date.prototype.Format = function (fmt) {
  5031. var o = {
  5032. "M+": this.getMonth() + 1, //月份
  5033. "d+": this.getDate(), //日
  5034. "h+": this.getHours(), //小时
  5035. "m+": this.getMinutes(), //分
  5036. "s+": this.getSeconds(), //秒
  5037. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5038. "S": this.getMilliseconds() //毫秒
  5039. };
  5040. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5041. for (var k in o)
  5042. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5043. return fmt;
  5044. }
  5045. $("#jrjc").change(function() {
  5046. if ($("#jrjc").prop('checked') == true){
  5047. $("#departmentId").removeAttr("disabled");
  5048. }else {
  5049. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5050. }
  5051. });
  5052. ----------------------------------- SOURCE END -------------------------------------
  5053. !STACK 0
  5054. java.lang.NullPointerException
  5055. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:05.228
  5056. !MESSAGE java.lang.NullPointerException
  5057. !STACK 1
  5058. JavaScript Model Exception: java.lang.NullPointerException
  5059. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5060. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5061. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5062. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5063. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5064. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5065. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5066. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5067. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5068. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5069. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5070. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5071. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5072. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5073. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5074. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5075. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5076. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5077. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5078. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5079. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5080. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5081. Caused by: java.lang.NullPointerException
  5082. Caused by: java.lang.NullPointerException
  5083. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:05.229
  5084. !MESSAGE java.lang.NullPointerException
  5085. !STACK 0
  5086. java.lang.NullPointerException
  5087. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:07.616
  5088. !MESSAGE Exception occurred during problem detection:
  5089. ----------------------------------- SOURCE BEGIN -------------------------------------
  5090. (function(){WdatePicker();})();
  5091. (function(){WdatePicker();})();
  5092. (function(){Data.get();})();
  5093. (function(){Data.set();})();
  5094. (function(){search();})();
  5095. $(function(){
  5096. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5097. getfp();
  5098. });
  5099. var Data = {
  5100. "get" : function(){
  5101. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5102. var tip = layer.load(2);
  5103. var result="";
  5104. var url = "getgyxml.do";
  5105. $.ajax({
  5106. "url" : url,
  5107. "data" : {
  5108. "start_date" : $("#dateBegin").val(),
  5109. "end_date" : $("#dateEnd").val()
  5110. },
  5111. "type" : "POST",
  5112. "dataType" : "json",
  5113. "success" : function(data) {
  5114. if(data != null && data != ""){
  5115. if ( data.status =="success"){
  5116. getfp();
  5117. alert("获取成功!");
  5118. }else {
  5119. alert(data.status);
  5120. }
  5121. }else {
  5122. alert("获取失败!");
  5123. }
  5124. },
  5125. "complete": function(){
  5126. layer.close(tip);
  5127. }
  5128. });
  5129. }else {
  5130. alert("请选择日期!");
  5131. }
  5132. },
  5133. "set" : function(){
  5134. if ( $("#fpid option:selected").text() !=""){
  5135. var tip = layer.load(2);
  5136. var gitem = $("#form1").serialize();
  5137. var jrjc;
  5138. if ($("#jrjc").prop('checked') == true){
  5139. jrjc = $("#departmentId").val();
  5140. }else {
  5141. jrjc ='N'
  5142. }
  5143. var url = "saverk.do";
  5144. $.ajax({
  5145. "url" : url,
  5146. "data" : {
  5147. "gitem" : gitem,
  5148. "jrjc" : jrjc
  5149. },
  5150. "type" : "POST",
  5151. "dataType" : "json",
  5152. "async" : true,
  5153. "success" : function(data) {
  5154. if(data.status ="success"){
  5155. alert("入库成功!");
  5156. window.location.reload();
  5157. }else {
  5158. alert(msg);
  5159. }
  5160. },
  5161. "error": function(){
  5162. alert("确认失败!");
  5163. },
  5164. "complete": function(){
  5165. layer.close(tip);
  5166. }
  5167. });
  5168. }else {
  5169. alert("请选择发票!");
  5170. }
  5171. }
  5172. }
  5173. function getfp(){
  5174. var tip = layer.load(2);
  5175. var url = "getgyfp.do";
  5176. $.ajax({
  5177. "url" : url,
  5178. "type" : "POST",
  5179. "dataType" : "json",
  5180. "async" : true,
  5181. "success" : function(data) {
  5182. if(data != null && data != ""){
  5183. $("#fpid").empty();
  5184. $("#fpid").append("_$tag_____________$tag____");
  5185. for(var i = 0; i < data.length; i++){
  5186. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5187. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5188. }
  5189. }
  5190. },
  5191. "error" : function(msg){
  5192. },
  5193. "complete": function(){
  5194. layer.close(tip);
  5195. }
  5196. });
  5197. }
  5198. $("#fpid").change(function(){
  5199. var tip = layer.load(2);
  5200. var url = "getgyrkxx.do";
  5201. var sum_total=0;
  5202. $.ajax({
  5203. "url" : url,
  5204. "data" : {
  5205. "fpId" : $("#fpid").val()
  5206. },
  5207. "type" : "POST",
  5208. "dataType" : "json",
  5209. "async" : true,
  5210. "success" : function(data) {
  5211. $("#dataTable").html("");
  5212. if(data != null && data != ""){
  5213. var html = "";
  5214. for(var i = 0; i < data.length; i++){
  5215. var ID = data[i].id == null ? "" : data[i].id;
  5216. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5217. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5218. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5219. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5220. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5221. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5222. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5223. var NAME = data[i].name == null ? "" : data[i].name;
  5224. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5225. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5226. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5227. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5228. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5229. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5230. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5231. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5232. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5233. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5234. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5235. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5236. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5237. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5238. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5239. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5240. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5241. sum_total = sum_total + DPRC
  5242. var invoice_type_cn =null;
  5243. if (invoice_type =="00" ){
  5244. invoice_type_cn="销售发票";
  5245. }else if (invoice_type == "01") {
  5246. invoice_type_cn="更正(对冲)发票";
  5247. }else if (invoice_type == "02") {
  5248. invoice_type_cn="其它类型发票";
  5249. }
  5250. html += "_$ta";
  5251. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5252. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5253. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5254. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5255. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5256. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5257. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5258. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5259. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5260. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5261. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5262. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5263. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5264. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5265. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5266. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5268. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5269. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5270. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5271. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5272. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5273. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5274. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5275. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5276. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5277. html += "_$tag";
  5278. }
  5279. html += "_$ta";
  5280. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5281. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5282. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5283. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5284. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5285. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5286. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5287. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5288. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5289. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5290. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5291. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5292. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  5293. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5294. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5295. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5296. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5297. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5298. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5299. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5300. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5301. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5302. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5303. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5304. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5305. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5306. html += "_$tag";
  5307. $("#dataTable").html(html);
  5308. }else {
  5309. $("#dataTable").html("");
  5310. }
  5311. },
  5312. "error" : function(msg){
  5313. },
  5314. "complete": function(){
  5315. layer.close(tip);
  5316. }
  5317. });
  5318. });
  5319. Date.prototype.Format = function (fmt) {
  5320. var o = {
  5321. "M+": this.getMonth() + 1, //月份
  5322. "d+": this.getDate(), //日
  5323. "h+": this.getHours(), //小时
  5324. "m+": this.getMinutes(), //分
  5325. "s+": this.getSeconds(), //秒
  5326. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5327. "S": this.getMilliseconds() //毫秒
  5328. };
  5329. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5330. for (var k in o)
  5331. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5332. return fmt;
  5333. }
  5334. $("#jrjc").change(function() {
  5335. if ($("#jrjc").prop('checked') == true){
  5336. $("#departmentId").removeAttr("disabled");
  5337. }else {
  5338. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5339. }
  5340. });
  5341. ----------------------------------- SOURCE END -------------------------------------
  5342. !STACK 0
  5343. java.lang.NullPointerException
  5344. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:07.617
  5345. !MESSAGE java.lang.NullPointerException
  5346. !STACK 1
  5347. JavaScript Model Exception: java.lang.NullPointerException
  5348. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5349. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5350. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5351. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5352. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5353. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5354. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5355. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5356. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5357. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5358. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5359. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5360. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5361. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5362. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5363. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5364. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5365. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5366. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5367. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5368. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5369. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5370. Caused by: java.lang.NullPointerException
  5371. Caused by: java.lang.NullPointerException
  5372. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:07.617
  5373. !MESSAGE java.lang.NullPointerException
  5374. !STACK 0
  5375. java.lang.NullPointerException
  5376. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:10.510
  5377. !MESSAGE Exception occurred during problem detection:
  5378. ----------------------------------- SOURCE BEGIN -------------------------------------
  5379. (function(){WdatePicker();})();
  5380. (function(){WdatePicker();})();
  5381. (function(){Data.get();})();
  5382. (function(){Data.set();})();
  5383. (function(){search();})();
  5384. $(function(){
  5385. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5386. getfp();
  5387. });
  5388. var Data = {
  5389. "get" : function(){
  5390. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5391. var tip = layer.load(2);
  5392. var result="";
  5393. var url = "getgyxml.do";
  5394. $.ajax({
  5395. "url" : url,
  5396. "data" : {
  5397. "start_date" : $("#dateBegin").val(),
  5398. "end_date" : $("#dateEnd").val()
  5399. },
  5400. "type" : "POST",
  5401. "dataType" : "json",
  5402. "success" : function(data) {
  5403. if(data != null && data != ""){
  5404. if ( data.status =="success"){
  5405. getfp();
  5406. alert("获取成功!");
  5407. }else {
  5408. alert(data.status);
  5409. }
  5410. }else {
  5411. alert("获取失败!");
  5412. }
  5413. },
  5414. "complete": function(){
  5415. layer.close(tip);
  5416. }
  5417. });
  5418. }else {
  5419. alert("请选择日期!");
  5420. }
  5421. },
  5422. "set" : function(){
  5423. if ( $("#fpid option:selected").text() !=""){
  5424. var tip = layer.load(2);
  5425. var gitem = $("#form1").serialize();
  5426. var jrjc;
  5427. if ($("#jrjc").prop('checked') == true){
  5428. jrjc = $("#departmentId").val();
  5429. }else {
  5430. jrjc ='N'
  5431. }
  5432. var url = "saverk.do";
  5433. $.ajax({
  5434. "url" : url,
  5435. "data" : {
  5436. "gitem" : gitem,
  5437. "jrjc" : jrjc
  5438. },
  5439. "type" : "POST",
  5440. "dataType" : "json",
  5441. "async" : true,
  5442. "success" : function(data) {
  5443. if(data.status ="success"){
  5444. alert("入库成功!");
  5445. window.location.reload();
  5446. }else {
  5447. alert(msg);
  5448. }
  5449. },
  5450. "error": function(){
  5451. alert("确认失败!");
  5452. },
  5453. "complete": function(){
  5454. layer.close(tip);
  5455. }
  5456. });
  5457. }else {
  5458. alert("请选择发票!");
  5459. }
  5460. }
  5461. }
  5462. function getfp(){
  5463. var tip = layer.load(2);
  5464. var url = "getgyfp.do";
  5465. $.ajax({
  5466. "url" : url,
  5467. "type" : "POST",
  5468. "dataType" : "json",
  5469. "async" : true,
  5470. "success" : function(data) {
  5471. if(data != null && data != ""){
  5472. $("#fpid").empty();
  5473. $("#fpid").append("_$tag_____________$tag____");
  5474. for(var i = 0; i < data.length; i++){
  5475. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5476. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5477. }
  5478. }
  5479. },
  5480. "error" : function(msg){
  5481. },
  5482. "complete": function(){
  5483. layer.close(tip);
  5484. }
  5485. });
  5486. }
  5487. $("#fpid").change(function(){
  5488. var tip = layer.load(2);
  5489. var url = "getgyrkxx.do";
  5490. var sum_total=0;
  5491. $.ajax({
  5492. "url" : url,
  5493. "data" : {
  5494. "fpId" : $("#fpid").val()
  5495. },
  5496. "type" : "POST",
  5497. "dataType" : "json",
  5498. "async" : true,
  5499. "success" : function(data) {
  5500. $("#dataTable").html("");
  5501. if(data != null && data != ""){
  5502. var html = "";
  5503. for(var i = 0; i < data.length; i++){
  5504. var ID = data[i].id == null ? "" : data[i].id;
  5505. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5506. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5507. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5508. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5509. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5510. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5511. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5512. var NAME = data[i].name == null ? "" : data[i].name;
  5513. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5514. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5515. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5516. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5517. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5518. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5519. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5520. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5521. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5522. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5523. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5524. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5525. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5526. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5527. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5528. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5529. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5530. sum_total = sum_total + DPRC
  5531. var invoice_type_cn =null;
  5532. if (invoice_type =="00" ){
  5533. invoice_type_cn="销售发票";
  5534. }else if (invoice_type == "01") {
  5535. invoice_type_cn="更正(对冲)发票";
  5536. }else if (invoice_type == "02") {
  5537. invoice_type_cn="其它类型发票";
  5538. }
  5539. html += "_$ta";
  5540. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5541. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5542. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5543. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5544. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5545. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5546. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5547. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5548. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5549. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5550. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5551. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5552. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5553. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5554. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5555. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5556. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5557. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5558. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5559. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5560. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5561. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5562. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5563. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5564. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5565. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5566. html += "_$tag";
  5567. }
  5568. html += "_$ta";
  5569. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5570. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5571. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5572. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5573. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5574. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5575. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5576. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5577. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5578. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5579. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5580. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5581. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  5582. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5583. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5584. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5585. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5586. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5587. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5588. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5589. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5590. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5591. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5592. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5593. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5594. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5595. html += "_$tag";
  5596. $("#dataTable").html(html);
  5597. }else {
  5598. $("#dataTable").html("");
  5599. }
  5600. },
  5601. "error" : function(msg){
  5602. },
  5603. "complete": function(){
  5604. layer.close(tip);
  5605. }
  5606. });
  5607. });
  5608. Date.prototype.Format = function (fmt) {
  5609. var o = {
  5610. "M+": this.getMonth() + 1, //月份
  5611. "d+": this.getDate(), //日
  5612. "h+": this.getHours(), //小时
  5613. "m+": this.getMinutes(), //分
  5614. "s+": this.getSeconds(), //秒
  5615. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5616. "S": this.getMilliseconds() //毫秒
  5617. };
  5618. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5619. for (var k in o)
  5620. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5621. return fmt;
  5622. }
  5623. $("#jrjc").change(function() {
  5624. if ($("#jrjc").prop('checked') == true){
  5625. $("#departmentId").removeAttr("disabled");
  5626. }else {
  5627. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5628. }
  5629. });
  5630. ----------------------------------- SOURCE END -------------------------------------
  5631. !STACK 0
  5632. java.lang.NullPointerException
  5633. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:10.511
  5634. !MESSAGE java.lang.NullPointerException
  5635. !STACK 1
  5636. JavaScript Model Exception: java.lang.NullPointerException
  5637. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5638. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5639. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5640. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5641. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5642. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5643. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5644. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5645. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5646. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5647. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5648. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5649. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5650. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5651. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5652. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5653. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5654. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5655. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5656. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5657. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5658. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5659. Caused by: java.lang.NullPointerException
  5660. Caused by: java.lang.NullPointerException
  5661. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:10.511
  5662. !MESSAGE java.lang.NullPointerException
  5663. !STACK 0
  5664. java.lang.NullPointerException
  5665. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:16.178
  5666. !MESSAGE Exception occurred during problem detection:
  5667. ----------------------------------- SOURCE BEGIN -------------------------------------
  5668. (function(){WdatePicker();})();
  5669. (function(){WdatePicker();})();
  5670. (function(){Data.get();})();
  5671. (function(){Data.set();})();
  5672. (function(){search();})();
  5673. $(function(){
  5674. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5675. getfp();
  5676. });
  5677. var Data = {
  5678. "get" : function(){
  5679. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5680. var tip = layer.load(2);
  5681. var result="";
  5682. var url = "getgyxml.do";
  5683. $.ajax({
  5684. "url" : url,
  5685. "data" : {
  5686. "start_date" : $("#dateBegin").val(),
  5687. "end_date" : $("#dateEnd").val()
  5688. },
  5689. "type" : "POST",
  5690. "dataType" : "json",
  5691. "success" : function(data) {
  5692. if(data != null && data != ""){
  5693. if ( data.status =="success"){
  5694. getfp();
  5695. alert("获取成功!");
  5696. }else {
  5697. alert(data.status);
  5698. }
  5699. }else {
  5700. alert("获取失败!");
  5701. }
  5702. },
  5703. "complete": function(){
  5704. layer.close(tip);
  5705. }
  5706. });
  5707. }else {
  5708. alert("请选择日期!");
  5709. }
  5710. },
  5711. "set" : function(){
  5712. if ( $("#fpid option:selected").text() !=""){
  5713. var tip = layer.load(2);
  5714. var gitem = $("#form1").serialize();
  5715. var jrjc;
  5716. if ($("#jrjc").prop('checked') == true){
  5717. jrjc = $("#departmentId").val();
  5718. }else {
  5719. jrjc ='N'
  5720. }
  5721. var url = "saverk.do";
  5722. $.ajax({
  5723. "url" : url,
  5724. "data" : {
  5725. "gitem" : gitem,
  5726. "jrjc" : jrjc
  5727. },
  5728. "type" : "POST",
  5729. "dataType" : "json",
  5730. "async" : true,
  5731. "success" : function(data) {
  5732. if(data.status ="success"){
  5733. alert("入库成功!");
  5734. window.location.reload();
  5735. }else {
  5736. alert(msg);
  5737. }
  5738. },
  5739. "error": function(){
  5740. alert("确认失败!");
  5741. },
  5742. "complete": function(){
  5743. layer.close(tip);
  5744. }
  5745. });
  5746. }else {
  5747. alert("请选择发票!");
  5748. }
  5749. }
  5750. }
  5751. function getfp(){
  5752. var tip = layer.load(2);
  5753. var url = "getgyfp.do";
  5754. $.ajax({
  5755. "url" : url,
  5756. "type" : "POST",
  5757. "dataType" : "json",
  5758. "async" : true,
  5759. "success" : function(data) {
  5760. if(data != null && data != ""){
  5761. $("#fpid").empty();
  5762. $("#fpid").append("_$tag_____________$tag____");
  5763. for(var i = 0; i < data.length; i++){
  5764. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5765. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5766. }
  5767. }
  5768. },
  5769. "error" : function(msg){
  5770. },
  5771. "complete": function(){
  5772. layer.close(tip);
  5773. }
  5774. });
  5775. }
  5776. $("#fpid").change(function(){
  5777. var tip = layer.load(2);
  5778. var url = "getgyrkxx.do";
  5779. var sum_total=0;
  5780. $.ajax({
  5781. "url" : url,
  5782. "data" : {
  5783. "fpId" : $("#fpid").val()
  5784. },
  5785. "type" : "POST",
  5786. "dataType" : "json",
  5787. "async" : true,
  5788. "success" : function(data) {
  5789. $("#dataTable").html("");
  5790. if(data != null && data != ""){
  5791. var html = "";
  5792. for(var i = 0; i < data.length; i++){
  5793. var ID = data[i].id == null ? "" : data[i].id;
  5794. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5795. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5796. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5797. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5798. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5799. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5800. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5801. var NAME = data[i].name == null ? "" : data[i].name;
  5802. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5803. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5804. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5805. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5806. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5807. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5808. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5809. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5810. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5811. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5812. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5813. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5814. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5815. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5816. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5817. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5818. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5819. sum_total = sum_total + DPRC
  5820. var invoice_type_cn =null;
  5821. if (invoice_type =="00" ){
  5822. invoice_type_cn="销售发票";
  5823. }else if (invoice_type == "01") {
  5824. invoice_type_cn="更正(对冲)发票";
  5825. }else if (invoice_type == "02") {
  5826. invoice_type_cn="其它类型发票";
  5827. }
  5828. html += "_$ta";
  5829. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5830. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5831. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5832. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5833. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5834. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5835. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5836. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5837. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5838. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5839. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5840. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5841. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5842. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5843. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5844. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5845. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5846. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5847. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5848. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5849. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5850. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5851. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5852. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5853. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5854. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5855. html += "_$tag";
  5856. }
  5857. html += "_$ta";
  5858. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5859. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5860. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5861. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5862. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5863. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5864. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5865. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5866. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5867. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5868. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5869. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5870. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  5871. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5872. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5873. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5874. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5875. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5876. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5877. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5878. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5879. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5880. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5881. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5882. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5883. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5884. html += "_$tag";
  5885. $("#dataTable").html(html);
  5886. }else {
  5887. $("#dataTable").html("");
  5888. }
  5889. },
  5890. "error" : function(msg){
  5891. },
  5892. "complete": function(){
  5893. layer.close(tip);
  5894. }
  5895. });
  5896. });
  5897. Date.prototype.Format = function (fmt) {
  5898. var o = {
  5899. "M+": this.getMonth() + 1, //月份
  5900. "d+": this.getDate(), //日
  5901. "h+": this.getHours(), //小时
  5902. "m+": this.getMinutes(), //分
  5903. "s+": this.getSeconds(), //秒
  5904. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5905. "S": this.getMilliseconds() //毫秒
  5906. };
  5907. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5908. for (var k in o)
  5909. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5910. return fmt;
  5911. }
  5912. $("#jrjc").change(function() {
  5913. if ($("#jrjc").prop('checked') == true){
  5914. $("#departmentId").removeAttr("disabled");
  5915. }else {
  5916. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5917. }
  5918. });
  5919. ----------------------------------- SOURCE END -------------------------------------
  5920. !STACK 0
  5921. java.lang.NullPointerException
  5922. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:16.179
  5923. !MESSAGE java.lang.NullPointerException
  5924. !STACK 1
  5925. JavaScript Model Exception: java.lang.NullPointerException
  5926. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5927. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5928. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5929. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5930. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5931. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5932. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5933. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5934. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5935. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5936. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5937. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5938. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5939. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5940. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5941. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5942. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5943. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5944. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5945. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5946. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5947. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5948. Caused by: java.lang.NullPointerException
  5949. Caused by: java.lang.NullPointerException
  5950. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:16.179
  5951. !MESSAGE java.lang.NullPointerException
  5952. !STACK 0
  5953. java.lang.NullPointerException
  5954. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:17.579
  5955. !MESSAGE Exception occurred during problem detection:
  5956. ----------------------------------- SOURCE BEGIN -------------------------------------
  5957. (function(){WdatePicker();})();
  5958. (function(){WdatePicker();})();
  5959. (function(){Data.get();})();
  5960. (function(){Data.set();})();
  5961. (function(){search();})();
  5962. $(function(){
  5963. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5964. getfp();
  5965. });
  5966. var Data = {
  5967. "get" : function(){
  5968. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5969. var tip = layer.load(2);
  5970. var result="";
  5971. var url = "getgyxml.do";
  5972. $.ajax({
  5973. "url" : url,
  5974. "data" : {
  5975. "start_date" : $("#dateBegin").val(),
  5976. "end_date" : $("#dateEnd").val()
  5977. },
  5978. "type" : "POST",
  5979. "dataType" : "json",
  5980. "success" : function(data) {
  5981. if(data != null && data != ""){
  5982. if ( data.status =="success"){
  5983. getfp();
  5984. alert("获取成功!");
  5985. }else {
  5986. alert(data.status);
  5987. }
  5988. }else {
  5989. alert("获取失败!");
  5990. }
  5991. },
  5992. "complete": function(){
  5993. layer.close(tip);
  5994. }
  5995. });
  5996. }else {
  5997. alert("请选择日期!");
  5998. }
  5999. },
  6000. "set" : function(){
  6001. if ( $("#fpid option:selected").text() !=""){
  6002. var tip = layer.load(2);
  6003. var gitem = $("#form1").serialize();
  6004. var jrjc;
  6005. if ($("#jrjc").prop('checked') == true){
  6006. jrjc = $("#departmentId").val();
  6007. }else {
  6008. jrjc ='N'
  6009. }
  6010. var url = "saverk.do";
  6011. $.ajax({
  6012. "url" : url,
  6013. "data" : {
  6014. "gitem" : gitem,
  6015. "jrjc" : jrjc
  6016. },
  6017. "type" : "POST",
  6018. "dataType" : "json",
  6019. "async" : true,
  6020. "success" : function(data) {
  6021. if(data.status ="success"){
  6022. alert("入库成功!");
  6023. window.location.reload();
  6024. }else {
  6025. alert(msg);
  6026. }
  6027. },
  6028. "error": function(){
  6029. alert("确认失败!");
  6030. },
  6031. "complete": function(){
  6032. layer.close(tip);
  6033. }
  6034. });
  6035. }else {
  6036. alert("请选择发票!");
  6037. }
  6038. }
  6039. }
  6040. function getfp(){
  6041. var tip = layer.load(2);
  6042. var url = "getgyfp.do";
  6043. $.ajax({
  6044. "url" : url,
  6045. "type" : "POST",
  6046. "dataType" : "json",
  6047. "async" : true,
  6048. "success" : function(data) {
  6049. if(data != null && data != ""){
  6050. $("#fpid").empty();
  6051. $("#fpid").append("_$tag_____________$tag____");
  6052. for(var i = 0; i < data.length; i++){
  6053. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6054. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6055. }
  6056. }
  6057. },
  6058. "error" : function(msg){
  6059. },
  6060. "complete": function(){
  6061. layer.close(tip);
  6062. }
  6063. });
  6064. }
  6065. $("#fpid").change(function(){
  6066. var tip = layer.load(2);
  6067. var url = "getgyrkxx.do";
  6068. var sum_total=0;
  6069. $.ajax({
  6070. "url" : url,
  6071. "data" : {
  6072. "fpId" : $("#fpid").val()
  6073. },
  6074. "type" : "POST",
  6075. "dataType" : "json",
  6076. "async" : true,
  6077. "success" : function(data) {
  6078. $("#dataTable").html("");
  6079. if(data != null && data != ""){
  6080. var html = "";
  6081. for(var i = 0; i < data.length; i++){
  6082. var ID = data[i].id == null ? "" : data[i].id;
  6083. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6084. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6085. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6086. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6087. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6088. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6089. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6090. var NAME = data[i].name == null ? "" : data[i].name;
  6091. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6092. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6093. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6094. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6095. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6096. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6097. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6098. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6099. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6100. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6101. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6102. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6103. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6104. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6105. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6106. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6107. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6108. sum_total = sum_total + DPRC
  6109. var invoice_type_cn =null;
  6110. if (invoice_type =="00" ){
  6111. invoice_type_cn="销售发票";
  6112. }else if (invoice_type == "01") {
  6113. invoice_type_cn="更正(对冲)发票";
  6114. }else if (invoice_type == "02") {
  6115. invoice_type_cn="其它类型发票";
  6116. }
  6117. html += "_$ta";
  6118. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6119. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6120. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6121. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6122. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6123. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6124. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6125. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6126. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6127. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6128. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6129. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6130. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6131. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6132. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6133. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6134. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6135. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6136. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6137. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6138. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6139. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6140. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6141. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6142. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6143. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6144. html += "_$tag";
  6145. }
  6146. html += "_$ta";
  6147. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6148. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6149. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6150. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6151. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6152. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6153. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6154. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6155. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6156. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6157. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6158. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6159. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  6160. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6161. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6162. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6163. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6164. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6165. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6166. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6167. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6168. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6169. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6170. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6171. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6172. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6173. html += "_$tag";
  6174. $("#dataTable").html(html);
  6175. }else {
  6176. $("#dataTable").html("");
  6177. }
  6178. },
  6179. "error" : function(msg){
  6180. },
  6181. "complete": function(){
  6182. layer.close(tip);
  6183. }
  6184. });
  6185. });
  6186. Date.prototype.Format = function (fmt) {
  6187. var o = {
  6188. "M+": this.getMonth() + 1, //月份
  6189. "d+": this.getDate(), //日
  6190. "h+": this.getHours(), //小时
  6191. "m+": this.getMinutes(), //分
  6192. "s+": this.getSeconds(), //秒
  6193. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6194. "S": this.getMilliseconds() //毫秒
  6195. };
  6196. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6197. for (var k in o)
  6198. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6199. return fmt;
  6200. }
  6201. $("#jrjc").change(function() {
  6202. if ($("#jrjc").prop('checked') == true){
  6203. $("#departmentId").removeAttr("disabled");
  6204. }else {
  6205. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6206. }
  6207. });
  6208. ----------------------------------- SOURCE END -------------------------------------
  6209. !STACK 0
  6210. java.lang.NullPointerException
  6211. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:17.580
  6212. !MESSAGE java.lang.NullPointerException
  6213. !STACK 1
  6214. JavaScript Model Exception: java.lang.NullPointerException
  6215. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6216. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  6217. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6218. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6219. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  6220. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  6221. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  6222. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  6223. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  6224. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  6225. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  6226. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  6227. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  6228. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  6229. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  6230. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  6231. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  6232. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  6233. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  6234. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  6235. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  6236. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  6237. Caused by: java.lang.NullPointerException
  6238. Caused by: java.lang.NullPointerException
  6239. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:17.580
  6240. !MESSAGE java.lang.NullPointerException
  6241. !STACK 0
  6242. java.lang.NullPointerException
  6243. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:19.495
  6244. !MESSAGE Exception occurred during problem detection:
  6245. ----------------------------------- SOURCE BEGIN -------------------------------------
  6246. (function(){WdatePicker();})();
  6247. (function(){WdatePicker();})();
  6248. (function(){Data.get();})();
  6249. (function(){Data.set();})();
  6250. (function(){search();})();
  6251. $(function(){
  6252. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6253. getfp();
  6254. });
  6255. var Data = {
  6256. "get" : function(){
  6257. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6258. var tip = layer.load(2);
  6259. var result="";
  6260. var url = "getgyxml.do";
  6261. $.ajax({
  6262. "url" : url,
  6263. "data" : {
  6264. "start_date" : $("#dateBegin").val(),
  6265. "end_date" : $("#dateEnd").val()
  6266. },
  6267. "type" : "POST",
  6268. "dataType" : "json",
  6269. "success" : function(data) {
  6270. if(data != null && data != ""){
  6271. if ( data.status =="success"){
  6272. getfp();
  6273. alert("获取成功!");
  6274. }else {
  6275. alert(data.status);
  6276. }
  6277. }else {
  6278. alert("获取失败!");
  6279. }
  6280. },
  6281. "complete": function(){
  6282. layer.close(tip);
  6283. }
  6284. });
  6285. }else {
  6286. alert("请选择日期!");
  6287. }
  6288. },
  6289. "set" : function(){
  6290. if ( $("#fpid option:selected").text() !=""){
  6291. var tip = layer.load(2);
  6292. var gitem = $("#form1").serialize();
  6293. var jrjc;
  6294. if ($("#jrjc").prop('checked') == true){
  6295. jrjc = $("#departmentId").val();
  6296. }else {
  6297. jrjc ='N'
  6298. }
  6299. var url = "saverk.do";
  6300. $.ajax({
  6301. "url" : url,
  6302. "data" : {
  6303. "gitem" : gitem,
  6304. "jrjc" : jrjc
  6305. },
  6306. "type" : "POST",
  6307. "dataType" : "json",
  6308. "async" : true,
  6309. "success" : function(data) {
  6310. if(data.status ="success"){
  6311. alert("入库成功!");
  6312. window.location.reload();
  6313. }else {
  6314. alert(msg);
  6315. }
  6316. },
  6317. "error": function(){
  6318. alert("确认失败!");
  6319. },
  6320. "complete": function(){
  6321. layer.close(tip);
  6322. }
  6323. });
  6324. }else {
  6325. alert("请选择发票!");
  6326. }
  6327. }
  6328. }
  6329. function getfp(){
  6330. var tip = layer.load(2);
  6331. var url = "getgyfp.do";
  6332. $.ajax({
  6333. "url" : url,
  6334. "type" : "POST",
  6335. "dataType" : "json",
  6336. "async" : true,
  6337. "success" : function(data) {
  6338. if(data != null && data != ""){
  6339. $("#fpid").empty();
  6340. $("#fpid").append("_$tag_____________$tag____");
  6341. for(var i = 0; i < data.length; i++){
  6342. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6343. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6344. }
  6345. }
  6346. },
  6347. "error" : function(msg){
  6348. },
  6349. "complete": function(){
  6350. layer.close(tip);
  6351. }
  6352. });
  6353. }
  6354. $("#fpid").change(function(){
  6355. var tip = layer.load(2);
  6356. var url = "getgyrkxx.do";
  6357. var sum_total=0;
  6358. $.ajax({
  6359. "url" : url,
  6360. "data" : {
  6361. "fpId" : $("#fpid").val()
  6362. },
  6363. "type" : "POST",
  6364. "dataType" : "json",
  6365. "async" : true,
  6366. "success" : function(data) {
  6367. $("#dataTable").html("");
  6368. if(data != null && data != ""){
  6369. var html = "";
  6370. for(var i = 0; i < data.length; i++){
  6371. var ID = data[i].id == null ? "" : data[i].id;
  6372. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6373. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6374. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6375. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6376. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6377. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6378. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6379. var NAME = data[i].name == null ? "" : data[i].name;
  6380. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6381. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6382. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6383. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6384. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6385. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6386. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6387. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6388. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6389. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6390. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6391. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6392. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6393. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6394. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6395. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6396. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6397. sum_total = sum_total + DPRC
  6398. var invoice_type_cn =null;
  6399. if (invoice_type =="00" ){
  6400. invoice_type_cn="销售发票";
  6401. }else if (invoice_type == "01") {
  6402. invoice_type_cn="更正(对冲)发票";
  6403. }else if (invoice_type == "02") {
  6404. invoice_type_cn="其它类型发票";
  6405. }
  6406. html += "_$ta";
  6407. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6408. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6409. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6410. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6411. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6412. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6413. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6414. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6415. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6416. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6417. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6418. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6419. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6420. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6421. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6422. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6423. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6424. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6425. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6426. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6427. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6428. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6429. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6430. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6431. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6432. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6433. html += "_$tag";
  6434. }
  6435. html += "_$ta";
  6436. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6437. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6438. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6439. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6440. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6441. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6442. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6443. html += "_$tag_____________$tag__________________________________________________________________$tag";
  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";
  6463. $("#dataTable").html(html);
  6464. }else {
  6465. $("#dataTable").html("");
  6466. }
  6467. },
  6468. "error" : function(msg){
  6469. },
  6470. "complete": function(){
  6471. layer.close(tip);
  6472. }
  6473. });
  6474. });
  6475. Date.prototype.Format = function (fmt) {
  6476. var o = {
  6477. "M+": this.getMonth() + 1, //月份
  6478. "d+": this.getDate(), //日
  6479. "h+": this.getHours(), //小时
  6480. "m+": this.getMinutes(), //分
  6481. "s+": this.getSeconds(), //秒
  6482. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6483. "S": this.getMilliseconds() //毫秒
  6484. };
  6485. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6486. for (var k in o)
  6487. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6488. return fmt;
  6489. }
  6490. $("#jrjc").change(function() {
  6491. if ($("#jrjc").prop('checked') == true){
  6492. $("#departmentId").removeAttr("disabled");
  6493. }else {
  6494. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6495. }
  6496. });
  6497. ----------------------------------- SOURCE END -------------------------------------
  6498. !STACK 0
  6499. java.lang.NullPointerException
  6500. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:19.496
  6501. !MESSAGE java.lang.NullPointerException
  6502. !STACK 1
  6503. JavaScript Model Exception: java.lang.NullPointerException
  6504. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6505. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  6506. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6507. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6508. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  6509. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  6510. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  6511. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  6512. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  6513. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  6514. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  6515. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  6516. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  6517. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  6518. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  6519. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  6520. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  6521. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  6522. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  6523. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  6524. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  6525. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  6526. Caused by: java.lang.NullPointerException
  6527. Caused by: java.lang.NullPointerException
  6528. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:19.496
  6529. !MESSAGE java.lang.NullPointerException
  6530. !STACK 0
  6531. java.lang.NullPointerException
  6532. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:21.371
  6533. !MESSAGE Exception occurred during problem detection:
  6534. ----------------------------------- SOURCE BEGIN -------------------------------------
  6535. (function(){WdatePicker();})();
  6536. (function(){WdatePicker();})();
  6537. (function(){Data.get();})();
  6538. (function(){Data.set();})();
  6539. (function(){search();})();
  6540. $(function(){
  6541. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6542. getfp();
  6543. });
  6544. var Data = {
  6545. "get" : function(){
  6546. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6547. var tip = layer.load(2);
  6548. var result="";
  6549. var url = "getgyxml.do";
  6550. $.ajax({
  6551. "url" : url,
  6552. "data" : {
  6553. "start_date" : $("#dateBegin").val(),
  6554. "end_date" : $("#dateEnd").val()
  6555. },
  6556. "type" : "POST",
  6557. "dataType" : "json",
  6558. "success" : function(data) {
  6559. if(data != null && data != ""){
  6560. if ( data.status =="success"){
  6561. getfp();
  6562. alert("获取成功!");
  6563. }else {
  6564. alert(data.status);
  6565. }
  6566. }else {
  6567. alert("获取失败!");
  6568. }
  6569. },
  6570. "complete": function(){
  6571. layer.close(tip);
  6572. }
  6573. });
  6574. }else {
  6575. alert("请选择日期!");
  6576. }
  6577. },
  6578. "set" : function(){
  6579. if ( $("#fpid option:selected").text() !=""){
  6580. var tip = layer.load(2);
  6581. var gitem = $("#form1").serialize();
  6582. var jrjc;
  6583. if ($("#jrjc").prop('checked') == true){
  6584. jrjc = $("#departmentId").val();
  6585. }else {
  6586. jrjc ='N'
  6587. }
  6588. var url = "saverk.do";
  6589. $.ajax({
  6590. "url" : url,
  6591. "data" : {
  6592. "gitem" : gitem,
  6593. "jrjc" : jrjc
  6594. },
  6595. "type" : "POST",
  6596. "dataType" : "json",
  6597. "async" : true,
  6598. "success" : function(data) {
  6599. if(data.status ="success"){
  6600. alert("入库成功!");
  6601. window.location.reload();
  6602. }else {
  6603. alert(msg);
  6604. }
  6605. },
  6606. "error": function(){
  6607. alert("确认失败!");
  6608. },
  6609. "complete": function(){
  6610. layer.close(tip);
  6611. }
  6612. });
  6613. }else {
  6614. alert("请选择发票!");
  6615. }
  6616. }
  6617. }
  6618. function getfp(){
  6619. var tip = layer.load(2);
  6620. var url = "getgyfp.do";
  6621. $.ajax({
  6622. "url" : url,
  6623. "type" : "POST",
  6624. "dataType" : "json",
  6625. "async" : true,
  6626. "success" : function(data) {
  6627. if(data != null && data != ""){
  6628. $("#fpid").empty();
  6629. $("#fpid").append("_$tag_____________$tag____");
  6630. for(var i = 0; i < data.length; i++){
  6631. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6632. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6633. }
  6634. }
  6635. },
  6636. "error" : function(msg){
  6637. },
  6638. "complete": function(){
  6639. layer.close(tip);
  6640. }
  6641. });
  6642. }
  6643. $("#fpid").change(function(){
  6644. var tip = layer.load(2);
  6645. var url = "getgyrkxx.do";
  6646. var sum_total=0;
  6647. $.ajax({
  6648. "url" : url,
  6649. "data" : {
  6650. "fpId" : $("#fpid").val()
  6651. },
  6652. "type" : "POST",
  6653. "dataType" : "json",
  6654. "async" : true,
  6655. "success" : function(data) {
  6656. $("#dataTable").html("");
  6657. if(data != null && data != ""){
  6658. var html = "";
  6659. for(var i = 0; i < data.length; i++){
  6660. var ID = data[i].id == null ? "" : data[i].id;
  6661. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6662. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6663. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6664. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6665. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6666. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6667. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6668. var NAME = data[i].name == null ? "" : data[i].name;
  6669. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6670. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6671. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6672. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6673. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6674. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6675. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6676. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6677. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6678. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6679. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6680. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6681. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6682. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6683. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6684. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6685. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6686. sum_total = sum_total + DPRC
  6687. var invoice_type_cn =null;
  6688. if (invoice_type =="00" ){
  6689. invoice_type_cn="销售发票";
  6690. }else if (invoice_type == "01") {
  6691. invoice_type_cn="更正(对冲)发票";
  6692. }else if (invoice_type == "02") {
  6693. invoice_type_cn="其它类型发票";
  6694. }
  6695. html += "_$ta";
  6696. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6697. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6698. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6699. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6700. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6701. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6702. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  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";
  6723. }
  6724. html += "_$ta";
  6725. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6726. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6727. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6728. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6729. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6730. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6731. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6732. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6733. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6734. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6735. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6736. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6737. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  6738. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6739. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6740. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6741. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6742. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6743. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6744. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6745. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6746. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6747. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6748. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6749. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6750. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6751. html += "_$tag";
  6752. $("#dataTable").html(html);
  6753. }else {
  6754. $("#dataTable").html("");
  6755. }
  6756. },
  6757. "error" : function(msg){
  6758. },
  6759. "complete": function(){
  6760. layer.close(tip);
  6761. }
  6762. });
  6763. });
  6764. Date.prototype.Format = function (fmt) {
  6765. var o = {
  6766. "M+": this.getMonth() + 1, //月份
  6767. "d+": this.getDate(), //日
  6768. "h+": this.getHours(), //小时
  6769. "m+": this.getMinutes(), //分
  6770. "s+": this.getSeconds(), //秒
  6771. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6772. "S": this.getMilliseconds() //毫秒
  6773. };
  6774. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6775. for (var k in o)
  6776. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6777. return fmt;
  6778. }
  6779. $("#jrjc").change(function() {
  6780. if ($("#jrjc").prop('checked') == true){
  6781. $("#departmentId").removeAttr("disabled");
  6782. }else {
  6783. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6784. }
  6785. });
  6786. ----------------------------------- SOURCE END -------------------------------------
  6787. !STACK 0
  6788. java.lang.NullPointerException
  6789. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:21.371
  6790. !MESSAGE java.lang.NullPointerException
  6791. !STACK 1
  6792. JavaScript Model Exception: java.lang.NullPointerException
  6793. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6794. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  6795. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6796. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6797. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  6798. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  6799. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  6800. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  6801. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  6802. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  6803. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  6804. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  6805. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  6806. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  6807. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  6808. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  6809. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  6810. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  6811. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  6812. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  6813. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  6814. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  6815. Caused by: java.lang.NullPointerException
  6816. Caused by: java.lang.NullPointerException
  6817. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:21.371
  6818. !MESSAGE java.lang.NullPointerException
  6819. !STACK 0
  6820. java.lang.NullPointerException
  6821. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:23.033
  6822. !MESSAGE Exception occurred during problem detection:
  6823. ----------------------------------- SOURCE BEGIN -------------------------------------
  6824. (function(){WdatePicker();})();
  6825. (function(){WdatePicker();})();
  6826. (function(){Data.get();})();
  6827. (function(){Data.set();})();
  6828. (function(){search();})();
  6829. $(function(){
  6830. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6831. getfp();
  6832. });
  6833. var Data = {
  6834. "get" : function(){
  6835. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6836. var tip = layer.load(2);
  6837. var result="";
  6838. var url = "getgyxml.do";
  6839. $.ajax({
  6840. "url" : url,
  6841. "data" : {
  6842. "start_date" : $("#dateBegin").val(),
  6843. "end_date" : $("#dateEnd").val()
  6844. },
  6845. "type" : "POST",
  6846. "dataType" : "json",
  6847. "success" : function(data) {
  6848. if(data != null && data != ""){
  6849. if ( data.status =="success"){
  6850. getfp();
  6851. alert("获取成功!");
  6852. }else {
  6853. alert(data.status);
  6854. }
  6855. }else {
  6856. alert("获取失败!");
  6857. }
  6858. },
  6859. "complete": function(){
  6860. layer.close(tip);
  6861. }
  6862. });
  6863. }else {
  6864. alert("请选择日期!");
  6865. }
  6866. },
  6867. "set" : function(){
  6868. if ( $("#fpid option:selected").text() !=""){
  6869. var tip = layer.load(2);
  6870. var gitem = $("#form1").serialize();
  6871. var jrjc;
  6872. if ($("#jrjc").prop('checked') == true){
  6873. jrjc = $("#departmentId").val();
  6874. }else {
  6875. jrjc ='N'
  6876. }
  6877. var url = "saverk.do";
  6878. $.ajax({
  6879. "url" : url,
  6880. "data" : {
  6881. "gitem" : gitem,
  6882. "jrjc" : jrjc
  6883. },
  6884. "type" : "POST",
  6885. "dataType" : "json",
  6886. "async" : true,
  6887. "success" : function(data) {
  6888. if(data.status ="success"){
  6889. alert("入库成功!");
  6890. window.location.reload();
  6891. }else {
  6892. alert(msg);
  6893. }
  6894. },
  6895. "error": function(){
  6896. alert("确认失败!");
  6897. },
  6898. "complete": function(){
  6899. layer.close(tip);
  6900. }
  6901. });
  6902. }else {
  6903. alert("请选择发票!");
  6904. }
  6905. }
  6906. }
  6907. function getfp(){
  6908. var tip = layer.load(2);
  6909. var url = "getgyfp.do";
  6910. $.ajax({
  6911. "url" : url,
  6912. "type" : "POST",
  6913. "dataType" : "json",
  6914. "async" : true,
  6915. "success" : function(data) {
  6916. if(data != null && data != ""){
  6917. $("#fpid").empty();
  6918. $("#fpid").append("_$tag_____________$tag____");
  6919. for(var i = 0; i < data.length; i++){
  6920. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6921. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6922. }
  6923. }
  6924. },
  6925. "error" : function(msg){
  6926. },
  6927. "complete": function(){
  6928. layer.close(tip);
  6929. }
  6930. });
  6931. }
  6932. $("#fpid").change(function(){
  6933. var tip = layer.load(2);
  6934. var url = "getgyrkxx.do";
  6935. var sum_total=0;
  6936. $.ajax({
  6937. "url" : url,
  6938. "data" : {
  6939. "fpId" : $("#fpid").val()
  6940. },
  6941. "type" : "POST",
  6942. "dataType" : "json",
  6943. "async" : true,
  6944. "success" : function(data) {
  6945. $("#dataTable").html("");
  6946. if(data != null && data != ""){
  6947. var html = "";
  6948. for(var i = 0; i < data.length; i++){
  6949. var ID = data[i].id == null ? "" : data[i].id;
  6950. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6951. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6952. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6953. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6954. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6955. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6956. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6957. var NAME = data[i].name == null ? "" : data[i].name;
  6958. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6959. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6960. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6961. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6962. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6963. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6964. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6965. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6966. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6967. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6968. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6969. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6970. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6971. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6972. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6973. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6974. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6975. sum_total = sum_total + DPRC
  6976. var invoice_type_cn =null;
  6977. if (invoice_type =="00" ){
  6978. invoice_type_cn="销售发票";
  6979. }else if (invoice_type == "01") {
  6980. invoice_type_cn="更正(对冲)发票";
  6981. }else if (invoice_type == "02") {
  6982. invoice_type_cn="其它类型发票";
  6983. }
  6984. html += "_$ta";
  6985. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6986. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6988. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  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";
  7012. }
  7013. html += "_$ta";
  7014. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7015. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7016. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7017. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7018. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7019. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7020. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7021. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7022. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7023. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7024. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7025. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7026. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  7027. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7028. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7029. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7030. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7031. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7032. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7033. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7034. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7035. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7036. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7037. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7038. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7039. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7040. html += "_$tag";
  7041. $("#dataTable").html(html);
  7042. }else {
  7043. $("#dataTable").html("");
  7044. }
  7045. },
  7046. "error" : function(msg){
  7047. },
  7048. "complete": function(){
  7049. layer.close(tip);
  7050. }
  7051. });
  7052. });
  7053. Date.prototype.Format = function (fmt) {
  7054. var o = {
  7055. "M+": this.getMonth() + 1, //月份
  7056. "d+": this.getDate(), //日
  7057. "h+": this.getHours(), //小时
  7058. "m+": this.getMinutes(), //分
  7059. "s+": this.getSeconds(), //秒
  7060. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7061. "S": this.getMilliseconds() //毫秒
  7062. };
  7063. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7064. for (var k in o)
  7065. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7066. return fmt;
  7067. }
  7068. $("#jrjc").change(function() {
  7069. if ($("#jrjc").prop('checked') == true){
  7070. $("#departmentId").removeAttr("disabled");
  7071. }else {
  7072. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7073. }
  7074. });
  7075. ----------------------------------- SOURCE END -------------------------------------
  7076. !STACK 0
  7077. java.lang.NullPointerException
  7078. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:23.033
  7079. !MESSAGE java.lang.NullPointerException
  7080. !STACK 1
  7081. JavaScript Model Exception: java.lang.NullPointerException
  7082. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7083. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  7084. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7085. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7086. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  7087. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  7088. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  7089. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  7090. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  7091. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  7092. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  7093. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  7094. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  7095. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  7096. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  7097. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  7098. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  7099. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  7100. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  7101. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  7102. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  7103. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  7104. Caused by: java.lang.NullPointerException
  7105. Caused by: java.lang.NullPointerException
  7106. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:23.033
  7107. !MESSAGE java.lang.NullPointerException
  7108. !STACK 0
  7109. java.lang.NullPointerException
  7110. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:24.926
  7111. !MESSAGE Exception occurred during problem detection:
  7112. ----------------------------------- SOURCE BEGIN -------------------------------------
  7113. (function(){WdatePicker();})();
  7114. (function(){WdatePicker();})();
  7115. (function(){Data.get();})();
  7116. (function(){Data.set();})();
  7117. (function(){search();})();
  7118. $(function(){
  7119. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7120. getfp();
  7121. });
  7122. var Data = {
  7123. "get" : function(){
  7124. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7125. var tip = layer.load(2);
  7126. var result="";
  7127. var url = "getgyxml.do";
  7128. $.ajax({
  7129. "url" : url,
  7130. "data" : {
  7131. "start_date" : $("#dateBegin").val(),
  7132. "end_date" : $("#dateEnd").val()
  7133. },
  7134. "type" : "POST",
  7135. "dataType" : "json",
  7136. "success" : function(data) {
  7137. if(data != null && data != ""){
  7138. if ( data.status =="success"){
  7139. getfp();
  7140. alert("获取成功!");
  7141. }else {
  7142. alert(data.status);
  7143. }
  7144. }else {
  7145. alert("获取失败!");
  7146. }
  7147. },
  7148. "complete": function(){
  7149. layer.close(tip);
  7150. }
  7151. });
  7152. }else {
  7153. alert("请选择日期!");
  7154. }
  7155. },
  7156. "set" : function(){
  7157. if ( $("#fpid option:selected").text() !=""){
  7158. var tip = layer.load(2);
  7159. var gitem = $("#form1").serialize();
  7160. var jrjc;
  7161. if ($("#jrjc").prop('checked') == true){
  7162. jrjc = $("#departmentId").val();
  7163. }else {
  7164. jrjc ='N'
  7165. }
  7166. var url = "saverk.do";
  7167. $.ajax({
  7168. "url" : url,
  7169. "data" : {
  7170. "gitem" : gitem,
  7171. "jrjc" : jrjc
  7172. },
  7173. "type" : "POST",
  7174. "dataType" : "json",
  7175. "async" : true,
  7176. "success" : function(data) {
  7177. if(data.status ="success"){
  7178. alert("入库成功!");
  7179. window.location.reload();
  7180. }else {
  7181. alert(msg);
  7182. }
  7183. },
  7184. "error": function(){
  7185. alert("确认失败!");
  7186. },
  7187. "complete": function(){
  7188. layer.close(tip);
  7189. }
  7190. });
  7191. }else {
  7192. alert("请选择发票!");
  7193. }
  7194. }
  7195. }
  7196. function getfp(){
  7197. var tip = layer.load(2);
  7198. var url = "getgyfp.do";
  7199. $.ajax({
  7200. "url" : url,
  7201. "type" : "POST",
  7202. "dataType" : "json",
  7203. "async" : true,
  7204. "success" : function(data) {
  7205. if(data != null && data != ""){
  7206. $("#fpid").empty();
  7207. $("#fpid").append("_$tag_____________$tag____");
  7208. for(var i = 0; i < data.length; i++){
  7209. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7210. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7211. }
  7212. }
  7213. },
  7214. "error" : function(msg){
  7215. },
  7216. "complete": function(){
  7217. layer.close(tip);
  7218. }
  7219. });
  7220. }
  7221. $("#fpid").change(function(){
  7222. var tip = layer.load(2);
  7223. var url = "getgyrkxx.do";
  7224. var sum_total=0;
  7225. $.ajax({
  7226. "url" : url,
  7227. "data" : {
  7228. "fpId" : $("#fpid").val()
  7229. },
  7230. "type" : "POST",
  7231. "dataType" : "json",
  7232. "async" : true,
  7233. "success" : function(data) {
  7234. $("#dataTable").html("");
  7235. if(data != null && data != ""){
  7236. var html = "";
  7237. for(var i = 0; i < data.length; i++){
  7238. var ID = data[i].id == null ? "" : data[i].id;
  7239. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7240. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7241. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7242. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7243. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7244. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7245. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7246. var NAME = data[i].name == null ? "" : data[i].name;
  7247. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7248. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7249. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7250. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7251. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7252. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7253. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7254. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7255. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7256. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7257. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7258. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7259. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7260. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7261. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7262. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7263. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7264. sum_total = sum_total + DPRC
  7265. var invoice_type_cn =null;
  7266. if (invoice_type =="00" ){
  7267. invoice_type_cn="销售发票";
  7268. }else if (invoice_type == "01") {
  7269. invoice_type_cn="更正(对冲)发票";
  7270. }else if (invoice_type == "02") {
  7271. invoice_type_cn="其它类型发票";
  7272. }
  7273. html += "_$ta";
  7274. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7275. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7276. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7277. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7278. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7279. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7280. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7281. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7282. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7283. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7284. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7285. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7286. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7287. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7288. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7289. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7290. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7291. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7292. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7293. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7294. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7295. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7296. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7297. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7298. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7299. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7300. html += "_$tag";
  7301. }
  7302. html += "_$ta";
  7303. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7304. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7305. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7306. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7307. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7308. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7309. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7310. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7311. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7312. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7313. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7314. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7315. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  7316. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7317. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7318. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7319. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7320. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7321. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7322. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7323. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7324. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7325. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7326. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7327. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7328. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7329. html += "_$tag";
  7330. $("#dataTable").html(html);
  7331. }else {
  7332. $("#dataTable").html("");
  7333. }
  7334. },
  7335. "error" : function(msg){
  7336. },
  7337. "complete": function(){
  7338. layer.close(tip);
  7339. }
  7340. });
  7341. });
  7342. Date.prototype.Format = function (fmt) {
  7343. var o = {
  7344. "M+": this.getMonth() + 1, //月份
  7345. "d+": this.getDate(), //日
  7346. "h+": this.getHours(), //小时
  7347. "m+": this.getMinutes(), //分
  7348. "s+": this.getSeconds(), //秒
  7349. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7350. "S": this.getMilliseconds() //毫秒
  7351. };
  7352. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7353. for (var k in o)
  7354. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7355. return fmt;
  7356. }
  7357. $("#jrjc").change(function() {
  7358. if ($("#jrjc").prop('checked') == true){
  7359. $("#departmentId").removeAttr("disabled");
  7360. }else {
  7361. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7362. }
  7363. });
  7364. ----------------------------------- SOURCE END -------------------------------------
  7365. !STACK 0
  7366. java.lang.NullPointerException
  7367. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:24.927
  7368. !MESSAGE java.lang.NullPointerException
  7369. !STACK 1
  7370. JavaScript Model Exception: java.lang.NullPointerException
  7371. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7372. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  7373. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7374. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7375. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  7376. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  7377. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  7378. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  7379. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  7380. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  7381. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  7382. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  7383. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  7384. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  7385. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  7386. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  7387. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  7388. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  7389. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  7390. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  7391. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  7392. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  7393. Caused by: java.lang.NullPointerException
  7394. Caused by: java.lang.NullPointerException
  7395. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:24.927
  7396. !MESSAGE java.lang.NullPointerException
  7397. !STACK 0
  7398. java.lang.NullPointerException
  7399. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:26.345
  7400. !MESSAGE Exception occurred during problem detection:
  7401. ----------------------------------- SOURCE BEGIN -------------------------------------
  7402. (function(){WdatePicker();})();
  7403. (function(){WdatePicker();})();
  7404. (function(){Data.get();})();
  7405. (function(){Data.set();})();
  7406. (function(){search();})();
  7407. $(function(){
  7408. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7409. getfp();
  7410. });
  7411. var Data = {
  7412. "get" : function(){
  7413. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7414. var tip = layer.load(2);
  7415. var result="";
  7416. var url = "getgyxml.do";
  7417. $.ajax({
  7418. "url" : url,
  7419. "data" : {
  7420. "start_date" : $("#dateBegin").val(),
  7421. "end_date" : $("#dateEnd").val()
  7422. },
  7423. "type" : "POST",
  7424. "dataType" : "json",
  7425. "success" : function(data) {
  7426. if(data != null && data != ""){
  7427. if ( data.status =="success"){
  7428. getfp();
  7429. alert("获取成功!");
  7430. }else {
  7431. alert(data.status);
  7432. }
  7433. }else {
  7434. alert("获取失败!");
  7435. }
  7436. },
  7437. "complete": function(){
  7438. layer.close(tip);
  7439. }
  7440. });
  7441. }else {
  7442. alert("请选择日期!");
  7443. }
  7444. },
  7445. "set" : function(){
  7446. if ( $("#fpid option:selected").text() !=""){
  7447. var tip = layer.load(2);
  7448. var gitem = $("#form1").serialize();
  7449. var jrjc;
  7450. if ($("#jrjc").prop('checked') == true){
  7451. jrjc = $("#departmentId").val();
  7452. }else {
  7453. jrjc ='N'
  7454. }
  7455. var url = "saverk.do";
  7456. $.ajax({
  7457. "url" : url,
  7458. "data" : {
  7459. "gitem" : gitem,
  7460. "jrjc" : jrjc
  7461. },
  7462. "type" : "POST",
  7463. "dataType" : "json",
  7464. "async" : true,
  7465. "success" : function(data) {
  7466. if(data.status ="success"){
  7467. alert("入库成功!");
  7468. window.location.reload();
  7469. }else {
  7470. alert(msg);
  7471. }
  7472. },
  7473. "error": function(){
  7474. alert("确认失败!");
  7475. },
  7476. "complete": function(){
  7477. layer.close(tip);
  7478. }
  7479. });
  7480. }else {
  7481. alert("请选择发票!");
  7482. }
  7483. }
  7484. }
  7485. function getfp(){
  7486. var tip = layer.load(2);
  7487. var url = "getgyfp.do";
  7488. $.ajax({
  7489. "url" : url,
  7490. "type" : "POST",
  7491. "dataType" : "json",
  7492. "async" : true,
  7493. "success" : function(data) {
  7494. if(data != null && data != ""){
  7495. $("#fpid").empty();
  7496. $("#fpid").append("_$tag_____________$tag____");
  7497. for(var i = 0; i < data.length; i++){
  7498. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7499. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7500. }
  7501. }
  7502. },
  7503. "error" : function(msg){
  7504. },
  7505. "complete": function(){
  7506. layer.close(tip);
  7507. }
  7508. });
  7509. }
  7510. $("#fpid").change(function(){
  7511. var tip = layer.load(2);
  7512. var url = "getgyrkxx.do";
  7513. var sum_total=0;
  7514. $.ajax({
  7515. "url" : url,
  7516. "data" : {
  7517. "fpId" : $("#fpid").val()
  7518. },
  7519. "type" : "POST",
  7520. "dataType" : "json",
  7521. "async" : true,
  7522. "success" : function(data) {
  7523. $("#dataTable").html("");
  7524. if(data != null && data != ""){
  7525. var html = "";
  7526. for(var i = 0; i < data.length; i++){
  7527. var ID = data[i].id == null ? "" : data[i].id;
  7528. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7529. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7530. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7531. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7532. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7533. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7534. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7535. var NAME = data[i].name == null ? "" : data[i].name;
  7536. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7537. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7538. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7539. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7540. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7541. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7542. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7543. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7544. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7545. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7546. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7547. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7548. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7549. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7550. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7551. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7552. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7553. sum_total = sum_total + DPRC
  7554. var invoice_type_cn =null;
  7555. if (invoice_type =="00" ){
  7556. invoice_type_cn="销售发票";
  7557. }else if (invoice_type == "01") {
  7558. invoice_type_cn="更正(对冲)发票";
  7559. }else if (invoice_type == "02") {
  7560. invoice_type_cn="其它类型发票";
  7561. }
  7562. html += "_$ta";
  7563. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7564. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7565. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7566. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7567. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7568. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7569. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7570. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7571. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7572. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7573. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7574. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7575. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7576. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7577. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7578. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7579. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7580. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7581. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7582. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7583. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7584. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7585. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7586. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7587. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7588. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7589. html += "_$tag";
  7590. }
  7591. html += "_$ta";
  7592. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7593. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7594. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7595. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7596. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7597. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7598. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7599. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7600. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7601. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7602. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7603. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7604. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  7605. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7606. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7607. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7608. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7609. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7610. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7611. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7612. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7613. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7614. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7615. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7616. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7617. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7618. html += "_$tag";
  7619. $("#dataTable").html(html);
  7620. }else {
  7621. $("#dataTable").html("");
  7622. }
  7623. },
  7624. "error" : function(msg){
  7625. },
  7626. "complete": function(){
  7627. layer.close(tip);
  7628. }
  7629. });
  7630. });
  7631. Date.prototype.Format = function (fmt) {
  7632. var o = {
  7633. "M+": this.getMonth() + 1, //月份
  7634. "d+": this.getDate(), //日
  7635. "h+": this.getHours(), //小时
  7636. "m+": this.getMinutes(), //分
  7637. "s+": this.getSeconds(), //秒
  7638. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7639. "S": this.getMilliseconds() //毫秒
  7640. };
  7641. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7642. for (var k in o)
  7643. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7644. return fmt;
  7645. }
  7646. $("#jrjc").change(function() {
  7647. if ($("#jrjc").prop('checked') == true){
  7648. $("#departmentId").removeAttr("disabled");
  7649. }else {
  7650. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7651. }
  7652. });
  7653. ----------------------------------- SOURCE END -------------------------------------
  7654. !STACK 0
  7655. java.lang.NullPointerException
  7656. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:26.345
  7657. !MESSAGE java.lang.NullPointerException
  7658. !STACK 1
  7659. JavaScript Model Exception: java.lang.NullPointerException
  7660. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7661. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  7662. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7663. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7664. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  7665. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  7666. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  7667. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  7668. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  7669. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  7670. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  7671. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  7672. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  7673. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  7674. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  7675. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  7676. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  7677. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  7678. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  7679. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  7680. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  7681. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  7682. Caused by: java.lang.NullPointerException
  7683. Caused by: java.lang.NullPointerException
  7684. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:26.345
  7685. !MESSAGE java.lang.NullPointerException
  7686. !STACK 0
  7687. java.lang.NullPointerException
  7688. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:32:27.752
  7689. !MESSAGE Exception occurred during problem detection:
  7690. ----------------------------------- SOURCE BEGIN -------------------------------------
  7691. (function(){WdatePicker();})();
  7692. (function(){WdatePicker();})();
  7693. (function(){Data.get();})();
  7694. (function(){Data.set();})();
  7695. (function(){search();})();
  7696. $(function(){
  7697. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7698. getfp();
  7699. });
  7700. var Data = {
  7701. "get" : function(){
  7702. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7703. var tip = layer.load(2);
  7704. var result="";
  7705. var url = "getgyxml.do";
  7706. $.ajax({
  7707. "url" : url,
  7708. "data" : {
  7709. "start_date" : $("#dateBegin").val(),
  7710. "end_date" : $("#dateEnd").val()
  7711. },
  7712. "type" : "POST",
  7713. "dataType" : "json",
  7714. "success" : function(data) {
  7715. if(data != null && data != ""){
  7716. if ( data.status =="success"){
  7717. getfp();
  7718. alert("获取成功!");
  7719. }else {
  7720. alert(data.status);
  7721. }
  7722. }else {
  7723. alert("获取失败!");
  7724. }
  7725. },
  7726. "complete": function(){
  7727. layer.close(tip);
  7728. }
  7729. });
  7730. }else {
  7731. alert("请选择日期!");
  7732. }
  7733. },
  7734. "set" : function(){
  7735. if ( $("#fpid option:selected").text() !=""){
  7736. var tip = layer.load(2);
  7737. var gitem = $("#form1").serialize();
  7738. var jrjc;
  7739. if ($("#jrjc").prop('checked') == true){
  7740. jrjc = $("#departmentId").val();
  7741. }else {
  7742. jrjc ='N'
  7743. }
  7744. var url = "saverk.do";
  7745. $.ajax({
  7746. "url" : url,
  7747. "data" : {
  7748. "gitem" : gitem,
  7749. "jrjc" : jrjc
  7750. },
  7751. "type" : "POST",
  7752. "dataType" : "json",
  7753. "async" : true,
  7754. "success" : function(data) {
  7755. if(data.status ="success"){
  7756. alert("入库成功!");
  7757. window.location.reload();
  7758. }else {
  7759. alert(msg);
  7760. }
  7761. },
  7762. "error": function(){
  7763. alert("确认失败!");
  7764. },
  7765. "complete": function(){
  7766. layer.close(tip);
  7767. }
  7768. });
  7769. }else {
  7770. alert("请选择发票!");
  7771. }
  7772. }
  7773. }
  7774. function getfp(){
  7775. var tip = layer.load(2);
  7776. var url = "getgyfp.do";
  7777. $.ajax({
  7778. "url" : url,
  7779. "type" : "POST",
  7780. "dataType" : "json",
  7781. "async" : true,
  7782. "success" : function(data) {
  7783. if(data != null && data != ""){
  7784. $("#fpid").empty();
  7785. $("#fpid").append("_$tag_____________$tag____");
  7786. for(var i = 0; i < data.length; i++){
  7787. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7788. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7789. }
  7790. }
  7791. },
  7792. "error" : function(msg){
  7793. },
  7794. "complete": function(){
  7795. layer.close(tip);
  7796. }
  7797. });
  7798. }
  7799. $("#fpid").change(function(){
  7800. var tip = layer.load(2);
  7801. var url = "getgyrkxx.do";
  7802. var sum_total=0;
  7803. $.ajax({
  7804. "url" : url,
  7805. "data" : {
  7806. "fpId" : $("#fpid").val()
  7807. },
  7808. "type" : "POST",
  7809. "dataType" : "json",
  7810. "async" : true,
  7811. "success" : function(data) {
  7812. $("#dataTable").html("");
  7813. if(data != null && data != ""){
  7814. var html = "";
  7815. for(var i = 0; i < data.length; i++){
  7816. var ID = data[i].id == null ? "" : data[i].id;
  7817. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7818. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7819. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7820. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7821. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7822. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7823. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7824. var NAME = data[i].name == null ? "" : data[i].name;
  7825. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7826. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7827. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7828. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7829. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7830. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7831. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7832. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7833. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7834. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7835. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7836. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7837. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7838. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7839. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7840. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7841. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7842. sum_total = sum_total + DPRC
  7843. var invoice_type_cn =null;
  7844. if (invoice_type =="00" ){
  7845. invoice_type_cn="销售发票";
  7846. }else if (invoice_type == "01") {
  7847. invoice_type_cn="更正(对冲)发票";
  7848. }else if (invoice_type == "02") {
  7849. invoice_type_cn="其它类型发票";
  7850. }
  7851. html += "_$ta";
  7852. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7853. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7854. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7855. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7856. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7857. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7858. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7859. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7860. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7861. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7862. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7863. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7864. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7865. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7866. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7867. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7868. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7869. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7870. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7871. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7872. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7873. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7874. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7875. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7876. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7877. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7878. html += "_$tag";
  7879. }
  7880. html += "_$ta";
  7881. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7882. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7883. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7884. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7885. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7886. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7887. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7888. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7889. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7890. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7891. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7892. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7893. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  7894. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7895. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7896. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7897. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7898. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7899. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7900. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7901. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7902. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7903. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7904. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7905. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7906. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7907. html += "_$tag";
  7908. $("#dataTable").html(html);
  7909. }else {
  7910. $("#dataTable").html("");
  7911. }
  7912. },
  7913. "error" : function(msg){
  7914. },
  7915. "complete": function(){
  7916. layer.close(tip);
  7917. }
  7918. });
  7919. });
  7920. Date.prototype.Format = function (fmt) {
  7921. var o = {
  7922. "M+": this.getMonth() + 1, //月份
  7923. "d+": this.getDate(), //日
  7924. "h+": this.getHours(), //小时
  7925. "m+": this.getMinutes(), //分
  7926. "s+": this.getSeconds(), //秒
  7927. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7928. "S": this.getMilliseconds() //毫秒
  7929. };
  7930. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7931. for (var k in o)
  7932. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7933. return fmt;
  7934. }
  7935. $("#jrjc").change(function() {
  7936. if ($("#jrjc").prop('checked') == true){
  7937. $("#departmentId").removeAttr("disabled");
  7938. }else {
  7939. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7940. }
  7941. });
  7942. ----------------------------------- SOURCE END -------------------------------------
  7943. !STACK 0
  7944. java.lang.NullPointerException
  7945. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:32:27.753
  7946. !MESSAGE java.lang.NullPointerException
  7947. !STACK 1
  7948. JavaScript Model Exception: java.lang.NullPointerException
  7949. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7950. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  7951. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7952. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7953. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  7954. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  7955. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  7956. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  7957. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  7958. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  7959. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  7960. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  7961. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  7962. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  7963. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  7964. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  7965. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  7966. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  7967. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  7968. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  7969. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  7970. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  7971. Caused by: java.lang.NullPointerException
  7972. Caused by: java.lang.NullPointerException
  7973. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:32:27.753
  7974. !MESSAGE java.lang.NullPointerException
  7975. !STACK 0
  7976. java.lang.NullPointerException
  7977. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:10.130
  7978. !MESSAGE Exception occurred during problem detection:
  7979. ----------------------------------- SOURCE BEGIN -------------------------------------
  7980. (function(){WdatePicker();})();
  7981. (function(){WdatePicker();})();
  7982. (function(){Data.get();})();
  7983. (function(){Data.set();})();
  7984. (function(){search();})();
  7985. $(function(){
  7986. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7987. getfp();
  7988. });
  7989. var Data = {
  7990. "get" : function(){
  7991. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7992. var tip = layer.load(2);
  7993. var result="";
  7994. var url = "getgyxml.do";
  7995. $.ajax({
  7996. "url" : url,
  7997. "data" : {
  7998. "start_date" : $("#dateBegin").val(),
  7999. "end_date" : $("#dateEnd").val()
  8000. },
  8001. "type" : "POST",
  8002. "dataType" : "json",
  8003. "success" : function(data) {
  8004. if(data != null && data != ""){
  8005. if ( data.status =="success"){
  8006. getfp();
  8007. alert("获取成功!");
  8008. }else {
  8009. alert(data.status);
  8010. }
  8011. }else {
  8012. alert("获取失败!");
  8013. }
  8014. },
  8015. "complete": function(){
  8016. layer.close(tip);
  8017. }
  8018. });
  8019. }else {
  8020. alert("请选择日期!");
  8021. }
  8022. },
  8023. "set" : function(){
  8024. if ( $("#fpid option:selected").text() !=""){
  8025. var tip = layer.load(2);
  8026. var gitem = $("#form1").serialize();
  8027. var jrjc;
  8028. if ($("#jrjc").prop('checked') == true){
  8029. jrjc = $("#departmentId").val();
  8030. }else {
  8031. jrjc ='N'
  8032. }
  8033. var url = "saverk.do";
  8034. $.ajax({
  8035. "url" : url,
  8036. "data" : {
  8037. "gitem" : gitem,
  8038. "jrjc" : jrjc
  8039. },
  8040. "type" : "POST",
  8041. "dataType" : "json",
  8042. "async" : true,
  8043. "success" : function(data) {
  8044. if(data.status ="success"){
  8045. alert("入库成功!");
  8046. window.location.reload();
  8047. }else {
  8048. alert(msg);
  8049. }
  8050. },
  8051. "error": function(){
  8052. alert("确认失败!");
  8053. },
  8054. "complete": function(){
  8055. layer.close(tip);
  8056. }
  8057. });
  8058. }else {
  8059. alert("请选择发票!");
  8060. }
  8061. }
  8062. }
  8063. function getfp(){
  8064. var tip = layer.load(2);
  8065. var url = "getgyfp.do";
  8066. $.ajax({
  8067. "url" : url,
  8068. "type" : "POST",
  8069. "dataType" : "json",
  8070. "async" : true,
  8071. "success" : function(data) {
  8072. if(data != null && data != ""){
  8073. $("#fpid").empty();
  8074. $("#fpid").append("_$tag_____________$tag____");
  8075. for(var i = 0; i < data.length; i++){
  8076. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8077. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8078. }
  8079. }
  8080. },
  8081. "error" : function(msg){
  8082. },
  8083. "complete": function(){
  8084. layer.close(tip);
  8085. }
  8086. });
  8087. }
  8088. $("#fpid").change(function(){
  8089. var tip = layer.load(2);
  8090. var url = "getgyrkxx.do";
  8091. var sum_total=0;
  8092. $.ajax({
  8093. "url" : url,
  8094. "data" : {
  8095. "fpId" : $("#fpid").val()
  8096. },
  8097. "type" : "POST",
  8098. "dataType" : "json",
  8099. "async" : true,
  8100. "success" : function(data) {
  8101. $("#dataTable").html("");
  8102. if(data != null && data != ""){
  8103. var html = "";
  8104. for(var i = 0; i < data.length; i++){
  8105. var ID = data[i].id == null ? "" : data[i].id;
  8106. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8107. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8108. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8109. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8110. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8111. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8112. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8113. var NAME = data[i].name == null ? "" : data[i].name;
  8114. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8115. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8116. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8117. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8118. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8119. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8120. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8121. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8122. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8123. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8124. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8125. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8126. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8127. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8128. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8129. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8130. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8131. sum_total = sum_total + DPRC
  8132. var invoice_type_cn =null;
  8133. if (invoice_type =="00" ){
  8134. invoice_type_cn="销售发票";
  8135. }else if (invoice_type == "01") {
  8136. invoice_type_cn="更正(对冲)发票";
  8137. }else if (invoice_type == "02") {
  8138. invoice_type_cn="其它类型发票";
  8139. }
  8140. html += "_$ta";
  8141. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8142. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8143. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8144. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8145. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8146. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8147. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8148. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8149. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8150. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8151. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8152. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8153. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8154. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8155. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8156. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8157. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8158. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8159. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8160. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8161. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8162. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8163. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8164. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8165. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8166. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8167. html += "_$tag";
  8168. }
  8169. html += "_$ta";
  8170. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8171. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8172. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8173. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8174. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8175. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8176. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8177. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8178. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8179. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8180. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8181. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8182. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  8183. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8184. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8185. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8186. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8187. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8188. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8189. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8190. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8191. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8192. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8193. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8194. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8195. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8196. html += "_$tag";
  8197. $("#dataTable").html(html);
  8198. }else {
  8199. $("#dataTable").html("");
  8200. }
  8201. },
  8202. "error" : function(msg){
  8203. },
  8204. "complete": function(){
  8205. layer.close(tip);
  8206. }
  8207. });
  8208. });
  8209. Date.prototype.Format = function (fmt) {
  8210. var o = {
  8211. "M+": this.getMonth() + 1, //月份
  8212. "d+": this.getDate(), //日
  8213. "h+": this.getHours(), //小时
  8214. "m+": this.getMinutes(), //分
  8215. "s+": this.getSeconds(), //秒
  8216. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8217. "S": this.getMilliseconds() //毫秒
  8218. };
  8219. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8220. for (var k in o)
  8221. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8222. return fmt;
  8223. }
  8224. $("#jrjc").change(function() {
  8225. if ($("#jrjc").prop('checked') == true){
  8226. $("#departmentId").removeAttr("disabled");
  8227. }else {
  8228. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8229. }
  8230. });
  8231. ----------------------------------- SOURCE END -------------------------------------
  8232. !STACK 0
  8233. java.lang.NullPointerException
  8234. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:33:10.130
  8235. !MESSAGE java.lang.NullPointerException
  8236. !STACK 1
  8237. JavaScript Model Exception: java.lang.NullPointerException
  8238. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8239. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8240. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8241. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8242. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8243. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8244. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8245. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8246. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8247. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8248. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8249. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8250. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8251. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8252. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8253. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8254. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8255. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8256. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8257. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8258. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8259. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8260. Caused by: java.lang.NullPointerException
  8261. Caused by: java.lang.NullPointerException
  8262. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:10.130
  8263. !MESSAGE java.lang.NullPointerException
  8264. !STACK 0
  8265. java.lang.NullPointerException
  8266. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:48.847
  8267. !MESSAGE Exception occurred during problem detection:
  8268. ----------------------------------- SOURCE BEGIN -------------------------------------
  8269. (function(){WdatePicker();})();
  8270. (function(){WdatePicker();})();
  8271. (function(){Data.get();})();
  8272. (function(){Data.set();})();
  8273. (function(){search();})();
  8274. $(function(){
  8275. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8276. getfp();
  8277. });
  8278. var Data = {
  8279. "get" : function(){
  8280. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8281. var tip = layer.load(2);
  8282. var result="";
  8283. var url = "getgyxml.do";
  8284. $.ajax({
  8285. "url" : url,
  8286. "data" : {
  8287. "start_date" : $("#dateBegin").val(),
  8288. "end_date" : $("#dateEnd").val()
  8289. },
  8290. "type" : "POST",
  8291. "dataType" : "json",
  8292. "success" : function(data) {
  8293. if(data != null && data != ""){
  8294. if ( data.status =="success"){
  8295. getfp();
  8296. alert("获取成功!");
  8297. }else {
  8298. alert(data.status);
  8299. }
  8300. }else {
  8301. alert("获取失败!");
  8302. }
  8303. },
  8304. "complete": function(){
  8305. layer.close(tip);
  8306. }
  8307. });
  8308. }else {
  8309. alert("请选择日期!");
  8310. }
  8311. },
  8312. "set" : function(){
  8313. if ( $("#fpid option:selected").text() !=""){
  8314. var tip = layer.load(2);
  8315. var gitem = $("#form1").serialize();
  8316. var jrjc;
  8317. if ($("#jrjc").prop('checked') == true){
  8318. jrjc = $("#departmentId").val();
  8319. }else {
  8320. jrjc ='N'
  8321. }
  8322. var url = "saverk.do";
  8323. $.ajax({
  8324. "url" : url,
  8325. "data" : {
  8326. "gitem" : gitem,
  8327. "jrjc" : jrjc
  8328. },
  8329. "type" : "POST",
  8330. "dataType" : "json",
  8331. "async" : true,
  8332. "success" : function(data) {
  8333. if(data.status ="success"){
  8334. alert("入库成功!");
  8335. window.location.reload();
  8336. }else {
  8337. alert(msg);
  8338. }
  8339. },
  8340. "error": function(){
  8341. alert("确认失败!");
  8342. },
  8343. "complete": function(){
  8344. layer.close(tip);
  8345. }
  8346. });
  8347. }else {
  8348. alert("请选择发票!");
  8349. }
  8350. }
  8351. }
  8352. function getfp(){
  8353. var tip = layer.load(2);
  8354. var url = "getgyfp.do";
  8355. $.ajax({
  8356. "url" : url,
  8357. "type" : "POST",
  8358. "dataType" : "json",
  8359. "async" : true,
  8360. "success" : function(data) {
  8361. if(data != null && data != ""){
  8362. $("#fpid").empty();
  8363. $("#fpid").append("_$tag_____________$tag____");
  8364. for(var i = 0; i < data.length; i++){
  8365. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8366. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8367. }
  8368. }
  8369. },
  8370. "error" : function(msg){
  8371. },
  8372. "complete": function(){
  8373. layer.close(tip);
  8374. }
  8375. });
  8376. }
  8377. $("#fpid").change(function(){
  8378. var tip = layer.load(2);
  8379. var url = "getgyrkxx.do";
  8380. var sum_total=0;
  8381. $.ajax({
  8382. "url" : url,
  8383. "data" : {
  8384. "fpId" : $("#fpid").val()
  8385. },
  8386. "type" : "POST",
  8387. "dataType" : "json",
  8388. "async" : true,
  8389. "success" : function(data) {
  8390. $("#dataTable").html("");
  8391. if(data != null && data != ""){
  8392. var html = "";
  8393. for(var i = 0; i < data.length; i++){
  8394. var ID = data[i].id == null ? "" : data[i].id;
  8395. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8396. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8397. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8398. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8399. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8400. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8401. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8402. var NAME = data[i].name == null ? "" : data[i].name;
  8403. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8404. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8405. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8406. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8407. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8408. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8409. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8410. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8411. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8412. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8413. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8414. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8415. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8416. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8417. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8418. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8419. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8420. sum_total = sum_total + DPRC
  8421. var invoice_type_cn =null;
  8422. if (invoice_type =="00" ){
  8423. invoice_type_cn="销售发票";
  8424. }else if (invoice_type == "01") {
  8425. invoice_type_cn="更正(对冲)发票";
  8426. }else if (invoice_type == "02") {
  8427. invoice_type_cn="其它类型发票";
  8428. }
  8429. html += "_$ta";
  8430. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8431. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8432. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8433. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8434. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8435. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8436. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8437. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8438. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8439. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8440. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8441. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8442. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8443. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8444. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8445. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8446. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8447. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8448. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8449. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8450. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8451. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8452. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8453. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8454. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8455. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8456. html += "_$tag";
  8457. }
  8458. html += "_$ta";
  8459. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8460. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8461. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8462. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8463. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8464. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8465. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8466. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8467. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8468. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8469. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8470. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8471. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  8472. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8473. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8474. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8475. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8476. html += "_$tag_____________$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";
  8486. $("#dataTable").html(html);
  8487. }else {
  8488. $("#dataTable").html("");
  8489. }
  8490. },
  8491. "error" : function(msg){
  8492. },
  8493. "complete": function(){
  8494. layer.close(tip);
  8495. }
  8496. });
  8497. });
  8498. Date.prototype.Format = function (fmt) {
  8499. var o = {
  8500. "M+": this.getMonth() + 1, //月份
  8501. "d+": this.getDate(), //日
  8502. "h+": this.getHours(), //小时
  8503. "m+": this.getMinutes(), //分
  8504. "s+": this.getSeconds(), //秒
  8505. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8506. "S": this.getMilliseconds() //毫秒
  8507. };
  8508. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8509. for (var k in o)
  8510. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8511. return fmt;
  8512. }
  8513. $("#jrjc").change(function() {
  8514. if ($("#jrjc").prop('checked') == true){
  8515. $("#departmentId").removeAttr("disabled");
  8516. }else {
  8517. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8518. }
  8519. });
  8520. ----------------------------------- SOURCE END -------------------------------------
  8521. !STACK 0
  8522. java.lang.NullPointerException
  8523. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:48.848
  8524. !MESSAGE Error while processing working copy
  8525. !STACK 1
  8526. JavaScript Model Exception: java.lang.NullPointerException
  8527. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8528. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8529. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8530. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8531. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8532. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8533. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8534. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8535. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8536. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8537. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8538. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8539. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8540. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8541. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8542. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8543. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8544. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8545. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8546. Caused by: java.lang.NullPointerException
  8547. Caused by: java.lang.NullPointerException
  8548. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:48.848
  8549. !MESSAGE java.lang.NullPointerException
  8550. !STACK 0
  8551. java.lang.NullPointerException
  8552. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:49.522
  8553. !MESSAGE Exception occurred during problem detection:
  8554. ----------------------------------- SOURCE BEGIN -------------------------------------
  8555. (function(){WdatePicker();})();
  8556. (function(){WdatePicker();})();
  8557. (function(){Data.get();})();
  8558. (function(){Data.set();})();
  8559. (function(){search();})();
  8560. $(function(){
  8561. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8562. getfp();
  8563. });
  8564. var Data = {
  8565. "get" : function(){
  8566. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8567. var tip = layer.load(2);
  8568. var result="";
  8569. var url = "getgyxml.do";
  8570. $.ajax({
  8571. "url" : url,
  8572. "data" : {
  8573. "start_date" : $("#dateBegin").val(),
  8574. "end_date" : $("#dateEnd").val()
  8575. },
  8576. "type" : "POST",
  8577. "dataType" : "json",
  8578. "success" : function(data) {
  8579. if(data != null && data != ""){
  8580. if ( data.status =="success"){
  8581. getfp();
  8582. alert("获取成功!");
  8583. }else {
  8584. alert(data.status);
  8585. }
  8586. }else {
  8587. alert("获取失败!");
  8588. }
  8589. },
  8590. "complete": function(){
  8591. layer.close(tip);
  8592. }
  8593. });
  8594. }else {
  8595. alert("请选择日期!");
  8596. }
  8597. },
  8598. "set" : function(){
  8599. if ( $("#fpid option:selected").text() !=""){
  8600. var tip = layer.load(2);
  8601. var gitem = $("#form1").serialize();
  8602. var jrjc;
  8603. if ($("#jrjc").prop('checked') == true){
  8604. jrjc = $("#departmentId").val();
  8605. }else {
  8606. jrjc ='N'
  8607. }
  8608. var url = "saverk.do";
  8609. $.ajax({
  8610. "url" : url,
  8611. "data" : {
  8612. "gitem" : gitem,
  8613. "jrjc" : jrjc
  8614. },
  8615. "type" : "POST",
  8616. "dataType" : "json",
  8617. "async" : true,
  8618. "success" : function(data) {
  8619. if(data.status ="success"){
  8620. alert("入库成功!");
  8621. window.location.reload();
  8622. }else {
  8623. alert(msg);
  8624. }
  8625. },
  8626. "error": function(){
  8627. alert("确认失败!");
  8628. },
  8629. "complete": function(){
  8630. layer.close(tip);
  8631. }
  8632. });
  8633. }else {
  8634. alert("请选择发票!");
  8635. }
  8636. }
  8637. }
  8638. function getfp(){
  8639. var tip = layer.load(2);
  8640. var url = "getgyfp.do";
  8641. $.ajax({
  8642. "url" : url,
  8643. "type" : "POST",
  8644. "dataType" : "json",
  8645. "async" : true,
  8646. "success" : function(data) {
  8647. if(data != null && data != ""){
  8648. $("#fpid").empty();
  8649. $("#fpid").append("_$tag_____________$tag____");
  8650. for(var i = 0; i < data.length; i++){
  8651. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8652. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8653. }
  8654. }
  8655. },
  8656. "error" : function(msg){
  8657. },
  8658. "complete": function(){
  8659. layer.close(tip);
  8660. }
  8661. });
  8662. }
  8663. $("#fpid").change(function(){
  8664. var tip = layer.load(2);
  8665. var url = "getgyrkxx.do";
  8666. var sum_total=0;
  8667. $.ajax({
  8668. "url" : url,
  8669. "data" : {
  8670. "fpId" : $("#fpid").val()
  8671. },
  8672. "type" : "POST",
  8673. "dataType" : "json",
  8674. "async" : true,
  8675. "success" : function(data) {
  8676. $("#dataTable").html("");
  8677. if(data != null && data != ""){
  8678. var html = "";
  8679. for(var i = 0; i < data.length; i++){
  8680. var ID = data[i].id == null ? "" : data[i].id;
  8681. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8682. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8683. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8684. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8685. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8686. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8687. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8688. var NAME = data[i].name == null ? "" : data[i].name;
  8689. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8690. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8691. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8692. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8693. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8694. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8695. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8696. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8697. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8698. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8699. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8700. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8701. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8702. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8703. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8704. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8705. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8706. sum_total = sum_total + DPRC
  8707. var invoice_type_cn =null;
  8708. if (invoice_type =="00" ){
  8709. invoice_type_cn="销售发票";
  8710. }else if (invoice_type == "01") {
  8711. invoice_type_cn="更正(对冲)发票";
  8712. }else if (invoice_type == "02") {
  8713. invoice_type_cn="其它类型发票";
  8714. }
  8715. html += "_$ta";
  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_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8722. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8723. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8724. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8725. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8726. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8727. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8728. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8729. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8730. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8731. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8732. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8733. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8734. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8735. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8736. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8737. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8738. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8739. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8740. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8741. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8742. html += "_$tag";
  8743. }
  8744. html += "_$ta";
  8745. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8746. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8747. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8748. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8749. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8750. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8751. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8752. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8753. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8754. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8755. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8756. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8757. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  8758. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8759. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8760. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8761. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8762. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8763. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8764. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8765. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8766. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8767. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8768. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8769. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8770. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8771. html += "_$tag";
  8772. $("#dataTable").html(html);
  8773. }else {
  8774. $("#dataTable").html("");
  8775. }
  8776. },
  8777. "error" : function(msg){
  8778. },
  8779. "complete": function(){
  8780. layer.close(tip);
  8781. }
  8782. });
  8783. });
  8784. Date.prototype.Format = function (fmt) {
  8785. var o = {
  8786. "M+": this.getMonth() + 1, //月份
  8787. "d+": this.getDate(), //日
  8788. "h+": this.getHours(), //小时
  8789. "m+": this.getMinutes(), //分
  8790. "s+": this.getSeconds(), //秒
  8791. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8792. "S": this.getMilliseconds() //毫秒
  8793. };
  8794. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8795. for (var k in o)
  8796. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8797. return fmt;
  8798. }
  8799. $("#jrjc").change(function() {
  8800. if ($("#jrjc").prop('checked') == true){
  8801. $("#departmentId").removeAttr("disabled");
  8802. }else {
  8803. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8804. }
  8805. });
  8806. ----------------------------------- SOURCE END -------------------------------------
  8807. !STACK 0
  8808. java.lang.NullPointerException
  8809. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:52.539
  8810. !MESSAGE Exception occurred during problem detection:
  8811. ----------------------------------- SOURCE BEGIN -------------------------------------
  8812. (function(){WdatePicker();})();
  8813. (function(){WdatePicker();})();
  8814. (function(){Data.get();})();
  8815. (function(){Data.set();})();
  8816. (function(){search();})();
  8817. $(function(){
  8818. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8819. getfp();
  8820. });
  8821. var Data = {
  8822. "get" : function(){
  8823. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8824. var tip = layer.load(2);
  8825. var result="";
  8826. var url = "getgyxml.do";
  8827. $.ajax({
  8828. "url" : url,
  8829. "data" : {
  8830. "start_date" : $("#dateBegin").val(),
  8831. "end_date" : $("#dateEnd").val()
  8832. },
  8833. "type" : "POST",
  8834. "dataType" : "json",
  8835. "success" : function(data) {
  8836. if(data != null && data != ""){
  8837. if ( data.status =="success"){
  8838. getfp();
  8839. alert("获取成功!");
  8840. }else {
  8841. alert(data.status);
  8842. }
  8843. }else {
  8844. alert("获取失败!");
  8845. }
  8846. },
  8847. "complete": function(){
  8848. layer.close(tip);
  8849. }
  8850. });
  8851. }else {
  8852. alert("请选择日期!");
  8853. }
  8854. },
  8855. "set" : function(){
  8856. if ( $("#fpid option:selected").text() !=""){
  8857. var tip = layer.load(2);
  8858. var gitem = $("#form1").serialize();
  8859. var jrjc;
  8860. if ($("#jrjc").prop('checked') == true){
  8861. jrjc = $("#departmentId").val();
  8862. }else {
  8863. jrjc ='N'
  8864. }
  8865. var url = "saverk.do";
  8866. $.ajax({
  8867. "url" : url,
  8868. "data" : {
  8869. "gitem" : gitem,
  8870. "jrjc" : jrjc
  8871. },
  8872. "type" : "POST",
  8873. "dataType" : "json",
  8874. "async" : true,
  8875. "success" : function(data) {
  8876. if(data.status ="success"){
  8877. alert("入库成功!");
  8878. window.location.reload();
  8879. }else {
  8880. alert(msg);
  8881. }
  8882. },
  8883. "error": function(){
  8884. alert("确认失败!");
  8885. },
  8886. "complete": function(){
  8887. layer.close(tip);
  8888. }
  8889. });
  8890. }else {
  8891. alert("请选择发票!");
  8892. }
  8893. }
  8894. }
  8895. function getfp(){
  8896. var tip = layer.load(2);
  8897. var url = "getgyfp.do";
  8898. $.ajax({
  8899. "url" : url,
  8900. "type" : "POST",
  8901. "dataType" : "json",
  8902. "async" : true,
  8903. "success" : function(data) {
  8904. if(data != null && data != ""){
  8905. $("#fpid").empty();
  8906. $("#fpid").append("_$tag_____________$tag____");
  8907. for(var i = 0; i < data.length; i++){
  8908. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8909. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8910. }
  8911. }
  8912. },
  8913. "error" : function(msg){
  8914. },
  8915. "complete": function(){
  8916. layer.close(tip);
  8917. }
  8918. });
  8919. }
  8920. $("#fpid").change(function(){
  8921. var tip = layer.load(2);
  8922. var url = "getgyrkxx.do";
  8923. var sum_total=0;
  8924. $.ajax({
  8925. "url" : url,
  8926. "data" : {
  8927. "fpId" : $("#fpid").val()
  8928. },
  8929. "type" : "POST",
  8930. "dataType" : "json",
  8931. "async" : true,
  8932. "success" : function(data) {
  8933. $("#dataTable").html("");
  8934. if(data != null && data != ""){
  8935. var html = "";
  8936. for(var i = 0; i < data.length; i++){
  8937. var ID = data[i].id == null ? "" : data[i].id;
  8938. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8939. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8940. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8941. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8942. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8943. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8944. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8945. var NAME = data[i].name == null ? "" : data[i].name;
  8946. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8947. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8948. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8949. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8950. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8951. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8952. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8953. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8954. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8955. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8956. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8957. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8958. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8959. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8960. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8961. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8962. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8963. sum_total = sum_total + DPRC
  8964. var invoice_type_cn =null;
  8965. if (invoice_type =="00" ){
  8966. invoice_type_cn="销售发票";
  8967. }else if (invoice_type == "01") {
  8968. invoice_type_cn="更正(对冲)发票";
  8969. }else if (invoice_type == "02") {
  8970. invoice_type_cn="其它类型发票";
  8971. }
  8972. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________$tag";
  8981. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8982. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8983. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8984. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8985. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8986. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8987. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8988. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8989. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8990. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8991. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8992. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8993. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8994. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8995. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8996. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8997. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8998. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8999. html += "_$tag";
  9000. }
  9001. html += "_$ta";
  9002. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9003. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9004. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9005. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9006. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9007. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9008. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9009. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9010. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9011. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9012. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9013. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9014. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  9015. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9016. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9017. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9018. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9019. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9020. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9021. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9022. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9023. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9024. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9025. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9026. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9027. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9028. html += "_$tag";
  9029. $("#dataTable").html(html);
  9030. }else {
  9031. $("#dataTable").html("");
  9032. }
  9033. },
  9034. "error" : function(msg){
  9035. },
  9036. "complete": function(){
  9037. layer.close(tip);
  9038. }
  9039. });
  9040. });
  9041. Date.prototype.Format = function (fmt) {
  9042. var o = {
  9043. "M+": this.getMonth() + 1, //月份
  9044. "d+": this.getDate(), //日
  9045. "h+": this.getHours(), //小时
  9046. "m+": this.getMinutes(), //分
  9047. "s+": this.getSeconds(), //秒
  9048. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9049. "S": this.getMilliseconds() //毫秒
  9050. };
  9051. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9052. for (var k in o)
  9053. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9054. return fmt;
  9055. }
  9056. $("#jrjc").change(function() {
  9057. if ($("#jrjc").prop('checked') == true){
  9058. $("#departmentId").removeAttr("disabled");
  9059. }else {
  9060. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9061. }
  9062. });
  9063. ----------------------------------- SOURCE END -------------------------------------
  9064. !STACK 0
  9065. java.lang.NullPointerException
  9066. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:52.540
  9067. !MESSAGE Error while processing working copy
  9068. !STACK 1
  9069. JavaScript Model Exception: java.lang.NullPointerException
  9070. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9071. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9072. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9073. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9074. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9075. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9076. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9077. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9078. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9079. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9080. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9081. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9082. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9083. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9084. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9085. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9086. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9087. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9088. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9089. Caused by: java.lang.NullPointerException
  9090. Caused by: java.lang.NullPointerException
  9091. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:52.540
  9092. !MESSAGE java.lang.NullPointerException
  9093. !STACK 0
  9094. java.lang.NullPointerException
  9095. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:57.637
  9096. !MESSAGE Exception occurred during problem detection:
  9097. ----------------------------------- SOURCE BEGIN -------------------------------------
  9098. (function(){WdatePicker();})();
  9099. (function(){WdatePicker();})();
  9100. (function(){Data.get();})();
  9101. (function(){Data.set();})();
  9102. (function(){search();})();
  9103. $(function(){
  9104. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9105. getfp();
  9106. });
  9107. var Data = {
  9108. "get" : function(){
  9109. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9110. var tip = layer.load(2);
  9111. var result="";
  9112. var url = "getgyxml.do";
  9113. $.ajax({
  9114. "url" : url,
  9115. "data" : {
  9116. "start_date" : $("#dateBegin").val(),
  9117. "end_date" : $("#dateEnd").val()
  9118. },
  9119. "type" : "POST",
  9120. "dataType" : "json",
  9121. "success" : function(data) {
  9122. if(data != null && data != ""){
  9123. if ( data.status =="success"){
  9124. getfp();
  9125. alert("获取成功!");
  9126. }else {
  9127. alert(data.status);
  9128. }
  9129. }else {
  9130. alert("获取失败!");
  9131. }
  9132. },
  9133. "complete": function(){
  9134. layer.close(tip);
  9135. }
  9136. });
  9137. }else {
  9138. alert("请选择日期!");
  9139. }
  9140. },
  9141. "set" : function(){
  9142. if ( $("#fpid option:selected").text() !=""){
  9143. var tip = layer.load(2);
  9144. var gitem = $("#form1").serialize();
  9145. var jrjc;
  9146. if ($("#jrjc").prop('checked') == true){
  9147. jrjc = $("#departmentId").val();
  9148. }else {
  9149. jrjc ='N'
  9150. }
  9151. var url = "saverk.do";
  9152. $.ajax({
  9153. "url" : url,
  9154. "data" : {
  9155. "gitem" : gitem,
  9156. "jrjc" : jrjc
  9157. },
  9158. "type" : "POST",
  9159. "dataType" : "json",
  9160. "async" : true,
  9161. "success" : function(data) {
  9162. if(data.status ="success"){
  9163. alert("入库成功!");
  9164. window.location.reload();
  9165. }else {
  9166. alert(msg);
  9167. }
  9168. },
  9169. "error": function(){
  9170. alert("确认失败!");
  9171. },
  9172. "complete": function(){
  9173. layer.close(tip);
  9174. }
  9175. });
  9176. }else {
  9177. alert("请选择发票!");
  9178. }
  9179. }
  9180. }
  9181. function getfp(){
  9182. var tip = layer.load(2);
  9183. var url = "getgyfp.do";
  9184. $.ajax({
  9185. "url" : url,
  9186. "type" : "POST",
  9187. "dataType" : "json",
  9188. "async" : true,
  9189. "success" : function(data) {
  9190. if(data != null && data != ""){
  9191. $("#fpid").empty();
  9192. $("#fpid").append("_$tag_____________$tag____");
  9193. for(var i = 0; i < data.length; i++){
  9194. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9195. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9196. }
  9197. }
  9198. },
  9199. "error" : function(msg){
  9200. },
  9201. "complete": function(){
  9202. layer.close(tip);
  9203. }
  9204. });
  9205. }
  9206. $("#fpid").change(function(){
  9207. var tip = layer.load(2);
  9208. var url = "getgyrkxx.do";
  9209. var sum_total=0;
  9210. $.ajax({
  9211. "url" : url,
  9212. "data" : {
  9213. "fpId" : $("#fpid").val()
  9214. },
  9215. "type" : "POST",
  9216. "dataType" : "json",
  9217. "async" : true,
  9218. "success" : function(data) {
  9219. $("#dataTable").html("");
  9220. if(data != null && data != ""){
  9221. var html = "";
  9222. for(var i = 0; i < data.length; i++){
  9223. var ID = data[i].id == null ? "" : data[i].id;
  9224. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9225. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9226. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9227. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9228. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9229. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9230. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9231. var NAME = data[i].name == null ? "" : data[i].name;
  9232. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9233. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9234. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9235. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9236. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9237. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9238. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9239. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9240. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9241. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9242. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9243. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9244. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9245. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9246. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9247. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9248. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9249. sum_total = sum_total + DPRC
  9250. var invoice_type_cn =null;
  9251. if (invoice_type =="00" ){
  9252. invoice_type_cn="销售发票";
  9253. }else if (invoice_type == "01") {
  9254. invoice_type_cn="更正(对冲)发票";
  9255. }else if (invoice_type == "02") {
  9256. invoice_type_cn="其它类型发票";
  9257. }
  9258. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________$tag";
  9267. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9268. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9269. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9270. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9271. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9272. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9273. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9274. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9275. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9276. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9277. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9278. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9279. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9280. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9281. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9282. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9283. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9284. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9285. html += "_$tag";
  9286. }
  9287. html += "_$ta";
  9288. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9289. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9290. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9291. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9292. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9293. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9294. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9295. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9296. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9297. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9298. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9299. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9300. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  9301. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9302. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9303. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9304. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9305. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9306. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9307. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9308. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9309. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9310. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9311. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9312. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9313. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9314. html += "_$tag";
  9315. $("#dataTable").html(html);
  9316. }else {
  9317. $("#dataTable").html("");
  9318. }
  9319. },
  9320. "error" : function(msg){
  9321. },
  9322. "complete": function(){
  9323. layer.close(tip);
  9324. }
  9325. });
  9326. });
  9327. Date.prototype.Format = function (fmt) {
  9328. var o = {
  9329. "M+": this.getMonth() + 1, //月份
  9330. "d+": this.getDate(), //日
  9331. "h+": this.getHours(), //小时
  9332. "m+": this.getMinutes(), //分
  9333. "s+": this.getSeconds(), //秒
  9334. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9335. "S": this.getMilliseconds() //毫秒
  9336. };
  9337. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9338. for (var k in o)
  9339. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9340. return fmt;
  9341. }
  9342. $("#jrjc").change(function() {
  9343. if ($("#jrjc").prop('checked') == true){
  9344. $("#departmentId").removeAttr("disabled");
  9345. }else {
  9346. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9347. }
  9348. });
  9349. ----------------------------------- SOURCE END -------------------------------------
  9350. !STACK 0
  9351. java.lang.NullPointerException
  9352. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:57.638
  9353. !MESSAGE Error while processing working copy
  9354. !STACK 1
  9355. JavaScript Model Exception: java.lang.NullPointerException
  9356. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9357. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9358. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9359. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9360. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9361. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9362. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9363. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9364. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9365. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9366. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9367. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9368. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9369. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9370. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9371. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9372. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9373. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9374. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9375. Caused by: java.lang.NullPointerException
  9376. Caused by: java.lang.NullPointerException
  9377. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:57.638
  9378. !MESSAGE java.lang.NullPointerException
  9379. !STACK 0
  9380. java.lang.NullPointerException
  9381. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:58.343
  9382. !MESSAGE Exception occurred during problem detection:
  9383. ----------------------------------- SOURCE BEGIN -------------------------------------
  9384. (function(){WdatePicker();})();
  9385. (function(){WdatePicker();})();
  9386. (function(){Data.get();})();
  9387. (function(){Data.set();})();
  9388. (function(){search();})();
  9389. $(function(){
  9390. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9391. getfp();
  9392. });
  9393. var Data = {
  9394. "get" : function(){
  9395. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9396. var tip = layer.load(2);
  9397. var result="";
  9398. var url = "getgyxml.do";
  9399. $.ajax({
  9400. "url" : url,
  9401. "data" : {
  9402. "start_date" : $("#dateBegin").val(),
  9403. "end_date" : $("#dateEnd").val()
  9404. },
  9405. "type" : "POST",
  9406. "dataType" : "json",
  9407. "success" : function(data) {
  9408. if(data != null && data != ""){
  9409. if ( data.status =="success"){
  9410. getfp();
  9411. alert("获取成功!");
  9412. }else {
  9413. alert(data.status);
  9414. }
  9415. }else {
  9416. alert("获取失败!");
  9417. }
  9418. },
  9419. "complete": function(){
  9420. layer.close(tip);
  9421. }
  9422. });
  9423. }else {
  9424. alert("请选择日期!");
  9425. }
  9426. },
  9427. "set" : function(){
  9428. if ( $("#fpid option:selected").text() !=""){
  9429. var tip = layer.load(2);
  9430. var gitem = $("#form1").serialize();
  9431. var jrjc;
  9432. if ($("#jrjc").prop('checked') == true){
  9433. jrjc = $("#departmentId").val();
  9434. }else {
  9435. jrjc ='N'
  9436. }
  9437. var url = "saverk.do";
  9438. $.ajax({
  9439. "url" : url,
  9440. "data" : {
  9441. "gitem" : gitem,
  9442. "jrjc" : jrjc
  9443. },
  9444. "type" : "POST",
  9445. "dataType" : "json",
  9446. "async" : true,
  9447. "success" : function(data) {
  9448. if(data.status ="success"){
  9449. alert("入库成功!");
  9450. window.location.reload();
  9451. }else {
  9452. alert(msg);
  9453. }
  9454. },
  9455. "error": function(){
  9456. alert("确认失败!");
  9457. },
  9458. "complete": function(){
  9459. layer.close(tip);
  9460. }
  9461. });
  9462. }else {
  9463. alert("请选择发票!");
  9464. }
  9465. }
  9466. }
  9467. function getfp(){
  9468. var tip = layer.load(2);
  9469. var url = "getgyfp.do";
  9470. $.ajax({
  9471. "url" : url,
  9472. "type" : "POST",
  9473. "dataType" : "json",
  9474. "async" : true,
  9475. "success" : function(data) {
  9476. if(data != null && data != ""){
  9477. $("#fpid").empty();
  9478. $("#fpid").append("_$tag_____________$tag____");
  9479. for(var i = 0; i < data.length; i++){
  9480. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9481. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9482. }
  9483. }
  9484. },
  9485. "error" : function(msg){
  9486. },
  9487. "complete": function(){
  9488. layer.close(tip);
  9489. }
  9490. });
  9491. }
  9492. $("#fpid").change(function(){
  9493. var tip = layer.load(2);
  9494. var url = "getgyrkxx.do";
  9495. var sum_total=0;
  9496. $.ajax({
  9497. "url" : url,
  9498. "data" : {
  9499. "fpId" : $("#fpid").val()
  9500. },
  9501. "type" : "POST",
  9502. "dataType" : "json",
  9503. "async" : true,
  9504. "success" : function(data) {
  9505. $("#dataTable").html("");
  9506. if(data != null && data != ""){
  9507. var html = "";
  9508. for(var i = 0; i < data.length; i++){
  9509. var ID = data[i].id == null ? "" : data[i].id;
  9510. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9511. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9512. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9513. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9514. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9515. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9516. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9517. var NAME = data[i].name == null ? "" : data[i].name;
  9518. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9519. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9520. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9521. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9522. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9523. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9524. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9525. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9526. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9527. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9528. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9529. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9530. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9531. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9532. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9533. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9534. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9535. sum_total = sum_total + DPRC
  9536. var invoice_type_cn =null;
  9537. if (invoice_type =="00" ){
  9538. invoice_type_cn="销售发票";
  9539. }else if (invoice_type == "01") {
  9540. invoice_type_cn="更正(对冲)发票";
  9541. }else if (invoice_type == "02") {
  9542. invoice_type_cn="其它类型发票";
  9543. }
  9544. html += "_$ta";
  9545. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9546. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9547. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9548. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9549. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9550. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9551. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9552. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9553. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9554. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9555. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9556. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9557. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9558. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9559. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9560. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9561. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9562. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9563. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9564. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9565. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9566. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9567. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9568. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9569. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9570. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9571. html += "_$tag";
  9572. }
  9573. html += "_$ta";
  9574. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9575. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9576. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9577. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9578. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9579. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9580. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9581. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9582. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9583. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9584. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9585. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9586. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  9587. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9588. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9589. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9590. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9591. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9592. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9593. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9594. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9595. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9596. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9597. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9598. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9599. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9600. html += "_$tag";
  9601. $("#dataTable").html(html);
  9602. }else {
  9603. $("#dataTable").html("");
  9604. }
  9605. },
  9606. "error" : function(msg){
  9607. },
  9608. "complete": function(){
  9609. layer.close(tip);
  9610. }
  9611. });
  9612. });
  9613. Date.prototype.Format = function (fmt) {
  9614. var o = {
  9615. "M+": this.getMonth() + 1, //月份
  9616. "d+": this.getDate(), //日
  9617. "h+": this.getHours(), //小时
  9618. "m+": this.getMinutes(), //分
  9619. "s+": this.getSeconds(), //秒
  9620. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9621. "S": this.getMilliseconds() //毫秒
  9622. };
  9623. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9624. for (var k in o)
  9625. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9626. return fmt;
  9627. }
  9628. $("#jrjc").change(function() {
  9629. if ($("#jrjc").prop('checked') == true){
  9630. $("#departmentId").removeAttr("disabled");
  9631. }else {
  9632. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9633. }
  9634. });
  9635. ----------------------------------- SOURCE END -------------------------------------
  9636. !STACK 0
  9637. java.lang.NullPointerException
  9638. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:59.279
  9639. !MESSAGE Exception occurred during problem detection:
  9640. ----------------------------------- SOURCE BEGIN -------------------------------------
  9641. (function(){WdatePicker();})();
  9642. (function(){WdatePicker();})();
  9643. (function(){Data.get();})();
  9644. (function(){Data.set();})();
  9645. (function(){search();})();
  9646. $(function(){
  9647. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9648. getfp();
  9649. });
  9650. var Data = {
  9651. "get" : function(){
  9652. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9653. var tip = layer.load(2);
  9654. var result="";
  9655. var url = "getgyxml.do";
  9656. $.ajax({
  9657. "url" : url,
  9658. "data" : {
  9659. "start_date" : $("#dateBegin").val(),
  9660. "end_date" : $("#dateEnd").val()
  9661. },
  9662. "type" : "POST",
  9663. "dataType" : "json",
  9664. "success" : function(data) {
  9665. if(data != null && data != ""){
  9666. if ( data.status =="success"){
  9667. getfp();
  9668. alert("获取成功!");
  9669. }else {
  9670. alert(data.status);
  9671. }
  9672. }else {
  9673. alert("获取失败!");
  9674. }
  9675. },
  9676. "complete": function(){
  9677. layer.close(tip);
  9678. }
  9679. });
  9680. }else {
  9681. alert("请选择日期!");
  9682. }
  9683. },
  9684. "set" : function(){
  9685. if ( $("#fpid option:selected").text() !=""){
  9686. var tip = layer.load(2);
  9687. var gitem = $("#form1").serialize();
  9688. var jrjc;
  9689. if ($("#jrjc").prop('checked') == true){
  9690. jrjc = $("#departmentId").val();
  9691. }else {
  9692. jrjc ='N'
  9693. }
  9694. var url = "saverk.do";
  9695. $.ajax({
  9696. "url" : url,
  9697. "data" : {
  9698. "gitem" : gitem,
  9699. "jrjc" : jrjc
  9700. },
  9701. "type" : "POST",
  9702. "dataType" : "json",
  9703. "async" : true,
  9704. "success" : function(data) {
  9705. if(data.status ="success"){
  9706. alert("入库成功!");
  9707. window.location.reload();
  9708. }else {
  9709. alert(msg);
  9710. }
  9711. },
  9712. "error": function(){
  9713. alert("确认失败!");
  9714. },
  9715. "complete": function(){
  9716. layer.close(tip);
  9717. }
  9718. });
  9719. }else {
  9720. alert("请选择发票!");
  9721. }
  9722. }
  9723. }
  9724. function getfp(){
  9725. var tip = layer.load(2);
  9726. var url = "getgyfp.do";
  9727. $.ajax({
  9728. "url" : url,
  9729. "type" : "POST",
  9730. "dataType" : "json",
  9731. "async" : true,
  9732. "success" : function(data) {
  9733. if(data != null && data != ""){
  9734. $("#fpid").empty();
  9735. $("#fpid").append("_$tag_____________$tag____");
  9736. for(var i = 0; i < data.length; i++){
  9737. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9738. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9739. }
  9740. }
  9741. },
  9742. "error" : function(msg){
  9743. },
  9744. "complete": function(){
  9745. layer.close(tip);
  9746. }
  9747. });
  9748. }
  9749. $("#fpid").change(function(){
  9750. var tip = layer.load(2);
  9751. var url = "getgyrkxx.do";
  9752. var sum_total=0;
  9753. $.ajax({
  9754. "url" : url,
  9755. "data" : {
  9756. "fpId" : $("#fpid").val()
  9757. },
  9758. "type" : "POST",
  9759. "dataType" : "json",
  9760. "async" : true,
  9761. "success" : function(data) {
  9762. $("#dataTable").html("");
  9763. if(data != null && data != ""){
  9764. var html = "";
  9765. for(var i = 0; i < data.length; i++){
  9766. var ID = data[i].id == null ? "" : data[i].id;
  9767. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9768. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9769. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9770. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9771. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9772. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9773. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9774. var NAME = data[i].name == null ? "" : data[i].name;
  9775. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9776. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9777. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9778. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9779. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9780. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9781. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9782. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9783. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9784. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9785. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9786. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9787. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9788. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9789. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9790. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9791. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9792. sum_total = sum_total + DPRC
  9793. var invoice_type_cn =null;
  9794. if (invoice_type =="00" ){
  9795. invoice_type_cn="销售发票";
  9796. }else if (invoice_type == "01") {
  9797. invoice_type_cn="更正(对冲)发票";
  9798. }else if (invoice_type == "02") {
  9799. invoice_type_cn="其它类型发票";
  9800. }
  9801. html += "_$ta";
  9802. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9803. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9804. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9805. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9806. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9807. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9808. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9809. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9810. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9811. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9812. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9813. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9814. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9815. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9816. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9817. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9818. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9819. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9820. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9821. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9822. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9823. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9824. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9825. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9826. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9827. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9828. html += "_$tag";
  9829. }
  9830. html += "_$ta";
  9831. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9832. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9833. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9834. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9835. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9836. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9837. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9838. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9839. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9840. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9841. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9842. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9843. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  9844. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9845. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9846. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9847. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9848. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9849. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9850. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9851. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9852. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9853. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9854. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9855. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9856. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9857. html += "_$tag";
  9858. $("#dataTable").html(html);
  9859. }else {
  9860. $("#dataTable").html("");
  9861. }
  9862. },
  9863. "error" : function(msg){
  9864. },
  9865. "complete": function(){
  9866. layer.close(tip);
  9867. }
  9868. });
  9869. });
  9870. Date.prototype.Format = function (fmt) {
  9871. var o = {
  9872. "M+": this.getMonth() + 1, //月份
  9873. "d+": this.getDate(), //日
  9874. "h+": this.getHours(), //小时
  9875. "m+": this.getMinutes(), //分
  9876. "s+": this.getSeconds(), //秒
  9877. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9878. "S": this.getMilliseconds() //毫秒
  9879. };
  9880. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9881. for (var k in o)
  9882. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9883. return fmt;
  9884. }
  9885. $("#jrjc").change(function() {
  9886. if ($("#jrjc").prop('checked') == true){
  9887. $("#departmentId").removeAttr("disabled");
  9888. }else {
  9889. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9890. }
  9891. });
  9892. ----------------------------------- SOURCE END -------------------------------------
  9893. !STACK 0
  9894. java.lang.NullPointerException
  9895. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:33:59.280
  9896. !MESSAGE java.lang.NullPointerException
  9897. !STACK 1
  9898. JavaScript Model Exception: java.lang.NullPointerException
  9899. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9900. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  9901. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9902. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9903. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  9904. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  9905. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  9906. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  9907. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  9908. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  9909. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  9910. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  9911. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  9912. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  9913. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  9914. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  9915. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  9916. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  9917. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  9918. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  9919. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  9920. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  9921. Caused by: java.lang.NullPointerException
  9922. Caused by: java.lang.NullPointerException
  9923. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:33:59.280
  9924. !MESSAGE java.lang.NullPointerException
  9925. !STACK 0
  9926. java.lang.NullPointerException
  9927. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:33:59.988
  9928. !MESSAGE Exception occurred during problem detection:
  9929. ----------------------------------- SOURCE BEGIN -------------------------------------
  9930. (function(){WdatePicker();})();
  9931. (function(){WdatePicker();})();
  9932. (function(){Data.get();})();
  9933. (function(){Data.set();})();
  9934. (function(){search();})();
  9935. $(function(){
  9936. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9937. getfp();
  9938. });
  9939. var Data = {
  9940. "get" : function(){
  9941. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9942. var tip = layer.load(2);
  9943. var result="";
  9944. var url = "getgyxml.do";
  9945. $.ajax({
  9946. "url" : url,
  9947. "data" : {
  9948. "start_date" : $("#dateBegin").val(),
  9949. "end_date" : $("#dateEnd").val()
  9950. },
  9951. "type" : "POST",
  9952. "dataType" : "json",
  9953. "success" : function(data) {
  9954. if(data != null && data != ""){
  9955. if ( data.status =="success"){
  9956. getfp();
  9957. alert("获取成功!");
  9958. }else {
  9959. alert(data.status);
  9960. }
  9961. }else {
  9962. alert("获取失败!");
  9963. }
  9964. },
  9965. "complete": function(){
  9966. layer.close(tip);
  9967. }
  9968. });
  9969. }else {
  9970. alert("请选择日期!");
  9971. }
  9972. },
  9973. "set" : function(){
  9974. if ( $("#fpid option:selected").text() !=""){
  9975. var tip = layer.load(2);
  9976. var gitem = $("#form1").serialize();
  9977. var jrjc;
  9978. if ($("#jrjc").prop('checked') == true){
  9979. jrjc = $("#departmentId").val();
  9980. }else {
  9981. jrjc ='N'
  9982. }
  9983. var url = "saverk.do";
  9984. $.ajax({
  9985. "url" : url,
  9986. "data" : {
  9987. "gitem" : gitem,
  9988. "jrjc" : jrjc
  9989. },
  9990. "type" : "POST",
  9991. "dataType" : "json",
  9992. "async" : true,
  9993. "success" : function(data) {
  9994. if(data.status ="success"){
  9995. alert("入库成功!");
  9996. window.location.reload();
  9997. }else {
  9998. alert(msg);
  9999. }
  10000. },
  10001. "error": function(){
  10002. alert("确认失败!");
  10003. },
  10004. "complete": function(){
  10005. layer.close(tip);
  10006. }
  10007. });
  10008. }else {
  10009. alert("请选择发票!");
  10010. }
  10011. }
  10012. }
  10013. function getfp(){
  10014. var tip = layer.load(2);
  10015. var url = "getgyfp.do";
  10016. $.ajax({
  10017. "url" : url,
  10018. "type" : "POST",
  10019. "dataType" : "json",
  10020. "async" : true,
  10021. "success" : function(data) {
  10022. if(data != null && data != ""){
  10023. $("#fpid").empty();
  10024. $("#fpid").append("_$tag_____________$tag____");
  10025. for(var i = 0; i < data.length; i++){
  10026. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10027. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10028. }
  10029. }
  10030. },
  10031. "error" : function(msg){
  10032. },
  10033. "complete": function(){
  10034. layer.close(tip);
  10035. }
  10036. });
  10037. }
  10038. $("#fpid").change(function(){
  10039. var tip = layer.load(2);
  10040. var url = "getgyrkxx.do";
  10041. var sum_total=0;
  10042. $.ajax({
  10043. "url" : url,
  10044. "data" : {
  10045. "fpId" : $("#fpid").val()
  10046. },
  10047. "type" : "POST",
  10048. "dataType" : "json",
  10049. "async" : true,
  10050. "success" : function(data) {
  10051. $("#dataTable").html("");
  10052. if(data != null && data != ""){
  10053. var html = "";
  10054. for(var i = 0; i < data.length; i++){
  10055. var ID = data[i].id == null ? "" : data[i].id;
  10056. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10057. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10058. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10059. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10060. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10061. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10062. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10063. var NAME = data[i].name == null ? "" : data[i].name;
  10064. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10065. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10066. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10067. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10068. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10069. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10070. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10071. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10072. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10073. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10074. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10075. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10076. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10077. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10078. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10079. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10080. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10081. sum_total = sum_total + DPRC
  10082. var invoice_type_cn =null;
  10083. if (invoice_type =="00" ){
  10084. invoice_type_cn="销售发票";
  10085. }else if (invoice_type == "01") {
  10086. invoice_type_cn="更正(对冲)发票";
  10087. }else if (invoice_type == "02") {
  10088. invoice_type_cn="其它类型发票";
  10089. }
  10090. html += "_$ta";
  10091. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10092. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10093. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10094. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10095. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10096. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10097. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10098. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10099. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10100. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10101. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10102. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10103. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10104. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10105. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10106. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10107. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10108. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10109. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10110. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10111. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10112. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10113. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10114. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10115. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10116. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10117. html += "_$tag";
  10118. }
  10119. html += "_$ta";
  10120. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10121. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10122. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10123. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10124. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10125. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10126. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10127. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10128. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10129. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10130. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10131. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10132. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  10133. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10134. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10135. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10136. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10137. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10138. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10139. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10140. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10141. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10142. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10143. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10144. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10145. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10146. html += "_$tag";
  10147. $("#dataTable").html(html);
  10148. }else {
  10149. $("#dataTable").html("");
  10150. }
  10151. },
  10152. "error" : function(msg){
  10153. },
  10154. "complete": function(){
  10155. layer.close(tip);
  10156. }
  10157. });
  10158. });
  10159. Date.prototype.Format = function (fmt) {
  10160. var o = {
  10161. "M+": this.getMonth() + 1, //月份
  10162. "d+": this.getDate(), //日
  10163. "h+": this.getHours(), //小时
  10164. "m+": this.getMinutes(), //分
  10165. "s+": this.getSeconds(), //秒
  10166. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10167. "S": this.getMilliseconds() //毫秒
  10168. };
  10169. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10170. for (var k in o)
  10171. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10172. return fmt;
  10173. }
  10174. $("#jrjc").change(function() {
  10175. if ($("#jrjc").prop('checked') == true){
  10176. $("#departmentId").removeAttr("disabled");
  10177. }else {
  10178. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10179. }
  10180. });
  10181. ----------------------------------- SOURCE END -------------------------------------
  10182. !STACK 0
  10183. java.lang.NullPointerException
  10184. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:00.004
  10185. !MESSAGE Error while processing working copy
  10186. !STACK 1
  10187. JavaScript Model Exception: java.lang.NullPointerException
  10188. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10189. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10190. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10191. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10192. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10193. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10194. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10195. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10196. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10197. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10198. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10199. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10200. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10201. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10202. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10203. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10204. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10205. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10206. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10207. Caused by: java.lang.NullPointerException
  10208. Caused by: java.lang.NullPointerException
  10209. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:00.004
  10210. !MESSAGE java.lang.NullPointerException
  10211. !STACK 0
  10212. java.lang.NullPointerException
  10213. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:01.205
  10214. !MESSAGE Exception occurred during problem detection:
  10215. ----------------------------------- SOURCE BEGIN -------------------------------------
  10216. (function(){WdatePicker();})();
  10217. (function(){WdatePicker();})();
  10218. (function(){Data.get();})();
  10219. (function(){Data.set();})();
  10220. (function(){search();})();
  10221. $(function(){
  10222. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10223. getfp();
  10224. });
  10225. var Data = {
  10226. "get" : function(){
  10227. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10228. var tip = layer.load(2);
  10229. var result="";
  10230. var url = "getgyxml.do";
  10231. $.ajax({
  10232. "url" : url,
  10233. "data" : {
  10234. "start_date" : $("#dateBegin").val(),
  10235. "end_date" : $("#dateEnd").val()
  10236. },
  10237. "type" : "POST",
  10238. "dataType" : "json",
  10239. "success" : function(data) {
  10240. if(data != null && data != ""){
  10241. if ( data.status =="success"){
  10242. getfp();
  10243. alert("获取成功!");
  10244. }else {
  10245. alert(data.status);
  10246. }
  10247. }else {
  10248. alert("获取失败!");
  10249. }
  10250. },
  10251. "complete": function(){
  10252. layer.close(tip);
  10253. }
  10254. });
  10255. }else {
  10256. alert("请选择日期!");
  10257. }
  10258. },
  10259. "set" : function(){
  10260. if ( $("#fpid option:selected").text() !=""){
  10261. var tip = layer.load(2);
  10262. var gitem = $("#form1").serialize();
  10263. var jrjc;
  10264. if ($("#jrjc").prop('checked') == true){
  10265. jrjc = $("#departmentId").val();
  10266. }else {
  10267. jrjc ='N'
  10268. }
  10269. var url = "saverk.do";
  10270. $.ajax({
  10271. "url" : url,
  10272. "data" : {
  10273. "gitem" : gitem,
  10274. "jrjc" : jrjc
  10275. },
  10276. "type" : "POST",
  10277. "dataType" : "json",
  10278. "async" : true,
  10279. "success" : function(data) {
  10280. if(data.status ="success"){
  10281. alert("入库成功!");
  10282. window.location.reload();
  10283. }else {
  10284. alert(msg);
  10285. }
  10286. },
  10287. "error": function(){
  10288. alert("确认失败!");
  10289. },
  10290. "complete": function(){
  10291. layer.close(tip);
  10292. }
  10293. });
  10294. }else {
  10295. alert("请选择发票!");
  10296. }
  10297. }
  10298. }
  10299. function getfp(){
  10300. var tip = layer.load(2);
  10301. var url = "getgyfp.do";
  10302. $.ajax({
  10303. "url" : url,
  10304. "type" : "POST",
  10305. "dataType" : "json",
  10306. "async" : true,
  10307. "success" : function(data) {
  10308. if(data != null && data != ""){
  10309. $("#fpid").empty();
  10310. $("#fpid").append("_$tag_____________$tag____");
  10311. for(var i = 0; i < data.length; i++){
  10312. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10313. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10314. }
  10315. }
  10316. },
  10317. "error" : function(msg){
  10318. },
  10319. "complete": function(){
  10320. layer.close(tip);
  10321. }
  10322. });
  10323. }
  10324. $("#fpid").change(function(){
  10325. var tip = layer.load(2);
  10326. var url = "getgyrkxx.do";
  10327. var sum_total=0;
  10328. $.ajax({
  10329. "url" : url,
  10330. "data" : {
  10331. "fpId" : $("#fpid").val()
  10332. },
  10333. "type" : "POST",
  10334. "dataType" : "json",
  10335. "async" : true,
  10336. "success" : function(data) {
  10337. $("#dataTable").html("");
  10338. if(data != null && data != ""){
  10339. var html = "";
  10340. for(var i = 0; i < data.length; i++){
  10341. var ID = data[i].id == null ? "" : data[i].id;
  10342. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10343. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10344. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10345. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10346. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10347. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10348. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10349. var NAME = data[i].name == null ? "" : data[i].name;
  10350. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10351. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10352. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10353. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10354. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10355. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10356. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10357. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10358. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10359. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10360. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10361. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10362. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10363. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10364. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10365. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10366. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10367. sum_total = sum_total + DPRC
  10368. var invoice_type_cn =null;
  10369. if (invoice_type =="00" ){
  10370. invoice_type_cn="销售发票";
  10371. }else if (invoice_type == "01") {
  10372. invoice_type_cn="更正(对冲)发票";
  10373. }else if (invoice_type == "02") {
  10374. invoice_type_cn="其它类型发票";
  10375. }
  10376. html += "_$ta";
  10377. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10378. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10379. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10380. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10381. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10382. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10383. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10384. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10385. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10386. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10387. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10388. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10389. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10390. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10391. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10392. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10393. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10394. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10395. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10396. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10397. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10398. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10399. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10400. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10401. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10402. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10403. html += "_$tag";
  10404. }
  10405. html += "_$ta";
  10406. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10407. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10408. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10409. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10410. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10411. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10412. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10413. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10414. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10415. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10416. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10417. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10418. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  10419. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10420. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10421. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10422. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10423. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10424. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10425. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10426. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10427. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10428. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10429. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10430. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10431. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10432. html += "_$tag";
  10433. $("#dataTable").html(html);
  10434. }else {
  10435. $("#dataTable").html("");
  10436. }
  10437. },
  10438. "error" : function(msg){
  10439. },
  10440. "complete": function(){
  10441. layer.close(tip);
  10442. }
  10443. });
  10444. });
  10445. Date.prototype.Format = function (fmt) {
  10446. var o = {
  10447. "M+": this.getMonth() + 1, //月份
  10448. "d+": this.getDate(), //日
  10449. "h+": this.getHours(), //小时
  10450. "m+": this.getMinutes(), //分
  10451. "s+": this.getSeconds(), //秒
  10452. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10453. "S": this.getMilliseconds() //毫秒
  10454. };
  10455. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10456. for (var k in o)
  10457. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10458. return fmt;
  10459. }
  10460. $("#jrjc").change(function() {
  10461. if ($("#jrjc").prop('checked') == true){
  10462. $("#departmentId").removeAttr("disabled");
  10463. }else {
  10464. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10465. }
  10466. });
  10467. ----------------------------------- SOURCE END -------------------------------------
  10468. !STACK 0
  10469. java.lang.NullPointerException
  10470. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:01.522
  10471. !MESSAGE Exception occurred during problem detection:
  10472. ----------------------------------- SOURCE BEGIN -------------------------------------
  10473. (function(){WdatePicker();})();
  10474. (function(){WdatePicker();})();
  10475. (function(){Data.get();})();
  10476. (function(){Data.set();})();
  10477. (function(){search();})();
  10478. $(function(){
  10479. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10480. getfp();
  10481. });
  10482. var Data = {
  10483. "get" : function(){
  10484. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10485. var tip = layer.load(2);
  10486. var result="";
  10487. var url = "getgyxml.do";
  10488. $.ajax({
  10489. "url" : url,
  10490. "data" : {
  10491. "start_date" : $("#dateBegin").val(),
  10492. "end_date" : $("#dateEnd").val()
  10493. },
  10494. "type" : "POST",
  10495. "dataType" : "json",
  10496. "success" : function(data) {
  10497. if(data != null && data != ""){
  10498. if ( data.status =="success"){
  10499. getfp();
  10500. alert("获取成功!");
  10501. }else {
  10502. alert(data.status);
  10503. }
  10504. }else {
  10505. alert("获取失败!");
  10506. }
  10507. },
  10508. "complete": function(){
  10509. layer.close(tip);
  10510. }
  10511. });
  10512. }else {
  10513. alert("请选择日期!");
  10514. }
  10515. },
  10516. "set" : function(){
  10517. if ( $("#fpid option:selected").text() !=""){
  10518. var tip = layer.load(2);
  10519. var gitem = $("#form1").serialize();
  10520. var jrjc;
  10521. if ($("#jrjc").prop('checked') == true){
  10522. jrjc = $("#departmentId").val();
  10523. }else {
  10524. jrjc ='N'
  10525. }
  10526. var url = "saverk.do";
  10527. $.ajax({
  10528. "url" : url,
  10529. "data" : {
  10530. "gitem" : gitem,
  10531. "jrjc" : jrjc
  10532. },
  10533. "type" : "POST",
  10534. "dataType" : "json",
  10535. "async" : true,
  10536. "success" : function(data) {
  10537. if(data.status ="success"){
  10538. alert("入库成功!");
  10539. window.location.reload();
  10540. }else {
  10541. alert(msg);
  10542. }
  10543. },
  10544. "error": function(){
  10545. alert("确认失败!");
  10546. },
  10547. "complete": function(){
  10548. layer.close(tip);
  10549. }
  10550. });
  10551. }else {
  10552. alert("请选择发票!");
  10553. }
  10554. }
  10555. }
  10556. function getfp(){
  10557. var tip = layer.load(2);
  10558. var url = "getgyfp.do";
  10559. $.ajax({
  10560. "url" : url,
  10561. "type" : "POST",
  10562. "dataType" : "json",
  10563. "async" : true,
  10564. "success" : function(data) {
  10565. if(data != null && data != ""){
  10566. $("#fpid").empty();
  10567. $("#fpid").append("_$tag_____________$tag____");
  10568. for(var i = 0; i < data.length; i++){
  10569. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10570. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10571. }
  10572. }
  10573. },
  10574. "error" : function(msg){
  10575. },
  10576. "complete": function(){
  10577. layer.close(tip);
  10578. }
  10579. });
  10580. }
  10581. $("#fpid").change(function(){
  10582. var tip = layer.load(2);
  10583. var url = "getgyrkxx.do";
  10584. var sum_total=0;
  10585. $.ajax({
  10586. "url" : url,
  10587. "data" : {
  10588. "fpId" : $("#fpid").val()
  10589. },
  10590. "type" : "POST",
  10591. "dataType" : "json",
  10592. "async" : true,
  10593. "success" : function(data) {
  10594. $("#dataTable").html("");
  10595. if(data != null && data != ""){
  10596. var html = "";
  10597. for(var i = 0; i < data.length; i++){
  10598. var ID = data[i].id == null ? "" : data[i].id;
  10599. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10600. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10601. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10602. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10603. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10604. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10605. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10606. var NAME = data[i].name == null ? "" : data[i].name;
  10607. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10608. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10609. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10610. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10611. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10612. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10613. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10614. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10615. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10616. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10617. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10618. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10619. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10620. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10621. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10622. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10623. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10624. sum_total = sum_total + DPRC
  10625. var invoice_type_cn =null;
  10626. if (invoice_type =="00" ){
  10627. invoice_type_cn="销售发票";
  10628. }else if (invoice_type == "01") {
  10629. invoice_type_cn="更正(对冲)发票";
  10630. }else if (invoice_type == "02") {
  10631. invoice_type_cn="其它类型发票";
  10632. }
  10633. html += "_$ta";
  10634. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10635. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10636. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10637. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10638. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10639. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10640. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10641. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10642. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10643. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10644. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10645. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10646. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10647. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10648. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10649. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10650. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10651. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10652. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10653. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10654. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10655. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10656. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10657. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10658. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10659. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10660. html += "_$tag";
  10661. }
  10662. html += "_$ta";
  10663. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10664. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10665. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10666. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10667. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10668. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10669. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10670. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10671. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10672. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10673. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10674. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10675. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  10676. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10677. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10678. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10679. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10680. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10681. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10682. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10683. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10684. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10685. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10686. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10687. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10688. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10689. html += "_$tag";
  10690. $("#dataTable").html(html);
  10691. }else {
  10692. $("#dataTable").html("");
  10693. }
  10694. },
  10695. "error" : function(msg){
  10696. },
  10697. "complete": function(){
  10698. layer.close(tip);
  10699. }
  10700. });
  10701. });
  10702. Date.prototype.Format = function (fmt) {
  10703. var o = {
  10704. "M+": this.getMonth() + 1, //月份
  10705. "d+": this.getDate(), //日
  10706. "h+": this.getHours(), //小时
  10707. "m+": this.getMinutes(), //分
  10708. "s+": this.getSeconds(), //秒
  10709. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10710. "S": this.getMilliseconds() //毫秒
  10711. };
  10712. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10713. for (var k in o)
  10714. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10715. return fmt;
  10716. }
  10717. $("#jrjc").change(function() {
  10718. if ($("#jrjc").prop('checked') == true){
  10719. $("#departmentId").removeAttr("disabled");
  10720. }else {
  10721. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10722. }
  10723. });
  10724. ----------------------------------- SOURCE END -------------------------------------
  10725. !STACK 0
  10726. java.lang.NullPointerException
  10727. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:34:01.523
  10728. !MESSAGE java.lang.NullPointerException
  10729. !STACK 1
  10730. JavaScript Model Exception: java.lang.NullPointerException
  10731. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10732. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  10733. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10734. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10735. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  10736. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  10737. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  10738. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  10739. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  10740. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  10741. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  10742. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  10743. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  10744. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  10745. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  10746. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  10747. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  10748. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  10749. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  10750. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  10751. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  10752. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  10753. Caused by: java.lang.NullPointerException
  10754. Caused by: java.lang.NullPointerException
  10755. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:01.523
  10756. !MESSAGE java.lang.NullPointerException
  10757. !STACK 0
  10758. java.lang.NullPointerException
  10759. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:02.392
  10760. !MESSAGE Exception occurred during problem detection:
  10761. ----------------------------------- SOURCE BEGIN -------------------------------------
  10762. (function(){WdatePicker();})();
  10763. (function(){WdatePicker();})();
  10764. (function(){Data.get();})();
  10765. (function(){Data.set();})();
  10766. (function(){search();})();
  10767. $(function(){
  10768. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10769. getfp();
  10770. });
  10771. var Data = {
  10772. "get" : function(){
  10773. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10774. var tip = layer.load(2);
  10775. var result="";
  10776. var url = "getgyxml.do";
  10777. $.ajax({
  10778. "url" : url,
  10779. "data" : {
  10780. "start_date" : $("#dateBegin").val(),
  10781. "end_date" : $("#dateEnd").val()
  10782. },
  10783. "type" : "POST",
  10784. "dataType" : "json",
  10785. "success" : function(data) {
  10786. if(data != null && data != ""){
  10787. if ( data.status =="success"){
  10788. getfp();
  10789. alert("获取成功!");
  10790. }else {
  10791. alert(data.status);
  10792. }
  10793. }else {
  10794. alert("获取失败!");
  10795. }
  10796. },
  10797. "complete": function(){
  10798. layer.close(tip);
  10799. }
  10800. });
  10801. }else {
  10802. alert("请选择日期!");
  10803. }
  10804. },
  10805. "set" : function(){
  10806. if ( $("#fpid option:selected").text() !=""){
  10807. var tip = layer.load(2);
  10808. var gitem = $("#form1").serialize();
  10809. var jrjc;
  10810. if ($("#jrjc").prop('checked') == true){
  10811. jrjc = $("#departmentId").val();
  10812. }else {
  10813. jrjc ='N'
  10814. }
  10815. var url = "saverk.do";
  10816. $.ajax({
  10817. "url" : url,
  10818. "data" : {
  10819. "gitem" : gitem,
  10820. "jrjc" : jrjc
  10821. },
  10822. "type" : "POST",
  10823. "dataType" : "json",
  10824. "async" : true,
  10825. "success" : function(data) {
  10826. if(data.status ="success"){
  10827. alert("入库成功!");
  10828. window.location.reload();
  10829. }else {
  10830. alert(msg);
  10831. }
  10832. },
  10833. "error": function(){
  10834. alert("确认失败!");
  10835. },
  10836. "complete": function(){
  10837. layer.close(tip);
  10838. }
  10839. });
  10840. }else {
  10841. alert("请选择发票!");
  10842. }
  10843. }
  10844. }
  10845. function getfp(){
  10846. var tip = layer.load(2);
  10847. var url = "getgyfp.do";
  10848. $.ajax({
  10849. "url" : url,
  10850. "type" : "POST",
  10851. "dataType" : "json",
  10852. "async" : true,
  10853. "success" : function(data) {
  10854. if(data != null && data != ""){
  10855. $("#fpid").empty();
  10856. $("#fpid").append("_$tag_____________$tag____");
  10857. for(var i = 0; i < data.length; i++){
  10858. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10859. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10860. }
  10861. }
  10862. },
  10863. "error" : function(msg){
  10864. },
  10865. "complete": function(){
  10866. layer.close(tip);
  10867. }
  10868. });
  10869. }
  10870. $("#fpid").change(function(){
  10871. var tip = layer.load(2);
  10872. var url = "getgyrkxx.do";
  10873. var sum_total=0;
  10874. $.ajax({
  10875. "url" : url,
  10876. "data" : {
  10877. "fpId" : $("#fpid").val()
  10878. },
  10879. "type" : "POST",
  10880. "dataType" : "json",
  10881. "async" : true,
  10882. "success" : function(data) {
  10883. $("#dataTable").html("");
  10884. if(data != null && data != ""){
  10885. var html = "";
  10886. for(var i = 0; i < data.length; i++){
  10887. var ID = data[i].id == null ? "" : data[i].id;
  10888. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10889. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10890. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10891. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10892. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10893. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10894. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10895. var NAME = data[i].name == null ? "" : data[i].name;
  10896. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10897. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10898. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10899. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10900. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10901. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10902. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10903. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10904. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10905. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10906. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10907. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10908. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10909. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10910. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10911. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10912. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10913. sum_total = sum_total + DPRC
  10914. var invoice_type_cn =null;
  10915. if (invoice_type =="00" ){
  10916. invoice_type_cn="销售发票";
  10917. }else if (invoice_type == "01") {
  10918. invoice_type_cn="更正(对冲)发票";
  10919. }else if (invoice_type == "02") {
  10920. invoice_type_cn="其它类型发票";
  10921. }
  10922. html += "_$ta";
  10923. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10924. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10925. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10926. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10927. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10928. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10929. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10930. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10931. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10932. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10933. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10934. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10935. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10936. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10937. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10938. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10939. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10940. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10941. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10942. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10943. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10944. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10945. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10946. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10947. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10948. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10949. html += "_$tag";
  10950. }
  10951. html += "_$ta";
  10952. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10953. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10954. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10955. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10956. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10957. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10958. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10959. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10960. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10961. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10962. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10963. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10964. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  10965. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10966. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10967. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10968. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10969. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10970. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10971. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10972. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10973. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10974. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10975. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10976. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10977. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10978. html += "_$tag";
  10979. $("#dataTable").html(html);
  10980. }else {
  10981. $("#dataTable").html("");
  10982. }
  10983. },
  10984. "error" : function(msg){
  10985. },
  10986. "complete": function(){
  10987. layer.close(tip);
  10988. }
  10989. });
  10990. });
  10991. Date.prototype.Format = function (fmt) {
  10992. var o = {
  10993. "M+": this.getMonth() + 1, //月份
  10994. "d+": this.getDate(), //日
  10995. "h+": this.getHours(), //小时
  10996. "m+": this.getMinutes(), //分
  10997. "s+": this.getSeconds(), //秒
  10998. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10999. "S": this.getMilliseconds() //毫秒
  11000. };
  11001. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11002. for (var k in o)
  11003. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11004. return fmt;
  11005. }
  11006. $("#jrjc").change(function() {
  11007. if ($("#jrjc").prop('checked') == true){
  11008. $("#departmentId").removeAttr("disabled");
  11009. }else {
  11010. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11011. }
  11012. });
  11013. ----------------------------------- SOURCE END -------------------------------------
  11014. !STACK 0
  11015. java.lang.NullPointerException
  11016. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:02.393
  11017. !MESSAGE Error while processing working copy
  11018. !STACK 1
  11019. JavaScript Model Exception: java.lang.NullPointerException
  11020. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11021. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11022. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11023. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11024. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11025. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11026. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11027. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11028. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11029. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11030. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11031. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11032. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11033. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11034. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11035. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11036. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11037. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11038. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11039. Caused by: java.lang.NullPointerException
  11040. Caused by: java.lang.NullPointerException
  11041. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:02.393
  11042. !MESSAGE java.lang.NullPointerException
  11043. !STACK 0
  11044. java.lang.NullPointerException
  11045. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:03.379
  11046. !MESSAGE Exception occurred during problem detection:
  11047. ----------------------------------- SOURCE BEGIN -------------------------------------
  11048. (function(){WdatePicker();})();
  11049. (function(){WdatePicker();})();
  11050. (function(){Data.get();})();
  11051. (function(){Data.set();})();
  11052. (function(){search();})();
  11053. $(function(){
  11054. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11055. getfp();
  11056. });
  11057. var Data = {
  11058. "get" : function(){
  11059. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11060. var tip = layer.load(2);
  11061. var result="";
  11062. var url = "getgyxml.do";
  11063. $.ajax({
  11064. "url" : url,
  11065. "data" : {
  11066. "start_date" : $("#dateBegin").val(),
  11067. "end_date" : $("#dateEnd").val()
  11068. },
  11069. "type" : "POST",
  11070. "dataType" : "json",
  11071. "success" : function(data) {
  11072. if(data != null && data != ""){
  11073. if ( data.status =="success"){
  11074. getfp();
  11075. alert("获取成功!");
  11076. }else {
  11077. alert(data.status);
  11078. }
  11079. }else {
  11080. alert("获取失败!");
  11081. }
  11082. },
  11083. "complete": function(){
  11084. layer.close(tip);
  11085. }
  11086. });
  11087. }else {
  11088. alert("请选择日期!");
  11089. }
  11090. },
  11091. "set" : function(){
  11092. if ( $("#fpid option:selected").text() !=""){
  11093. var tip = layer.load(2);
  11094. var gitem = $("#form1").serialize();
  11095. var jrjc;
  11096. if ($("#jrjc").prop('checked') == true){
  11097. jrjc = $("#departmentId").val();
  11098. }else {
  11099. jrjc ='N'
  11100. }
  11101. var url = "saverk.do";
  11102. $.ajax({
  11103. "url" : url,
  11104. "data" : {
  11105. "gitem" : gitem,
  11106. "jrjc" : jrjc
  11107. },
  11108. "type" : "POST",
  11109. "dataType" : "json",
  11110. "async" : true,
  11111. "success" : function(data) {
  11112. if(data.status ="success"){
  11113. alert("入库成功!");
  11114. window.location.reload();
  11115. }else {
  11116. alert(msg);
  11117. }
  11118. },
  11119. "error": function(){
  11120. alert("确认失败!");
  11121. },
  11122. "complete": function(){
  11123. layer.close(tip);
  11124. }
  11125. });
  11126. }else {
  11127. alert("请选择发票!");
  11128. }
  11129. }
  11130. }
  11131. function getfp(){
  11132. var tip = layer.load(2);
  11133. var url = "getgyfp.do";
  11134. $.ajax({
  11135. "url" : url,
  11136. "type" : "POST",
  11137. "dataType" : "json",
  11138. "async" : true,
  11139. "success" : function(data) {
  11140. if(data != null && data != ""){
  11141. $("#fpid").empty();
  11142. $("#fpid").append("_$tag_____________$tag____");
  11143. for(var i = 0; i < data.length; i++){
  11144. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11145. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11146. }
  11147. }
  11148. },
  11149. "error" : function(msg){
  11150. },
  11151. "complete": function(){
  11152. layer.close(tip);
  11153. }
  11154. });
  11155. }
  11156. $("#fpid").change(function(){
  11157. var tip = layer.load(2);
  11158. var url = "getgyrkxx.do";
  11159. var sum_total=0;
  11160. $.ajax({
  11161. "url" : url,
  11162. "data" : {
  11163. "fpId" : $("#fpid").val()
  11164. },
  11165. "type" : "POST",
  11166. "dataType" : "json",
  11167. "async" : true,
  11168. "success" : function(data) {
  11169. $("#dataTable").html("");
  11170. if(data != null && data != ""){
  11171. var html = "";
  11172. for(var i = 0; i < data.length; i++){
  11173. var ID = data[i].id == null ? "" : data[i].id;
  11174. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11175. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11176. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11177. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11178. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11179. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11180. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11181. var NAME = data[i].name == null ? "" : data[i].name;
  11182. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11183. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11184. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11185. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11186. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11187. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11188. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11189. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11190. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11191. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11192. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11193. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11194. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11195. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11196. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11197. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11198. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11199. sum_total = sum_total + DPRC
  11200. var invoice_type_cn =null;
  11201. if (invoice_type =="00" ){
  11202. invoice_type_cn="销售发票";
  11203. }else if (invoice_type == "01") {
  11204. invoice_type_cn="更正(对冲)发票";
  11205. }else if (invoice_type == "02") {
  11206. invoice_type_cn="其它类型发票";
  11207. }
  11208. html += "_$ta";
  11209. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11210. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11211. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11212. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11213. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11214. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11215. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11216. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11217. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11218. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11219. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11220. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11221. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11222. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11223. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11224. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11225. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11226. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11227. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11228. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11229. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11230. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11231. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11232. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11233. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11234. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11235. html += "_$tag";
  11236. }
  11237. html += "_$ta";
  11238. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11239. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11240. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11241. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11242. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11243. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11244. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11245. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11246. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11247. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11248. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11249. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11250. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  11251. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11252. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11253. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11254. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11255. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11256. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11257. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11258. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11259. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11260. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11261. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11262. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11263. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11264. html += "_$tag";
  11265. $("#dataTable").html(html);
  11266. }else {
  11267. $("#dataTable").html("");
  11268. }
  11269. },
  11270. "error" : function(msg){
  11271. },
  11272. "complete": function(){
  11273. layer.close(tip);
  11274. }
  11275. });
  11276. });
  11277. Date.prototype.Format = function (fmt) {
  11278. var o = {
  11279. "M+": this.getMonth() + 1, //月份
  11280. "d+": this.getDate(), //日
  11281. "h+": this.getHours(), //小时
  11282. "m+": this.getMinutes(), //分
  11283. "s+": this.getSeconds(), //秒
  11284. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11285. "S": this.getMilliseconds() //毫秒
  11286. };
  11287. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11288. for (var k in o)
  11289. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11290. return fmt;
  11291. }
  11292. $("#jrjc").change(function() {
  11293. if ($("#jrjc").prop('checked') == true){
  11294. $("#departmentId").removeAttr("disabled");
  11295. }else {
  11296. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11297. }
  11298. });
  11299. ----------------------------------- SOURCE END -------------------------------------
  11300. !STACK 0
  11301. java.lang.NullPointerException
  11302. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:21.410
  11303. !MESSAGE Exception occurred during problem detection:
  11304. ----------------------------------- SOURCE BEGIN -------------------------------------
  11305. (function(){WdatePicker();})();
  11306. (function(){WdatePicker();})();
  11307. (function(){Data.get();})();
  11308. (function(){Data.set();})();
  11309. (function(){search();})();
  11310. $(function(){
  11311. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11312. getfp();
  11313. });
  11314. var Data = {
  11315. "get" : function(){
  11316. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11317. var tip = layer.load(2);
  11318. var result="";
  11319. var url = "getgyxml.do";
  11320. $.ajax({
  11321. "url" : url,
  11322. "data" : {
  11323. "start_date" : $("#dateBegin").val(),
  11324. "end_date" : $("#dateEnd").val()
  11325. },
  11326. "type" : "POST",
  11327. "dataType" : "json",
  11328. "success" : function(data) {
  11329. if(data != null && data != ""){
  11330. if ( data.status =="success"){
  11331. getfp();
  11332. alert("获取成功!");
  11333. }else {
  11334. alert(data.status);
  11335. }
  11336. }else {
  11337. alert("获取失败!");
  11338. }
  11339. },
  11340. "complete": function(){
  11341. layer.close(tip);
  11342. }
  11343. });
  11344. }else {
  11345. alert("请选择日期!");
  11346. }
  11347. },
  11348. "set" : function(){
  11349. if ( $("#fpid option:selected").text() !=""){
  11350. var tip = layer.load(2);
  11351. var gitem = $("#form1").serialize();
  11352. var jrjc;
  11353. if ($("#jrjc").prop('checked') == true){
  11354. jrjc = $("#departmentId").val();
  11355. }else {
  11356. jrjc ='N'
  11357. }
  11358. var url = "saverk.do";
  11359. $.ajax({
  11360. "url" : url,
  11361. "data" : {
  11362. "gitem" : gitem,
  11363. "jrjc" : jrjc
  11364. },
  11365. "type" : "POST",
  11366. "dataType" : "json",
  11367. "async" : true,
  11368. "success" : function(data) {
  11369. if(data.status ="success"){
  11370. alert("入库成功!");
  11371. window.location.reload();
  11372. }else {
  11373. alert(msg);
  11374. }
  11375. },
  11376. "error": function(){
  11377. alert("确认失败!");
  11378. },
  11379. "complete": function(){
  11380. layer.close(tip);
  11381. }
  11382. });
  11383. }else {
  11384. alert("请选择发票!");
  11385. }
  11386. }
  11387. }
  11388. function getfp(){
  11389. var tip = layer.load(2);
  11390. var url = "getgyfp.do";
  11391. $.ajax({
  11392. "url" : url,
  11393. "type" : "POST",
  11394. "dataType" : "json",
  11395. "async" : true,
  11396. "success" : function(data) {
  11397. if(data != null && data != ""){
  11398. $("#fpid").empty();
  11399. $("#fpid").append("_$tag_____________$tag____");
  11400. for(var i = 0; i < data.length; i++){
  11401. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11402. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11403. }
  11404. }
  11405. },
  11406. "error" : function(msg){
  11407. },
  11408. "complete": function(){
  11409. layer.close(tip);
  11410. }
  11411. });
  11412. }
  11413. $("#fpid").change(function(){
  11414. var tip = layer.load(2);
  11415. var url = "getgyrkxx.do";
  11416. var sum_total=0;
  11417. $.ajax({
  11418. "url" : url,
  11419. "data" : {
  11420. "fpId" : $("#fpid").val()
  11421. },
  11422. "type" : "POST",
  11423. "dataType" : "json",
  11424. "async" : true,
  11425. "success" : function(data) {
  11426. $("#dataTable").html("");
  11427. if(data != null && data != ""){
  11428. var html = "";
  11429. for(var i = 0; i < data.length; i++){
  11430. var ID = data[i].id == null ? "" : data[i].id;
  11431. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11432. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11433. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11434. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11435. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11436. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11437. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11438. var NAME = data[i].name == null ? "" : data[i].name;
  11439. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11440. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11441. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11442. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11443. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11444. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11445. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11446. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11447. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11448. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11449. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11450. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11451. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11452. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11453. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11454. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11455. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11456. sum_total = sum_total + DPRC
  11457. var invoice_type_cn =null;
  11458. if (invoice_type =="00" ){
  11459. invoice_type_cn="销售发票";
  11460. }else if (invoice_type == "01") {
  11461. invoice_type_cn="更正(对冲)发票";
  11462. }else if (invoice_type == "02") {
  11463. invoice_type_cn="其它类型发票";
  11464. }
  11465. html += "_$ta";
  11466. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11467. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11468. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11469. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11470. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11471. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11472. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11473. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11474. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11475. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11476. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11477. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11478. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11479. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11480. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11481. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11482. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11483. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11484. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11485. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11486. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11487. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11488. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11489. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11490. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11491. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11492. html += "_$tag";
  11493. }
  11494. html += "_$ta";
  11495. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11496. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11497. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11498. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11499. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11500. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11501. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11502. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11503. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11504. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11505. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11506. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11507. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  11508. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11509. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11510. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11511. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11512. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11513. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11514. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11515. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11516. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11517. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11518. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11519. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11520. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11521. html += "_$tag";
  11522. $("#dataTable").html(html);
  11523. }else {
  11524. $("#dataTable").html("");
  11525. }
  11526. },
  11527. "error" : function(msg){
  11528. },
  11529. "complete": function(){
  11530. layer.close(tip);
  11531. }
  11532. });
  11533. });
  11534. Date.prototype.Format = function (fmt) {
  11535. var o = {
  11536. "M+": this.getMonth() + 1, //月份
  11537. "d+": this.getDate(), //日
  11538. "h+": this.getHours(), //小时
  11539. "m+": this.getMinutes(), //分
  11540. "s+": this.getSeconds(), //秒
  11541. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11542. "S": this.getMilliseconds() //毫秒
  11543. };
  11544. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11545. for (var k in o)
  11546. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11547. return fmt;
  11548. }
  11549. $("#jrjc").change(function() {
  11550. if ($("#jrjc").prop('checked') == true){
  11551. $("#departmentId").removeAttr("disabled");
  11552. }else {
  11553. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11554. }
  11555. });
  11556. ----------------------------------- SOURCE END -------------------------------------
  11557. !STACK 0
  11558. java.lang.NullPointerException
  11559. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:21.411
  11560. !MESSAGE Error while processing working copy
  11561. !STACK 1
  11562. JavaScript Model Exception: java.lang.NullPointerException
  11563. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11564. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11565. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11566. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11567. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11568. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11569. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11570. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11571. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11572. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11573. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11574. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11575. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11576. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11577. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11578. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11579. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11580. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11581. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11582. Caused by: java.lang.NullPointerException
  11583. Caused by: java.lang.NullPointerException
  11584. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:21.411
  11585. !MESSAGE java.lang.NullPointerException
  11586. !STACK 0
  11587. java.lang.NullPointerException
  11588. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:22.465
  11589. !MESSAGE Exception occurred during problem detection:
  11590. ----------------------------------- SOURCE BEGIN -------------------------------------
  11591. (function(){WdatePicker();})();
  11592. (function(){WdatePicker();})();
  11593. (function(){Data.get();})();
  11594. (function(){Data.set();})();
  11595. (function(){search();})();
  11596. $(function(){
  11597. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11598. getfp();
  11599. });
  11600. var Data = {
  11601. "get" : function(){
  11602. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11603. var tip = layer.load(2);
  11604. var result="";
  11605. var url = "getgyxml.do";
  11606. $.ajax({
  11607. "url" : url,
  11608. "data" : {
  11609. "start_date" : $("#dateBegin").val(),
  11610. "end_date" : $("#dateEnd").val()
  11611. },
  11612. "type" : "POST",
  11613. "dataType" : "json",
  11614. "success" : function(data) {
  11615. if(data != null && data != ""){
  11616. if ( data.status =="success"){
  11617. getfp();
  11618. alert("获取成功!");
  11619. }else {
  11620. alert(data.status);
  11621. }
  11622. }else {
  11623. alert("获取失败!");
  11624. }
  11625. },
  11626. "complete": function(){
  11627. layer.close(tip);
  11628. }
  11629. });
  11630. }else {
  11631. alert("请选择日期!");
  11632. }
  11633. },
  11634. "set" : function(){
  11635. if ( $("#fpid option:selected").text() !=""){
  11636. var tip = layer.load(2);
  11637. var gitem = $("#form1").serialize();
  11638. var jrjc;
  11639. if ($("#jrjc").prop('checked') == true){
  11640. jrjc = $("#departmentId").val();
  11641. }else {
  11642. jrjc ='N'
  11643. }
  11644. var url = "saverk.do";
  11645. $.ajax({
  11646. "url" : url,
  11647. "data" : {
  11648. "gitem" : gitem,
  11649. "jrjc" : jrjc
  11650. },
  11651. "type" : "POST",
  11652. "dataType" : "json",
  11653. "async" : true,
  11654. "success" : function(data) {
  11655. if(data.status ="success"){
  11656. alert("入库成功!");
  11657. window.location.reload();
  11658. }else {
  11659. alert(msg);
  11660. }
  11661. },
  11662. "error": function(){
  11663. alert("确认失败!");
  11664. },
  11665. "complete": function(){
  11666. layer.close(tip);
  11667. }
  11668. });
  11669. }else {
  11670. alert("请选择发票!");
  11671. }
  11672. }
  11673. }
  11674. function getfp(){
  11675. var tip = layer.load(2);
  11676. var url = "getgyfp.do";
  11677. $.ajax({
  11678. "url" : url,
  11679. "type" : "POST",
  11680. "dataType" : "json",
  11681. "async" : true,
  11682. "success" : function(data) {
  11683. if(data != null && data != ""){
  11684. $("#fpid").empty();
  11685. $("#fpid").append("_$tag_____________$tag____");
  11686. for(var i = 0; i < data.length; i++){
  11687. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11688. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11689. }
  11690. }
  11691. },
  11692. "error" : function(msg){
  11693. },
  11694. "complete": function(){
  11695. layer.close(tip);
  11696. }
  11697. });
  11698. }
  11699. $("#fpid").change(function(){
  11700. var tip = layer.load(2);
  11701. var url = "getgyrkxx.do";
  11702. var sum_total=0;
  11703. $.ajax({
  11704. "url" : url,
  11705. "data" : {
  11706. "fpId" : $("#fpid").val()
  11707. },
  11708. "type" : "POST",
  11709. "dataType" : "json",
  11710. "async" : true,
  11711. "success" : function(data) {
  11712. $("#dataTable").html("");
  11713. if(data != null && data != ""){
  11714. var html = "";
  11715. for(var i = 0; i < data.length; i++){
  11716. var ID = data[i].id == null ? "" : data[i].id;
  11717. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11718. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11719. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11720. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11721. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11722. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11723. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11724. var NAME = data[i].name == null ? "" : data[i].name;
  11725. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11726. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11727. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11728. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11729. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11730. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11731. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11732. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11733. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11734. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11735. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11736. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11737. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11738. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11739. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11740. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11741. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11742. sum_total = sum_total + DPRC
  11743. var invoice_type_cn =null;
  11744. if (invoice_type =="00" ){
  11745. invoice_type_cn="销售发票";
  11746. }else if (invoice_type == "01") {
  11747. invoice_type_cn="更正(对冲)发票";
  11748. }else if (invoice_type == "02") {
  11749. invoice_type_cn="其它类型发票";
  11750. }
  11751. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11775. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11776. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11777. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11778. html += "_$tag";
  11779. }
  11780. html += "_$ta";
  11781. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11782. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11783. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11784. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11785. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11786. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11787. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11788. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11789. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11790. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11791. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11792. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11793. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  11794. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11795. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11796. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11797. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11798. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11799. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11800. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11801. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11802. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11803. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11804. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11805. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11806. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11807. html += "_$tag";
  11808. $("#dataTable").html(html);
  11809. }else {
  11810. $("#dataTable").html("");
  11811. }
  11812. },
  11813. "error" : function(msg){
  11814. },
  11815. "complete": function(){
  11816. layer.close(tip);
  11817. }
  11818. });
  11819. });
  11820. Date.prototype.Format = function (fmt) {
  11821. var o = {
  11822. "M+": this.getMonth() + 1, //月份
  11823. "d+": this.getDate(), //日
  11824. "h+": this.getHours(), //小时
  11825. "m+": this.getMinutes(), //分
  11826. "s+": this.getSeconds(), //秒
  11827. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11828. "S": this.getMilliseconds() //毫秒
  11829. };
  11830. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11831. for (var k in o)
  11832. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11833. return fmt;
  11834. }
  11835. $("#jrjc").change(function() {
  11836. if ($("#jrjc").prop('checked') == true){
  11837. $("#departmentId").removeAttr("disabled");
  11838. }else {
  11839. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11840. }
  11841. });
  11842. ----------------------------------- SOURCE END -------------------------------------
  11843. !STACK 0
  11844. java.lang.NullPointerException
  11845. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:36.357
  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. var sum_total=0;
  11960. $.ajax({
  11961. "url" : url,
  11962. "data" : {
  11963. "fpId" : $("#fpid").val()
  11964. },
  11965. "type" : "POST",
  11966. "dataType" : "json",
  11967. "async" : true,
  11968. "success" : function(data) {
  11969. $("#dataTable").html("");
  11970. if(data != null && data != ""){
  11971. var html = "";
  11972. for(var i = 0; i < data.length; i++){
  11973. var ID = data[i].id == null ? "" : data[i].id;
  11974. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11975. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11976. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11977. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11978. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11979. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11980. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11981. var NAME = data[i].name == null ? "" : data[i].name;
  11982. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11983. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11984. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11985. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11986. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11987. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11988. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11989. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11990. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11991. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11992. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11993. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11994. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11995. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11996. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11997. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11998. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11999. sum_total = sum_total + DPRC
  12000. var invoice_type_cn =null;
  12001. if (invoice_type =="00" ){
  12002. invoice_type_cn="销售发票";
  12003. }else if (invoice_type == "01") {
  12004. invoice_type_cn="更正(对冲)发票";
  12005. }else if (invoice_type == "02") {
  12006. invoice_type_cn="其它类型发票";
  12007. }
  12008. html += "_$ta";
  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_____________$tag__________________________________________________________________________________________________________________________$tag";
  12034. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12035. html += "_$tag";
  12036. }
  12037. html += "_$ta";
  12038. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12039. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12040. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12041. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12042. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12043. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12044. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12045. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12046. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12047. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12048. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12049. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12050. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  12051. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12052. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12053. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12054. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12055. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12056. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12057. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12058. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12059. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12060. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12061. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12062. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12063. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12064. html += "_$tag";
  12065. $("#dataTable").html(html);
  12066. }else {
  12067. $("#dataTable").html("");
  12068. }
  12069. },
  12070. "error" : function(msg){
  12071. },
  12072. "complete": function(){
  12073. layer.close(tip);
  12074. }
  12075. });
  12076. });
  12077. Date.prototype.Format = function (fmt) {
  12078. var o = {
  12079. "M+": this.getMonth() + 1, //月份
  12080. "d+": this.getDate(), //日
  12081. "h+": this.getHours(), //小时
  12082. "m+": this.getMinutes(), //分
  12083. "s+": this.getSeconds(), //秒
  12084. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12085. "S": this.getMilliseconds() //毫秒
  12086. };
  12087. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12088. for (var k in o)
  12089. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12090. return fmt;
  12091. }
  12092. $("#jrjc").change(function() {
  12093. if ($("#jrjc").prop('checked') == true){
  12094. $("#departmentId").removeAttr("disabled");
  12095. }else {
  12096. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12097. }
  12098. });
  12099. ----------------------------------- SOURCE END -------------------------------------
  12100. !STACK 0
  12101. java.lang.NullPointerException
  12102. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:36.358
  12103. !MESSAGE Error while processing working copy
  12104. !STACK 1
  12105. JavaScript Model Exception: java.lang.NullPointerException
  12106. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12107. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12108. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12109. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12110. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12111. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12112. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12113. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12114. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12115. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12116. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12117. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12118. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12119. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12120. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12121. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12122. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12123. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12124. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12125. Caused by: java.lang.NullPointerException
  12126. Caused by: java.lang.NullPointerException
  12127. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:36.358
  12128. !MESSAGE java.lang.NullPointerException
  12129. !STACK 0
  12130. java.lang.NullPointerException
  12131. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:37.387
  12132. !MESSAGE Exception occurred during problem detection:
  12133. ----------------------------------- SOURCE BEGIN -------------------------------------
  12134. (function(){WdatePicker();})();
  12135. (function(){WdatePicker();})();
  12136. (function(){Data.get();})();
  12137. (function(){Data.set();})();
  12138. (function(){search();})();
  12139. $(function(){
  12140. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12141. getfp();
  12142. });
  12143. var Data = {
  12144. "get" : function(){
  12145. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12146. var tip = layer.load(2);
  12147. var result="";
  12148. var url = "getgyxml.do";
  12149. $.ajax({
  12150. "url" : url,
  12151. "data" : {
  12152. "start_date" : $("#dateBegin").val(),
  12153. "end_date" : $("#dateEnd").val()
  12154. },
  12155. "type" : "POST",
  12156. "dataType" : "json",
  12157. "success" : function(data) {
  12158. if(data != null && data != ""){
  12159. if ( data.status =="success"){
  12160. getfp();
  12161. alert("获取成功!");
  12162. }else {
  12163. alert(data.status);
  12164. }
  12165. }else {
  12166. alert("获取失败!");
  12167. }
  12168. },
  12169. "complete": function(){
  12170. layer.close(tip);
  12171. }
  12172. });
  12173. }else {
  12174. alert("请选择日期!");
  12175. }
  12176. },
  12177. "set" : function(){
  12178. if ( $("#fpid option:selected").text() !=""){
  12179. var tip = layer.load(2);
  12180. var gitem = $("#form1").serialize();
  12181. var jrjc;
  12182. if ($("#jrjc").prop('checked') == true){
  12183. jrjc = $("#departmentId").val();
  12184. }else {
  12185. jrjc ='N'
  12186. }
  12187. var url = "saverk.do";
  12188. $.ajax({
  12189. "url" : url,
  12190. "data" : {
  12191. "gitem" : gitem,
  12192. "jrjc" : jrjc
  12193. },
  12194. "type" : "POST",
  12195. "dataType" : "json",
  12196. "async" : true,
  12197. "success" : function(data) {
  12198. if(data.status ="success"){
  12199. alert("入库成功!");
  12200. window.location.reload();
  12201. }else {
  12202. alert(msg);
  12203. }
  12204. },
  12205. "error": function(){
  12206. alert("确认失败!");
  12207. },
  12208. "complete": function(){
  12209. layer.close(tip);
  12210. }
  12211. });
  12212. }else {
  12213. alert("请选择发票!");
  12214. }
  12215. }
  12216. }
  12217. function getfp(){
  12218. var tip = layer.load(2);
  12219. var url = "getgyfp.do";
  12220. $.ajax({
  12221. "url" : url,
  12222. "type" : "POST",
  12223. "dataType" : "json",
  12224. "async" : true,
  12225. "success" : function(data) {
  12226. if(data != null && data != ""){
  12227. $("#fpid").empty();
  12228. $("#fpid").append("_$tag_____________$tag____");
  12229. for(var i = 0; i < data.length; i++){
  12230. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12231. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12232. }
  12233. }
  12234. },
  12235. "error" : function(msg){
  12236. },
  12237. "complete": function(){
  12238. layer.close(tip);
  12239. }
  12240. });
  12241. }
  12242. $("#fpid").change(function(){
  12243. var tip = layer.load(2);
  12244. var url = "getgyrkxx.do";
  12245. var sum_total=0;
  12246. $.ajax({
  12247. "url" : url,
  12248. "data" : {
  12249. "fpId" : $("#fpid").val()
  12250. },
  12251. "type" : "POST",
  12252. "dataType" : "json",
  12253. "async" : true,
  12254. "success" : function(data) {
  12255. $("#dataTable").html("");
  12256. if(data != null && data != ""){
  12257. var html = "";
  12258. for(var i = 0; i < data.length; i++){
  12259. var ID = data[i].id == null ? "" : data[i].id;
  12260. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12261. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12262. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12263. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12264. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12265. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12266. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12267. var NAME = data[i].name == null ? "" : data[i].name;
  12268. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12269. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12270. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12271. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12272. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12273. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12274. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12275. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12276. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12277. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12278. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12279. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12280. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12281. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12282. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12283. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12284. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12285. sum_total = sum_total + DPRC
  12286. var invoice_type_cn =null;
  12287. if (invoice_type =="00" ){
  12288. invoice_type_cn="销售发票";
  12289. }else if (invoice_type == "01") {
  12290. invoice_type_cn="更正(对冲)发票";
  12291. }else if (invoice_type == "02") {
  12292. invoice_type_cn="其它类型发票";
  12293. }
  12294. html += "_$ta";
  12295. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12296. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12297. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12298. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12299. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12300. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12301. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12302. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12303. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12304. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12305. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12306. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12307. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12308. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12309. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12310. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12311. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12312. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12313. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12314. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12315. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12316. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12317. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12318. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12319. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12320. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12321. html += "_$tag";
  12322. }
  12323. html += "_$ta";
  12324. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12325. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12326. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12327. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12328. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12329. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12330. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12331. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12332. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12333. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12334. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12335. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12336. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  12337. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12338. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12339. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12340. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12341. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12342. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12343. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12344. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12345. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12346. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12347. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12348. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12349. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12350. html += "_$tag";
  12351. $("#dataTable").html(html);
  12352. }else {
  12353. $("#dataTable").html("");
  12354. }
  12355. },
  12356. "error" : function(msg){
  12357. },
  12358. "complete": function(){
  12359. layer.close(tip);
  12360. }
  12361. });
  12362. });
  12363. Date.prototype.Format = function (fmt) {
  12364. var o = {
  12365. "M+": this.getMonth() + 1, //月份
  12366. "d+": this.getDate(), //日
  12367. "h+": this.getHours(), //小时
  12368. "m+": this.getMinutes(), //分
  12369. "s+": this.getSeconds(), //秒
  12370. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12371. "S": this.getMilliseconds() //毫秒
  12372. };
  12373. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12374. for (var k in o)
  12375. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12376. return fmt;
  12377. }
  12378. $("#jrjc").change(function() {
  12379. if ($("#jrjc").prop('checked') == true){
  12380. $("#departmentId").removeAttr("disabled");
  12381. }else {
  12382. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12383. }
  12384. });
  12385. ----------------------------------- SOURCE END -------------------------------------
  12386. !STACK 0
  12387. java.lang.NullPointerException
  12388. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:38.003
  12389. !MESSAGE Exception occurred during problem detection:
  12390. ----------------------------------- SOURCE BEGIN -------------------------------------
  12391. (function(){WdatePicker();})();
  12392. (function(){WdatePicker();})();
  12393. (function(){Data.get();})();
  12394. (function(){Data.set();})();
  12395. (function(){search();})();
  12396. $(function(){
  12397. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12398. getfp();
  12399. });
  12400. var Data = {
  12401. "get" : function(){
  12402. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12403. var tip = layer.load(2);
  12404. var result="";
  12405. var url = "getgyxml.do";
  12406. $.ajax({
  12407. "url" : url,
  12408. "data" : {
  12409. "start_date" : $("#dateBegin").val(),
  12410. "end_date" : $("#dateEnd").val()
  12411. },
  12412. "type" : "POST",
  12413. "dataType" : "json",
  12414. "success" : function(data) {
  12415. if(data != null && data != ""){
  12416. if ( data.status =="success"){
  12417. getfp();
  12418. alert("获取成功!");
  12419. }else {
  12420. alert(data.status);
  12421. }
  12422. }else {
  12423. alert("获取失败!");
  12424. }
  12425. },
  12426. "complete": function(){
  12427. layer.close(tip);
  12428. }
  12429. });
  12430. }else {
  12431. alert("请选择日期!");
  12432. }
  12433. },
  12434. "set" : function(){
  12435. if ( $("#fpid option:selected").text() !=""){
  12436. var tip = layer.load(2);
  12437. var gitem = $("#form1").serialize();
  12438. var jrjc;
  12439. if ($("#jrjc").prop('checked') == true){
  12440. jrjc = $("#departmentId").val();
  12441. }else {
  12442. jrjc ='N'
  12443. }
  12444. var url = "saverk.do";
  12445. $.ajax({
  12446. "url" : url,
  12447. "data" : {
  12448. "gitem" : gitem,
  12449. "jrjc" : jrjc
  12450. },
  12451. "type" : "POST",
  12452. "dataType" : "json",
  12453. "async" : true,
  12454. "success" : function(data) {
  12455. if(data.status ="success"){
  12456. alert("入库成功!");
  12457. window.location.reload();
  12458. }else {
  12459. alert(msg);
  12460. }
  12461. },
  12462. "error": function(){
  12463. alert("确认失败!");
  12464. },
  12465. "complete": function(){
  12466. layer.close(tip);
  12467. }
  12468. });
  12469. }else {
  12470. alert("请选择发票!");
  12471. }
  12472. }
  12473. }
  12474. function getfp(){
  12475. var tip = layer.load(2);
  12476. var url = "getgyfp.do";
  12477. $.ajax({
  12478. "url" : url,
  12479. "type" : "POST",
  12480. "dataType" : "json",
  12481. "async" : true,
  12482. "success" : function(data) {
  12483. if(data != null && data != ""){
  12484. $("#fpid").empty();
  12485. $("#fpid").append("_$tag_____________$tag____");
  12486. for(var i = 0; i < data.length; i++){
  12487. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12488. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12489. }
  12490. }
  12491. },
  12492. "error" : function(msg){
  12493. },
  12494. "complete": function(){
  12495. layer.close(tip);
  12496. }
  12497. });
  12498. }
  12499. $("#fpid").change(function(){
  12500. var tip = layer.load(2);
  12501. var url = "getgyrkxx.do";
  12502. var sum_total=0;
  12503. $.ajax({
  12504. "url" : url,
  12505. "data" : {
  12506. "fpId" : $("#fpid").val()
  12507. },
  12508. "type" : "POST",
  12509. "dataType" : "json",
  12510. "async" : true,
  12511. "success" : function(data) {
  12512. $("#dataTable").html("");
  12513. if(data != null && data != ""){
  12514. var html = "";
  12515. for(var i = 0; i < data.length; i++){
  12516. var ID = data[i].id == null ? "" : data[i].id;
  12517. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12518. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12519. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12520. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12521. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12522. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12523. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12524. var NAME = data[i].name == null ? "" : data[i].name;
  12525. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12526. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12527. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12528. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12529. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12530. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12531. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12532. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12533. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12534. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12535. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12536. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12537. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12538. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12539. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12540. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12541. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12542. sum_total = sum_total + DPRC
  12543. var invoice_type_cn =null;
  12544. if (invoice_type =="00" ){
  12545. invoice_type_cn="销售发票";
  12546. }else if (invoice_type == "01") {
  12547. invoice_type_cn="更正(对冲)发票";
  12548. }else if (invoice_type == "02") {
  12549. invoice_type_cn="其它类型发票";
  12550. }
  12551. html += "_$ta";
  12552. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12553. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12554. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12555. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12556. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12557. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12558. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12559. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12560. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12561. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12562. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12563. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12564. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12565. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12566. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12567. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12568. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12569. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12570. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12571. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12572. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12573. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12574. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12575. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12576. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12577. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12578. html += "_$tag";
  12579. }
  12580. html += "_$ta";
  12581. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12582. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12583. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12584. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12585. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12586. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12587. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12588. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12589. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12590. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12591. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12592. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12593. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  12594. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12595. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12596. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12597. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12598. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12599. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12600. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12601. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12602. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12603. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12604. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12605. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12606. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12607. html += "_$tag";
  12608. $("#dataTable").html(html);
  12609. }else {
  12610. $("#dataTable").html("");
  12611. }
  12612. },
  12613. "error" : function(msg){
  12614. },
  12615. "complete": function(){
  12616. layer.close(tip);
  12617. }
  12618. });
  12619. });
  12620. Date.prototype.Format = function (fmt) {
  12621. var o = {
  12622. "M+": this.getMonth() + 1, //月份
  12623. "d+": this.getDate(), //日
  12624. "h+": this.getHours(), //小时
  12625. "m+": this.getMinutes(), //分
  12626. "s+": this.getSeconds(), //秒
  12627. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12628. "S": this.getMilliseconds() //毫秒
  12629. };
  12630. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12631. for (var k in o)
  12632. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12633. return fmt;
  12634. }
  12635. $("#jrjc").change(function() {
  12636. if ($("#jrjc").prop('checked') == true){
  12637. $("#departmentId").removeAttr("disabled");
  12638. }else {
  12639. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12640. }
  12641. });
  12642. ----------------------------------- SOURCE END -------------------------------------
  12643. !STACK 0
  12644. java.lang.NullPointerException
  12645. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:38.004
  12646. !MESSAGE Error while processing working copy
  12647. !STACK 1
  12648. JavaScript Model Exception: java.lang.NullPointerException
  12649. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12650. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12651. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12652. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12653. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12654. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12655. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12656. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12657. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12658. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12659. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12660. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12661. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12662. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12663. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12664. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12665. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12666. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12667. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12668. Caused by: java.lang.NullPointerException
  12669. Caused by: java.lang.NullPointerException
  12670. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:38.004
  12671. !MESSAGE java.lang.NullPointerException
  12672. !STACK 0
  12673. java.lang.NullPointerException
  12674. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:38.699
  12675. !MESSAGE Exception occurred during problem detection:
  12676. ----------------------------------- SOURCE BEGIN -------------------------------------
  12677. (function(){WdatePicker();})();
  12678. (function(){WdatePicker();})();
  12679. (function(){Data.get();})();
  12680. (function(){Data.set();})();
  12681. (function(){search();})();
  12682. $(function(){
  12683. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12684. getfp();
  12685. });
  12686. var Data = {
  12687. "get" : function(){
  12688. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12689. var tip = layer.load(2);
  12690. var result="";
  12691. var url = "getgyxml.do";
  12692. $.ajax({
  12693. "url" : url,
  12694. "data" : {
  12695. "start_date" : $("#dateBegin").val(),
  12696. "end_date" : $("#dateEnd").val()
  12697. },
  12698. "type" : "POST",
  12699. "dataType" : "json",
  12700. "success" : function(data) {
  12701. if(data != null && data != ""){
  12702. if ( data.status =="success"){
  12703. getfp();
  12704. alert("获取成功!");
  12705. }else {
  12706. alert(data.status);
  12707. }
  12708. }else {
  12709. alert("获取失败!");
  12710. }
  12711. },
  12712. "complete": function(){
  12713. layer.close(tip);
  12714. }
  12715. });
  12716. }else {
  12717. alert("请选择日期!");
  12718. }
  12719. },
  12720. "set" : function(){
  12721. if ( $("#fpid option:selected").text() !=""){
  12722. var tip = layer.load(2);
  12723. var gitem = $("#form1").serialize();
  12724. var jrjc;
  12725. if ($("#jrjc").prop('checked') == true){
  12726. jrjc = $("#departmentId").val();
  12727. }else {
  12728. jrjc ='N'
  12729. }
  12730. var url = "saverk.do";
  12731. $.ajax({
  12732. "url" : url,
  12733. "data" : {
  12734. "gitem" : gitem,
  12735. "jrjc" : jrjc
  12736. },
  12737. "type" : "POST",
  12738. "dataType" : "json",
  12739. "async" : true,
  12740. "success" : function(data) {
  12741. if(data.status ="success"){
  12742. alert("入库成功!");
  12743. window.location.reload();
  12744. }else {
  12745. alert(msg);
  12746. }
  12747. },
  12748. "error": function(){
  12749. alert("确认失败!");
  12750. },
  12751. "complete": function(){
  12752. layer.close(tip);
  12753. }
  12754. });
  12755. }else {
  12756. alert("请选择发票!");
  12757. }
  12758. }
  12759. }
  12760. function getfp(){
  12761. var tip = layer.load(2);
  12762. var url = "getgyfp.do";
  12763. $.ajax({
  12764. "url" : url,
  12765. "type" : "POST",
  12766. "dataType" : "json",
  12767. "async" : true,
  12768. "success" : function(data) {
  12769. if(data != null && data != ""){
  12770. $("#fpid").empty();
  12771. $("#fpid").append("_$tag_____________$tag____");
  12772. for(var i = 0; i < data.length; i++){
  12773. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12774. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12775. }
  12776. }
  12777. },
  12778. "error" : function(msg){
  12779. },
  12780. "complete": function(){
  12781. layer.close(tip);
  12782. }
  12783. });
  12784. }
  12785. $("#fpid").change(function(){
  12786. var tip = layer.load(2);
  12787. var url = "getgyrkxx.do";
  12788. var sum_total=0;
  12789. $.ajax({
  12790. "url" : url,
  12791. "data" : {
  12792. "fpId" : $("#fpid").val()
  12793. },
  12794. "type" : "POST",
  12795. "dataType" : "json",
  12796. "async" : true,
  12797. "success" : function(data) {
  12798. $("#dataTable").html("");
  12799. if(data != null && data != ""){
  12800. var html = "";
  12801. for(var i = 0; i < data.length; i++){
  12802. var ID = data[i].id == null ? "" : data[i].id;
  12803. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12804. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12805. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12806. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12807. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12808. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12809. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12810. var NAME = data[i].name == null ? "" : data[i].name;
  12811. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12812. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12813. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12814. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12815. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12816. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12817. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12818. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12819. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12820. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12821. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12822. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12823. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12824. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12825. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12826. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12827. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12828. sum_total = sum_total + DPRC
  12829. var invoice_type_cn =null;
  12830. if (invoice_type =="00" ){
  12831. invoice_type_cn="销售发票";
  12832. }else if (invoice_type == "01") {
  12833. invoice_type_cn="更正(对冲)发票";
  12834. }else if (invoice_type == "02") {
  12835. invoice_type_cn="其它类型发票";
  12836. }
  12837. html += "_$ta";
  12838. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12839. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12840. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12841. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12842. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12843. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12844. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12845. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12846. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12847. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12848. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12849. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12850. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12851. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12852. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12853. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12854. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12855. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12856. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12857. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12858. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12859. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12860. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12861. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12862. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12863. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12864. html += "_$tag";
  12865. }
  12866. html += "_$ta";
  12867. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12868. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12869. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12870. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12871. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12872. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12873. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12874. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12875. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12876. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12877. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12878. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12879. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  12880. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12881. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12882. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12883. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12884. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12885. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12886. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12887. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12888. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12889. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12890. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12891. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12892. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12893. html += "_$tag";
  12894. $("#dataTable").html(html);
  12895. }else {
  12896. $("#dataTable").html("");
  12897. }
  12898. },
  12899. "error" : function(msg){
  12900. },
  12901. "complete": function(){
  12902. layer.close(tip);
  12903. }
  12904. });
  12905. });
  12906. Date.prototype.Format = function (fmt) {
  12907. var o = {
  12908. "M+": this.getMonth() + 1, //月份
  12909. "d+": this.getDate(), //日
  12910. "h+": this.getHours(), //小时
  12911. "m+": this.getMinutes(), //分
  12912. "s+": this.getSeconds(), //秒
  12913. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12914. "S": this.getMilliseconds() //毫秒
  12915. };
  12916. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12917. for (var k in o)
  12918. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12919. return fmt;
  12920. }
  12921. $("#jrjc").change(function() {
  12922. if ($("#jrjc").prop('checked') == true){
  12923. $("#departmentId").removeAttr("disabled");
  12924. }else {
  12925. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12926. }
  12927. });
  12928. ----------------------------------- SOURCE END -------------------------------------
  12929. !STACK 0
  12930. java.lang.NullPointerException
  12931. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:55.575
  12932. !MESSAGE Exception occurred during problem detection:
  12933. ----------------------------------- SOURCE BEGIN -------------------------------------
  12934. (function(){WdatePicker();})();
  12935. (function(){WdatePicker();})();
  12936. (function(){Data.get();})();
  12937. (function(){Data.set();})();
  12938. (function(){search();})();
  12939. $(function(){
  12940. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12941. getfp();
  12942. });
  12943. var Data = {
  12944. "get" : function(){
  12945. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12946. var tip = layer.load(2);
  12947. var result="";
  12948. var url = "getgyxml.do";
  12949. $.ajax({
  12950. "url" : url,
  12951. "data" : {
  12952. "start_date" : $("#dateBegin").val(),
  12953. "end_date" : $("#dateEnd").val()
  12954. },
  12955. "type" : "POST",
  12956. "dataType" : "json",
  12957. "success" : function(data) {
  12958. if(data != null && data != ""){
  12959. if ( data.status =="success"){
  12960. getfp();
  12961. alert("获取成功!");
  12962. }else {
  12963. alert(data.status);
  12964. }
  12965. }else {
  12966. alert("获取失败!");
  12967. }
  12968. },
  12969. "complete": function(){
  12970. layer.close(tip);
  12971. }
  12972. });
  12973. }else {
  12974. alert("请选择日期!");
  12975. }
  12976. },
  12977. "set" : function(){
  12978. if ( $("#fpid option:selected").text() !=""){
  12979. var tip = layer.load(2);
  12980. var gitem = $("#form1").serialize();
  12981. var jrjc;
  12982. if ($("#jrjc").prop('checked') == true){
  12983. jrjc = $("#departmentId").val();
  12984. }else {
  12985. jrjc ='N'
  12986. }
  12987. var url = "saverk.do";
  12988. $.ajax({
  12989. "url" : url,
  12990. "data" : {
  12991. "gitem" : gitem,
  12992. "jrjc" : jrjc
  12993. },
  12994. "type" : "POST",
  12995. "dataType" : "json",
  12996. "async" : true,
  12997. "success" : function(data) {
  12998. if(data.status ="success"){
  12999. alert("入库成功!");
  13000. window.location.reload();
  13001. }else {
  13002. alert(msg);
  13003. }
  13004. },
  13005. "error": function(){
  13006. alert("确认失败!");
  13007. },
  13008. "complete": function(){
  13009. layer.close(tip);
  13010. }
  13011. });
  13012. }else {
  13013. alert("请选择发票!");
  13014. }
  13015. }
  13016. }
  13017. function getfp(){
  13018. var tip = layer.load(2);
  13019. var url = "getgyfp.do";
  13020. $.ajax({
  13021. "url" : url,
  13022. "type" : "POST",
  13023. "dataType" : "json",
  13024. "async" : true,
  13025. "success" : function(data) {
  13026. if(data != null && data != ""){
  13027. $("#fpid").empty();
  13028. $("#fpid").append("_$tag_____________$tag____");
  13029. for(var i = 0; i < data.length; i++){
  13030. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13031. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13032. }
  13033. }
  13034. },
  13035. "error" : function(msg){
  13036. },
  13037. "complete": function(){
  13038. layer.close(tip);
  13039. }
  13040. });
  13041. }
  13042. $("#fpid").change(function(){
  13043. var tip = layer.load(2);
  13044. var url = "getgyrkxx.do";
  13045. var sum_total=0;
  13046. $.ajax({
  13047. "url" : url,
  13048. "data" : {
  13049. "fpId" : $("#fpid").val()
  13050. },
  13051. "type" : "POST",
  13052. "dataType" : "json",
  13053. "async" : true,
  13054. "success" : function(data) {
  13055. $("#dataTable").html("");
  13056. if(data != null && data != ""){
  13057. var html = "";
  13058. for(var i = 0; i < data.length; i++){
  13059. var ID = data[i].id == null ? "" : data[i].id;
  13060. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13061. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13062. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13063. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13064. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13065. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13066. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13067. var NAME = data[i].name == null ? "" : data[i].name;
  13068. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13069. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13070. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13071. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13072. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13073. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13074. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13075. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13076. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13077. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13078. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13079. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13080. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13081. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13082. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13083. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13084. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13085. sum_total = sum_total + DPRC
  13086. var invoice_type_cn =null;
  13087. if (invoice_type =="00" ){
  13088. invoice_type_cn="销售发票";
  13089. }else if (invoice_type == "01") {
  13090. invoice_type_cn="更正(对冲)发票";
  13091. }else if (invoice_type == "02") {
  13092. invoice_type_cn="其它类型发票";
  13093. }
  13094. html += "_$ta";
  13095. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13096. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13097. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13098. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13099. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13100. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13101. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13102. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13103. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13104. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13105. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13106. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13107. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13108. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13109. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13110. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13111. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13112. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13113. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13114. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13115. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13116. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13117. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13118. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13119. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13120. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13121. html += "_$tag";
  13122. }
  13123. html += "_$ta";
  13124. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13125. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13126. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13127. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13128. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13129. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13130. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13131. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13132. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13133. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13134. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13135. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13136. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  13137. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13138. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13139. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13140. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13141. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13142. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13143. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13144. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13145. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13146. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13147. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13148. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13149. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13150. html += "_$tag";
  13151. $("#dataTable").html(html);
  13152. }else {
  13153. $("#dataTable").html("");
  13154. }
  13155. },
  13156. "error" : function(msg){
  13157. },
  13158. "complete": function(){
  13159. layer.close(tip);
  13160. }
  13161. });
  13162. });
  13163. Date.prototype.Format = function (fmt) {
  13164. var o = {
  13165. "M+": this.getMonth() + 1, //月份
  13166. "d+": this.getDate(), //日
  13167. "h+": this.getHours(), //小时
  13168. "m+": this.getMinutes(), //分
  13169. "s+": this.getSeconds(), //秒
  13170. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13171. "S": this.getMilliseconds() //毫秒
  13172. };
  13173. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13174. for (var k in o)
  13175. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13176. return fmt;
  13177. }
  13178. $("#jrjc").change(function() {
  13179. if ($("#jrjc").prop('checked') == true){
  13180. $("#departmentId").removeAttr("disabled");
  13181. }else {
  13182. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13183. }
  13184. });
  13185. ----------------------------------- SOURCE END -------------------------------------
  13186. !STACK 0
  13187. java.lang.NullPointerException
  13188. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:55.576
  13189. !MESSAGE Error while processing working copy
  13190. !STACK 1
  13191. JavaScript Model Exception: java.lang.NullPointerException
  13192. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13193. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13194. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13195. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13196. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13197. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13198. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13199. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13200. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13201. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13202. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13203. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13204. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13205. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13206. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13207. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13208. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  13209. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  13210. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  13211. Caused by: java.lang.NullPointerException
  13212. Caused by: java.lang.NullPointerException
  13213. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:34:55.576
  13214. !MESSAGE java.lang.NullPointerException
  13215. !STACK 0
  13216. java.lang.NullPointerException
  13217. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:34:56.229
  13218. !MESSAGE Exception occurred during problem detection:
  13219. ----------------------------------- SOURCE BEGIN -------------------------------------
  13220. (function(){WdatePicker();})();
  13221. (function(){WdatePicker();})();
  13222. (function(){Data.get();})();
  13223. (function(){Data.set();})();
  13224. (function(){search();})();
  13225. $(function(){
  13226. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13227. getfp();
  13228. });
  13229. var Data = {
  13230. "get" : function(){
  13231. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13232. var tip = layer.load(2);
  13233. var result="";
  13234. var url = "getgyxml.do";
  13235. $.ajax({
  13236. "url" : url,
  13237. "data" : {
  13238. "start_date" : $("#dateBegin").val(),
  13239. "end_date" : $("#dateEnd").val()
  13240. },
  13241. "type" : "POST",
  13242. "dataType" : "json",
  13243. "success" : function(data) {
  13244. if(data != null && data != ""){
  13245. if ( data.status =="success"){
  13246. getfp();
  13247. alert("获取成功!");
  13248. }else {
  13249. alert(data.status);
  13250. }
  13251. }else {
  13252. alert("获取失败!");
  13253. }
  13254. },
  13255. "complete": function(){
  13256. layer.close(tip);
  13257. }
  13258. });
  13259. }else {
  13260. alert("请选择日期!");
  13261. }
  13262. },
  13263. "set" : function(){
  13264. if ( $("#fpid option:selected").text() !=""){
  13265. var tip = layer.load(2);
  13266. var gitem = $("#form1").serialize();
  13267. var jrjc;
  13268. if ($("#jrjc").prop('checked') == true){
  13269. jrjc = $("#departmentId").val();
  13270. }else {
  13271. jrjc ='N'
  13272. }
  13273. var url = "saverk.do";
  13274. $.ajax({
  13275. "url" : url,
  13276. "data" : {
  13277. "gitem" : gitem,
  13278. "jrjc" : jrjc
  13279. },
  13280. "type" : "POST",
  13281. "dataType" : "json",
  13282. "async" : true,
  13283. "success" : function(data) {
  13284. if(data.status ="success"){
  13285. alert("入库成功!");
  13286. window.location.reload();
  13287. }else {
  13288. alert(msg);
  13289. }
  13290. },
  13291. "error": function(){
  13292. alert("确认失败!");
  13293. },
  13294. "complete": function(){
  13295. layer.close(tip);
  13296. }
  13297. });
  13298. }else {
  13299. alert("请选择发票!");
  13300. }
  13301. }
  13302. }
  13303. function getfp(){
  13304. var tip = layer.load(2);
  13305. var url = "getgyfp.do";
  13306. $.ajax({
  13307. "url" : url,
  13308. "type" : "POST",
  13309. "dataType" : "json",
  13310. "async" : true,
  13311. "success" : function(data) {
  13312. if(data != null && data != ""){
  13313. $("#fpid").empty();
  13314. $("#fpid").append("_$tag_____________$tag____");
  13315. for(var i = 0; i < data.length; i++){
  13316. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13317. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13318. }
  13319. }
  13320. },
  13321. "error" : function(msg){
  13322. },
  13323. "complete": function(){
  13324. layer.close(tip);
  13325. }
  13326. });
  13327. }
  13328. $("#fpid").change(function(){
  13329. var tip = layer.load(2);
  13330. var url = "getgyrkxx.do";
  13331. var sum_total=0;
  13332. $.ajax({
  13333. "url" : url,
  13334. "data" : {
  13335. "fpId" : $("#fpid").val()
  13336. },
  13337. "type" : "POST",
  13338. "dataType" : "json",
  13339. "async" : true,
  13340. "success" : function(data) {
  13341. $("#dataTable").html("");
  13342. if(data != null && data != ""){
  13343. var html = "";
  13344. for(var i = 0; i < data.length; i++){
  13345. var ID = data[i].id == null ? "" : data[i].id;
  13346. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13347. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13348. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13349. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13350. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13351. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13352. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13353. var NAME = data[i].name == null ? "" : data[i].name;
  13354. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13355. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13356. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13357. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13358. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13359. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13360. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13361. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13362. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13363. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13364. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13365. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13366. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13367. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13368. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13369. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13370. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13371. sum_total = sum_total + DPRC
  13372. var invoice_type_cn =null;
  13373. if (invoice_type =="00" ){
  13374. invoice_type_cn="销售发票";
  13375. }else if (invoice_type == "01") {
  13376. invoice_type_cn="更正(对冲)发票";
  13377. }else if (invoice_type == "02") {
  13378. invoice_type_cn="其它类型发票";
  13379. }
  13380. html += "_$ta";
  13381. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13382. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13383. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13384. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13385. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13386. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13387. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13388. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13389. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13390. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13391. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13392. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13393. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13394. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13395. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13396. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13397. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13398. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13399. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13400. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13401. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13402. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13403. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13404. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13405. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13406. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13407. html += "_$tag";
  13408. }
  13409. html += "_$ta";
  13410. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13411. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13412. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13413. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13414. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13415. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13416. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13417. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13418. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13419. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13420. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13421. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13422. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  13423. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13424. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13425. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13426. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13427. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13428. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13429. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13430. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13431. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13432. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13433. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13434. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13435. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13436. html += "_$tag";
  13437. $("#dataTable").html(html);
  13438. }else {
  13439. $("#dataTable").html("");
  13440. }
  13441. },
  13442. "error" : function(msg){
  13443. },
  13444. "complete": function(){
  13445. layer.close(tip);
  13446. }
  13447. });
  13448. });
  13449. Date.prototype.Format = function (fmt) {
  13450. var o = {
  13451. "M+": this.getMonth() + 1, //月份
  13452. "d+": this.getDate(), //日
  13453. "h+": this.getHours(), //小时
  13454. "m+": this.getMinutes(), //分
  13455. "s+": this.getSeconds(), //秒
  13456. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13457. "S": this.getMilliseconds() //毫秒
  13458. };
  13459. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13460. for (var k in o)
  13461. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13462. return fmt;
  13463. }
  13464. $("#jrjc").change(function() {
  13465. if ($("#jrjc").prop('checked') == true){
  13466. $("#departmentId").removeAttr("disabled");
  13467. }else {
  13468. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13469. }
  13470. });
  13471. ----------------------------------- SOURCE END -------------------------------------
  13472. !STACK 0
  13473. java.lang.NullPointerException