.bak_7.log 983 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063
  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_6.log
  9. Created Time: 2018-06-21 09:28:42.108
  10. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:28:42.108
  11. !MESSAGE java.lang.NullPointerException
  12. !STACK 1
  13. JavaScript Model Exception: java.lang.NullPointerException
  14. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  15. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  16. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  17. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  18. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  19. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  20. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  21. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  22. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  23. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  24. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  25. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  26. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  27. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  28. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  29. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  30. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  31. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  32. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  33. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  34. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  35. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  36. Caused by: java.lang.NullPointerException
  37. Caused by: java.lang.NullPointerException
  38. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:28:42.109
  39. !MESSAGE java.lang.NullPointerException
  40. !STACK 0
  41. java.lang.NullPointerException
  42. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:28:54.455
  43. !MESSAGE Exception occurred during problem detection:
  44. ----------------------------------- SOURCE BEGIN -------------------------------------
  45. (function(){WdatePicker();})();
  46. (function(){WdatePicker();})();
  47. (function(){Data.get();})();
  48. (function(){Data.set();})();
  49. (function(){search();})();
  50. $(function(){
  51. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  52. getfp();
  53. });
  54. var Data = {
  55. "get" : function(){
  56. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  57. var tip = layer.load(2);
  58. var result="";
  59. var url = "getgyxml.do";
  60. $.ajax({
  61. "url" : url,
  62. "data" : {
  63. "start_date" : $("#dateBegin").val(),
  64. "end_date" : $("#dateEnd").val()
  65. },
  66. "type" : "POST",
  67. "dataType" : "json",
  68. "success" : function(data) {
  69. if(data != null && data != ""){
  70. if ( data.status =="success"){
  71. getfp();
  72. alert("获取成功!");
  73. }else {
  74. alert(data.status);
  75. }
  76. }else {
  77. alert("获取失败!");
  78. }
  79. },
  80. "complete": function(){
  81. layer.close(tip);
  82. }
  83. });
  84. }else {
  85. alert("请选择日期!");
  86. }
  87. },
  88. "set" : function(){
  89. if ( $("#fpid option:selected").text() !=""){
  90. var tip = layer.load(2);
  91. var gitem = $("#form1").serialize();
  92. var jrjc;
  93. if ($("#jrjc").prop('checked') == true){
  94. jrjc = $("#departmentId").val();
  95. }else {
  96. jrjc ='N'
  97. }
  98. var url = "saverk.do";
  99. $.ajax({
  100. "url" : url,
  101. "data" : {
  102. "gitem" : gitem,
  103. "jrjc" : jrjc
  104. },
  105. "type" : "POST",
  106. "dataType" : "json",
  107. "async" : true,
  108. "success" : function(data) {
  109. if(data.status ="success"){
  110. alert("入库成功!");
  111. window.location.reload();
  112. }else {
  113. alert(msg);
  114. }
  115. },
  116. "error": function(){
  117. alert("确认失败!");
  118. },
  119. "complete": function(){
  120. layer.close(tip);
  121. }
  122. });
  123. }else {
  124. alert("请选择发票!");
  125. }
  126. }
  127. }
  128. function getfp(){
  129. var tip = layer.load(2);
  130. var url = "getgyfp.do";
  131. $.ajax({
  132. "url" : url,
  133. "type" : "POST",
  134. "dataType" : "json",
  135. "async" : true,
  136. "success" : function(data) {
  137. if(data != null && data != ""){
  138. $("#fpid").empty();
  139. $("#fpid").append("_$tag_____________$tag____");
  140. for(var i = 0; i < data.length; i++){
  141. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  142. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  143. }
  144. }
  145. },
  146. "error" : function(msg){
  147. },
  148. "complete": function(){
  149. layer.close(tip);
  150. }
  151. });
  152. }
  153. $("#fpid").change(function(){
  154. var tip = layer.load(2);
  155. var url = "getgyrkxx.do";
  156. var sum_total=0;
  157. $.ajax({
  158. "url" : url,
  159. "data" : {
  160. "fpId" : $("#fpid").val()
  161. },
  162. "type" : "POST",
  163. "dataType" : "json",
  164. "async" : true,
  165. "success" : function(data) {
  166. $("#dataTable").html("");
  167. if(data != null && data != ""){
  168. var html = "";
  169. for(var i = 0; i < data.length; i++){
  170. var ID = data[i].id == null ? "" : data[i].id;
  171. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  172. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  173. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  174. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  175. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  176. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  177. var GOODS = data[i].goods == null ? "" : data[i].goods;
  178. var NAME = data[i].name == null ? "" : data[i].name;
  179. var SPEC = data[i].spec == null ? "" : data[i].spec;
  180. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  181. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  182. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  183. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  184. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  185. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  186. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  187. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  188. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  189. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  190. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  191. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  192. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  193. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  194. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  195. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  196. sum_total = sum_total + DPRC
  197. var invoice_type_cn =null;
  198. if (invoice_type =="00" ){
  199. invoice_type_cn="销售发票";
  200. }else if (invoice_type == "01") {
  201. invoice_type_cn="更正(对冲)发票";
  202. }else if (invoice_type == "02") {
  203. invoice_type_cn="其它类型发票";
  204. }
  205. html += "_$ta";
  206. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  207. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  208. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  209. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  210. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  211. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  212. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  213. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  214. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  215. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  216. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  217. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  218. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  219. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  220. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  221. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  222. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  223. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  224. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  225. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  226. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  227. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  228. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  229. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  230. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  231. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  232. html += "_$tag";
  233. }
  234. $("#dataTable").html(html);
  235. }else {
  236. $("#dataTable").html("");
  237. }
  238. },
  239. "error" : function(msg){
  240. },
  241. "complete": function(){
  242. layer.close(tip);
  243. }
  244. });
  245. });
  246. Date.prototype.Format = function (fmt) {
  247. var o = {
  248. "M+": this.getMonth() + 1, //月份
  249. "d+": this.getDate(), //日
  250. "h+": this.getHours(), //小时
  251. "m+": this.getMinutes(), //分
  252. "s+": this.getSeconds(), //秒
  253. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  254. "S": this.getMilliseconds() //毫秒
  255. };
  256. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  257. for (var k in o)
  258. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  259. return fmt;
  260. }
  261. $("#jrjc").change(function() {
  262. if ($("#jrjc").prop('checked') == true){
  263. $("#departmentId").removeAttr("disabled");
  264. }else {
  265. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  266. }
  267. });
  268. ----------------------------------- SOURCE END -------------------------------------
  269. !STACK 0
  270. java.lang.NullPointerException
  271. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:28:54.456
  272. !MESSAGE java.lang.NullPointerException
  273. !STACK 1
  274. JavaScript Model Exception: java.lang.NullPointerException
  275. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  276. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  277. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  278. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  279. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  280. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  281. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  282. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  283. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  284. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  285. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  286. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  287. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  288. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  289. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  290. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  291. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  292. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  293. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  294. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  295. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  296. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  297. Caused by: java.lang.NullPointerException
  298. Caused by: java.lang.NullPointerException
  299. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:28:54.456
  300. !MESSAGE java.lang.NullPointerException
  301. !STACK 0
  302. java.lang.NullPointerException
  303. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:28:57.361
  304. !MESSAGE Exception occurred during problem detection:
  305. ----------------------------------- SOURCE BEGIN -------------------------------------
  306. (function(){WdatePicker();})();
  307. (function(){WdatePicker();})();
  308. (function(){Data.get();})();
  309. (function(){Data.set();})();
  310. (function(){search();})();
  311. $(function(){
  312. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  313. getfp();
  314. });
  315. var Data = {
  316. "get" : function(){
  317. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  318. var tip = layer.load(2);
  319. var result="";
  320. var url = "getgyxml.do";
  321. $.ajax({
  322. "url" : url,
  323. "data" : {
  324. "start_date" : $("#dateBegin").val(),
  325. "end_date" : $("#dateEnd").val()
  326. },
  327. "type" : "POST",
  328. "dataType" : "json",
  329. "success" : function(data) {
  330. if(data != null && data != ""){
  331. if ( data.status =="success"){
  332. getfp();
  333. alert("获取成功!");
  334. }else {
  335. alert(data.status);
  336. }
  337. }else {
  338. alert("获取失败!");
  339. }
  340. },
  341. "complete": function(){
  342. layer.close(tip);
  343. }
  344. });
  345. }else {
  346. alert("请选择日期!");
  347. }
  348. },
  349. "set" : function(){
  350. if ( $("#fpid option:selected").text() !=""){
  351. var tip = layer.load(2);
  352. var gitem = $("#form1").serialize();
  353. var jrjc;
  354. if ($("#jrjc").prop('checked') == true){
  355. jrjc = $("#departmentId").val();
  356. }else {
  357. jrjc ='N'
  358. }
  359. var url = "saverk.do";
  360. $.ajax({
  361. "url" : url,
  362. "data" : {
  363. "gitem" : gitem,
  364. "jrjc" : jrjc
  365. },
  366. "type" : "POST",
  367. "dataType" : "json",
  368. "async" : true,
  369. "success" : function(data) {
  370. if(data.status ="success"){
  371. alert("入库成功!");
  372. window.location.reload();
  373. }else {
  374. alert(msg);
  375. }
  376. },
  377. "error": function(){
  378. alert("确认失败!");
  379. },
  380. "complete": function(){
  381. layer.close(tip);
  382. }
  383. });
  384. }else {
  385. alert("请选择发票!");
  386. }
  387. }
  388. }
  389. function getfp(){
  390. var tip = layer.load(2);
  391. var url = "getgyfp.do";
  392. $.ajax({
  393. "url" : url,
  394. "type" : "POST",
  395. "dataType" : "json",
  396. "async" : true,
  397. "success" : function(data) {
  398. if(data != null && data != ""){
  399. $("#fpid").empty();
  400. $("#fpid").append("_$tag_____________$tag____");
  401. for(var i = 0; i < data.length; i++){
  402. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  403. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  404. }
  405. }
  406. },
  407. "error" : function(msg){
  408. },
  409. "complete": function(){
  410. layer.close(tip);
  411. }
  412. });
  413. }
  414. $("#fpid").change(function(){
  415. var tip = layer.load(2);
  416. var url = "getgyrkxx.do";
  417. var sum_total=0;
  418. $.ajax({
  419. "url" : url,
  420. "data" : {
  421. "fpId" : $("#fpid").val()
  422. },
  423. "type" : "POST",
  424. "dataType" : "json",
  425. "async" : true,
  426. "success" : function(data) {
  427. $("#dataTable").html("");
  428. if(data != null && data != ""){
  429. var html = "";
  430. for(var i = 0; i < data.length; i++){
  431. var ID = data[i].id == null ? "" : data[i].id;
  432. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  433. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  434. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  435. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  436. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  437. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  438. var GOODS = data[i].goods == null ? "" : data[i].goods;
  439. var NAME = data[i].name == null ? "" : data[i].name;
  440. var SPEC = data[i].spec == null ? "" : data[i].spec;
  441. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  442. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  443. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  444. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  445. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  446. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  447. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  448. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  449. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  450. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  451. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  452. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  453. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  454. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  455. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  456. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  457. sum_total = sum_total + DPRC
  458. var invoice_type_cn =null;
  459. if (invoice_type =="00" ){
  460. invoice_type_cn="销售发票";
  461. }else if (invoice_type == "01") {
  462. invoice_type_cn="更正(对冲)发票";
  463. }else if (invoice_type == "02") {
  464. invoice_type_cn="其它类型发票";
  465. }
  466. html += "_$ta";
  467. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  468. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  469. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  470. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  471. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  472. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  473. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  474. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  475. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  476. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  477. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  478. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  479. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  480. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  481. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  482. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  483. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  484. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  485. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  486. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  487. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  488. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  489. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  490. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  491. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  492. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  493. html += "_$tag";
  494. }
  495. $("#dataTable").html(html);
  496. }else {
  497. $("#dataTable").html("");
  498. }
  499. },
  500. "error" : function(msg){
  501. },
  502. "complete": function(){
  503. layer.close(tip);
  504. }
  505. });
  506. });
  507. Date.prototype.Format = function (fmt) {
  508. var o = {
  509. "M+": this.getMonth() + 1, //月份
  510. "d+": this.getDate(), //日
  511. "h+": this.getHours(), //小时
  512. "m+": this.getMinutes(), //分
  513. "s+": this.getSeconds(), //秒
  514. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  515. "S": this.getMilliseconds() //毫秒
  516. };
  517. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  518. for (var k in o)
  519. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  520. return fmt;
  521. }
  522. $("#jrjc").change(function() {
  523. if ($("#jrjc").prop('checked') == true){
  524. $("#departmentId").removeAttr("disabled");
  525. }else {
  526. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  527. }
  528. });
  529. ----------------------------------- SOURCE END -------------------------------------
  530. !STACK 0
  531. java.lang.NullPointerException
  532. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:28:57.362
  533. !MESSAGE Error while processing working copy
  534. !STACK 1
  535. JavaScript Model Exception: java.lang.NullPointerException
  536. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  537. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  538. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  539. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  540. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  541. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  542. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  543. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  544. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  545. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  546. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  547. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  548. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  549. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  550. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  551. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  552. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  553. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  554. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  555. Caused by: java.lang.NullPointerException
  556. Caused by: java.lang.NullPointerException
  557. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:28:57.362
  558. !MESSAGE java.lang.NullPointerException
  559. !STACK 0
  560. java.lang.NullPointerException
  561. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:28:58.005
  562. !MESSAGE Exception occurred during problem detection:
  563. ----------------------------------- SOURCE BEGIN -------------------------------------
  564. (function(){WdatePicker();})();
  565. (function(){WdatePicker();})();
  566. (function(){Data.get();})();
  567. (function(){Data.set();})();
  568. (function(){search();})();
  569. $(function(){
  570. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  571. getfp();
  572. });
  573. var Data = {
  574. "get" : function(){
  575. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  576. var tip = layer.load(2);
  577. var result="";
  578. var url = "getgyxml.do";
  579. $.ajax({
  580. "url" : url,
  581. "data" : {
  582. "start_date" : $("#dateBegin").val(),
  583. "end_date" : $("#dateEnd").val()
  584. },
  585. "type" : "POST",
  586. "dataType" : "json",
  587. "success" : function(data) {
  588. if(data != null && data != ""){
  589. if ( data.status =="success"){
  590. getfp();
  591. alert("获取成功!");
  592. }else {
  593. alert(data.status);
  594. }
  595. }else {
  596. alert("获取失败!");
  597. }
  598. },
  599. "complete": function(){
  600. layer.close(tip);
  601. }
  602. });
  603. }else {
  604. alert("请选择日期!");
  605. }
  606. },
  607. "set" : function(){
  608. if ( $("#fpid option:selected").text() !=""){
  609. var tip = layer.load(2);
  610. var gitem = $("#form1").serialize();
  611. var jrjc;
  612. if ($("#jrjc").prop('checked') == true){
  613. jrjc = $("#departmentId").val();
  614. }else {
  615. jrjc ='N'
  616. }
  617. var url = "saverk.do";
  618. $.ajax({
  619. "url" : url,
  620. "data" : {
  621. "gitem" : gitem,
  622. "jrjc" : jrjc
  623. },
  624. "type" : "POST",
  625. "dataType" : "json",
  626. "async" : true,
  627. "success" : function(data) {
  628. if(data.status ="success"){
  629. alert("入库成功!");
  630. window.location.reload();
  631. }else {
  632. alert(msg);
  633. }
  634. },
  635. "error": function(){
  636. alert("确认失败!");
  637. },
  638. "complete": function(){
  639. layer.close(tip);
  640. }
  641. });
  642. }else {
  643. alert("请选择发票!");
  644. }
  645. }
  646. }
  647. function getfp(){
  648. var tip = layer.load(2);
  649. var url = "getgyfp.do";
  650. $.ajax({
  651. "url" : url,
  652. "type" : "POST",
  653. "dataType" : "json",
  654. "async" : true,
  655. "success" : function(data) {
  656. if(data != null && data != ""){
  657. $("#fpid").empty();
  658. $("#fpid").append("_$tag_____________$tag____");
  659. for(var i = 0; i < data.length; i++){
  660. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  661. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  662. }
  663. }
  664. },
  665. "error" : function(msg){
  666. },
  667. "complete": function(){
  668. layer.close(tip);
  669. }
  670. });
  671. }
  672. $("#fpid").change(function(){
  673. var tip = layer.load(2);
  674. var url = "getgyrkxx.do";
  675. var sum_total=0;
  676. $.ajax({
  677. "url" : url,
  678. "data" : {
  679. "fpId" : $("#fpid").val()
  680. },
  681. "type" : "POST",
  682. "dataType" : "json",
  683. "async" : true,
  684. "success" : function(data) {
  685. $("#dataTable").html("");
  686. if(data != null && data != ""){
  687. var html = "";
  688. for(var i = 0; i < data.length; i++){
  689. var ID = data[i].id == null ? "" : data[i].id;
  690. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  691. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  692. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  693. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  694. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  695. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  696. var GOODS = data[i].goods == null ? "" : data[i].goods;
  697. var NAME = data[i].name == null ? "" : data[i].name;
  698. var SPEC = data[i].spec == null ? "" : data[i].spec;
  699. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  700. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  701. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  702. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  703. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  704. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  705. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  706. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  707. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  708. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  709. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  710. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  711. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  712. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  713. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  714. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  715. sum_total = sum_total + DPRC
  716. var invoice_type_cn =null;
  717. if (invoice_type =="00" ){
  718. invoice_type_cn="销售发票";
  719. }else if (invoice_type == "01") {
  720. invoice_type_cn="更正(对冲)发票";
  721. }else if (invoice_type == "02") {
  722. invoice_type_cn="其它类型发票";
  723. }
  724. html += "_$ta";
  725. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  726. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  727. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  728. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  729. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  730. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  731. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  732. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  733. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  734. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  735. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  736. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  737. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  738. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  739. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  740. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  741. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  742. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  743. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  744. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  745. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  746. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  747. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  748. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  749. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  750. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  751. html += "_$tag";
  752. }
  753. $("#dataTable").html(html);
  754. }else {
  755. $("#dataTable").html("");
  756. }
  757. },
  758. "error" : function(msg){
  759. },
  760. "complete": function(){
  761. layer.close(tip);
  762. }
  763. });
  764. });
  765. Date.prototype.Format = function (fmt) {
  766. var o = {
  767. "M+": this.getMonth() + 1, //月份
  768. "d+": this.getDate(), //日
  769. "h+": this.getHours(), //小时
  770. "m+": this.getMinutes(), //分
  771. "s+": this.getSeconds(), //秒
  772. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  773. "S": this.getMilliseconds() //毫秒
  774. };
  775. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  776. for (var k in o)
  777. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  778. return fmt;
  779. }
  780. $("#jrjc").change(function() {
  781. if ($("#jrjc").prop('checked') == true){
  782. $("#departmentId").removeAttr("disabled");
  783. }else {
  784. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  785. }
  786. });
  787. ----------------------------------- SOURCE END -------------------------------------
  788. !STACK 0
  789. java.lang.NullPointerException
  790. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:04.294
  791. !MESSAGE Exception occurred during problem detection:
  792. ----------------------------------- SOURCE BEGIN -------------------------------------
  793. (function(){WdatePicker();})();
  794. (function(){WdatePicker();})();
  795. (function(){Data.get();})();
  796. (function(){Data.set();})();
  797. (function(){search();})();
  798. $(function(){
  799. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  800. getfp();
  801. });
  802. var Data = {
  803. "get" : function(){
  804. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  805. var tip = layer.load(2);
  806. var result="";
  807. var url = "getgyxml.do";
  808. $.ajax({
  809. "url" : url,
  810. "data" : {
  811. "start_date" : $("#dateBegin").val(),
  812. "end_date" : $("#dateEnd").val()
  813. },
  814. "type" : "POST",
  815. "dataType" : "json",
  816. "success" : function(data) {
  817. if(data != null && data != ""){
  818. if ( data.status =="success"){
  819. getfp();
  820. alert("获取成功!");
  821. }else {
  822. alert(data.status);
  823. }
  824. }else {
  825. alert("获取失败!");
  826. }
  827. },
  828. "complete": function(){
  829. layer.close(tip);
  830. }
  831. });
  832. }else {
  833. alert("请选择日期!");
  834. }
  835. },
  836. "set" : function(){
  837. if ( $("#fpid option:selected").text() !=""){
  838. var tip = layer.load(2);
  839. var gitem = $("#form1").serialize();
  840. var jrjc;
  841. if ($("#jrjc").prop('checked') == true){
  842. jrjc = $("#departmentId").val();
  843. }else {
  844. jrjc ='N'
  845. }
  846. var url = "saverk.do";
  847. $.ajax({
  848. "url" : url,
  849. "data" : {
  850. "gitem" : gitem,
  851. "jrjc" : jrjc
  852. },
  853. "type" : "POST",
  854. "dataType" : "json",
  855. "async" : true,
  856. "success" : function(data) {
  857. if(data.status ="success"){
  858. alert("入库成功!");
  859. window.location.reload();
  860. }else {
  861. alert(msg);
  862. }
  863. },
  864. "error": function(){
  865. alert("确认失败!");
  866. },
  867. "complete": function(){
  868. layer.close(tip);
  869. }
  870. });
  871. }else {
  872. alert("请选择发票!");
  873. }
  874. }
  875. }
  876. function getfp(){
  877. var tip = layer.load(2);
  878. var url = "getgyfp.do";
  879. $.ajax({
  880. "url" : url,
  881. "type" : "POST",
  882. "dataType" : "json",
  883. "async" : true,
  884. "success" : function(data) {
  885. if(data != null && data != ""){
  886. $("#fpid").empty();
  887. $("#fpid").append("_$tag_____________$tag____");
  888. for(var i = 0; i < data.length; i++){
  889. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  890. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  891. }
  892. }
  893. },
  894. "error" : function(msg){
  895. },
  896. "complete": function(){
  897. layer.close(tip);
  898. }
  899. });
  900. }
  901. $("#fpid").change(function(){
  902. var tip = layer.load(2);
  903. var url = "getgyrkxx.do";
  904. var sum_total=0;
  905. $.ajax({
  906. "url" : url,
  907. "data" : {
  908. "fpId" : $("#fpid").val()
  909. },
  910. "type" : "POST",
  911. "dataType" : "json",
  912. "async" : true,
  913. "success" : function(data) {
  914. $("#dataTable").html("");
  915. if(data != null && data != ""){
  916. var html = "";
  917. for(var i = 0; i < data.length; i++){
  918. var ID = data[i].id == null ? "" : data[i].id;
  919. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  920. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  921. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  922. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  923. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  924. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  925. var GOODS = data[i].goods == null ? "" : data[i].goods;
  926. var NAME = data[i].name == null ? "" : data[i].name;
  927. var SPEC = data[i].spec == null ? "" : data[i].spec;
  928. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  929. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  930. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  931. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  932. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  933. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  934. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  935. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  936. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  937. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  938. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  939. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  940. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  941. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  942. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  943. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  944. sum_total = sum_total + DPRC
  945. var invoice_type_cn =null;
  946. if (invoice_type =="00" ){
  947. invoice_type_cn="销售发票";
  948. }else if (invoice_type == "01") {
  949. invoice_type_cn="更正(对冲)发票";
  950. }else if (invoice_type == "02") {
  951. invoice_type_cn="其它类型发票";
  952. }
  953. html += "_$ta";
  954. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  955. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  956. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  957. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  958. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  959. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  960. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  961. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  962. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  963. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  964. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  965. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  966. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  967. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  968. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  969. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  970. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  971. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  972. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  973. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  974. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  975. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  976. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  977. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  978. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  979. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  980. html += "_$tag";
  981. }
  982. $("#dataTable").html(html);
  983. }else {
  984. $("#dataTable").html("");
  985. }
  986. },
  987. "error" : function(msg){
  988. },
  989. "complete": function(){
  990. layer.close(tip);
  991. }
  992. });
  993. });
  994. Date.prototype.Format = function (fmt) {
  995. var o = {
  996. "M+": this.getMonth() + 1, //月份
  997. "d+": this.getDate(), //日
  998. "h+": this.getHours(), //小时
  999. "m+": this.getMinutes(), //分
  1000. "s+": this.getSeconds(), //秒
  1001. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1002. "S": this.getMilliseconds() //毫秒
  1003. };
  1004. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1005. for (var k in o)
  1006. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1007. return fmt;
  1008. }
  1009. $("#jrjc").change(function() {
  1010. if ($("#jrjc").prop('checked') == true){
  1011. $("#departmentId").removeAttr("disabled");
  1012. }else {
  1013. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1014. }
  1015. });
  1016. ----------------------------------- SOURCE END -------------------------------------
  1017. !STACK 0
  1018. java.lang.NullPointerException
  1019. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:04.295
  1020. !MESSAGE Error while processing working copy
  1021. !STACK 1
  1022. JavaScript Model Exception: java.lang.NullPointerException
  1023. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1024. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1025. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1026. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1027. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1028. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1029. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1030. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1031. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1032. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1033. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1034. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1035. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1036. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1037. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1038. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1039. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1040. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1041. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1042. Caused by: java.lang.NullPointerException
  1043. Caused by: java.lang.NullPointerException
  1044. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:04.295
  1045. !MESSAGE java.lang.NullPointerException
  1046. !STACK 0
  1047. java.lang.NullPointerException
  1048. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:05.238
  1049. !MESSAGE Exception occurred during problem detection:
  1050. ----------------------------------- SOURCE BEGIN -------------------------------------
  1051. (function(){WdatePicker();})();
  1052. (function(){WdatePicker();})();
  1053. (function(){Data.get();})();
  1054. (function(){Data.set();})();
  1055. (function(){search();})();
  1056. $(function(){
  1057. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1058. getfp();
  1059. });
  1060. var Data = {
  1061. "get" : function(){
  1062. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1063. var tip = layer.load(2);
  1064. var result="";
  1065. var url = "getgyxml.do";
  1066. $.ajax({
  1067. "url" : url,
  1068. "data" : {
  1069. "start_date" : $("#dateBegin").val(),
  1070. "end_date" : $("#dateEnd").val()
  1071. },
  1072. "type" : "POST",
  1073. "dataType" : "json",
  1074. "success" : function(data) {
  1075. if(data != null && data != ""){
  1076. if ( data.status =="success"){
  1077. getfp();
  1078. alert("获取成功!");
  1079. }else {
  1080. alert(data.status);
  1081. }
  1082. }else {
  1083. alert("获取失败!");
  1084. }
  1085. },
  1086. "complete": function(){
  1087. layer.close(tip);
  1088. }
  1089. });
  1090. }else {
  1091. alert("请选择日期!");
  1092. }
  1093. },
  1094. "set" : function(){
  1095. if ( $("#fpid option:selected").text() !=""){
  1096. var tip = layer.load(2);
  1097. var gitem = $("#form1").serialize();
  1098. var jrjc;
  1099. if ($("#jrjc").prop('checked') == true){
  1100. jrjc = $("#departmentId").val();
  1101. }else {
  1102. jrjc ='N'
  1103. }
  1104. var url = "saverk.do";
  1105. $.ajax({
  1106. "url" : url,
  1107. "data" : {
  1108. "gitem" : gitem,
  1109. "jrjc" : jrjc
  1110. },
  1111. "type" : "POST",
  1112. "dataType" : "json",
  1113. "async" : true,
  1114. "success" : function(data) {
  1115. if(data.status ="success"){
  1116. alert("入库成功!");
  1117. window.location.reload();
  1118. }else {
  1119. alert(msg);
  1120. }
  1121. },
  1122. "error": function(){
  1123. alert("确认失败!");
  1124. },
  1125. "complete": function(){
  1126. layer.close(tip);
  1127. }
  1128. });
  1129. }else {
  1130. alert("请选择发票!");
  1131. }
  1132. }
  1133. }
  1134. function getfp(){
  1135. var tip = layer.load(2);
  1136. var url = "getgyfp.do";
  1137. $.ajax({
  1138. "url" : url,
  1139. "type" : "POST",
  1140. "dataType" : "json",
  1141. "async" : true,
  1142. "success" : function(data) {
  1143. if(data != null && data != ""){
  1144. $("#fpid").empty();
  1145. $("#fpid").append("_$tag_____________$tag____");
  1146. for(var i = 0; i < data.length; i++){
  1147. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1148. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1149. }
  1150. }
  1151. },
  1152. "error" : function(msg){
  1153. },
  1154. "complete": function(){
  1155. layer.close(tip);
  1156. }
  1157. });
  1158. }
  1159. $("#fpid").change(function(){
  1160. var tip = layer.load(2);
  1161. var url = "getgyrkxx.do";
  1162. var sum_total=0;
  1163. $.ajax({
  1164. "url" : url,
  1165. "data" : {
  1166. "fpId" : $("#fpid").val()
  1167. },
  1168. "type" : "POST",
  1169. "dataType" : "json",
  1170. "async" : true,
  1171. "success" : function(data) {
  1172. $("#dataTable").html("");
  1173. if(data != null && data != ""){
  1174. var html = "";
  1175. for(var i = 0; i < data.length; i++){
  1176. var ID = data[i].id == null ? "" : data[i].id;
  1177. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1178. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1179. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1180. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1181. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1182. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1183. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1184. var NAME = data[i].name == null ? "" : data[i].name;
  1185. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1186. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1187. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1188. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1189. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1190. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1191. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1192. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1193. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1194. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1195. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1196. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1197. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1198. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1199. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1200. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1201. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1202. sum_total = sum_total + DPRC
  1203. var invoice_type_cn =null;
  1204. if (invoice_type =="00" ){
  1205. invoice_type_cn="销售发票";
  1206. }else if (invoice_type == "01") {
  1207. invoice_type_cn="更正(对冲)发票";
  1208. }else if (invoice_type == "02") {
  1209. invoice_type_cn="其它类型发票";
  1210. }
  1211. html += "_$ta";
  1212. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1213. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1214. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1215. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1216. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1217. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1218. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1219. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1220. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1221. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1222. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1223. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1224. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1225. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1226. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1227. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1228. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1229. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1230. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1231. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1232. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1233. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1234. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1235. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1236. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1237. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1238. html += "_$tag";
  1239. }
  1240. $("#dataTable").html(html);
  1241. }else {
  1242. $("#dataTable").html("");
  1243. }
  1244. },
  1245. "error" : function(msg){
  1246. },
  1247. "complete": function(){
  1248. layer.close(tip);
  1249. }
  1250. });
  1251. });
  1252. Date.prototype.Format = function (fmt) {
  1253. var o = {
  1254. "M+": this.getMonth() + 1, //月份
  1255. "d+": this.getDate(), //日
  1256. "h+": this.getHours(), //小时
  1257. "m+": this.getMinutes(), //分
  1258. "s+": this.getSeconds(), //秒
  1259. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1260. "S": this.getMilliseconds() //毫秒
  1261. };
  1262. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1263. for (var k in o)
  1264. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1265. return fmt;
  1266. }
  1267. $("#jrjc").change(function() {
  1268. if ($("#jrjc").prop('checked') == true){
  1269. $("#departmentId").removeAttr("disabled");
  1270. }else {
  1271. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1272. }
  1273. });
  1274. ----------------------------------- SOURCE END -------------------------------------
  1275. !STACK 0
  1276. java.lang.NullPointerException
  1277. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:05.939
  1278. !MESSAGE Exception occurred during problem detection:
  1279. ----------------------------------- SOURCE BEGIN -------------------------------------
  1280. (function(){WdatePicker();})();
  1281. (function(){WdatePicker();})();
  1282. (function(){Data.get();})();
  1283. (function(){Data.set();})();
  1284. (function(){search();})();
  1285. $(function(){
  1286. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1287. getfp();
  1288. });
  1289. var Data = {
  1290. "get" : function(){
  1291. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1292. var tip = layer.load(2);
  1293. var result="";
  1294. var url = "getgyxml.do";
  1295. $.ajax({
  1296. "url" : url,
  1297. "data" : {
  1298. "start_date" : $("#dateBegin").val(),
  1299. "end_date" : $("#dateEnd").val()
  1300. },
  1301. "type" : "POST",
  1302. "dataType" : "json",
  1303. "success" : function(data) {
  1304. if(data != null && data != ""){
  1305. if ( data.status =="success"){
  1306. getfp();
  1307. alert("获取成功!");
  1308. }else {
  1309. alert(data.status);
  1310. }
  1311. }else {
  1312. alert("获取失败!");
  1313. }
  1314. },
  1315. "complete": function(){
  1316. layer.close(tip);
  1317. }
  1318. });
  1319. }else {
  1320. alert("请选择日期!");
  1321. }
  1322. },
  1323. "set" : function(){
  1324. if ( $("#fpid option:selected").text() !=""){
  1325. var tip = layer.load(2);
  1326. var gitem = $("#form1").serialize();
  1327. var jrjc;
  1328. if ($("#jrjc").prop('checked') == true){
  1329. jrjc = $("#departmentId").val();
  1330. }else {
  1331. jrjc ='N'
  1332. }
  1333. var url = "saverk.do";
  1334. $.ajax({
  1335. "url" : url,
  1336. "data" : {
  1337. "gitem" : gitem,
  1338. "jrjc" : jrjc
  1339. },
  1340. "type" : "POST",
  1341. "dataType" : "json",
  1342. "async" : true,
  1343. "success" : function(data) {
  1344. if(data.status ="success"){
  1345. alert("入库成功!");
  1346. window.location.reload();
  1347. }else {
  1348. alert(msg);
  1349. }
  1350. },
  1351. "error": function(){
  1352. alert("确认失败!");
  1353. },
  1354. "complete": function(){
  1355. layer.close(tip);
  1356. }
  1357. });
  1358. }else {
  1359. alert("请选择发票!");
  1360. }
  1361. }
  1362. }
  1363. function getfp(){
  1364. var tip = layer.load(2);
  1365. var url = "getgyfp.do";
  1366. $.ajax({
  1367. "url" : url,
  1368. "type" : "POST",
  1369. "dataType" : "json",
  1370. "async" : true,
  1371. "success" : function(data) {
  1372. if(data != null && data != ""){
  1373. $("#fpid").empty();
  1374. $("#fpid").append("_$tag_____________$tag____");
  1375. for(var i = 0; i < data.length; i++){
  1376. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1377. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1378. }
  1379. }
  1380. },
  1381. "error" : function(msg){
  1382. },
  1383. "complete": function(){
  1384. layer.close(tip);
  1385. }
  1386. });
  1387. }
  1388. $("#fpid").change(function(){
  1389. var tip = layer.load(2);
  1390. var url = "getgyrkxx.do";
  1391. var sum_total=0;
  1392. $.ajax({
  1393. "url" : url,
  1394. "data" : {
  1395. "fpId" : $("#fpid").val()
  1396. },
  1397. "type" : "POST",
  1398. "dataType" : "json",
  1399. "async" : true,
  1400. "success" : function(data) {
  1401. $("#dataTable").html("");
  1402. if(data != null && data != ""){
  1403. var html = "";
  1404. for(var i = 0; i < data.length; i++){
  1405. var ID = data[i].id == null ? "" : data[i].id;
  1406. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1407. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1408. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1409. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1410. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1411. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1412. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1413. var NAME = data[i].name == null ? "" : data[i].name;
  1414. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1415. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1416. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1417. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1418. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1419. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1420. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1421. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1422. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1423. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1424. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1425. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1426. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1427. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1428. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1429. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1430. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1431. sum_total = sum_total + DPRC
  1432. var invoice_type_cn =null;
  1433. if (invoice_type =="00" ){
  1434. invoice_type_cn="销售发票";
  1435. }else if (invoice_type == "01") {
  1436. invoice_type_cn="更正(对冲)发票";
  1437. }else if (invoice_type == "02") {
  1438. invoice_type_cn="其它类型发票";
  1439. }
  1440. html += "_$ta";
  1441. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1442. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1443. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1444. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1445. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1446. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1447. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1448. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1449. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1450. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1451. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1452. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1453. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1454. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1455. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1456. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1457. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1458. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1459. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1460. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1461. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1462. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1463. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1464. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1465. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1466. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1467. html += "_$tag";
  1468. }
  1469. html += "_$ta";
  1470. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1471. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1472. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1473. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1474. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1475. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1476. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1477. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1478. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1479. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1480. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1481. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1482. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1483. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1484. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1485. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1486. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1487. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1488. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1489. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1490. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1491. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1492. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1493. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1494. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1495. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1496. html += "_$tag";
  1497. $("#dataTable").html(html);
  1498. }else {
  1499. $("#dataTable").html("");
  1500. }
  1501. },
  1502. "error" : function(msg){
  1503. },
  1504. "complete": function(){
  1505. layer.close(tip);
  1506. }
  1507. });
  1508. });
  1509. Date.prototype.Format = function (fmt) {
  1510. var o = {
  1511. "M+": this.getMonth() + 1, //月份
  1512. "d+": this.getDate(), //日
  1513. "h+": this.getHours(), //小时
  1514. "m+": this.getMinutes(), //分
  1515. "s+": this.getSeconds(), //秒
  1516. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1517. "S": this.getMilliseconds() //毫秒
  1518. };
  1519. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1520. for (var k in o)
  1521. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1522. return fmt;
  1523. }
  1524. $("#jrjc").change(function() {
  1525. if ($("#jrjc").prop('checked') == true){
  1526. $("#departmentId").removeAttr("disabled");
  1527. }else {
  1528. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1529. }
  1530. });
  1531. ----------------------------------- SOURCE END -------------------------------------
  1532. !STACK 0
  1533. java.lang.NullPointerException
  1534. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:05.940
  1535. !MESSAGE Error while processing working copy
  1536. !STACK 1
  1537. JavaScript Model Exception: java.lang.NullPointerException
  1538. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1539. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1540. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1541. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1542. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1543. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1544. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1545. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1546. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1547. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1548. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1549. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1550. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1551. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1552. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1553. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1554. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  1555. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  1556. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  1557. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  1558. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  1559. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  1560. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  1561. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  1562. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  1563. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  1564. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  1565. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  1566. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  1567. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  1568. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  1569. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  1570. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  1571. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  1572. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  1573. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  1574. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  1575. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  1576. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  1577. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  1578. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  1579. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1580. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  1581. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  1582. at java.lang.reflect.Method.invoke(Unknown Source)
  1583. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  1584. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  1585. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  1586. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  1587. Caused by: java.lang.NullPointerException
  1588. Caused by: java.lang.NullPointerException
  1589. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:05.940
  1590. !MESSAGE java.lang.NullPointerException
  1591. !STACK 0
  1592. java.lang.NullPointerException
  1593. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:06.971
  1594. !MESSAGE Exception occurred during problem detection:
  1595. ----------------------------------- SOURCE BEGIN -------------------------------------
  1596. (function(){WdatePicker();})();
  1597. (function(){WdatePicker();})();
  1598. (function(){Data.get();})();
  1599. (function(){Data.set();})();
  1600. (function(){search();})();
  1601. $(function(){
  1602. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1603. getfp();
  1604. });
  1605. var Data = {
  1606. "get" : function(){
  1607. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1608. var tip = layer.load(2);
  1609. var result="";
  1610. var url = "getgyxml.do";
  1611. $.ajax({
  1612. "url" : url,
  1613. "data" : {
  1614. "start_date" : $("#dateBegin").val(),
  1615. "end_date" : $("#dateEnd").val()
  1616. },
  1617. "type" : "POST",
  1618. "dataType" : "json",
  1619. "success" : function(data) {
  1620. if(data != null && data != ""){
  1621. if ( data.status =="success"){
  1622. getfp();
  1623. alert("获取成功!");
  1624. }else {
  1625. alert(data.status);
  1626. }
  1627. }else {
  1628. alert("获取失败!");
  1629. }
  1630. },
  1631. "complete": function(){
  1632. layer.close(tip);
  1633. }
  1634. });
  1635. }else {
  1636. alert("请选择日期!");
  1637. }
  1638. },
  1639. "set" : function(){
  1640. if ( $("#fpid option:selected").text() !=""){
  1641. var tip = layer.load(2);
  1642. var gitem = $("#form1").serialize();
  1643. var jrjc;
  1644. if ($("#jrjc").prop('checked') == true){
  1645. jrjc = $("#departmentId").val();
  1646. }else {
  1647. jrjc ='N'
  1648. }
  1649. var url = "saverk.do";
  1650. $.ajax({
  1651. "url" : url,
  1652. "data" : {
  1653. "gitem" : gitem,
  1654. "jrjc" : jrjc
  1655. },
  1656. "type" : "POST",
  1657. "dataType" : "json",
  1658. "async" : true,
  1659. "success" : function(data) {
  1660. if(data.status ="success"){
  1661. alert("入库成功!");
  1662. window.location.reload();
  1663. }else {
  1664. alert(msg);
  1665. }
  1666. },
  1667. "error": function(){
  1668. alert("确认失败!");
  1669. },
  1670. "complete": function(){
  1671. layer.close(tip);
  1672. }
  1673. });
  1674. }else {
  1675. alert("请选择发票!");
  1676. }
  1677. }
  1678. }
  1679. function getfp(){
  1680. var tip = layer.load(2);
  1681. var url = "getgyfp.do";
  1682. $.ajax({
  1683. "url" : url,
  1684. "type" : "POST",
  1685. "dataType" : "json",
  1686. "async" : true,
  1687. "success" : function(data) {
  1688. if(data != null && data != ""){
  1689. $("#fpid").empty();
  1690. $("#fpid").append("_$tag_____________$tag____");
  1691. for(var i = 0; i < data.length; i++){
  1692. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1693. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1694. }
  1695. }
  1696. },
  1697. "error" : function(msg){
  1698. },
  1699. "complete": function(){
  1700. layer.close(tip);
  1701. }
  1702. });
  1703. }
  1704. $("#fpid").change(function(){
  1705. var tip = layer.load(2);
  1706. var url = "getgyrkxx.do";
  1707. var sum_total=0;
  1708. $.ajax({
  1709. "url" : url,
  1710. "data" : {
  1711. "fpId" : $("#fpid").val()
  1712. },
  1713. "type" : "POST",
  1714. "dataType" : "json",
  1715. "async" : true,
  1716. "success" : function(data) {
  1717. $("#dataTable").html("");
  1718. if(data != null && data != ""){
  1719. var html = "";
  1720. for(var i = 0; i < data.length; i++){
  1721. var ID = data[i].id == null ? "" : data[i].id;
  1722. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1723. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1724. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1725. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1726. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1727. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1728. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1729. var NAME = data[i].name == null ? "" : data[i].name;
  1730. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1731. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1732. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1733. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1734. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1735. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1736. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1737. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1738. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1739. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1740. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1741. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1742. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1743. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1744. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1745. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1746. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1747. sum_total = sum_total + DPRC
  1748. var invoice_type_cn =null;
  1749. if (invoice_type =="00" ){
  1750. invoice_type_cn="销售发票";
  1751. }else if (invoice_type == "01") {
  1752. invoice_type_cn="更正(对冲)发票";
  1753. }else if (invoice_type == "02") {
  1754. invoice_type_cn="其它类型发票";
  1755. }
  1756. html += "_$ta";
  1757. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1758. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1759. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1760. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1761. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1762. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1763. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1764. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1765. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1766. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1767. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1768. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1769. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1770. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1771. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1772. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1773. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1774. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1775. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1776. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1777. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1778. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1779. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1780. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1781. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1782. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1783. html += "_$tag";
  1784. }
  1785. html += "_$ta";
  1786. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1787. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1788. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1789. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1790. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1791. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1792. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1793. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1794. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1795. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1796. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1797. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1798. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1799. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1800. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1801. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1802. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1803. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1804. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1805. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1806. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1807. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1808. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1809. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1810. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1811. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1812. html += "_$tag";
  1813. $("#dataTable").html(html);
  1814. }else {
  1815. $("#dataTable").html("");
  1816. }
  1817. },
  1818. "error" : function(msg){
  1819. },
  1820. "complete": function(){
  1821. layer.close(tip);
  1822. }
  1823. });
  1824. });
  1825. Date.prototype.Format = function (fmt) {
  1826. var o = {
  1827. "M+": this.getMonth() + 1, //月份
  1828. "d+": this.getDate(), //日
  1829. "h+": this.getHours(), //小时
  1830. "m+": this.getMinutes(), //分
  1831. "s+": this.getSeconds(), //秒
  1832. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1833. "S": this.getMilliseconds() //毫秒
  1834. };
  1835. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1836. for (var k in o)
  1837. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1838. return fmt;
  1839. }
  1840. $("#jrjc").change(function() {
  1841. if ($("#jrjc").prop('checked') == true){
  1842. $("#departmentId").removeAttr("disabled");
  1843. }else {
  1844. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1845. }
  1846. });
  1847. ----------------------------------- SOURCE END -------------------------------------
  1848. !STACK 0
  1849. java.lang.NullPointerException
  1850. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:07.336
  1851. !MESSAGE Exception occurred during problem detection:
  1852. ----------------------------------- SOURCE BEGIN -------------------------------------
  1853. (function(){WdatePicker();})();
  1854. (function(){WdatePicker();})();
  1855. (function(){Data.get();})();
  1856. (function(){Data.set();})();
  1857. (function(){search();})();
  1858. $(function(){
  1859. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1860. getfp();
  1861. });
  1862. var Data = {
  1863. "get" : function(){
  1864. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1865. var tip = layer.load(2);
  1866. var result="";
  1867. var url = "getgyxml.do";
  1868. $.ajax({
  1869. "url" : url,
  1870. "data" : {
  1871. "start_date" : $("#dateBegin").val(),
  1872. "end_date" : $("#dateEnd").val()
  1873. },
  1874. "type" : "POST",
  1875. "dataType" : "json",
  1876. "success" : function(data) {
  1877. if(data != null && data != ""){
  1878. if ( data.status =="success"){
  1879. getfp();
  1880. alert("获取成功!");
  1881. }else {
  1882. alert(data.status);
  1883. }
  1884. }else {
  1885. alert("获取失败!");
  1886. }
  1887. },
  1888. "complete": function(){
  1889. layer.close(tip);
  1890. }
  1891. });
  1892. }else {
  1893. alert("请选择日期!");
  1894. }
  1895. },
  1896. "set" : function(){
  1897. if ( $("#fpid option:selected").text() !=""){
  1898. var tip = layer.load(2);
  1899. var gitem = $("#form1").serialize();
  1900. var jrjc;
  1901. if ($("#jrjc").prop('checked') == true){
  1902. jrjc = $("#departmentId").val();
  1903. }else {
  1904. jrjc ='N'
  1905. }
  1906. var url = "saverk.do";
  1907. $.ajax({
  1908. "url" : url,
  1909. "data" : {
  1910. "gitem" : gitem,
  1911. "jrjc" : jrjc
  1912. },
  1913. "type" : "POST",
  1914. "dataType" : "json",
  1915. "async" : true,
  1916. "success" : function(data) {
  1917. if(data.status ="success"){
  1918. alert("入库成功!");
  1919. window.location.reload();
  1920. }else {
  1921. alert(msg);
  1922. }
  1923. },
  1924. "error": function(){
  1925. alert("确认失败!");
  1926. },
  1927. "complete": function(){
  1928. layer.close(tip);
  1929. }
  1930. });
  1931. }else {
  1932. alert("请选择发票!");
  1933. }
  1934. }
  1935. }
  1936. function getfp(){
  1937. var tip = layer.load(2);
  1938. var url = "getgyfp.do";
  1939. $.ajax({
  1940. "url" : url,
  1941. "type" : "POST",
  1942. "dataType" : "json",
  1943. "async" : true,
  1944. "success" : function(data) {
  1945. if(data != null && data != ""){
  1946. $("#fpid").empty();
  1947. $("#fpid").append("_$tag_____________$tag____");
  1948. for(var i = 0; i < data.length; i++){
  1949. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1950. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1951. }
  1952. }
  1953. },
  1954. "error" : function(msg){
  1955. },
  1956. "complete": function(){
  1957. layer.close(tip);
  1958. }
  1959. });
  1960. }
  1961. $("#fpid").change(function(){
  1962. var tip = layer.load(2);
  1963. var url = "getgyrkxx.do";
  1964. var sum_total=0;
  1965. $.ajax({
  1966. "url" : url,
  1967. "data" : {
  1968. "fpId" : $("#fpid").val()
  1969. },
  1970. "type" : "POST",
  1971. "dataType" : "json",
  1972. "async" : true,
  1973. "success" : function(data) {
  1974. $("#dataTable").html("");
  1975. if(data != null && data != ""){
  1976. var html = "";
  1977. for(var i = 0; i < data.length; i++){
  1978. var ID = data[i].id == null ? "" : data[i].id;
  1979. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1980. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1981. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1982. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1983. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1984. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1985. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1986. var NAME = data[i].name == null ? "" : data[i].name;
  1987. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1988. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1989. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1990. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1991. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1992. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1993. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1994. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1995. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1996. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1997. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1998. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1999. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2000. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2001. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2002. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2003. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2004. sum_total = sum_total + DPRC
  2005. var invoice_type_cn =null;
  2006. if (invoice_type =="00" ){
  2007. invoice_type_cn="销售发票";
  2008. }else if (invoice_type == "01") {
  2009. invoice_type_cn="更正(对冲)发票";
  2010. }else if (invoice_type == "02") {
  2011. invoice_type_cn="其它类型发票";
  2012. }
  2013. html += "_$ta";
  2014. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2015. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2016. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2017. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2018. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2019. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2020. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2021. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2022. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2023. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2024. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2025. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2026. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2027. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2028. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2029. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2030. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2031. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2032. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2033. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2034. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2035. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2036. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2037. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2038. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2039. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2040. html += "_$tag";
  2041. }
  2042. html += "_$ta";
  2043. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2044. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2045. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2046. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2047. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2048. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2049. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2050. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2051. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2052. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2053. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2054. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2055. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2056. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2057. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2058. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2059. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2060. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2061. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2062. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2063. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2064. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2065. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2066. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2067. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2068. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2069. html += "_$tag";
  2070. $("#dataTable").html(html);
  2071. }else {
  2072. $("#dataTable").html("");
  2073. }
  2074. },
  2075. "error" : function(msg){
  2076. },
  2077. "complete": function(){
  2078. layer.close(tip);
  2079. }
  2080. });
  2081. });
  2082. Date.prototype.Format = function (fmt) {
  2083. var o = {
  2084. "M+": this.getMonth() + 1, //月份
  2085. "d+": this.getDate(), //日
  2086. "h+": this.getHours(), //小时
  2087. "m+": this.getMinutes(), //分
  2088. "s+": this.getSeconds(), //秒
  2089. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2090. "S": this.getMilliseconds() //毫秒
  2091. };
  2092. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2093. for (var k in o)
  2094. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2095. return fmt;
  2096. }
  2097. $("#jrjc").change(function() {
  2098. if ($("#jrjc").prop('checked') == true){
  2099. $("#departmentId").removeAttr("disabled");
  2100. }else {
  2101. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2102. }
  2103. });
  2104. ----------------------------------- SOURCE END -------------------------------------
  2105. !STACK 0
  2106. java.lang.NullPointerException
  2107. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:29:07.340
  2108. !MESSAGE java.lang.NullPointerException
  2109. !STACK 1
  2110. JavaScript Model Exception: java.lang.NullPointerException
  2111. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2112. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  2113. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2114. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2115. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  2116. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  2117. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  2118. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  2119. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  2120. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  2121. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  2122. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  2123. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  2124. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  2125. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  2126. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  2127. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  2128. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  2129. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  2130. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  2131. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  2132. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  2133. Caused by: java.lang.NullPointerException
  2134. Caused by: java.lang.NullPointerException
  2135. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:07.340
  2136. !MESSAGE java.lang.NullPointerException
  2137. !STACK 0
  2138. java.lang.NullPointerException
  2139. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:07.764
  2140. !MESSAGE Exception occurred during problem detection:
  2141. ----------------------------------- SOURCE BEGIN -------------------------------------
  2142. (function(){WdatePicker();})();
  2143. (function(){WdatePicker();})();
  2144. (function(){Data.get();})();
  2145. (function(){Data.set();})();
  2146. (function(){search();})();
  2147. $(function(){
  2148. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2149. getfp();
  2150. });
  2151. var Data = {
  2152. "get" : function(){
  2153. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2154. var tip = layer.load(2);
  2155. var result="";
  2156. var url = "getgyxml.do";
  2157. $.ajax({
  2158. "url" : url,
  2159. "data" : {
  2160. "start_date" : $("#dateBegin").val(),
  2161. "end_date" : $("#dateEnd").val()
  2162. },
  2163. "type" : "POST",
  2164. "dataType" : "json",
  2165. "success" : function(data) {
  2166. if(data != null && data != ""){
  2167. if ( data.status =="success"){
  2168. getfp();
  2169. alert("获取成功!");
  2170. }else {
  2171. alert(data.status);
  2172. }
  2173. }else {
  2174. alert("获取失败!");
  2175. }
  2176. },
  2177. "complete": function(){
  2178. layer.close(tip);
  2179. }
  2180. });
  2181. }else {
  2182. alert("请选择日期!");
  2183. }
  2184. },
  2185. "set" : function(){
  2186. if ( $("#fpid option:selected").text() !=""){
  2187. var tip = layer.load(2);
  2188. var gitem = $("#form1").serialize();
  2189. var jrjc;
  2190. if ($("#jrjc").prop('checked') == true){
  2191. jrjc = $("#departmentId").val();
  2192. }else {
  2193. jrjc ='N'
  2194. }
  2195. var url = "saverk.do";
  2196. $.ajax({
  2197. "url" : url,
  2198. "data" : {
  2199. "gitem" : gitem,
  2200. "jrjc" : jrjc
  2201. },
  2202. "type" : "POST",
  2203. "dataType" : "json",
  2204. "async" : true,
  2205. "success" : function(data) {
  2206. if(data.status ="success"){
  2207. alert("入库成功!");
  2208. window.location.reload();
  2209. }else {
  2210. alert(msg);
  2211. }
  2212. },
  2213. "error": function(){
  2214. alert("确认失败!");
  2215. },
  2216. "complete": function(){
  2217. layer.close(tip);
  2218. }
  2219. });
  2220. }else {
  2221. alert("请选择发票!");
  2222. }
  2223. }
  2224. }
  2225. function getfp(){
  2226. var tip = layer.load(2);
  2227. var url = "getgyfp.do";
  2228. $.ajax({
  2229. "url" : url,
  2230. "type" : "POST",
  2231. "dataType" : "json",
  2232. "async" : true,
  2233. "success" : function(data) {
  2234. if(data != null && data != ""){
  2235. $("#fpid").empty();
  2236. $("#fpid").append("_$tag_____________$tag____");
  2237. for(var i = 0; i < data.length; i++){
  2238. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2239. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2240. }
  2241. }
  2242. },
  2243. "error" : function(msg){
  2244. },
  2245. "complete": function(){
  2246. layer.close(tip);
  2247. }
  2248. });
  2249. }
  2250. $("#fpid").change(function(){
  2251. var tip = layer.load(2);
  2252. var url = "getgyrkxx.do";
  2253. var sum_total=0;
  2254. $.ajax({
  2255. "url" : url,
  2256. "data" : {
  2257. "fpId" : $("#fpid").val()
  2258. },
  2259. "type" : "POST",
  2260. "dataType" : "json",
  2261. "async" : true,
  2262. "success" : function(data) {
  2263. $("#dataTable").html("");
  2264. if(data != null && data != ""){
  2265. var html = "";
  2266. for(var i = 0; i < data.length; i++){
  2267. var ID = data[i].id == null ? "" : data[i].id;
  2268. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2269. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2270. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2271. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2272. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2273. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2274. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2275. var NAME = data[i].name == null ? "" : data[i].name;
  2276. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2277. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2278. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2279. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2280. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2281. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2282. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2283. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2284. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2285. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2286. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2287. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2288. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2289. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2290. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2291. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2292. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2293. sum_total = sum_total + DPRC
  2294. var invoice_type_cn =null;
  2295. if (invoice_type =="00" ){
  2296. invoice_type_cn="销售发票";
  2297. }else if (invoice_type == "01") {
  2298. invoice_type_cn="更正(对冲)发票";
  2299. }else if (invoice_type == "02") {
  2300. invoice_type_cn="其它类型发票";
  2301. }
  2302. html += "_$ta";
  2303. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2304. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2305. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2306. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2307. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2308. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2309. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2310. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2311. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2312. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2313. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2314. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2315. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2316. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2317. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2318. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2319. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2320. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2321. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2322. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2323. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2324. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2325. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2326. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2327. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2328. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2329. html += "_$tag";
  2330. }
  2331. html += "_$ta";
  2332. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2333. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2334. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2335. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2336. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2337. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2338. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2339. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2340. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2341. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2342. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2343. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2344. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2345. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2346. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2347. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2348. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2349. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2350. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2351. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2352. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2353. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2354. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2355. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2356. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2357. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2358. html += "_$tag";
  2359. $("#dataTable").html(html);
  2360. }else {
  2361. $("#dataTable").html("");
  2362. }
  2363. },
  2364. "error" : function(msg){
  2365. },
  2366. "complete": function(){
  2367. layer.close(tip);
  2368. }
  2369. });
  2370. });
  2371. Date.prototype.Format = function (fmt) {
  2372. var o = {
  2373. "M+": this.getMonth() + 1, //月份
  2374. "d+": this.getDate(), //日
  2375. "h+": this.getHours(), //小时
  2376. "m+": this.getMinutes(), //分
  2377. "s+": this.getSeconds(), //秒
  2378. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2379. "S": this.getMilliseconds() //毫秒
  2380. };
  2381. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2382. for (var k in o)
  2383. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2384. return fmt;
  2385. }
  2386. $("#jrjc").change(function() {
  2387. if ($("#jrjc").prop('checked') == true){
  2388. $("#departmentId").removeAttr("disabled");
  2389. }else {
  2390. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2391. }
  2392. });
  2393. ----------------------------------- SOURCE END -------------------------------------
  2394. !STACK 0
  2395. java.lang.NullPointerException
  2396. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:07.765
  2397. !MESSAGE Error while processing working copy
  2398. !STACK 1
  2399. JavaScript Model Exception: java.lang.NullPointerException
  2400. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2401. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2402. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2403. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2404. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2405. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2406. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2407. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2408. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2409. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2410. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2411. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2412. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2413. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2414. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2415. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2416. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  2417. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  2418. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  2419. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  2420. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  2421. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  2422. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  2423. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  2424. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  2425. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  2426. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  2427. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  2428. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  2429. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  2430. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  2431. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  2432. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  2433. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  2434. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  2435. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  2436. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  2437. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  2438. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  2439. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  2440. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  2441. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  2442. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  2443. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  2444. at java.lang.reflect.Method.invoke(Unknown Source)
  2445. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  2446. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  2447. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  2448. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  2449. Caused by: java.lang.NullPointerException
  2450. Caused by: java.lang.NullPointerException
  2451. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:07.765
  2452. !MESSAGE java.lang.NullPointerException
  2453. !STACK 0
  2454. java.lang.NullPointerException
  2455. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:08.710
  2456. !MESSAGE Exception occurred during problem detection:
  2457. ----------------------------------- SOURCE BEGIN -------------------------------------
  2458. (function(){WdatePicker();})();
  2459. (function(){WdatePicker();})();
  2460. (function(){Data.get();})();
  2461. (function(){Data.set();})();
  2462. (function(){search();})();
  2463. $(function(){
  2464. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2465. getfp();
  2466. });
  2467. var Data = {
  2468. "get" : function(){
  2469. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2470. var tip = layer.load(2);
  2471. var result="";
  2472. var url = "getgyxml.do";
  2473. $.ajax({
  2474. "url" : url,
  2475. "data" : {
  2476. "start_date" : $("#dateBegin").val(),
  2477. "end_date" : $("#dateEnd").val()
  2478. },
  2479. "type" : "POST",
  2480. "dataType" : "json",
  2481. "success" : function(data) {
  2482. if(data != null && data != ""){
  2483. if ( data.status =="success"){
  2484. getfp();
  2485. alert("获取成功!");
  2486. }else {
  2487. alert(data.status);
  2488. }
  2489. }else {
  2490. alert("获取失败!");
  2491. }
  2492. },
  2493. "complete": function(){
  2494. layer.close(tip);
  2495. }
  2496. });
  2497. }else {
  2498. alert("请选择日期!");
  2499. }
  2500. },
  2501. "set" : function(){
  2502. if ( $("#fpid option:selected").text() !=""){
  2503. var tip = layer.load(2);
  2504. var gitem = $("#form1").serialize();
  2505. var jrjc;
  2506. if ($("#jrjc").prop('checked') == true){
  2507. jrjc = $("#departmentId").val();
  2508. }else {
  2509. jrjc ='N'
  2510. }
  2511. var url = "saverk.do";
  2512. $.ajax({
  2513. "url" : url,
  2514. "data" : {
  2515. "gitem" : gitem,
  2516. "jrjc" : jrjc
  2517. },
  2518. "type" : "POST",
  2519. "dataType" : "json",
  2520. "async" : true,
  2521. "success" : function(data) {
  2522. if(data.status ="success"){
  2523. alert("入库成功!");
  2524. window.location.reload();
  2525. }else {
  2526. alert(msg);
  2527. }
  2528. },
  2529. "error": function(){
  2530. alert("确认失败!");
  2531. },
  2532. "complete": function(){
  2533. layer.close(tip);
  2534. }
  2535. });
  2536. }else {
  2537. alert("请选择发票!");
  2538. }
  2539. }
  2540. }
  2541. function getfp(){
  2542. var tip = layer.load(2);
  2543. var url = "getgyfp.do";
  2544. $.ajax({
  2545. "url" : url,
  2546. "type" : "POST",
  2547. "dataType" : "json",
  2548. "async" : true,
  2549. "success" : function(data) {
  2550. if(data != null && data != ""){
  2551. $("#fpid").empty();
  2552. $("#fpid").append("_$tag_____________$tag____");
  2553. for(var i = 0; i < data.length; i++){
  2554. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2555. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2556. }
  2557. }
  2558. },
  2559. "error" : function(msg){
  2560. },
  2561. "complete": function(){
  2562. layer.close(tip);
  2563. }
  2564. });
  2565. }
  2566. $("#fpid").change(function(){
  2567. var tip = layer.load(2);
  2568. var url = "getgyrkxx.do";
  2569. var sum_total=0;
  2570. $.ajax({
  2571. "url" : url,
  2572. "data" : {
  2573. "fpId" : $("#fpid").val()
  2574. },
  2575. "type" : "POST",
  2576. "dataType" : "json",
  2577. "async" : true,
  2578. "success" : function(data) {
  2579. $("#dataTable").html("");
  2580. if(data != null && data != ""){
  2581. var html = "";
  2582. for(var i = 0; i < data.length; i++){
  2583. var ID = data[i].id == null ? "" : data[i].id;
  2584. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2585. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2586. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2587. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2588. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2589. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2590. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2591. var NAME = data[i].name == null ? "" : data[i].name;
  2592. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2593. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2594. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2595. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2596. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2597. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2598. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2599. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2600. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2601. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2602. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2603. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2604. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2605. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2606. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2607. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2608. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2609. sum_total = sum_total + DPRC
  2610. var invoice_type_cn =null;
  2611. if (invoice_type =="00" ){
  2612. invoice_type_cn="销售发票";
  2613. }else if (invoice_type == "01") {
  2614. invoice_type_cn="更正(对冲)发票";
  2615. }else if (invoice_type == "02") {
  2616. invoice_type_cn="其它类型发票";
  2617. }
  2618. html += "_$ta";
  2619. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2620. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2621. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2622. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2623. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2624. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2625. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2626. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2627. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2628. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2629. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2630. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2631. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2632. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2633. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2634. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2635. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2636. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2637. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2638. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2639. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2640. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2641. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2642. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2643. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2644. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2645. html += "_$tag";
  2646. }
  2647. html += "_$ta";
  2648. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2649. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2650. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2651. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2652. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2653. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2654. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2655. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2656. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2657. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2658. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2659. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2660. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2661. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2662. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2663. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2664. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2665. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2666. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2667. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2668. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2669. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2670. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2671. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2672. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2673. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2674. html += "_$tag";
  2675. $("#dataTable").html(html);
  2676. }else {
  2677. $("#dataTable").html("");
  2678. }
  2679. },
  2680. "error" : function(msg){
  2681. },
  2682. "complete": function(){
  2683. layer.close(tip);
  2684. }
  2685. });
  2686. });
  2687. Date.prototype.Format = function (fmt) {
  2688. var o = {
  2689. "M+": this.getMonth() + 1, //月份
  2690. "d+": this.getDate(), //日
  2691. "h+": this.getHours(), //小时
  2692. "m+": this.getMinutes(), //分
  2693. "s+": this.getSeconds(), //秒
  2694. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2695. "S": this.getMilliseconds() //毫秒
  2696. };
  2697. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2698. for (var k in o)
  2699. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2700. return fmt;
  2701. }
  2702. $("#jrjc").change(function() {
  2703. if ($("#jrjc").prop('checked') == true){
  2704. $("#departmentId").removeAttr("disabled");
  2705. }else {
  2706. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2707. }
  2708. });
  2709. ----------------------------------- SOURCE END -------------------------------------
  2710. !STACK 0
  2711. java.lang.NullPointerException
  2712. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:14.554
  2713. !MESSAGE Exception occurred during problem detection:
  2714. ----------------------------------- SOURCE BEGIN -------------------------------------
  2715. (function(){WdatePicker();})();
  2716. (function(){WdatePicker();})();
  2717. (function(){Data.get();})();
  2718. (function(){Data.set();})();
  2719. (function(){search();})();
  2720. $(function(){
  2721. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2722. getfp();
  2723. });
  2724. var Data = {
  2725. "get" : function(){
  2726. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2727. var tip = layer.load(2);
  2728. var result="";
  2729. var url = "getgyxml.do";
  2730. $.ajax({
  2731. "url" : url,
  2732. "data" : {
  2733. "start_date" : $("#dateBegin").val(),
  2734. "end_date" : $("#dateEnd").val()
  2735. },
  2736. "type" : "POST",
  2737. "dataType" : "json",
  2738. "success" : function(data) {
  2739. if(data != null && data != ""){
  2740. if ( data.status =="success"){
  2741. getfp();
  2742. alert("获取成功!");
  2743. }else {
  2744. alert(data.status);
  2745. }
  2746. }else {
  2747. alert("获取失败!");
  2748. }
  2749. },
  2750. "complete": function(){
  2751. layer.close(tip);
  2752. }
  2753. });
  2754. }else {
  2755. alert("请选择日期!");
  2756. }
  2757. },
  2758. "set" : function(){
  2759. if ( $("#fpid option:selected").text() !=""){
  2760. var tip = layer.load(2);
  2761. var gitem = $("#form1").serialize();
  2762. var jrjc;
  2763. if ($("#jrjc").prop('checked') == true){
  2764. jrjc = $("#departmentId").val();
  2765. }else {
  2766. jrjc ='N'
  2767. }
  2768. var url = "saverk.do";
  2769. $.ajax({
  2770. "url" : url,
  2771. "data" : {
  2772. "gitem" : gitem,
  2773. "jrjc" : jrjc
  2774. },
  2775. "type" : "POST",
  2776. "dataType" : "json",
  2777. "async" : true,
  2778. "success" : function(data) {
  2779. if(data.status ="success"){
  2780. alert("入库成功!");
  2781. window.location.reload();
  2782. }else {
  2783. alert(msg);
  2784. }
  2785. },
  2786. "error": function(){
  2787. alert("确认失败!");
  2788. },
  2789. "complete": function(){
  2790. layer.close(tip);
  2791. }
  2792. });
  2793. }else {
  2794. alert("请选择发票!");
  2795. }
  2796. }
  2797. }
  2798. function getfp(){
  2799. var tip = layer.load(2);
  2800. var url = "getgyfp.do";
  2801. $.ajax({
  2802. "url" : url,
  2803. "type" : "POST",
  2804. "dataType" : "json",
  2805. "async" : true,
  2806. "success" : function(data) {
  2807. if(data != null && data != ""){
  2808. $("#fpid").empty();
  2809. $("#fpid").append("_$tag_____________$tag____");
  2810. for(var i = 0; i < data.length; i++){
  2811. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2812. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2813. }
  2814. }
  2815. },
  2816. "error" : function(msg){
  2817. },
  2818. "complete": function(){
  2819. layer.close(tip);
  2820. }
  2821. });
  2822. }
  2823. $("#fpid").change(function(){
  2824. var tip = layer.load(2);
  2825. var url = "getgyrkxx.do";
  2826. var sum_total=0;
  2827. $.ajax({
  2828. "url" : url,
  2829. "data" : {
  2830. "fpId" : $("#fpid").val()
  2831. },
  2832. "type" : "POST",
  2833. "dataType" : "json",
  2834. "async" : true,
  2835. "success" : function(data) {
  2836. $("#dataTable").html("");
  2837. if(data != null && data != ""){
  2838. var html = "";
  2839. for(var i = 0; i < data.length; i++){
  2840. var ID = data[i].id == null ? "" : data[i].id;
  2841. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2842. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2843. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2844. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2845. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2846. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2847. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2848. var NAME = data[i].name == null ? "" : data[i].name;
  2849. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2850. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2851. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2852. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2853. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2854. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2855. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2856. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2857. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2858. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2859. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2860. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2861. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2862. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2863. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2864. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2865. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2866. sum_total = sum_total + DPRC
  2867. var invoice_type_cn =null;
  2868. if (invoice_type =="00" ){
  2869. invoice_type_cn="销售发票";
  2870. }else if (invoice_type == "01") {
  2871. invoice_type_cn="更正(对冲)发票";
  2872. }else if (invoice_type == "02") {
  2873. invoice_type_cn="其它类型发票";
  2874. }
  2875. html += "_$ta";
  2876. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2877. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2878. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2879. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2880. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2881. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2882. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2883. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2884. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2885. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2886. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2887. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2888. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2889. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2890. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2891. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2892. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2893. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2894. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2895. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2896. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2897. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2898. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2899. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2900. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2901. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2902. html += "_$tag";
  2903. }
  2904. html += "_$ta";
  2905. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2906. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2907. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2908. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2909. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2910. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2911. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2912. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2913. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2914. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2915. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2916. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2917. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2918. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2919. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2920. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2921. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2922. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2923. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2924. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2925. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2926. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2927. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2928. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2929. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2930. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2931. html += "_$tag";
  2932. $("#dataTable").html(html);
  2933. }else {
  2934. $("#dataTable").html("");
  2935. }
  2936. },
  2937. "error" : function(msg){
  2938. },
  2939. "complete": function(){
  2940. layer.close(tip);
  2941. }
  2942. });
  2943. });
  2944. Date.prototype.Format = function (fmt) {
  2945. var o = {
  2946. "M+": this.getMonth() + 1, //月份
  2947. "d+": this.getDate(), //日
  2948. "h+": this.getHours(), //小时
  2949. "m+": this.getMinutes(), //分
  2950. "s+": this.getSeconds(), //秒
  2951. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2952. "S": this.getMilliseconds() //毫秒
  2953. };
  2954. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2955. for (var k in o)
  2956. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2957. return fmt;
  2958. }
  2959. $("#jrjc").change(function() {
  2960. if ($("#jrjc").prop('checked') == true){
  2961. $("#departmentId").removeAttr("disabled");
  2962. }else {
  2963. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2964. }
  2965. });
  2966. ----------------------------------- SOURCE END -------------------------------------
  2967. !STACK 0
  2968. java.lang.NullPointerException
  2969. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:14.555
  2970. !MESSAGE Error while processing working copy
  2971. !STACK 1
  2972. JavaScript Model Exception: java.lang.NullPointerException
  2973. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2974. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2975. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2976. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2977. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2978. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2979. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2980. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2981. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2982. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2983. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2984. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2985. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2986. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2987. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2988. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2989. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  2990. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  2991. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2992. Caused by: java.lang.NullPointerException
  2993. Caused by: java.lang.NullPointerException
  2994. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:14.555
  2995. !MESSAGE java.lang.NullPointerException
  2996. !STACK 0
  2997. java.lang.NullPointerException
  2998. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:15.584
  2999. !MESSAGE Exception occurred during problem detection:
  3000. ----------------------------------- SOURCE BEGIN -------------------------------------
  3001. (function(){WdatePicker();})();
  3002. (function(){WdatePicker();})();
  3003. (function(){Data.get();})();
  3004. (function(){Data.set();})();
  3005. (function(){search();})();
  3006. $(function(){
  3007. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3008. getfp();
  3009. });
  3010. var Data = {
  3011. "get" : function(){
  3012. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3013. var tip = layer.load(2);
  3014. var result="";
  3015. var url = "getgyxml.do";
  3016. $.ajax({
  3017. "url" : url,
  3018. "data" : {
  3019. "start_date" : $("#dateBegin").val(),
  3020. "end_date" : $("#dateEnd").val()
  3021. },
  3022. "type" : "POST",
  3023. "dataType" : "json",
  3024. "success" : function(data) {
  3025. if(data != null && data != ""){
  3026. if ( data.status =="success"){
  3027. getfp();
  3028. alert("获取成功!");
  3029. }else {
  3030. alert(data.status);
  3031. }
  3032. }else {
  3033. alert("获取失败!");
  3034. }
  3035. },
  3036. "complete": function(){
  3037. layer.close(tip);
  3038. }
  3039. });
  3040. }else {
  3041. alert("请选择日期!");
  3042. }
  3043. },
  3044. "set" : function(){
  3045. if ( $("#fpid option:selected").text() !=""){
  3046. var tip = layer.load(2);
  3047. var gitem = $("#form1").serialize();
  3048. var jrjc;
  3049. if ($("#jrjc").prop('checked') == true){
  3050. jrjc = $("#departmentId").val();
  3051. }else {
  3052. jrjc ='N'
  3053. }
  3054. var url = "saverk.do";
  3055. $.ajax({
  3056. "url" : url,
  3057. "data" : {
  3058. "gitem" : gitem,
  3059. "jrjc" : jrjc
  3060. },
  3061. "type" : "POST",
  3062. "dataType" : "json",
  3063. "async" : true,
  3064. "success" : function(data) {
  3065. if(data.status ="success"){
  3066. alert("入库成功!");
  3067. window.location.reload();
  3068. }else {
  3069. alert(msg);
  3070. }
  3071. },
  3072. "error": function(){
  3073. alert("确认失败!");
  3074. },
  3075. "complete": function(){
  3076. layer.close(tip);
  3077. }
  3078. });
  3079. }else {
  3080. alert("请选择发票!");
  3081. }
  3082. }
  3083. }
  3084. function getfp(){
  3085. var tip = layer.load(2);
  3086. var url = "getgyfp.do";
  3087. $.ajax({
  3088. "url" : url,
  3089. "type" : "POST",
  3090. "dataType" : "json",
  3091. "async" : true,
  3092. "success" : function(data) {
  3093. if(data != null && data != ""){
  3094. $("#fpid").empty();
  3095. $("#fpid").append("_$tag_____________$tag____");
  3096. for(var i = 0; i < data.length; i++){
  3097. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3098. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3099. }
  3100. }
  3101. },
  3102. "error" : function(msg){
  3103. },
  3104. "complete": function(){
  3105. layer.close(tip);
  3106. }
  3107. });
  3108. }
  3109. $("#fpid").change(function(){
  3110. var tip = layer.load(2);
  3111. var url = "getgyrkxx.do";
  3112. var sum_total=0;
  3113. $.ajax({
  3114. "url" : url,
  3115. "data" : {
  3116. "fpId" : $("#fpid").val()
  3117. },
  3118. "type" : "POST",
  3119. "dataType" : "json",
  3120. "async" : true,
  3121. "success" : function(data) {
  3122. $("#dataTable").html("");
  3123. if(data != null && data != ""){
  3124. var html = "";
  3125. for(var i = 0; i < data.length; i++){
  3126. var ID = data[i].id == null ? "" : data[i].id;
  3127. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3128. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3129. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3130. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3131. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3132. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3133. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3134. var NAME = data[i].name == null ? "" : data[i].name;
  3135. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3136. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3137. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3138. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3139. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3140. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3141. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3142. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3143. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3144. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3145. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3146. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3147. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3148. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3149. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3150. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3151. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3152. sum_total = sum_total + DPRC
  3153. var invoice_type_cn =null;
  3154. if (invoice_type =="00" ){
  3155. invoice_type_cn="销售发票";
  3156. }else if (invoice_type == "01") {
  3157. invoice_type_cn="更正(对冲)发票";
  3158. }else if (invoice_type == "02") {
  3159. invoice_type_cn="其它类型发票";
  3160. }
  3161. html += "_$ta";
  3162. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3163. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3164. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3165. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3166. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3167. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3168. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3169. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3170. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3171. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3172. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3173. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3174. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3175. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3176. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3177. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3178. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3179. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3180. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3181. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3182. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3183. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3184. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3185. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3186. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3187. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3188. html += "_$tag";
  3189. }
  3190. html += "_$ta";
  3191. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3192. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3193. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3194. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3195. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3196. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3197. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3198. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3199. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3200. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3201. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3202. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3203. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3204. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3205. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3206. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3207. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3208. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3209. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3210. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3211. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3212. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3213. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3214. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3215. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3216. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3217. html += "_$tag";
  3218. $("#dataTable").html(html);
  3219. }else {
  3220. $("#dataTable").html("");
  3221. }
  3222. },
  3223. "error" : function(msg){
  3224. },
  3225. "complete": function(){
  3226. layer.close(tip);
  3227. }
  3228. });
  3229. });
  3230. Date.prototype.Format = function (fmt) {
  3231. var o = {
  3232. "M+": this.getMonth() + 1, //月份
  3233. "d+": this.getDate(), //日
  3234. "h+": this.getHours(), //小时
  3235. "m+": this.getMinutes(), //分
  3236. "s+": this.getSeconds(), //秒
  3237. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3238. "S": this.getMilliseconds() //毫秒
  3239. };
  3240. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3241. for (var k in o)
  3242. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3243. return fmt;
  3244. }
  3245. $("#jrjc").change(function() {
  3246. if ($("#jrjc").prop('checked') == true){
  3247. $("#departmentId").removeAttr("disabled");
  3248. }else {
  3249. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3250. }
  3251. });
  3252. ----------------------------------- SOURCE END -------------------------------------
  3253. !STACK 0
  3254. java.lang.NullPointerException
  3255. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:16.869
  3256. !MESSAGE Exception occurred during problem detection:
  3257. ----------------------------------- SOURCE BEGIN -------------------------------------
  3258. (function(){WdatePicker();})();
  3259. (function(){WdatePicker();})();
  3260. (function(){Data.get();})();
  3261. (function(){Data.set();})();
  3262. (function(){search();})();
  3263. $(function(){
  3264. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3265. getfp();
  3266. });
  3267. var Data = {
  3268. "get" : function(){
  3269. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3270. var tip = layer.load(2);
  3271. var result="";
  3272. var url = "getgyxml.do";
  3273. $.ajax({
  3274. "url" : url,
  3275. "data" : {
  3276. "start_date" : $("#dateBegin").val(),
  3277. "end_date" : $("#dateEnd").val()
  3278. },
  3279. "type" : "POST",
  3280. "dataType" : "json",
  3281. "success" : function(data) {
  3282. if(data != null && data != ""){
  3283. if ( data.status =="success"){
  3284. getfp();
  3285. alert("获取成功!");
  3286. }else {
  3287. alert(data.status);
  3288. }
  3289. }else {
  3290. alert("获取失败!");
  3291. }
  3292. },
  3293. "complete": function(){
  3294. layer.close(tip);
  3295. }
  3296. });
  3297. }else {
  3298. alert("请选择日期!");
  3299. }
  3300. },
  3301. "set" : function(){
  3302. if ( $("#fpid option:selected").text() !=""){
  3303. var tip = layer.load(2);
  3304. var gitem = $("#form1").serialize();
  3305. var jrjc;
  3306. if ($("#jrjc").prop('checked') == true){
  3307. jrjc = $("#departmentId").val();
  3308. }else {
  3309. jrjc ='N'
  3310. }
  3311. var url = "saverk.do";
  3312. $.ajax({
  3313. "url" : url,
  3314. "data" : {
  3315. "gitem" : gitem,
  3316. "jrjc" : jrjc
  3317. },
  3318. "type" : "POST",
  3319. "dataType" : "json",
  3320. "async" : true,
  3321. "success" : function(data) {
  3322. if(data.status ="success"){
  3323. alert("入库成功!");
  3324. window.location.reload();
  3325. }else {
  3326. alert(msg);
  3327. }
  3328. },
  3329. "error": function(){
  3330. alert("确认失败!");
  3331. },
  3332. "complete": function(){
  3333. layer.close(tip);
  3334. }
  3335. });
  3336. }else {
  3337. alert("请选择发票!");
  3338. }
  3339. }
  3340. }
  3341. function getfp(){
  3342. var tip = layer.load(2);
  3343. var url = "getgyfp.do";
  3344. $.ajax({
  3345. "url" : url,
  3346. "type" : "POST",
  3347. "dataType" : "json",
  3348. "async" : true,
  3349. "success" : function(data) {
  3350. if(data != null && data != ""){
  3351. $("#fpid").empty();
  3352. $("#fpid").append("_$tag_____________$tag____");
  3353. for(var i = 0; i < data.length; i++){
  3354. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3355. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3356. }
  3357. }
  3358. },
  3359. "error" : function(msg){
  3360. },
  3361. "complete": function(){
  3362. layer.close(tip);
  3363. }
  3364. });
  3365. }
  3366. $("#fpid").change(function(){
  3367. var tip = layer.load(2);
  3368. var url = "getgyrkxx.do";
  3369. var sum_total=0;
  3370. $.ajax({
  3371. "url" : url,
  3372. "data" : {
  3373. "fpId" : $("#fpid").val()
  3374. },
  3375. "type" : "POST",
  3376. "dataType" : "json",
  3377. "async" : true,
  3378. "success" : function(data) {
  3379. $("#dataTable").html("");
  3380. if(data != null && data != ""){
  3381. var html = "";
  3382. for(var i = 0; i < data.length; i++){
  3383. var ID = data[i].id == null ? "" : data[i].id;
  3384. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3385. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3386. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3387. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3388. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3389. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3390. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3391. var NAME = data[i].name == null ? "" : data[i].name;
  3392. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3393. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3394. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3395. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3396. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3397. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3398. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3399. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3400. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3401. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3402. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3403. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3404. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3405. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3406. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3407. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3408. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3409. sum_total = sum_total + DPRC
  3410. var invoice_type_cn =null;
  3411. if (invoice_type =="00" ){
  3412. invoice_type_cn="销售发票";
  3413. }else if (invoice_type == "01") {
  3414. invoice_type_cn="更正(对冲)发票";
  3415. }else if (invoice_type == "02") {
  3416. invoice_type_cn="其它类型发票";
  3417. }
  3418. html += "_$ta";
  3419. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3420. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3421. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3422. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3423. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3424. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3425. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3426. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3427. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3428. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3429. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3430. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3431. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3432. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3433. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3434. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3435. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3436. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3437. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3438. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3439. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3440. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3441. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3442. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3443. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3444. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3445. html += "_$tag";
  3446. }
  3447. html += "_$ta";
  3448. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3449. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3450. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3451. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3452. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3453. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3454. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3455. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3456. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3457. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3458. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3459. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3460. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3461. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3462. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3463. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3464. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3465. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3466. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3467. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3468. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3469. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3470. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3471. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3472. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3473. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3474. html += "_$tag";
  3475. $("#dataTable").html(html);
  3476. }else {
  3477. $("#dataTable").html("");
  3478. }
  3479. },
  3480. "error" : function(msg){
  3481. },
  3482. "complete": function(){
  3483. layer.close(tip);
  3484. }
  3485. });
  3486. });
  3487. Date.prototype.Format = function (fmt) {
  3488. var o = {
  3489. "M+": this.getMonth() + 1, //月份
  3490. "d+": this.getDate(), //日
  3491. "h+": this.getHours(), //小时
  3492. "m+": this.getMinutes(), //分
  3493. "s+": this.getSeconds(), //秒
  3494. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3495. "S": this.getMilliseconds() //毫秒
  3496. };
  3497. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3498. for (var k in o)
  3499. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3500. return fmt;
  3501. }
  3502. $("#jrjc").change(function() {
  3503. if ($("#jrjc").prop('checked') == true){
  3504. $("#departmentId").removeAttr("disabled");
  3505. }else {
  3506. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3507. }
  3508. });
  3509. ----------------------------------- SOURCE END -------------------------------------
  3510. !STACK 0
  3511. java.lang.NullPointerException
  3512. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:16.870
  3513. !MESSAGE Error while processing working copy
  3514. !STACK 1
  3515. JavaScript Model Exception: java.lang.NullPointerException
  3516. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3517. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3518. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3519. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3520. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3521. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3522. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3523. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3524. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3525. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3526. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3527. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3528. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3529. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3530. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3531. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3532. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3533. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3534. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3535. Caused by: java.lang.NullPointerException
  3536. Caused by: java.lang.NullPointerException
  3537. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:16.870
  3538. !MESSAGE java.lang.NullPointerException
  3539. !STACK 0
  3540. java.lang.NullPointerException
  3541. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:17.565
  3542. !MESSAGE Exception occurred during problem detection:
  3543. ----------------------------------- SOURCE BEGIN -------------------------------------
  3544. (function(){WdatePicker();})();
  3545. (function(){WdatePicker();})();
  3546. (function(){Data.get();})();
  3547. (function(){Data.set();})();
  3548. (function(){search();})();
  3549. $(function(){
  3550. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3551. getfp();
  3552. });
  3553. var Data = {
  3554. "get" : function(){
  3555. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3556. var tip = layer.load(2);
  3557. var result="";
  3558. var url = "getgyxml.do";
  3559. $.ajax({
  3560. "url" : url,
  3561. "data" : {
  3562. "start_date" : $("#dateBegin").val(),
  3563. "end_date" : $("#dateEnd").val()
  3564. },
  3565. "type" : "POST",
  3566. "dataType" : "json",
  3567. "success" : function(data) {
  3568. if(data != null && data != ""){
  3569. if ( data.status =="success"){
  3570. getfp();
  3571. alert("获取成功!");
  3572. }else {
  3573. alert(data.status);
  3574. }
  3575. }else {
  3576. alert("获取失败!");
  3577. }
  3578. },
  3579. "complete": function(){
  3580. layer.close(tip);
  3581. }
  3582. });
  3583. }else {
  3584. alert("请选择日期!");
  3585. }
  3586. },
  3587. "set" : function(){
  3588. if ( $("#fpid option:selected").text() !=""){
  3589. var tip = layer.load(2);
  3590. var gitem = $("#form1").serialize();
  3591. var jrjc;
  3592. if ($("#jrjc").prop('checked') == true){
  3593. jrjc = $("#departmentId").val();
  3594. }else {
  3595. jrjc ='N'
  3596. }
  3597. var url = "saverk.do";
  3598. $.ajax({
  3599. "url" : url,
  3600. "data" : {
  3601. "gitem" : gitem,
  3602. "jrjc" : jrjc
  3603. },
  3604. "type" : "POST",
  3605. "dataType" : "json",
  3606. "async" : true,
  3607. "success" : function(data) {
  3608. if(data.status ="success"){
  3609. alert("入库成功!");
  3610. window.location.reload();
  3611. }else {
  3612. alert(msg);
  3613. }
  3614. },
  3615. "error": function(){
  3616. alert("确认失败!");
  3617. },
  3618. "complete": function(){
  3619. layer.close(tip);
  3620. }
  3621. });
  3622. }else {
  3623. alert("请选择发票!");
  3624. }
  3625. }
  3626. }
  3627. function getfp(){
  3628. var tip = layer.load(2);
  3629. var url = "getgyfp.do";
  3630. $.ajax({
  3631. "url" : url,
  3632. "type" : "POST",
  3633. "dataType" : "json",
  3634. "async" : true,
  3635. "success" : function(data) {
  3636. if(data != null && data != ""){
  3637. $("#fpid").empty();
  3638. $("#fpid").append("_$tag_____________$tag____");
  3639. for(var i = 0; i < data.length; i++){
  3640. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3641. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3642. }
  3643. }
  3644. },
  3645. "error" : function(msg){
  3646. },
  3647. "complete": function(){
  3648. layer.close(tip);
  3649. }
  3650. });
  3651. }
  3652. $("#fpid").change(function(){
  3653. var tip = layer.load(2);
  3654. var url = "getgyrkxx.do";
  3655. var sum_total=0;
  3656. $.ajax({
  3657. "url" : url,
  3658. "data" : {
  3659. "fpId" : $("#fpid").val()
  3660. },
  3661. "type" : "POST",
  3662. "dataType" : "json",
  3663. "async" : true,
  3664. "success" : function(data) {
  3665. $("#dataTable").html("");
  3666. if(data != null && data != ""){
  3667. var html = "";
  3668. for(var i = 0; i < data.length; i++){
  3669. var ID = data[i].id == null ? "" : data[i].id;
  3670. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3671. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3672. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3673. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3674. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3675. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3676. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3677. var NAME = data[i].name == null ? "" : data[i].name;
  3678. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3679. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3680. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3681. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3682. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3683. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3684. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3685. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3686. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3687. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3688. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3689. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3690. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3691. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3692. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3693. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3694. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3695. sum_total = sum_total + DPRC
  3696. var invoice_type_cn =null;
  3697. if (invoice_type =="00" ){
  3698. invoice_type_cn="销售发票";
  3699. }else if (invoice_type == "01") {
  3700. invoice_type_cn="更正(对冲)发票";
  3701. }else if (invoice_type == "02") {
  3702. invoice_type_cn="其它类型发票";
  3703. }
  3704. html += "_$ta";
  3705. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3706. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3707. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3708. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3709. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3710. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3711. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3712. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3713. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3714. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3715. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3716. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3717. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3718. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3719. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3720. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3721. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3722. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3723. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3724. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3725. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3726. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3727. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3728. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3729. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3730. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3731. html += "_$tag";
  3732. }
  3733. html += "_$ta";
  3734. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3735. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3736. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3737. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3738. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3739. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3740. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3741. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3742. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3743. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3744. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3745. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3746. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3747. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3748. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3749. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3750. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3751. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3752. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3753. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3754. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3755. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3756. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3757. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3758. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3759. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3760. html += "_$tag";
  3761. $("#dataTable").html(html);
  3762. }else {
  3763. $("#dataTable").html("");
  3764. }
  3765. },
  3766. "error" : function(msg){
  3767. },
  3768. "complete": function(){
  3769. layer.close(tip);
  3770. }
  3771. });
  3772. });
  3773. Date.prototype.Format = function (fmt) {
  3774. var o = {
  3775. "M+": this.getMonth() + 1, //月份
  3776. "d+": this.getDate(), //日
  3777. "h+": this.getHours(), //小时
  3778. "m+": this.getMinutes(), //分
  3779. "s+": this.getSeconds(), //秒
  3780. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3781. "S": this.getMilliseconds() //毫秒
  3782. };
  3783. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3784. for (var k in o)
  3785. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3786. return fmt;
  3787. }
  3788. $("#jrjc").change(function() {
  3789. if ($("#jrjc").prop('checked') == true){
  3790. $("#departmentId").removeAttr("disabled");
  3791. }else {
  3792. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3793. }
  3794. });
  3795. ----------------------------------- SOURCE END -------------------------------------
  3796. !STACK 0
  3797. java.lang.NullPointerException
  3798. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:33.622
  3799. !MESSAGE Exception occurred during problem detection:
  3800. ----------------------------------- SOURCE BEGIN -------------------------------------
  3801. (function(){WdatePicker();})();
  3802. (function(){WdatePicker();})();
  3803. (function(){Data.get();})();
  3804. (function(){Data.set();})();
  3805. (function(){search();})();
  3806. $(function(){
  3807. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3808. getfp();
  3809. });
  3810. var Data = {
  3811. "get" : function(){
  3812. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3813. var tip = layer.load(2);
  3814. var result="";
  3815. var url = "getgyxml.do";
  3816. $.ajax({
  3817. "url" : url,
  3818. "data" : {
  3819. "start_date" : $("#dateBegin").val(),
  3820. "end_date" : $("#dateEnd").val()
  3821. },
  3822. "type" : "POST",
  3823. "dataType" : "json",
  3824. "success" : function(data) {
  3825. if(data != null && data != ""){
  3826. if ( data.status =="success"){
  3827. getfp();
  3828. alert("获取成功!");
  3829. }else {
  3830. alert(data.status);
  3831. }
  3832. }else {
  3833. alert("获取失败!");
  3834. }
  3835. },
  3836. "complete": function(){
  3837. layer.close(tip);
  3838. }
  3839. });
  3840. }else {
  3841. alert("请选择日期!");
  3842. }
  3843. },
  3844. "set" : function(){
  3845. if ( $("#fpid option:selected").text() !=""){
  3846. var tip = layer.load(2);
  3847. var gitem = $("#form1").serialize();
  3848. var jrjc;
  3849. if ($("#jrjc").prop('checked') == true){
  3850. jrjc = $("#departmentId").val();
  3851. }else {
  3852. jrjc ='N'
  3853. }
  3854. var url = "saverk.do";
  3855. $.ajax({
  3856. "url" : url,
  3857. "data" : {
  3858. "gitem" : gitem,
  3859. "jrjc" : jrjc
  3860. },
  3861. "type" : "POST",
  3862. "dataType" : "json",
  3863. "async" : true,
  3864. "success" : function(data) {
  3865. if(data.status ="success"){
  3866. alert("入库成功!");
  3867. window.location.reload();
  3868. }else {
  3869. alert(msg);
  3870. }
  3871. },
  3872. "error": function(){
  3873. alert("确认失败!");
  3874. },
  3875. "complete": function(){
  3876. layer.close(tip);
  3877. }
  3878. });
  3879. }else {
  3880. alert("请选择发票!");
  3881. }
  3882. }
  3883. }
  3884. function getfp(){
  3885. var tip = layer.load(2);
  3886. var url = "getgyfp.do";
  3887. $.ajax({
  3888. "url" : url,
  3889. "type" : "POST",
  3890. "dataType" : "json",
  3891. "async" : true,
  3892. "success" : function(data) {
  3893. if(data != null && data != ""){
  3894. $("#fpid").empty();
  3895. $("#fpid").append("_$tag_____________$tag____");
  3896. for(var i = 0; i < data.length; i++){
  3897. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3898. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3899. }
  3900. }
  3901. },
  3902. "error" : function(msg){
  3903. },
  3904. "complete": function(){
  3905. layer.close(tip);
  3906. }
  3907. });
  3908. }
  3909. $("#fpid").change(function(){
  3910. var tip = layer.load(2);
  3911. var url = "getgyrkxx.do";
  3912. var sum_total=0;
  3913. $.ajax({
  3914. "url" : url,
  3915. "data" : {
  3916. "fpId" : $("#fpid").val()
  3917. },
  3918. "type" : "POST",
  3919. "dataType" : "json",
  3920. "async" : true,
  3921. "success" : function(data) {
  3922. $("#dataTable").html("");
  3923. if(data != null && data != ""){
  3924. var html = "";
  3925. for(var i = 0; i < data.length; i++){
  3926. var ID = data[i].id == null ? "" : data[i].id;
  3927. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3928. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3929. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3930. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3931. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3932. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3933. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3934. var NAME = data[i].name == null ? "" : data[i].name;
  3935. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3936. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3937. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3938. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3939. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3940. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3941. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3942. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3943. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3944. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3945. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3946. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3947. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3948. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3949. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3950. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3951. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3952. sum_total = sum_total + DPRC
  3953. var invoice_type_cn =null;
  3954. if (invoice_type =="00" ){
  3955. invoice_type_cn="销售发票";
  3956. }else if (invoice_type == "01") {
  3957. invoice_type_cn="更正(对冲)发票";
  3958. }else if (invoice_type == "02") {
  3959. invoice_type_cn="其它类型发票";
  3960. }
  3961. html += "_$ta";
  3962. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3963. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3964. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3965. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3966. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3967. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3968. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3969. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3970. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3971. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3972. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3973. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3974. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3975. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3976. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3977. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3978. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3979. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3980. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3981. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3982. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3983. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3984. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3985. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3986. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3987. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3988. html += "_$tag";
  3989. }
  3990. html += "_$ta";
  3991. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3992. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3993. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3994. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3995. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3996. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3997. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3998. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3999. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4000. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4001. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4002. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4003. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4004. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4005. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4006. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4007. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4008. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4009. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4010. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4011. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4012. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4013. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4014. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4015. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4016. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4017. html += "_$tag";
  4018. $("#dataTable").html(html);
  4019. }else {
  4020. $("#dataTable").html("");
  4021. }
  4022. },
  4023. "error" : function(msg){
  4024. },
  4025. "complete": function(){
  4026. layer.close(tip);
  4027. }
  4028. });
  4029. });
  4030. Date.prototype.Format = function (fmt) {
  4031. var o = {
  4032. "M+": this.getMonth() + 1, //月份
  4033. "d+": this.getDate(), //日
  4034. "h+": this.getHours(), //小时
  4035. "m+": this.getMinutes(), //分
  4036. "s+": this.getSeconds(), //秒
  4037. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4038. "S": this.getMilliseconds() //毫秒
  4039. };
  4040. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4041. for (var k in o)
  4042. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4043. return fmt;
  4044. }
  4045. $("#jrjc").change(function() {
  4046. if ($("#jrjc").prop('checked') == true){
  4047. $("#departmentId").removeAttr("disabled");
  4048. }else {
  4049. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4050. }
  4051. });
  4052. ----------------------------------- SOURCE END -------------------------------------
  4053. !STACK 0
  4054. java.lang.NullPointerException
  4055. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:33.622
  4056. !MESSAGE Error while processing working copy
  4057. !STACK 1
  4058. JavaScript Model Exception: java.lang.NullPointerException
  4059. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4060. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4061. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4062. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4063. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4064. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4065. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4066. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4067. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4068. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4069. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4070. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4071. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4072. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4073. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4074. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4075. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4076. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4077. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4078. Caused by: java.lang.NullPointerException
  4079. Caused by: java.lang.NullPointerException
  4080. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:33.623
  4081. !MESSAGE java.lang.NullPointerException
  4082. !STACK 0
  4083. java.lang.NullPointerException
  4084. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:34.279
  4085. !MESSAGE Exception occurred during problem detection:
  4086. ----------------------------------- SOURCE BEGIN -------------------------------------
  4087. (function(){WdatePicker();})();
  4088. (function(){WdatePicker();})();
  4089. (function(){Data.get();})();
  4090. (function(){Data.set();})();
  4091. (function(){search();})();
  4092. $(function(){
  4093. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4094. getfp();
  4095. });
  4096. var Data = {
  4097. "get" : function(){
  4098. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4099. var tip = layer.load(2);
  4100. var result="";
  4101. var url = "getgyxml.do";
  4102. $.ajax({
  4103. "url" : url,
  4104. "data" : {
  4105. "start_date" : $("#dateBegin").val(),
  4106. "end_date" : $("#dateEnd").val()
  4107. },
  4108. "type" : "POST",
  4109. "dataType" : "json",
  4110. "success" : function(data) {
  4111. if(data != null && data != ""){
  4112. if ( data.status =="success"){
  4113. getfp();
  4114. alert("获取成功!");
  4115. }else {
  4116. alert(data.status);
  4117. }
  4118. }else {
  4119. alert("获取失败!");
  4120. }
  4121. },
  4122. "complete": function(){
  4123. layer.close(tip);
  4124. }
  4125. });
  4126. }else {
  4127. alert("请选择日期!");
  4128. }
  4129. },
  4130. "set" : function(){
  4131. if ( $("#fpid option:selected").text() !=""){
  4132. var tip = layer.load(2);
  4133. var gitem = $("#form1").serialize();
  4134. var jrjc;
  4135. if ($("#jrjc").prop('checked') == true){
  4136. jrjc = $("#departmentId").val();
  4137. }else {
  4138. jrjc ='N'
  4139. }
  4140. var url = "saverk.do";
  4141. $.ajax({
  4142. "url" : url,
  4143. "data" : {
  4144. "gitem" : gitem,
  4145. "jrjc" : jrjc
  4146. },
  4147. "type" : "POST",
  4148. "dataType" : "json",
  4149. "async" : true,
  4150. "success" : function(data) {
  4151. if(data.status ="success"){
  4152. alert("入库成功!");
  4153. window.location.reload();
  4154. }else {
  4155. alert(msg);
  4156. }
  4157. },
  4158. "error": function(){
  4159. alert("确认失败!");
  4160. },
  4161. "complete": function(){
  4162. layer.close(tip);
  4163. }
  4164. });
  4165. }else {
  4166. alert("请选择发票!");
  4167. }
  4168. }
  4169. }
  4170. function getfp(){
  4171. var tip = layer.load(2);
  4172. var url = "getgyfp.do";
  4173. $.ajax({
  4174. "url" : url,
  4175. "type" : "POST",
  4176. "dataType" : "json",
  4177. "async" : true,
  4178. "success" : function(data) {
  4179. if(data != null && data != ""){
  4180. $("#fpid").empty();
  4181. $("#fpid").append("_$tag_____________$tag____");
  4182. for(var i = 0; i < data.length; i++){
  4183. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4184. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4185. }
  4186. }
  4187. },
  4188. "error" : function(msg){
  4189. },
  4190. "complete": function(){
  4191. layer.close(tip);
  4192. }
  4193. });
  4194. }
  4195. $("#fpid").change(function(){
  4196. var tip = layer.load(2);
  4197. var url = "getgyrkxx.do";
  4198. var sum_total=0;
  4199. $.ajax({
  4200. "url" : url,
  4201. "data" : {
  4202. "fpId" : $("#fpid").val()
  4203. },
  4204. "type" : "POST",
  4205. "dataType" : "json",
  4206. "async" : true,
  4207. "success" : function(data) {
  4208. $("#dataTable").html("");
  4209. if(data != null && data != ""){
  4210. var html = "";
  4211. for(var i = 0; i < data.length; i++){
  4212. var ID = data[i].id == null ? "" : data[i].id;
  4213. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4214. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4215. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4216. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4217. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4218. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4219. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4220. var NAME = data[i].name == null ? "" : data[i].name;
  4221. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4222. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4223. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4224. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4225. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4226. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4227. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4228. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4229. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4230. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4231. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4232. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4233. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4234. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4235. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4236. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4237. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4238. sum_total = sum_total + DPRC
  4239. var invoice_type_cn =null;
  4240. if (invoice_type =="00" ){
  4241. invoice_type_cn="销售发票";
  4242. }else if (invoice_type == "01") {
  4243. invoice_type_cn="更正(对冲)发票";
  4244. }else if (invoice_type == "02") {
  4245. invoice_type_cn="其它类型发票";
  4246. }
  4247. html += "_$ta";
  4248. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4249. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4250. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4251. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4252. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4253. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4254. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4255. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4256. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4257. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4258. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4259. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4260. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4261. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4262. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4263. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4264. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4265. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4266. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4268. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4269. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4270. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4271. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4272. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4273. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4274. html += "_$tag";
  4275. }
  4276. html += "_$ta";
  4277. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4278. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4279. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4280. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4281. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4282. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4283. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4284. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4285. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4286. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4287. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4288. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4289. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4290. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4291. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4292. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4293. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4294. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4295. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4296. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4297. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4298. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4299. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4300. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4301. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4302. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4303. html += "_$tag";
  4304. $("#dataTable").html(html);
  4305. }else {
  4306. $("#dataTable").html("");
  4307. }
  4308. },
  4309. "error" : function(msg){
  4310. },
  4311. "complete": function(){
  4312. layer.close(tip);
  4313. }
  4314. });
  4315. });
  4316. Date.prototype.Format = function (fmt) {
  4317. var o = {
  4318. "M+": this.getMonth() + 1, //月份
  4319. "d+": this.getDate(), //日
  4320. "h+": this.getHours(), //小时
  4321. "m+": this.getMinutes(), //分
  4322. "s+": this.getSeconds(), //秒
  4323. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4324. "S": this.getMilliseconds() //毫秒
  4325. };
  4326. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4327. for (var k in o)
  4328. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4329. return fmt;
  4330. }
  4331. $("#jrjc").change(function() {
  4332. if ($("#jrjc").prop('checked') == true){
  4333. $("#departmentId").removeAttr("disabled");
  4334. }else {
  4335. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4336. }
  4337. });
  4338. ----------------------------------- SOURCE END -------------------------------------
  4339. !STACK 0
  4340. java.lang.NullPointerException
  4341. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:36.246
  4342. !MESSAGE Exception occurred during problem detection:
  4343. ----------------------------------- SOURCE BEGIN -------------------------------------
  4344. (function(){WdatePicker();})();
  4345. (function(){WdatePicker();})();
  4346. (function(){Data.get();})();
  4347. (function(){Data.set();})();
  4348. (function(){search();})();
  4349. $(function(){
  4350. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4351. getfp();
  4352. });
  4353. var Data = {
  4354. "get" : function(){
  4355. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4356. var tip = layer.load(2);
  4357. var result="";
  4358. var url = "getgyxml.do";
  4359. $.ajax({
  4360. "url" : url,
  4361. "data" : {
  4362. "start_date" : $("#dateBegin").val(),
  4363. "end_date" : $("#dateEnd").val()
  4364. },
  4365. "type" : "POST",
  4366. "dataType" : "json",
  4367. "success" : function(data) {
  4368. if(data != null && data != ""){
  4369. if ( data.status =="success"){
  4370. getfp();
  4371. alert("获取成功!");
  4372. }else {
  4373. alert(data.status);
  4374. }
  4375. }else {
  4376. alert("获取失败!");
  4377. }
  4378. },
  4379. "complete": function(){
  4380. layer.close(tip);
  4381. }
  4382. });
  4383. }else {
  4384. alert("请选择日期!");
  4385. }
  4386. },
  4387. "set" : function(){
  4388. if ( $("#fpid option:selected").text() !=""){
  4389. var tip = layer.load(2);
  4390. var gitem = $("#form1").serialize();
  4391. var jrjc;
  4392. if ($("#jrjc").prop('checked') == true){
  4393. jrjc = $("#departmentId").val();
  4394. }else {
  4395. jrjc ='N'
  4396. }
  4397. var url = "saverk.do";
  4398. $.ajax({
  4399. "url" : url,
  4400. "data" : {
  4401. "gitem" : gitem,
  4402. "jrjc" : jrjc
  4403. },
  4404. "type" : "POST",
  4405. "dataType" : "json",
  4406. "async" : true,
  4407. "success" : function(data) {
  4408. if(data.status ="success"){
  4409. alert("入库成功!");
  4410. window.location.reload();
  4411. }else {
  4412. alert(msg);
  4413. }
  4414. },
  4415. "error": function(){
  4416. alert("确认失败!");
  4417. },
  4418. "complete": function(){
  4419. layer.close(tip);
  4420. }
  4421. });
  4422. }else {
  4423. alert("请选择发票!");
  4424. }
  4425. }
  4426. }
  4427. function getfp(){
  4428. var tip = layer.load(2);
  4429. var url = "getgyfp.do";
  4430. $.ajax({
  4431. "url" : url,
  4432. "type" : "POST",
  4433. "dataType" : "json",
  4434. "async" : true,
  4435. "success" : function(data) {
  4436. if(data != null && data != ""){
  4437. $("#fpid").empty();
  4438. $("#fpid").append("_$tag_____________$tag____");
  4439. for(var i = 0; i < data.length; i++){
  4440. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4441. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4442. }
  4443. }
  4444. },
  4445. "error" : function(msg){
  4446. },
  4447. "complete": function(){
  4448. layer.close(tip);
  4449. }
  4450. });
  4451. }
  4452. $("#fpid").change(function(){
  4453. var tip = layer.load(2);
  4454. var url = "getgyrkxx.do";
  4455. var sum_total=0;
  4456. $.ajax({
  4457. "url" : url,
  4458. "data" : {
  4459. "fpId" : $("#fpid").val()
  4460. },
  4461. "type" : "POST",
  4462. "dataType" : "json",
  4463. "async" : true,
  4464. "success" : function(data) {
  4465. $("#dataTable").html("");
  4466. if(data != null && data != ""){
  4467. var html = "";
  4468. for(var i = 0; i < data.length; i++){
  4469. var ID = data[i].id == null ? "" : data[i].id;
  4470. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4471. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4472. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4473. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4474. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4475. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4476. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4477. var NAME = data[i].name == null ? "" : data[i].name;
  4478. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4479. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4480. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4481. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4482. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4483. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4484. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4485. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4486. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4487. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4488. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4489. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4490. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4491. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4492. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4493. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4494. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4495. sum_total = sum_total + DPRC
  4496. var invoice_type_cn =null;
  4497. if (invoice_type =="00" ){
  4498. invoice_type_cn="销售发票";
  4499. }else if (invoice_type == "01") {
  4500. invoice_type_cn="更正(对冲)发票";
  4501. }else if (invoice_type == "02") {
  4502. invoice_type_cn="其它类型发票";
  4503. }
  4504. html += "_$ta";
  4505. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4506. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4507. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4508. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4509. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4510. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4511. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4512. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4513. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4514. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4515. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4516. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4517. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4518. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4519. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4520. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4521. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4522. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4523. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4524. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4525. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4526. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4527. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4528. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4529. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4530. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4531. html += "_$tag";
  4532. }
  4533. html += "_$ta";
  4534. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4535. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4536. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4537. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4538. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4539. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4540. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4541. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4542. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4543. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4544. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4545. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4546. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4547. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4548. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4549. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4550. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4551. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4552. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4553. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4554. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4555. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4556. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4557. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4558. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4559. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4560. html += "_$tag";
  4561. $("#dataTable").html(html);
  4562. }else {
  4563. $("#dataTable").html("");
  4564. }
  4565. },
  4566. "error" : function(msg){
  4567. },
  4568. "complete": function(){
  4569. layer.close(tip);
  4570. }
  4571. });
  4572. });
  4573. Date.prototype.Format = function (fmt) {
  4574. var o = {
  4575. "M+": this.getMonth() + 1, //月份
  4576. "d+": this.getDate(), //日
  4577. "h+": this.getHours(), //小时
  4578. "m+": this.getMinutes(), //分
  4579. "s+": this.getSeconds(), //秒
  4580. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4581. "S": this.getMilliseconds() //毫秒
  4582. };
  4583. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4584. for (var k in o)
  4585. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4586. return fmt;
  4587. }
  4588. $("#jrjc").change(function() {
  4589. if ($("#jrjc").prop('checked') == true){
  4590. $("#departmentId").removeAttr("disabled");
  4591. }else {
  4592. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4593. }
  4594. });
  4595. ----------------------------------- SOURCE END -------------------------------------
  4596. !STACK 0
  4597. java.lang.NullPointerException
  4598. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:36.246
  4599. !MESSAGE Error while processing working copy
  4600. !STACK 1
  4601. JavaScript Model Exception: java.lang.NullPointerException
  4602. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4603. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4604. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4605. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4606. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4607. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4608. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4609. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4610. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4611. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4612. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4613. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4614. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4615. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4616. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4617. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4618. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4619. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4620. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4621. Caused by: java.lang.NullPointerException
  4622. Caused by: java.lang.NullPointerException
  4623. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:36.247
  4624. !MESSAGE java.lang.NullPointerException
  4625. !STACK 0
  4626. java.lang.NullPointerException
  4627. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:37.164
  4628. !MESSAGE Exception occurred during problem detection:
  4629. ----------------------------------- SOURCE BEGIN -------------------------------------
  4630. (function(){WdatePicker();})();
  4631. (function(){WdatePicker();})();
  4632. (function(){Data.get();})();
  4633. (function(){Data.set();})();
  4634. (function(){search();})();
  4635. $(function(){
  4636. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4637. getfp();
  4638. });
  4639. var Data = {
  4640. "get" : function(){
  4641. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4642. var tip = layer.load(2);
  4643. var result="";
  4644. var url = "getgyxml.do";
  4645. $.ajax({
  4646. "url" : url,
  4647. "data" : {
  4648. "start_date" : $("#dateBegin").val(),
  4649. "end_date" : $("#dateEnd").val()
  4650. },
  4651. "type" : "POST",
  4652. "dataType" : "json",
  4653. "success" : function(data) {
  4654. if(data != null && data != ""){
  4655. if ( data.status =="success"){
  4656. getfp();
  4657. alert("获取成功!");
  4658. }else {
  4659. alert(data.status);
  4660. }
  4661. }else {
  4662. alert("获取失败!");
  4663. }
  4664. },
  4665. "complete": function(){
  4666. layer.close(tip);
  4667. }
  4668. });
  4669. }else {
  4670. alert("请选择日期!");
  4671. }
  4672. },
  4673. "set" : function(){
  4674. if ( $("#fpid option:selected").text() !=""){
  4675. var tip = layer.load(2);
  4676. var gitem = $("#form1").serialize();
  4677. var jrjc;
  4678. if ($("#jrjc").prop('checked') == true){
  4679. jrjc = $("#departmentId").val();
  4680. }else {
  4681. jrjc ='N'
  4682. }
  4683. var url = "saverk.do";
  4684. $.ajax({
  4685. "url" : url,
  4686. "data" : {
  4687. "gitem" : gitem,
  4688. "jrjc" : jrjc
  4689. },
  4690. "type" : "POST",
  4691. "dataType" : "json",
  4692. "async" : true,
  4693. "success" : function(data) {
  4694. if(data.status ="success"){
  4695. alert("入库成功!");
  4696. window.location.reload();
  4697. }else {
  4698. alert(msg);
  4699. }
  4700. },
  4701. "error": function(){
  4702. alert("确认失败!");
  4703. },
  4704. "complete": function(){
  4705. layer.close(tip);
  4706. }
  4707. });
  4708. }else {
  4709. alert("请选择发票!");
  4710. }
  4711. }
  4712. }
  4713. function getfp(){
  4714. var tip = layer.load(2);
  4715. var url = "getgyfp.do";
  4716. $.ajax({
  4717. "url" : url,
  4718. "type" : "POST",
  4719. "dataType" : "json",
  4720. "async" : true,
  4721. "success" : function(data) {
  4722. if(data != null && data != ""){
  4723. $("#fpid").empty();
  4724. $("#fpid").append("_$tag_____________$tag____");
  4725. for(var i = 0; i < data.length; i++){
  4726. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4727. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4728. }
  4729. }
  4730. },
  4731. "error" : function(msg){
  4732. },
  4733. "complete": function(){
  4734. layer.close(tip);
  4735. }
  4736. });
  4737. }
  4738. $("#fpid").change(function(){
  4739. var tip = layer.load(2);
  4740. var url = "getgyrkxx.do";
  4741. var sum_total=0;
  4742. $.ajax({
  4743. "url" : url,
  4744. "data" : {
  4745. "fpId" : $("#fpid").val()
  4746. },
  4747. "type" : "POST",
  4748. "dataType" : "json",
  4749. "async" : true,
  4750. "success" : function(data) {
  4751. $("#dataTable").html("");
  4752. if(data != null && data != ""){
  4753. var html = "";
  4754. for(var i = 0; i < data.length; i++){
  4755. var ID = data[i].id == null ? "" : data[i].id;
  4756. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4757. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4758. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4759. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4760. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4761. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4762. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4763. var NAME = data[i].name == null ? "" : data[i].name;
  4764. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4765. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4766. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4767. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4768. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4769. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4770. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4771. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4772. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4773. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4774. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4775. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4776. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4777. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4778. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4779. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4780. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4781. sum_total = sum_total + DPRC
  4782. var invoice_type_cn =null;
  4783. if (invoice_type =="00" ){
  4784. invoice_type_cn="销售发票";
  4785. }else if (invoice_type == "01") {
  4786. invoice_type_cn="更正(对冲)发票";
  4787. }else if (invoice_type == "02") {
  4788. invoice_type_cn="其它类型发票";
  4789. }
  4790. html += "_$ta";
  4791. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4792. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4793. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4794. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4795. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4796. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4797. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4798. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4799. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4800. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4801. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4802. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4803. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4804. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4805. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4806. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4807. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4808. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4809. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4810. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4811. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4812. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4813. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4814. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4815. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4816. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4817. html += "_$tag";
  4818. }
  4819. html += "_$ta";
  4820. html += "_$tag_____________$tag___________________________________________________________________$tag";
  4821. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4822. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4823. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4824. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4825. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4826. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4827. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4828. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4829. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4830. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4831. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4832. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4833. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4834. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4835. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4836. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4837. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4838. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4839. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4840. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4841. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4842. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4843. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4844. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4845. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4846. html += "_$tag";
  4847. $("#dataTable").html(html);
  4848. }else {
  4849. $("#dataTable").html("");
  4850. }
  4851. },
  4852. "error" : function(msg){
  4853. },
  4854. "complete": function(){
  4855. layer.close(tip);
  4856. }
  4857. });
  4858. });
  4859. Date.prototype.Format = function (fmt) {
  4860. var o = {
  4861. "M+": this.getMonth() + 1, //月份
  4862. "d+": this.getDate(), //日
  4863. "h+": this.getHours(), //小时
  4864. "m+": this.getMinutes(), //分
  4865. "s+": this.getSeconds(), //秒
  4866. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4867. "S": this.getMilliseconds() //毫秒
  4868. };
  4869. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4870. for (var k in o)
  4871. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4872. return fmt;
  4873. }
  4874. $("#jrjc").change(function() {
  4875. if ($("#jrjc").prop('checked') == true){
  4876. $("#departmentId").removeAttr("disabled");
  4877. }else {
  4878. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4879. }
  4880. });
  4881. ----------------------------------- SOURCE END -------------------------------------
  4882. !STACK 0
  4883. java.lang.NullPointerException
  4884. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:37.469
  4885. !MESSAGE Exception occurred during problem detection:
  4886. ----------------------------------- SOURCE BEGIN -------------------------------------
  4887. (function(){WdatePicker();})();
  4888. (function(){WdatePicker();})();
  4889. (function(){Data.get();})();
  4890. (function(){Data.set();})();
  4891. (function(){search();})();
  4892. $(function(){
  4893. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4894. getfp();
  4895. });
  4896. var Data = {
  4897. "get" : function(){
  4898. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4899. var tip = layer.load(2);
  4900. var result="";
  4901. var url = "getgyxml.do";
  4902. $.ajax({
  4903. "url" : url,
  4904. "data" : {
  4905. "start_date" : $("#dateBegin").val(),
  4906. "end_date" : $("#dateEnd").val()
  4907. },
  4908. "type" : "POST",
  4909. "dataType" : "json",
  4910. "success" : function(data) {
  4911. if(data != null && data != ""){
  4912. if ( data.status =="success"){
  4913. getfp();
  4914. alert("获取成功!");
  4915. }else {
  4916. alert(data.status);
  4917. }
  4918. }else {
  4919. alert("获取失败!");
  4920. }
  4921. },
  4922. "complete": function(){
  4923. layer.close(tip);
  4924. }
  4925. });
  4926. }else {
  4927. alert("请选择日期!");
  4928. }
  4929. },
  4930. "set" : function(){
  4931. if ( $("#fpid option:selected").text() !=""){
  4932. var tip = layer.load(2);
  4933. var gitem = $("#form1").serialize();
  4934. var jrjc;
  4935. if ($("#jrjc").prop('checked') == true){
  4936. jrjc = $("#departmentId").val();
  4937. }else {
  4938. jrjc ='N'
  4939. }
  4940. var url = "saverk.do";
  4941. $.ajax({
  4942. "url" : url,
  4943. "data" : {
  4944. "gitem" : gitem,
  4945. "jrjc" : jrjc
  4946. },
  4947. "type" : "POST",
  4948. "dataType" : "json",
  4949. "async" : true,
  4950. "success" : function(data) {
  4951. if(data.status ="success"){
  4952. alert("入库成功!");
  4953. window.location.reload();
  4954. }else {
  4955. alert(msg);
  4956. }
  4957. },
  4958. "error": function(){
  4959. alert("确认失败!");
  4960. },
  4961. "complete": function(){
  4962. layer.close(tip);
  4963. }
  4964. });
  4965. }else {
  4966. alert("请选择发票!");
  4967. }
  4968. }
  4969. }
  4970. function getfp(){
  4971. var tip = layer.load(2);
  4972. var url = "getgyfp.do";
  4973. $.ajax({
  4974. "url" : url,
  4975. "type" : "POST",
  4976. "dataType" : "json",
  4977. "async" : true,
  4978. "success" : function(data) {
  4979. if(data != null && data != ""){
  4980. $("#fpid").empty();
  4981. $("#fpid").append("_$tag_____________$tag____");
  4982. for(var i = 0; i < data.length; i++){
  4983. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4984. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4985. }
  4986. }
  4987. },
  4988. "error" : function(msg){
  4989. },
  4990. "complete": function(){
  4991. layer.close(tip);
  4992. }
  4993. });
  4994. }
  4995. $("#fpid").change(function(){
  4996. var tip = layer.load(2);
  4997. var url = "getgyrkxx.do";
  4998. var sum_total=0;
  4999. $.ajax({
  5000. "url" : url,
  5001. "data" : {
  5002. "fpId" : $("#fpid").val()
  5003. },
  5004. "type" : "POST",
  5005. "dataType" : "json",
  5006. "async" : true,
  5007. "success" : function(data) {
  5008. $("#dataTable").html("");
  5009. if(data != null && data != ""){
  5010. var html = "";
  5011. for(var i = 0; i < data.length; i++){
  5012. var ID = data[i].id == null ? "" : data[i].id;
  5013. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5014. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5015. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5016. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5017. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5018. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5019. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5020. var NAME = data[i].name == null ? "" : data[i].name;
  5021. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5022. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5023. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5024. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5025. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5026. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5027. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5028. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5029. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5030. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5031. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5032. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5033. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5034. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5035. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5036. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5037. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5038. sum_total = sum_total + DPRC
  5039. var invoice_type_cn =null;
  5040. if (invoice_type =="00" ){
  5041. invoice_type_cn="销售发票";
  5042. }else if (invoice_type == "01") {
  5043. invoice_type_cn="更正(对冲)发票";
  5044. }else if (invoice_type == "02") {
  5045. invoice_type_cn="其它类型发票";
  5046. }
  5047. html += "_$ta";
  5048. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5049. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5050. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5051. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5052. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5053. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5054. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5055. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5056. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5057. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5058. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5059. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5060. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5061. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5062. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5063. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5064. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5065. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5066. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5067. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5068. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5069. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5070. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5071. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5072. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5073. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5074. html += "_$tag";
  5075. }
  5076. html += "_$ta";
  5077. html += "_$tag_____________$tag___________________________________________________________________$tag";
  5078. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5079. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5080. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5081. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5082. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5083. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5084. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5085. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5086. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5087. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5088. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5089. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5090. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5091. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5092. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5093. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5094. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5095. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5096. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5097. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5098. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5099. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5100. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5101. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5102. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5103. html += "_$tag";
  5104. $("#dataTable").html(html);
  5105. }else {
  5106. $("#dataTable").html("");
  5107. }
  5108. },
  5109. "error" : function(msg){
  5110. },
  5111. "complete": function(){
  5112. layer.close(tip);
  5113. }
  5114. });
  5115. });
  5116. Date.prototype.Format = function (fmt) {
  5117. var o = {
  5118. "M+": this.getMonth() + 1, //月份
  5119. "d+": this.getDate(), //日
  5120. "h+": this.getHours(), //小时
  5121. "m+": this.getMinutes(), //分
  5122. "s+": this.getSeconds(), //秒
  5123. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5124. "S": this.getMilliseconds() //毫秒
  5125. };
  5126. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5127. for (var k in o)
  5128. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5129. return fmt;
  5130. }
  5131. $("#jrjc").change(function() {
  5132. if ($("#jrjc").prop('checked') == true){
  5133. $("#departmentId").removeAttr("disabled");
  5134. }else {
  5135. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5136. }
  5137. });
  5138. ----------------------------------- SOURCE END -------------------------------------
  5139. !STACK 0
  5140. java.lang.NullPointerException
  5141. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:29:37.469
  5142. !MESSAGE java.lang.NullPointerException
  5143. !STACK 1
  5144. JavaScript Model Exception: java.lang.NullPointerException
  5145. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5146. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5147. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5148. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5149. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5150. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5151. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5152. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5153. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5154. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5155. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5156. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5157. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5158. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5159. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5160. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5161. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5162. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5163. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5164. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5165. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5166. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5167. Caused by: java.lang.NullPointerException
  5168. Caused by: java.lang.NullPointerException
  5169. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:37.469
  5170. !MESSAGE java.lang.NullPointerException
  5171. !STACK 0
  5172. java.lang.NullPointerException
  5173. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:39.376
  5174. !MESSAGE Exception occurred during problem detection:
  5175. ----------------------------------- SOURCE BEGIN -------------------------------------
  5176. (function(){WdatePicker();})();
  5177. (function(){WdatePicker();})();
  5178. (function(){Data.get();})();
  5179. (function(){Data.set();})();
  5180. (function(){search();})();
  5181. $(function(){
  5182. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5183. getfp();
  5184. });
  5185. var Data = {
  5186. "get" : function(){
  5187. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5188. var tip = layer.load(2);
  5189. var result="";
  5190. var url = "getgyxml.do";
  5191. $.ajax({
  5192. "url" : url,
  5193. "data" : {
  5194. "start_date" : $("#dateBegin").val(),
  5195. "end_date" : $("#dateEnd").val()
  5196. },
  5197. "type" : "POST",
  5198. "dataType" : "json",
  5199. "success" : function(data) {
  5200. if(data != null && data != ""){
  5201. if ( data.status =="success"){
  5202. getfp();
  5203. alert("获取成功!");
  5204. }else {
  5205. alert(data.status);
  5206. }
  5207. }else {
  5208. alert("获取失败!");
  5209. }
  5210. },
  5211. "complete": function(){
  5212. layer.close(tip);
  5213. }
  5214. });
  5215. }else {
  5216. alert("请选择日期!");
  5217. }
  5218. },
  5219. "set" : function(){
  5220. if ( $("#fpid option:selected").text() !=""){
  5221. var tip = layer.load(2);
  5222. var gitem = $("#form1").serialize();
  5223. var jrjc;
  5224. if ($("#jrjc").prop('checked') == true){
  5225. jrjc = $("#departmentId").val();
  5226. }else {
  5227. jrjc ='N'
  5228. }
  5229. var url = "saverk.do";
  5230. $.ajax({
  5231. "url" : url,
  5232. "data" : {
  5233. "gitem" : gitem,
  5234. "jrjc" : jrjc
  5235. },
  5236. "type" : "POST",
  5237. "dataType" : "json",
  5238. "async" : true,
  5239. "success" : function(data) {
  5240. if(data.status ="success"){
  5241. alert("入库成功!");
  5242. window.location.reload();
  5243. }else {
  5244. alert(msg);
  5245. }
  5246. },
  5247. "error": function(){
  5248. alert("确认失败!");
  5249. },
  5250. "complete": function(){
  5251. layer.close(tip);
  5252. }
  5253. });
  5254. }else {
  5255. alert("请选择发票!");
  5256. }
  5257. }
  5258. }
  5259. function getfp(){
  5260. var tip = layer.load(2);
  5261. var url = "getgyfp.do";
  5262. $.ajax({
  5263. "url" : url,
  5264. "type" : "POST",
  5265. "dataType" : "json",
  5266. "async" : true,
  5267. "success" : function(data) {
  5268. if(data != null && data != ""){
  5269. $("#fpid").empty();
  5270. $("#fpid").append("_$tag_____________$tag____");
  5271. for(var i = 0; i < data.length; i++){
  5272. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5273. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5274. }
  5275. }
  5276. },
  5277. "error" : function(msg){
  5278. },
  5279. "complete": function(){
  5280. layer.close(tip);
  5281. }
  5282. });
  5283. }
  5284. $("#fpid").change(function(){
  5285. var tip = layer.load(2);
  5286. var url = "getgyrkxx.do";
  5287. var sum_total=0;
  5288. $.ajax({
  5289. "url" : url,
  5290. "data" : {
  5291. "fpId" : $("#fpid").val()
  5292. },
  5293. "type" : "POST",
  5294. "dataType" : "json",
  5295. "async" : true,
  5296. "success" : function(data) {
  5297. $("#dataTable").html("");
  5298. if(data != null && data != ""){
  5299. var html = "";
  5300. for(var i = 0; i < data.length; i++){
  5301. var ID = data[i].id == null ? "" : data[i].id;
  5302. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5303. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5304. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5305. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5306. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5307. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5308. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5309. var NAME = data[i].name == null ? "" : data[i].name;
  5310. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5311. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5312. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5313. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5314. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5315. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5316. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5317. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5318. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5319. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5320. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5321. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5322. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5323. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5324. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5325. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5326. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5327. sum_total = sum_total + DPRC
  5328. var invoice_type_cn =null;
  5329. if (invoice_type =="00" ){
  5330. invoice_type_cn="销售发票";
  5331. }else if (invoice_type == "01") {
  5332. invoice_type_cn="更正(对冲)发票";
  5333. }else if (invoice_type == "02") {
  5334. invoice_type_cn="其它类型发票";
  5335. }
  5336. html += "_$ta";
  5337. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5338. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5339. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5340. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5341. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5342. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5343. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5344. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5345. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5346. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5347. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5348. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5349. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5350. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5351. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5352. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5353. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5354. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5355. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5356. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5357. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5358. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5359. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5360. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5361. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5362. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5363. html += "_$tag";
  5364. }
  5365. html += "_$ta";
  5366. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5367. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5368. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5369. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5370. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5371. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5372. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5373. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5374. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5375. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5376. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5377. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5378. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5379. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5380. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5381. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5382. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5383. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5384. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5385. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5386. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5387. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5388. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5389. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5390. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5391. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5392. html += "_$tag";
  5393. $("#dataTable").html(html);
  5394. }else {
  5395. $("#dataTable").html("");
  5396. }
  5397. },
  5398. "error" : function(msg){
  5399. },
  5400. "complete": function(){
  5401. layer.close(tip);
  5402. }
  5403. });
  5404. });
  5405. Date.prototype.Format = function (fmt) {
  5406. var o = {
  5407. "M+": this.getMonth() + 1, //月份
  5408. "d+": this.getDate(), //日
  5409. "h+": this.getHours(), //小时
  5410. "m+": this.getMinutes(), //分
  5411. "s+": this.getSeconds(), //秒
  5412. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5413. "S": this.getMilliseconds() //毫秒
  5414. };
  5415. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5416. for (var k in o)
  5417. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5418. return fmt;
  5419. }
  5420. $("#jrjc").change(function() {
  5421. if ($("#jrjc").prop('checked') == true){
  5422. $("#departmentId").removeAttr("disabled");
  5423. }else {
  5424. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5425. }
  5426. });
  5427. ----------------------------------- SOURCE END -------------------------------------
  5428. !STACK 0
  5429. java.lang.NullPointerException
  5430. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:29:39.376
  5431. !MESSAGE java.lang.NullPointerException
  5432. !STACK 1
  5433. JavaScript Model Exception: java.lang.NullPointerException
  5434. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5435. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  5436. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5437. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5438. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  5439. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  5440. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  5441. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  5442. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  5443. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  5444. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  5445. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  5446. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  5447. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  5448. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  5449. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  5450. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  5451. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  5452. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  5453. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  5454. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  5455. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  5456. Caused by: java.lang.NullPointerException
  5457. Caused by: java.lang.NullPointerException
  5458. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:39.376
  5459. !MESSAGE java.lang.NullPointerException
  5460. !STACK 0
  5461. java.lang.NullPointerException
  5462. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:44.259
  5463. !MESSAGE Exception occurred during problem detection:
  5464. ----------------------------------- SOURCE BEGIN -------------------------------------
  5465. (function(){WdatePicker();})();
  5466. (function(){WdatePicker();})();
  5467. (function(){Data.get();})();
  5468. (function(){Data.set();})();
  5469. (function(){search();})();
  5470. $(function(){
  5471. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5472. getfp();
  5473. });
  5474. var Data = {
  5475. "get" : function(){
  5476. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5477. var tip = layer.load(2);
  5478. var result="";
  5479. var url = "getgyxml.do";
  5480. $.ajax({
  5481. "url" : url,
  5482. "data" : {
  5483. "start_date" : $("#dateBegin").val(),
  5484. "end_date" : $("#dateEnd").val()
  5485. },
  5486. "type" : "POST",
  5487. "dataType" : "json",
  5488. "success" : function(data) {
  5489. if(data != null && data != ""){
  5490. if ( data.status =="success"){
  5491. getfp();
  5492. alert("获取成功!");
  5493. }else {
  5494. alert(data.status);
  5495. }
  5496. }else {
  5497. alert("获取失败!");
  5498. }
  5499. },
  5500. "complete": function(){
  5501. layer.close(tip);
  5502. }
  5503. });
  5504. }else {
  5505. alert("请选择日期!");
  5506. }
  5507. },
  5508. "set" : function(){
  5509. if ( $("#fpid option:selected").text() !=""){
  5510. var tip = layer.load(2);
  5511. var gitem = $("#form1").serialize();
  5512. var jrjc;
  5513. if ($("#jrjc").prop('checked') == true){
  5514. jrjc = $("#departmentId").val();
  5515. }else {
  5516. jrjc ='N'
  5517. }
  5518. var url = "saverk.do";
  5519. $.ajax({
  5520. "url" : url,
  5521. "data" : {
  5522. "gitem" : gitem,
  5523. "jrjc" : jrjc
  5524. },
  5525. "type" : "POST",
  5526. "dataType" : "json",
  5527. "async" : true,
  5528. "success" : function(data) {
  5529. if(data.status ="success"){
  5530. alert("入库成功!");
  5531. window.location.reload();
  5532. }else {
  5533. alert(msg);
  5534. }
  5535. },
  5536. "error": function(){
  5537. alert("确认失败!");
  5538. },
  5539. "complete": function(){
  5540. layer.close(tip);
  5541. }
  5542. });
  5543. }else {
  5544. alert("请选择发票!");
  5545. }
  5546. }
  5547. }
  5548. function getfp(){
  5549. var tip = layer.load(2);
  5550. var url = "getgyfp.do";
  5551. $.ajax({
  5552. "url" : url,
  5553. "type" : "POST",
  5554. "dataType" : "json",
  5555. "async" : true,
  5556. "success" : function(data) {
  5557. if(data != null && data != ""){
  5558. $("#fpid").empty();
  5559. $("#fpid").append("_$tag_____________$tag____");
  5560. for(var i = 0; i < data.length; i++){
  5561. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5562. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5563. }
  5564. }
  5565. },
  5566. "error" : function(msg){
  5567. },
  5568. "complete": function(){
  5569. layer.close(tip);
  5570. }
  5571. });
  5572. }
  5573. $("#fpid").change(function(){
  5574. var tip = layer.load(2);
  5575. var url = "getgyrkxx.do";
  5576. var sum_total=0;
  5577. $.ajax({
  5578. "url" : url,
  5579. "data" : {
  5580. "fpId" : $("#fpid").val()
  5581. },
  5582. "type" : "POST",
  5583. "dataType" : "json",
  5584. "async" : true,
  5585. "success" : function(data) {
  5586. $("#dataTable").html("");
  5587. if(data != null && data != ""){
  5588. var html = "";
  5589. for(var i = 0; i < data.length; i++){
  5590. var ID = data[i].id == null ? "" : data[i].id;
  5591. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5592. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5593. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5594. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5595. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5596. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5597. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5598. var NAME = data[i].name == null ? "" : data[i].name;
  5599. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5600. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5601. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5602. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5603. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5604. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5605. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5606. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5607. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5608. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5609. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5610. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5611. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5612. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5613. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5614. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5615. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5616. sum_total = sum_total + DPRC
  5617. var invoice_type_cn =null;
  5618. if (invoice_type =="00" ){
  5619. invoice_type_cn="销售发票";
  5620. }else if (invoice_type == "01") {
  5621. invoice_type_cn="更正(对冲)发票";
  5622. }else if (invoice_type == "02") {
  5623. invoice_type_cn="其它类型发票";
  5624. }
  5625. html += "_$ta";
  5626. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5627. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5628. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5629. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5630. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5631. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5632. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5633. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5634. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5635. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5636. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5637. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5638. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5639. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5640. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5641. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5642. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5643. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5644. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5645. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5646. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5647. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5648. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5649. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5650. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5651. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5652. html += "_$tag";
  5653. }
  5654. html += "_$ta";
  5655. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5656. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5657. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5658. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5659. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5660. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5661. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5662. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5663. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5664. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5665. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5666. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5667. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5668. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5669. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5670. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5671. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5672. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5673. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5674. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5675. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5676. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5677. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5678. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5679. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5680. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5681. html += "_$tag";
  5682. $("#dataTable").html(html);
  5683. }else {
  5684. $("#dataTable").html("");
  5685. }
  5686. },
  5687. "error" : function(msg){
  5688. },
  5689. "complete": function(){
  5690. layer.close(tip);
  5691. }
  5692. });
  5693. });
  5694. Date.prototype.Format = function (fmt) {
  5695. var o = {
  5696. "M+": this.getMonth() + 1, //月份
  5697. "d+": this.getDate(), //日
  5698. "h+": this.getHours(), //小时
  5699. "m+": this.getMinutes(), //分
  5700. "s+": this.getSeconds(), //秒
  5701. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5702. "S": this.getMilliseconds() //毫秒
  5703. };
  5704. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5705. for (var k in o)
  5706. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5707. return fmt;
  5708. }
  5709. $("#jrjc").change(function() {
  5710. if ($("#jrjc").prop('checked') == true){
  5711. $("#departmentId").removeAttr("disabled");
  5712. }else {
  5713. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5714. }
  5715. });
  5716. ----------------------------------- SOURCE END -------------------------------------
  5717. !STACK 0
  5718. java.lang.NullPointerException
  5719. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:44.260
  5720. !MESSAGE Error while processing working copy
  5721. !STACK 1
  5722. JavaScript Model Exception: java.lang.NullPointerException
  5723. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5724. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5725. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5726. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5727. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5728. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5729. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5730. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5731. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5732. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5733. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5734. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5735. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5736. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5737. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5738. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5739. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  5740. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  5741. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  5742. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  5743. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  5744. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  5745. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  5746. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  5747. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  5748. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  5749. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  5750. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  5751. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  5752. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  5753. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  5754. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  5755. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  5756. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  5757. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  5758. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  5759. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  5760. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  5761. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  5762. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  5763. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  5764. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  5765. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  5766. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  5767. at java.lang.reflect.Method.invoke(Unknown Source)
  5768. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  5769. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  5770. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  5771. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  5772. Caused by: java.lang.NullPointerException
  5773. Caused by: java.lang.NullPointerException
  5774. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:44.260
  5775. !MESSAGE java.lang.NullPointerException
  5776. !STACK 0
  5777. java.lang.NullPointerException
  5778. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:45.214
  5779. !MESSAGE Exception occurred during problem detection:
  5780. ----------------------------------- SOURCE BEGIN -------------------------------------
  5781. (function(){WdatePicker();})();
  5782. (function(){WdatePicker();})();
  5783. (function(){Data.get();})();
  5784. (function(){Data.set();})();
  5785. (function(){search();})();
  5786. $(function(){
  5787. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5788. getfp();
  5789. });
  5790. var Data = {
  5791. "get" : function(){
  5792. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5793. var tip = layer.load(2);
  5794. var result="";
  5795. var url = "getgyxml.do";
  5796. $.ajax({
  5797. "url" : url,
  5798. "data" : {
  5799. "start_date" : $("#dateBegin").val(),
  5800. "end_date" : $("#dateEnd").val()
  5801. },
  5802. "type" : "POST",
  5803. "dataType" : "json",
  5804. "success" : function(data) {
  5805. if(data != null && data != ""){
  5806. if ( data.status =="success"){
  5807. getfp();
  5808. alert("获取成功!");
  5809. }else {
  5810. alert(data.status);
  5811. }
  5812. }else {
  5813. alert("获取失败!");
  5814. }
  5815. },
  5816. "complete": function(){
  5817. layer.close(tip);
  5818. }
  5819. });
  5820. }else {
  5821. alert("请选择日期!");
  5822. }
  5823. },
  5824. "set" : function(){
  5825. if ( $("#fpid option:selected").text() !=""){
  5826. var tip = layer.load(2);
  5827. var gitem = $("#form1").serialize();
  5828. var jrjc;
  5829. if ($("#jrjc").prop('checked') == true){
  5830. jrjc = $("#departmentId").val();
  5831. }else {
  5832. jrjc ='N'
  5833. }
  5834. var url = "saverk.do";
  5835. $.ajax({
  5836. "url" : url,
  5837. "data" : {
  5838. "gitem" : gitem,
  5839. "jrjc" : jrjc
  5840. },
  5841. "type" : "POST",
  5842. "dataType" : "json",
  5843. "async" : true,
  5844. "success" : function(data) {
  5845. if(data.status ="success"){
  5846. alert("入库成功!");
  5847. window.location.reload();
  5848. }else {
  5849. alert(msg);
  5850. }
  5851. },
  5852. "error": function(){
  5853. alert("确认失败!");
  5854. },
  5855. "complete": function(){
  5856. layer.close(tip);
  5857. }
  5858. });
  5859. }else {
  5860. alert("请选择发票!");
  5861. }
  5862. }
  5863. }
  5864. function getfp(){
  5865. var tip = layer.load(2);
  5866. var url = "getgyfp.do";
  5867. $.ajax({
  5868. "url" : url,
  5869. "type" : "POST",
  5870. "dataType" : "json",
  5871. "async" : true,
  5872. "success" : function(data) {
  5873. if(data != null && data != ""){
  5874. $("#fpid").empty();
  5875. $("#fpid").append("_$tag_____________$tag____");
  5876. for(var i = 0; i < data.length; i++){
  5877. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5878. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5879. }
  5880. }
  5881. },
  5882. "error" : function(msg){
  5883. },
  5884. "complete": function(){
  5885. layer.close(tip);
  5886. }
  5887. });
  5888. }
  5889. $("#fpid").change(function(){
  5890. var tip = layer.load(2);
  5891. var url = "getgyrkxx.do";
  5892. var sum_total=0;
  5893. $.ajax({
  5894. "url" : url,
  5895. "data" : {
  5896. "fpId" : $("#fpid").val()
  5897. },
  5898. "type" : "POST",
  5899. "dataType" : "json",
  5900. "async" : true,
  5901. "success" : function(data) {
  5902. $("#dataTable").html("");
  5903. if(data != null && data != ""){
  5904. var html = "";
  5905. for(var i = 0; i < data.length; i++){
  5906. var ID = data[i].id == null ? "" : data[i].id;
  5907. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5908. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5909. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5910. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5911. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5912. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5913. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5914. var NAME = data[i].name == null ? "" : data[i].name;
  5915. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5916. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5917. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5918. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5919. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5920. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5921. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5922. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5923. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5924. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5925. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5926. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5927. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5928. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5929. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5930. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5931. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5932. sum_total = sum_total + DPRC
  5933. var invoice_type_cn =null;
  5934. if (invoice_type =="00" ){
  5935. invoice_type_cn="销售发票";
  5936. }else if (invoice_type == "01") {
  5937. invoice_type_cn="更正(对冲)发票";
  5938. }else if (invoice_type == "02") {
  5939. invoice_type_cn="其它类型发票";
  5940. }
  5941. html += "_$ta";
  5942. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5943. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5944. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5945. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5946. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5947. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5948. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5949. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5950. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5951. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5952. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5953. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5954. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5955. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5956. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5957. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5958. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5959. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5960. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5961. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5962. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5963. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5964. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5965. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5966. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5967. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5968. html += "_$tag";
  5969. }
  5970. html += "_$ta";
  5971. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5972. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5973. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5974. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5975. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5976. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5977. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5978. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5979. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5980. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5981. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5982. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5983. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5984. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5985. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5986. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5988. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5989. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5990. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5991. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5992. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5993. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5994. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5995. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5996. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5997. html += "_$tag";
  5998. $("#dataTable").html(html);
  5999. }else {
  6000. $("#dataTable").html("");
  6001. }
  6002. },
  6003. "error" : function(msg){
  6004. },
  6005. "complete": function(){
  6006. layer.close(tip);
  6007. }
  6008. });
  6009. });
  6010. Date.prototype.Format = function (fmt) {
  6011. var o = {
  6012. "M+": this.getMonth() + 1, //月份
  6013. "d+": this.getDate(), //日
  6014. "h+": this.getHours(), //小时
  6015. "m+": this.getMinutes(), //分
  6016. "s+": this.getSeconds(), //秒
  6017. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6018. "S": this.getMilliseconds() //毫秒
  6019. };
  6020. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6021. for (var k in o)
  6022. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6023. return fmt;
  6024. }
  6025. $("#jrjc").change(function() {
  6026. if ($("#jrjc").prop('checked') == true){
  6027. $("#departmentId").removeAttr("disabled");
  6028. }else {
  6029. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6030. }
  6031. });
  6032. ----------------------------------- SOURCE END -------------------------------------
  6033. !STACK 0
  6034. java.lang.NullPointerException
  6035. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:46.254
  6036. !MESSAGE Exception occurred during problem detection:
  6037. ----------------------------------- SOURCE BEGIN -------------------------------------
  6038. (function(){WdatePicker();})();
  6039. (function(){WdatePicker();})();
  6040. (function(){Data.get();})();
  6041. (function(){Data.set();})();
  6042. (function(){search();})();
  6043. $(function(){
  6044. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6045. getfp();
  6046. });
  6047. var Data = {
  6048. "get" : function(){
  6049. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6050. var tip = layer.load(2);
  6051. var result="";
  6052. var url = "getgyxml.do";
  6053. $.ajax({
  6054. "url" : url,
  6055. "data" : {
  6056. "start_date" : $("#dateBegin").val(),
  6057. "end_date" : $("#dateEnd").val()
  6058. },
  6059. "type" : "POST",
  6060. "dataType" : "json",
  6061. "success" : function(data) {
  6062. if(data != null && data != ""){
  6063. if ( data.status =="success"){
  6064. getfp();
  6065. alert("获取成功!");
  6066. }else {
  6067. alert(data.status);
  6068. }
  6069. }else {
  6070. alert("获取失败!");
  6071. }
  6072. },
  6073. "complete": function(){
  6074. layer.close(tip);
  6075. }
  6076. });
  6077. }else {
  6078. alert("请选择日期!");
  6079. }
  6080. },
  6081. "set" : function(){
  6082. if ( $("#fpid option:selected").text() !=""){
  6083. var tip = layer.load(2);
  6084. var gitem = $("#form1").serialize();
  6085. var jrjc;
  6086. if ($("#jrjc").prop('checked') == true){
  6087. jrjc = $("#departmentId").val();
  6088. }else {
  6089. jrjc ='N'
  6090. }
  6091. var url = "saverk.do";
  6092. $.ajax({
  6093. "url" : url,
  6094. "data" : {
  6095. "gitem" : gitem,
  6096. "jrjc" : jrjc
  6097. },
  6098. "type" : "POST",
  6099. "dataType" : "json",
  6100. "async" : true,
  6101. "success" : function(data) {
  6102. if(data.status ="success"){
  6103. alert("入库成功!");
  6104. window.location.reload();
  6105. }else {
  6106. alert(msg);
  6107. }
  6108. },
  6109. "error": function(){
  6110. alert("确认失败!");
  6111. },
  6112. "complete": function(){
  6113. layer.close(tip);
  6114. }
  6115. });
  6116. }else {
  6117. alert("请选择发票!");
  6118. }
  6119. }
  6120. }
  6121. function getfp(){
  6122. var tip = layer.load(2);
  6123. var url = "getgyfp.do";
  6124. $.ajax({
  6125. "url" : url,
  6126. "type" : "POST",
  6127. "dataType" : "json",
  6128. "async" : true,
  6129. "success" : function(data) {
  6130. if(data != null && data != ""){
  6131. $("#fpid").empty();
  6132. $("#fpid").append("_$tag_____________$tag____");
  6133. for(var i = 0; i < data.length; i++){
  6134. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6135. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6136. }
  6137. }
  6138. },
  6139. "error" : function(msg){
  6140. },
  6141. "complete": function(){
  6142. layer.close(tip);
  6143. }
  6144. });
  6145. }
  6146. $("#fpid").change(function(){
  6147. var tip = layer.load(2);
  6148. var url = "getgyrkxx.do";
  6149. var sum_total=0;
  6150. $.ajax({
  6151. "url" : url,
  6152. "data" : {
  6153. "fpId" : $("#fpid").val()
  6154. },
  6155. "type" : "POST",
  6156. "dataType" : "json",
  6157. "async" : true,
  6158. "success" : function(data) {
  6159. $("#dataTable").html("");
  6160. if(data != null && data != ""){
  6161. var html = "";
  6162. for(var i = 0; i < data.length; i++){
  6163. var ID = data[i].id == null ? "" : data[i].id;
  6164. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6165. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6166. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6167. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6168. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6169. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6170. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6171. var NAME = data[i].name == null ? "" : data[i].name;
  6172. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6173. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6174. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6175. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6176. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6177. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6178. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6179. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6180. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6181. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6182. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6183. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6184. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6185. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6186. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6187. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6188. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6189. sum_total = sum_total + DPRC
  6190. var invoice_type_cn =null;
  6191. if (invoice_type =="00" ){
  6192. invoice_type_cn="销售发票";
  6193. }else if (invoice_type == "01") {
  6194. invoice_type_cn="更正(对冲)发票";
  6195. }else if (invoice_type == "02") {
  6196. invoice_type_cn="其它类型发票";
  6197. }
  6198. html += "_$ta";
  6199. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6200. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6201. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6202. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6203. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6204. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6205. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6206. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6207. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6208. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6209. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6210. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6211. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6212. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6213. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6214. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6215. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6216. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6217. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6218. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6219. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6220. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6221. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6222. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6223. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6224. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6225. html += "_$tag";
  6226. }
  6227. html += "_$ta";
  6228. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6229. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6230. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6231. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6232. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6233. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6234. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6235. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6236. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6237. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6238. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6239. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6240. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6241. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6242. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6243. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6244. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6245. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6246. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6247. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6248. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6249. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6250. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6251. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6252. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6253. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6254. html += "_$tag";
  6255. $("#dataTable").html(html);
  6256. }else {
  6257. $("#dataTable").html("");
  6258. }
  6259. },
  6260. "error" : function(msg){
  6261. },
  6262. "complete": function(){
  6263. layer.close(tip);
  6264. }
  6265. });
  6266. });
  6267. Date.prototype.Format = function (fmt) {
  6268. var o = {
  6269. "M+": this.getMonth() + 1, //月份
  6270. "d+": this.getDate(), //日
  6271. "h+": this.getHours(), //小时
  6272. "m+": this.getMinutes(), //分
  6273. "s+": this.getSeconds(), //秒
  6274. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6275. "S": this.getMilliseconds() //毫秒
  6276. };
  6277. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6278. for (var k in o)
  6279. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6280. return fmt;
  6281. }
  6282. $("#jrjc").change(function() {
  6283. if ($("#jrjc").prop('checked') == true){
  6284. $("#departmentId").removeAttr("disabled");
  6285. }else {
  6286. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6287. }
  6288. });
  6289. ----------------------------------- SOURCE END -------------------------------------
  6290. !STACK 0
  6291. java.lang.NullPointerException
  6292. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:46.254
  6293. !MESSAGE Error while processing working copy
  6294. !STACK 1
  6295. JavaScript Model Exception: java.lang.NullPointerException
  6296. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6297. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6298. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6299. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6300. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6301. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6302. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6303. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6304. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6305. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6306. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6307. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6308. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6309. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6310. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6311. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6312. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6313. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6314. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6315. Caused by: java.lang.NullPointerException
  6316. Caused by: java.lang.NullPointerException
  6317. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:46.255
  6318. !MESSAGE java.lang.NullPointerException
  6319. !STACK 0
  6320. java.lang.NullPointerException
  6321. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:47.309
  6322. !MESSAGE Exception occurred during problem detection:
  6323. ----------------------------------- SOURCE BEGIN -------------------------------------
  6324. (function(){WdatePicker();})();
  6325. (function(){WdatePicker();})();
  6326. (function(){Data.get();})();
  6327. (function(){Data.set();})();
  6328. (function(){search();})();
  6329. $(function(){
  6330. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6331. getfp();
  6332. });
  6333. var Data = {
  6334. "get" : function(){
  6335. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6336. var tip = layer.load(2);
  6337. var result="";
  6338. var url = "getgyxml.do";
  6339. $.ajax({
  6340. "url" : url,
  6341. "data" : {
  6342. "start_date" : $("#dateBegin").val(),
  6343. "end_date" : $("#dateEnd").val()
  6344. },
  6345. "type" : "POST",
  6346. "dataType" : "json",
  6347. "success" : function(data) {
  6348. if(data != null && data != ""){
  6349. if ( data.status =="success"){
  6350. getfp();
  6351. alert("获取成功!");
  6352. }else {
  6353. alert(data.status);
  6354. }
  6355. }else {
  6356. alert("获取失败!");
  6357. }
  6358. },
  6359. "complete": function(){
  6360. layer.close(tip);
  6361. }
  6362. });
  6363. }else {
  6364. alert("请选择日期!");
  6365. }
  6366. },
  6367. "set" : function(){
  6368. if ( $("#fpid option:selected").text() !=""){
  6369. var tip = layer.load(2);
  6370. var gitem = $("#form1").serialize();
  6371. var jrjc;
  6372. if ($("#jrjc").prop('checked') == true){
  6373. jrjc = $("#departmentId").val();
  6374. }else {
  6375. jrjc ='N'
  6376. }
  6377. var url = "saverk.do";
  6378. $.ajax({
  6379. "url" : url,
  6380. "data" : {
  6381. "gitem" : gitem,
  6382. "jrjc" : jrjc
  6383. },
  6384. "type" : "POST",
  6385. "dataType" : "json",
  6386. "async" : true,
  6387. "success" : function(data) {
  6388. if(data.status ="success"){
  6389. alert("入库成功!");
  6390. window.location.reload();
  6391. }else {
  6392. alert(msg);
  6393. }
  6394. },
  6395. "error": function(){
  6396. alert("确认失败!");
  6397. },
  6398. "complete": function(){
  6399. layer.close(tip);
  6400. }
  6401. });
  6402. }else {
  6403. alert("请选择发票!");
  6404. }
  6405. }
  6406. }
  6407. function getfp(){
  6408. var tip = layer.load(2);
  6409. var url = "getgyfp.do";
  6410. $.ajax({
  6411. "url" : url,
  6412. "type" : "POST",
  6413. "dataType" : "json",
  6414. "async" : true,
  6415. "success" : function(data) {
  6416. if(data != null && data != ""){
  6417. $("#fpid").empty();
  6418. $("#fpid").append("_$tag_____________$tag____");
  6419. for(var i = 0; i < data.length; i++){
  6420. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6421. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6422. }
  6423. }
  6424. },
  6425. "error" : function(msg){
  6426. },
  6427. "complete": function(){
  6428. layer.close(tip);
  6429. }
  6430. });
  6431. }
  6432. $("#fpid").change(function(){
  6433. var tip = layer.load(2);
  6434. var url = "getgyrkxx.do";
  6435. var sum_total=0;
  6436. $.ajax({
  6437. "url" : url,
  6438. "data" : {
  6439. "fpId" : $("#fpid").val()
  6440. },
  6441. "type" : "POST",
  6442. "dataType" : "json",
  6443. "async" : true,
  6444. "success" : function(data) {
  6445. $("#dataTable").html("");
  6446. if(data != null && data != ""){
  6447. var html = "";
  6448. for(var i = 0; i < data.length; i++){
  6449. var ID = data[i].id == null ? "" : data[i].id;
  6450. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6451. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6452. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6453. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6454. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6455. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6456. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6457. var NAME = data[i].name == null ? "" : data[i].name;
  6458. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6459. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6460. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6461. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6462. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6463. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6464. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6465. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6466. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6467. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6468. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6469. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6470. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6471. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6472. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6473. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6474. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6475. sum_total = sum_total + DPRC
  6476. var invoice_type_cn =null;
  6477. if (invoice_type =="00" ){
  6478. invoice_type_cn="销售发票";
  6479. }else if (invoice_type == "01") {
  6480. invoice_type_cn="更正(对冲)发票";
  6481. }else if (invoice_type == "02") {
  6482. invoice_type_cn="其它类型发票";
  6483. }
  6484. html += "_$ta";
  6485. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6486. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6487. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6488. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6489. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6490. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6491. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6492. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6493. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6494. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6495. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6496. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6497. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6498. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6499. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6500. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6501. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6502. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6503. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6504. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6505. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6506. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6507. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6508. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6509. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6510. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6511. html += "_$tag";
  6512. }
  6513. html += "_$ta";
  6514. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6515. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6516. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6517. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6518. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6519. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6520. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6521. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6522. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6523. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6524. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6525. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6526. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6527. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6528. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6529. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6530. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6531. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6532. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6533. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6534. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6535. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6536. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6537. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6538. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6539. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6540. html += "_$tag";
  6541. $("#dataTable").html(html);
  6542. }else {
  6543. $("#dataTable").html("");
  6544. }
  6545. },
  6546. "error" : function(msg){
  6547. },
  6548. "complete": function(){
  6549. layer.close(tip);
  6550. }
  6551. });
  6552. });
  6553. Date.prototype.Format = function (fmt) {
  6554. var o = {
  6555. "M+": this.getMonth() + 1, //月份
  6556. "d+": this.getDate(), //日
  6557. "h+": this.getHours(), //小时
  6558. "m+": this.getMinutes(), //分
  6559. "s+": this.getSeconds(), //秒
  6560. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6561. "S": this.getMilliseconds() //毫秒
  6562. };
  6563. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6564. for (var k in o)
  6565. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6566. return fmt;
  6567. }
  6568. $("#jrjc").change(function() {
  6569. if ($("#jrjc").prop('checked') == true){
  6570. $("#departmentId").removeAttr("disabled");
  6571. }else {
  6572. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6573. }
  6574. });
  6575. ----------------------------------- SOURCE END -------------------------------------
  6576. !STACK 0
  6577. java.lang.NullPointerException
  6578. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:48.963
  6579. !MESSAGE Exception occurred during problem detection:
  6580. ----------------------------------- SOURCE BEGIN -------------------------------------
  6581. (function(){WdatePicker();})();
  6582. (function(){WdatePicker();})();
  6583. (function(){Data.get();})();
  6584. (function(){Data.set();})();
  6585. (function(){search();})();
  6586. $(function(){
  6587. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6588. getfp();
  6589. });
  6590. var Data = {
  6591. "get" : function(){
  6592. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6593. var tip = layer.load(2);
  6594. var result="";
  6595. var url = "getgyxml.do";
  6596. $.ajax({
  6597. "url" : url,
  6598. "data" : {
  6599. "start_date" : $("#dateBegin").val(),
  6600. "end_date" : $("#dateEnd").val()
  6601. },
  6602. "type" : "POST",
  6603. "dataType" : "json",
  6604. "success" : function(data) {
  6605. if(data != null && data != ""){
  6606. if ( data.status =="success"){
  6607. getfp();
  6608. alert("获取成功!");
  6609. }else {
  6610. alert(data.status);
  6611. }
  6612. }else {
  6613. alert("获取失败!");
  6614. }
  6615. },
  6616. "complete": function(){
  6617. layer.close(tip);
  6618. }
  6619. });
  6620. }else {
  6621. alert("请选择日期!");
  6622. }
  6623. },
  6624. "set" : function(){
  6625. if ( $("#fpid option:selected").text() !=""){
  6626. var tip = layer.load(2);
  6627. var gitem = $("#form1").serialize();
  6628. var jrjc;
  6629. if ($("#jrjc").prop('checked') == true){
  6630. jrjc = $("#departmentId").val();
  6631. }else {
  6632. jrjc ='N'
  6633. }
  6634. var url = "saverk.do";
  6635. $.ajax({
  6636. "url" : url,
  6637. "data" : {
  6638. "gitem" : gitem,
  6639. "jrjc" : jrjc
  6640. },
  6641. "type" : "POST",
  6642. "dataType" : "json",
  6643. "async" : true,
  6644. "success" : function(data) {
  6645. if(data.status ="success"){
  6646. alert("入库成功!");
  6647. window.location.reload();
  6648. }else {
  6649. alert(msg);
  6650. }
  6651. },
  6652. "error": function(){
  6653. alert("确认失败!");
  6654. },
  6655. "complete": function(){
  6656. layer.close(tip);
  6657. }
  6658. });
  6659. }else {
  6660. alert("请选择发票!");
  6661. }
  6662. }
  6663. }
  6664. function getfp(){
  6665. var tip = layer.load(2);
  6666. var url = "getgyfp.do";
  6667. $.ajax({
  6668. "url" : url,
  6669. "type" : "POST",
  6670. "dataType" : "json",
  6671. "async" : true,
  6672. "success" : function(data) {
  6673. if(data != null && data != ""){
  6674. $("#fpid").empty();
  6675. $("#fpid").append("_$tag_____________$tag____");
  6676. for(var i = 0; i < data.length; i++){
  6677. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6678. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6679. }
  6680. }
  6681. },
  6682. "error" : function(msg){
  6683. },
  6684. "complete": function(){
  6685. layer.close(tip);
  6686. }
  6687. });
  6688. }
  6689. $("#fpid").change(function(){
  6690. var tip = layer.load(2);
  6691. var url = "getgyrkxx.do";
  6692. var sum_total=0;
  6693. $.ajax({
  6694. "url" : url,
  6695. "data" : {
  6696. "fpId" : $("#fpid").val()
  6697. },
  6698. "type" : "POST",
  6699. "dataType" : "json",
  6700. "async" : true,
  6701. "success" : function(data) {
  6702. $("#dataTable").html("");
  6703. if(data != null && data != ""){
  6704. var html = "";
  6705. for(var i = 0; i < data.length; i++){
  6706. var ID = data[i].id == null ? "" : data[i].id;
  6707. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6708. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6709. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6710. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6711. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6712. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6713. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6714. var NAME = data[i].name == null ? "" : data[i].name;
  6715. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6716. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6717. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6718. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6719. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6720. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6721. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6722. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6723. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6724. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6725. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6726. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6727. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6728. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6729. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6730. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6731. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6732. sum_total = sum_total + DPRC
  6733. var invoice_type_cn =null;
  6734. if (invoice_type =="00" ){
  6735. invoice_type_cn="销售发票";
  6736. }else if (invoice_type == "01") {
  6737. invoice_type_cn="更正(对冲)发票";
  6738. }else if (invoice_type == "02") {
  6739. invoice_type_cn="其它类型发票";
  6740. }
  6741. html += "_$ta";
  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_____________$tag_____________________________________________________________________________________________________________________$tag";
  6752. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6753. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6754. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6755. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6756. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6757. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6758. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6759. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6760. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6761. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6762. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6763. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6764. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6765. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6766. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6767. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6768. html += "_$tag";
  6769. }
  6770. html += "_$ta";
  6771. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6772. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6773. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6774. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6775. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6776. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6777. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6778. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6779. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6780. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6781. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6782. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6783. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6784. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6785. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6786. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6787. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6788. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6789. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6790. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6791. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6792. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6793. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6794. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6795. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6796. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6797. html += "_$tag";
  6798. $("#dataTable").html(html);
  6799. }else {
  6800. $("#dataTable").html("");
  6801. }
  6802. },
  6803. "error" : function(msg){
  6804. },
  6805. "complete": function(){
  6806. layer.close(tip);
  6807. }
  6808. });
  6809. });
  6810. Date.prototype.Format = function (fmt) {
  6811. var o = {
  6812. "M+": this.getMonth() + 1, //月份
  6813. "d+": this.getDate(), //日
  6814. "h+": this.getHours(), //小时
  6815. "m+": this.getMinutes(), //分
  6816. "s+": this.getSeconds(), //秒
  6817. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6818. "S": this.getMilliseconds() //毫秒
  6819. };
  6820. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6821. for (var k in o)
  6822. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6823. return fmt;
  6824. }
  6825. $("#jrjc").change(function() {
  6826. if ($("#jrjc").prop('checked') == true){
  6827. $("#departmentId").removeAttr("disabled");
  6828. }else {
  6829. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6830. }
  6831. });
  6832. ----------------------------------- SOURCE END -------------------------------------
  6833. !STACK 0
  6834. java.lang.NullPointerException
  6835. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:29:48.964
  6836. !MESSAGE java.lang.NullPointerException
  6837. !STACK 1
  6838. JavaScript Model Exception: java.lang.NullPointerException
  6839. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6840. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  6841. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6842. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6843. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  6844. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  6845. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  6846. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  6847. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  6848. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  6849. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  6850. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  6851. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  6852. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  6853. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  6854. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  6855. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  6856. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  6857. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  6858. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  6859. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  6860. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  6861. Caused by: java.lang.NullPointerException
  6862. Caused by: java.lang.NullPointerException
  6863. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:48.964
  6864. !MESSAGE java.lang.NullPointerException
  6865. !STACK 0
  6866. java.lang.NullPointerException
  6867. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:54.438
  6868. !MESSAGE Exception occurred during problem detection:
  6869. ----------------------------------- SOURCE BEGIN -------------------------------------
  6870. (function(){WdatePicker();})();
  6871. (function(){WdatePicker();})();
  6872. (function(){Data.get();})();
  6873. (function(){Data.set();})();
  6874. (function(){search();})();
  6875. $(function(){
  6876. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6877. getfp();
  6878. });
  6879. var Data = {
  6880. "get" : function(){
  6881. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6882. var tip = layer.load(2);
  6883. var result="";
  6884. var url = "getgyxml.do";
  6885. $.ajax({
  6886. "url" : url,
  6887. "data" : {
  6888. "start_date" : $("#dateBegin").val(),
  6889. "end_date" : $("#dateEnd").val()
  6890. },
  6891. "type" : "POST",
  6892. "dataType" : "json",
  6893. "success" : function(data) {
  6894. if(data != null && data != ""){
  6895. if ( data.status =="success"){
  6896. getfp();
  6897. alert("获取成功!");
  6898. }else {
  6899. alert(data.status);
  6900. }
  6901. }else {
  6902. alert("获取失败!");
  6903. }
  6904. },
  6905. "complete": function(){
  6906. layer.close(tip);
  6907. }
  6908. });
  6909. }else {
  6910. alert("请选择日期!");
  6911. }
  6912. },
  6913. "set" : function(){
  6914. if ( $("#fpid option:selected").text() !=""){
  6915. var tip = layer.load(2);
  6916. var gitem = $("#form1").serialize();
  6917. var jrjc;
  6918. if ($("#jrjc").prop('checked') == true){
  6919. jrjc = $("#departmentId").val();
  6920. }else {
  6921. jrjc ='N'
  6922. }
  6923. var url = "saverk.do";
  6924. $.ajax({
  6925. "url" : url,
  6926. "data" : {
  6927. "gitem" : gitem,
  6928. "jrjc" : jrjc
  6929. },
  6930. "type" : "POST",
  6931. "dataType" : "json",
  6932. "async" : true,
  6933. "success" : function(data) {
  6934. if(data.status ="success"){
  6935. alert("入库成功!");
  6936. window.location.reload();
  6937. }else {
  6938. alert(msg);
  6939. }
  6940. },
  6941. "error": function(){
  6942. alert("确认失败!");
  6943. },
  6944. "complete": function(){
  6945. layer.close(tip);
  6946. }
  6947. });
  6948. }else {
  6949. alert("请选择发票!");
  6950. }
  6951. }
  6952. }
  6953. function getfp(){
  6954. var tip = layer.load(2);
  6955. var url = "getgyfp.do";
  6956. $.ajax({
  6957. "url" : url,
  6958. "type" : "POST",
  6959. "dataType" : "json",
  6960. "async" : true,
  6961. "success" : function(data) {
  6962. if(data != null && data != ""){
  6963. $("#fpid").empty();
  6964. $("#fpid").append("_$tag_____________$tag____");
  6965. for(var i = 0; i < data.length; i++){
  6966. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6967. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6968. }
  6969. }
  6970. },
  6971. "error" : function(msg){
  6972. },
  6973. "complete": function(){
  6974. layer.close(tip);
  6975. }
  6976. });
  6977. }
  6978. $("#fpid").change(function(){
  6979. var tip = layer.load(2);
  6980. var url = "getgyrkxx.do";
  6981. var sum_total=0;
  6982. $.ajax({
  6983. "url" : url,
  6984. "data" : {
  6985. "fpId" : $("#fpid").val()
  6986. },
  6987. "type" : "POST",
  6988. "dataType" : "json",
  6989. "async" : true,
  6990. "success" : function(data) {
  6991. $("#dataTable").html("");
  6992. if(data != null && data != ""){
  6993. var html = "";
  6994. for(var i = 0; i < data.length; i++){
  6995. var ID = data[i].id == null ? "" : data[i].id;
  6996. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6997. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6998. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6999. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7000. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7001. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7002. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7003. var NAME = data[i].name == null ? "" : data[i].name;
  7004. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7005. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7006. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7007. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7008. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7009. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7010. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7011. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7012. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7013. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7014. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7015. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7016. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7017. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7018. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7019. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7020. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7021. sum_total = sum_total + DPRC
  7022. var invoice_type_cn =null;
  7023. if (invoice_type =="00" ){
  7024. invoice_type_cn="销售发票";
  7025. }else if (invoice_type == "01") {
  7026. invoice_type_cn="更正(对冲)发票";
  7027. }else if (invoice_type == "02") {
  7028. invoice_type_cn="其它类型发票";
  7029. }
  7030. html += "_$ta";
  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_____________$tag_____________________________________________________________________________________________________________________$tag";
  7041. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7042. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7043. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7044. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7045. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7046. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7047. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7048. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7049. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7050. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7051. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7052. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7053. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7054. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7055. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7056. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7057. html += "_$tag";
  7058. }
  7059. html += "_$ta";
  7060. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7061. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7062. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7063. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7064. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7065. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7066. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7067. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7068. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7069. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7070. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7071. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7072. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7073. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7074. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7075. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7076. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7077. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7078. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7079. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7080. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7081. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7082. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7083. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7084. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7085. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7086. html += "_$tag";
  7087. $("#dataTable").html(html);
  7088. }else {
  7089. $("#dataTable").html("");
  7090. }
  7091. },
  7092. "error" : function(msg){
  7093. },
  7094. "complete": function(){
  7095. layer.close(tip);
  7096. }
  7097. });
  7098. });
  7099. Date.prototype.Format = function (fmt) {
  7100. var o = {
  7101. "M+": this.getMonth() + 1, //月份
  7102. "d+": this.getDate(), //日
  7103. "h+": this.getHours(), //小时
  7104. "m+": this.getMinutes(), //分
  7105. "s+": this.getSeconds(), //秒
  7106. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7107. "S": this.getMilliseconds() //毫秒
  7108. };
  7109. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7110. for (var k in o)
  7111. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7112. return fmt;
  7113. }
  7114. $("#jrjc").change(function() {
  7115. if ($("#jrjc").prop('checked') == true){
  7116. $("#departmentId").removeAttr("disabled");
  7117. }else {
  7118. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7119. }
  7120. });
  7121. ----------------------------------- SOURCE END -------------------------------------
  7122. !STACK 0
  7123. java.lang.NullPointerException
  7124. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:54.439
  7125. !MESSAGE Error while processing working copy
  7126. !STACK 1
  7127. JavaScript Model Exception: java.lang.NullPointerException
  7128. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7129. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7130. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7131. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7132. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7133. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7134. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7135. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7136. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7137. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7138. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7139. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7140. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7141. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7142. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7143. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7144. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7145. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7146. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7147. Caused by: java.lang.NullPointerException
  7148. Caused by: java.lang.NullPointerException
  7149. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:54.439
  7150. !MESSAGE java.lang.NullPointerException
  7151. !STACK 0
  7152. java.lang.NullPointerException
  7153. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:55.405
  7154. !MESSAGE Exception occurred during problem detection:
  7155. ----------------------------------- SOURCE BEGIN -------------------------------------
  7156. (function(){WdatePicker();})();
  7157. (function(){WdatePicker();})();
  7158. (function(){Data.get();})();
  7159. (function(){Data.set();})();
  7160. (function(){search();})();
  7161. $(function(){
  7162. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7163. getfp();
  7164. });
  7165. var Data = {
  7166. "get" : function(){
  7167. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7168. var tip = layer.load(2);
  7169. var result="";
  7170. var url = "getgyxml.do";
  7171. $.ajax({
  7172. "url" : url,
  7173. "data" : {
  7174. "start_date" : $("#dateBegin").val(),
  7175. "end_date" : $("#dateEnd").val()
  7176. },
  7177. "type" : "POST",
  7178. "dataType" : "json",
  7179. "success" : function(data) {
  7180. if(data != null && data != ""){
  7181. if ( data.status =="success"){
  7182. getfp();
  7183. alert("获取成功!");
  7184. }else {
  7185. alert(data.status);
  7186. }
  7187. }else {
  7188. alert("获取失败!");
  7189. }
  7190. },
  7191. "complete": function(){
  7192. layer.close(tip);
  7193. }
  7194. });
  7195. }else {
  7196. alert("请选择日期!");
  7197. }
  7198. },
  7199. "set" : function(){
  7200. if ( $("#fpid option:selected").text() !=""){
  7201. var tip = layer.load(2);
  7202. var gitem = $("#form1").serialize();
  7203. var jrjc;
  7204. if ($("#jrjc").prop('checked') == true){
  7205. jrjc = $("#departmentId").val();
  7206. }else {
  7207. jrjc ='N'
  7208. }
  7209. var url = "saverk.do";
  7210. $.ajax({
  7211. "url" : url,
  7212. "data" : {
  7213. "gitem" : gitem,
  7214. "jrjc" : jrjc
  7215. },
  7216. "type" : "POST",
  7217. "dataType" : "json",
  7218. "async" : true,
  7219. "success" : function(data) {
  7220. if(data.status ="success"){
  7221. alert("入库成功!");
  7222. window.location.reload();
  7223. }else {
  7224. alert(msg);
  7225. }
  7226. },
  7227. "error": function(){
  7228. alert("确认失败!");
  7229. },
  7230. "complete": function(){
  7231. layer.close(tip);
  7232. }
  7233. });
  7234. }else {
  7235. alert("请选择发票!");
  7236. }
  7237. }
  7238. }
  7239. function getfp(){
  7240. var tip = layer.load(2);
  7241. var url = "getgyfp.do";
  7242. $.ajax({
  7243. "url" : url,
  7244. "type" : "POST",
  7245. "dataType" : "json",
  7246. "async" : true,
  7247. "success" : function(data) {
  7248. if(data != null && data != ""){
  7249. $("#fpid").empty();
  7250. $("#fpid").append("_$tag_____________$tag____");
  7251. for(var i = 0; i < data.length; i++){
  7252. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7253. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7254. }
  7255. }
  7256. },
  7257. "error" : function(msg){
  7258. },
  7259. "complete": function(){
  7260. layer.close(tip);
  7261. }
  7262. });
  7263. }
  7264. $("#fpid").change(function(){
  7265. var tip = layer.load(2);
  7266. var url = "getgyrkxx.do";
  7267. var sum_total=0;
  7268. $.ajax({
  7269. "url" : url,
  7270. "data" : {
  7271. "fpId" : $("#fpid").val()
  7272. },
  7273. "type" : "POST",
  7274. "dataType" : "json",
  7275. "async" : true,
  7276. "success" : function(data) {
  7277. $("#dataTable").html("");
  7278. if(data != null && data != ""){
  7279. var html = "";
  7280. for(var i = 0; i < data.length; i++){
  7281. var ID = data[i].id == null ? "" : data[i].id;
  7282. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7283. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7284. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7285. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7286. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7287. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7288. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7289. var NAME = data[i].name == null ? "" : data[i].name;
  7290. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7291. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7292. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7293. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7294. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7295. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7296. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7297. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7298. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7299. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7300. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7301. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7302. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7303. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7304. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7305. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7306. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7307. sum_total = sum_total + DPRC
  7308. var invoice_type_cn =null;
  7309. if (invoice_type =="00" ){
  7310. invoice_type_cn="销售发票";
  7311. }else if (invoice_type == "01") {
  7312. invoice_type_cn="更正(对冲)发票";
  7313. }else if (invoice_type == "02") {
  7314. invoice_type_cn="其它类型发票";
  7315. }
  7316. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  7330. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7331. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7332. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7333. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7334. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7335. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7336. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7337. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7338. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7339. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7340. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7341. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7342. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7343. html += "_$tag";
  7344. }
  7345. html += "_$ta";
  7346. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7347. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7348. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7349. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7350. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7351. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7352. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7353. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7354. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7355. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7356. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7357. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7358. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7359. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7360. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7361. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7362. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7363. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7364. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7365. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7366. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7367. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7368. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7369. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7370. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7371. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7372. html += "_$tag";
  7373. $("#dataTable").html(html);
  7374. }else {
  7375. $("#dataTable").html("");
  7376. }
  7377. },
  7378. "error" : function(msg){
  7379. },
  7380. "complete": function(){
  7381. layer.close(tip);
  7382. }
  7383. });
  7384. });
  7385. Date.prototype.Format = function (fmt) {
  7386. var o = {
  7387. "M+": this.getMonth() + 1, //月份
  7388. "d+": this.getDate(), //日
  7389. "h+": this.getHours(), //小时
  7390. "m+": this.getMinutes(), //分
  7391. "s+": this.getSeconds(), //秒
  7392. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7393. "S": this.getMilliseconds() //毫秒
  7394. };
  7395. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7396. for (var k in o)
  7397. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7398. return fmt;
  7399. }
  7400. $("#jrjc").change(function() {
  7401. if ($("#jrjc").prop('checked') == true){
  7402. $("#departmentId").removeAttr("disabled");
  7403. }else {
  7404. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7405. }
  7406. });
  7407. ----------------------------------- SOURCE END -------------------------------------
  7408. !STACK 0
  7409. java.lang.NullPointerException
  7410. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:29:55.891
  7411. !MESSAGE Exception occurred during problem detection:
  7412. ----------------------------------- SOURCE BEGIN -------------------------------------
  7413. (function(){WdatePicker();})();
  7414. (function(){WdatePicker();})();
  7415. (function(){Data.get();})();
  7416. (function(){Data.set();})();
  7417. (function(){search();})();
  7418. $(function(){
  7419. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7420. getfp();
  7421. });
  7422. var Data = {
  7423. "get" : function(){
  7424. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7425. var tip = layer.load(2);
  7426. var result="";
  7427. var url = "getgyxml.do";
  7428. $.ajax({
  7429. "url" : url,
  7430. "data" : {
  7431. "start_date" : $("#dateBegin").val(),
  7432. "end_date" : $("#dateEnd").val()
  7433. },
  7434. "type" : "POST",
  7435. "dataType" : "json",
  7436. "success" : function(data) {
  7437. if(data != null && data != ""){
  7438. if ( data.status =="success"){
  7439. getfp();
  7440. alert("获取成功!");
  7441. }else {
  7442. alert(data.status);
  7443. }
  7444. }else {
  7445. alert("获取失败!");
  7446. }
  7447. },
  7448. "complete": function(){
  7449. layer.close(tip);
  7450. }
  7451. });
  7452. }else {
  7453. alert("请选择日期!");
  7454. }
  7455. },
  7456. "set" : function(){
  7457. if ( $("#fpid option:selected").text() !=""){
  7458. var tip = layer.load(2);
  7459. var gitem = $("#form1").serialize();
  7460. var jrjc;
  7461. if ($("#jrjc").prop('checked') == true){
  7462. jrjc = $("#departmentId").val();
  7463. }else {
  7464. jrjc ='N'
  7465. }
  7466. var url = "saverk.do";
  7467. $.ajax({
  7468. "url" : url,
  7469. "data" : {
  7470. "gitem" : gitem,
  7471. "jrjc" : jrjc
  7472. },
  7473. "type" : "POST",
  7474. "dataType" : "json",
  7475. "async" : true,
  7476. "success" : function(data) {
  7477. if(data.status ="success"){
  7478. alert("入库成功!");
  7479. window.location.reload();
  7480. }else {
  7481. alert(msg);
  7482. }
  7483. },
  7484. "error": function(){
  7485. alert("确认失败!");
  7486. },
  7487. "complete": function(){
  7488. layer.close(tip);
  7489. }
  7490. });
  7491. }else {
  7492. alert("请选择发票!");
  7493. }
  7494. }
  7495. }
  7496. function getfp(){
  7497. var tip = layer.load(2);
  7498. var url = "getgyfp.do";
  7499. $.ajax({
  7500. "url" : url,
  7501. "type" : "POST",
  7502. "dataType" : "json",
  7503. "async" : true,
  7504. "success" : function(data) {
  7505. if(data != null && data != ""){
  7506. $("#fpid").empty();
  7507. $("#fpid").append("_$tag_____________$tag____");
  7508. for(var i = 0; i < data.length; i++){
  7509. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7510. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7511. }
  7512. }
  7513. },
  7514. "error" : function(msg){
  7515. },
  7516. "complete": function(){
  7517. layer.close(tip);
  7518. }
  7519. });
  7520. }
  7521. $("#fpid").change(function(){
  7522. var tip = layer.load(2);
  7523. var url = "getgyrkxx.do";
  7524. var sum_total=0;
  7525. $.ajax({
  7526. "url" : url,
  7527. "data" : {
  7528. "fpId" : $("#fpid").val()
  7529. },
  7530. "type" : "POST",
  7531. "dataType" : "json",
  7532. "async" : true,
  7533. "success" : function(data) {
  7534. $("#dataTable").html("");
  7535. if(data != null && data != ""){
  7536. var html = "";
  7537. for(var i = 0; i < data.length; i++){
  7538. var ID = data[i].id == null ? "" : data[i].id;
  7539. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7540. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7541. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7542. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7543. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7544. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7545. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7546. var NAME = data[i].name == null ? "" : data[i].name;
  7547. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7548. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7549. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7550. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7551. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7552. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7553. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7554. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7555. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7556. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7557. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7558. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7559. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7560. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7561. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7562. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7563. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7564. sum_total = sum_total + DPRC
  7565. var invoice_type_cn =null;
  7566. if (invoice_type =="00" ){
  7567. invoice_type_cn="销售发票";
  7568. }else if (invoice_type == "01") {
  7569. invoice_type_cn="更正(对冲)发票";
  7570. }else if (invoice_type == "02") {
  7571. invoice_type_cn="其它类型发票";
  7572. }
  7573. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  7590. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7591. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  7601. }
  7602. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  7619. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7620. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7621. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7622. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7623. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7624. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7625. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7626. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7627. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7628. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7629. html += "_$tag";
  7630. $("#dataTable").html(html);
  7631. }else {
  7632. $("#dataTable").html("");
  7633. }
  7634. },
  7635. "error" : function(msg){
  7636. },
  7637. "complete": function(){
  7638. layer.close(tip);
  7639. }
  7640. });
  7641. });
  7642. Date.prototype.Format = function (fmt) {
  7643. var o = {
  7644. "M+": this.getMonth() + 1, //月份
  7645. "d+": this.getDate(), //日
  7646. "h+": this.getHours(), //小时
  7647. "m+": this.getMinutes(), //分
  7648. "s+": this.getSeconds(), //秒
  7649. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7650. "S": this.getMilliseconds() //毫秒
  7651. };
  7652. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7653. for (var k in o)
  7654. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7655. return fmt;
  7656. }
  7657. $("#jrjc").change(function() {
  7658. if ($("#jrjc").prop('checked') == true){
  7659. $("#departmentId").removeAttr("disabled");
  7660. }else {
  7661. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7662. }
  7663. });
  7664. ----------------------------------- SOURCE END -------------------------------------
  7665. !STACK 0
  7666. java.lang.NullPointerException
  7667. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:29:55.892
  7668. !MESSAGE java.lang.NullPointerException
  7669. !STACK 1
  7670. JavaScript Model Exception: java.lang.NullPointerException
  7671. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7672. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  7673. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7674. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7675. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  7676. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  7677. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  7678. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  7679. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  7680. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  7681. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  7682. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  7683. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  7684. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  7685. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  7686. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  7687. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  7688. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  7689. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  7690. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  7691. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  7692. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  7693. Caused by: java.lang.NullPointerException
  7694. Caused by: java.lang.NullPointerException
  7695. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:29:55.892
  7696. !MESSAGE java.lang.NullPointerException
  7697. !STACK 0
  7698. java.lang.NullPointerException
  7699. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:00.761
  7700. !MESSAGE Exception occurred during problem detection:
  7701. ----------------------------------- SOURCE BEGIN -------------------------------------
  7702. (function(){WdatePicker();})();
  7703. (function(){WdatePicker();})();
  7704. (function(){Data.get();})();
  7705. (function(){Data.set();})();
  7706. (function(){search();})();
  7707. $(function(){
  7708. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7709. getfp();
  7710. });
  7711. var Data = {
  7712. "get" : function(){
  7713. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7714. var tip = layer.load(2);
  7715. var result="";
  7716. var url = "getgyxml.do";
  7717. $.ajax({
  7718. "url" : url,
  7719. "data" : {
  7720. "start_date" : $("#dateBegin").val(),
  7721. "end_date" : $("#dateEnd").val()
  7722. },
  7723. "type" : "POST",
  7724. "dataType" : "json",
  7725. "success" : function(data) {
  7726. if(data != null && data != ""){
  7727. if ( data.status =="success"){
  7728. getfp();
  7729. alert("获取成功!");
  7730. }else {
  7731. alert(data.status);
  7732. }
  7733. }else {
  7734. alert("获取失败!");
  7735. }
  7736. },
  7737. "complete": function(){
  7738. layer.close(tip);
  7739. }
  7740. });
  7741. }else {
  7742. alert("请选择日期!");
  7743. }
  7744. },
  7745. "set" : function(){
  7746. if ( $("#fpid option:selected").text() !=""){
  7747. var tip = layer.load(2);
  7748. var gitem = $("#form1").serialize();
  7749. var jrjc;
  7750. if ($("#jrjc").prop('checked') == true){
  7751. jrjc = $("#departmentId").val();
  7752. }else {
  7753. jrjc ='N'
  7754. }
  7755. var url = "saverk.do";
  7756. $.ajax({
  7757. "url" : url,
  7758. "data" : {
  7759. "gitem" : gitem,
  7760. "jrjc" : jrjc
  7761. },
  7762. "type" : "POST",
  7763. "dataType" : "json",
  7764. "async" : true,
  7765. "success" : function(data) {
  7766. if(data.status ="success"){
  7767. alert("入库成功!");
  7768. window.location.reload();
  7769. }else {
  7770. alert(msg);
  7771. }
  7772. },
  7773. "error": function(){
  7774. alert("确认失败!");
  7775. },
  7776. "complete": function(){
  7777. layer.close(tip);
  7778. }
  7779. });
  7780. }else {
  7781. alert("请选择发票!");
  7782. }
  7783. }
  7784. }
  7785. function getfp(){
  7786. var tip = layer.load(2);
  7787. var url = "getgyfp.do";
  7788. $.ajax({
  7789. "url" : url,
  7790. "type" : "POST",
  7791. "dataType" : "json",
  7792. "async" : true,
  7793. "success" : function(data) {
  7794. if(data != null && data != ""){
  7795. $("#fpid").empty();
  7796. $("#fpid").append("_$tag_____________$tag____");
  7797. for(var i = 0; i < data.length; i++){
  7798. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7799. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7800. }
  7801. }
  7802. },
  7803. "error" : function(msg){
  7804. },
  7805. "complete": function(){
  7806. layer.close(tip);
  7807. }
  7808. });
  7809. }
  7810. $("#fpid").change(function(){
  7811. var tip = layer.load(2);
  7812. var url = "getgyrkxx.do";
  7813. var sum_total=0;
  7814. $.ajax({
  7815. "url" : url,
  7816. "data" : {
  7817. "fpId" : $("#fpid").val()
  7818. },
  7819. "type" : "POST",
  7820. "dataType" : "json",
  7821. "async" : true,
  7822. "success" : function(data) {
  7823. $("#dataTable").html("");
  7824. if(data != null && data != ""){
  7825. var html = "";
  7826. for(var i = 0; i < data.length; i++){
  7827. var ID = data[i].id == null ? "" : data[i].id;
  7828. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7829. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7830. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7831. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7832. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7833. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7834. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7835. var NAME = data[i].name == null ? "" : data[i].name;
  7836. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7837. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7838. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7839. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7840. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7841. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7842. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7843. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7844. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7845. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7846. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7847. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7848. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7849. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7850. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7851. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7852. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7853. sum_total = sum_total + DPRC
  7854. var invoice_type_cn =null;
  7855. if (invoice_type =="00" ){
  7856. invoice_type_cn="销售发票";
  7857. }else if (invoice_type == "01") {
  7858. invoice_type_cn="更正(对冲)发票";
  7859. }else if (invoice_type == "02") {
  7860. invoice_type_cn="其它类型发票";
  7861. }
  7862. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  7879. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7880. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  7890. }
  7891. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  7908. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7909. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7910. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7911. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7912. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7913. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7914. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7915. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7916. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7917. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7918. html += "_$tag";
  7919. $("#dataTable").html(html);
  7920. }else {
  7921. $("#dataTable").html("");
  7922. }
  7923. },
  7924. "error" : function(msg){
  7925. },
  7926. "complete": function(){
  7927. layer.close(tip);
  7928. }
  7929. });
  7930. });
  7931. Date.prototype.Format = function (fmt) {
  7932. var o = {
  7933. "M+": this.getMonth() + 1, //月份
  7934. "d+": this.getDate(), //日
  7935. "h+": this.getHours(), //小时
  7936. "m+": this.getMinutes(), //分
  7937. "s+": this.getSeconds(), //秒
  7938. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7939. "S": this.getMilliseconds() //毫秒
  7940. };
  7941. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7942. for (var k in o)
  7943. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7944. return fmt;
  7945. }
  7946. $("#jrjc").change(function() {
  7947. if ($("#jrjc").prop('checked') == true){
  7948. $("#departmentId").removeAttr("disabled");
  7949. }else {
  7950. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7951. }
  7952. });
  7953. ----------------------------------- SOURCE END -------------------------------------
  7954. !STACK 0
  7955. java.lang.NullPointerException
  7956. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:00.762
  7957. !MESSAGE java.lang.NullPointerException
  7958. !STACK 1
  7959. JavaScript Model Exception: java.lang.NullPointerException
  7960. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7961. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  7962. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7963. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7964. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  7965. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  7966. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  7967. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  7968. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  7969. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  7970. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  7971. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  7972. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  7973. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  7974. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  7975. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  7976. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  7977. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  7978. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  7979. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  7980. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  7981. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  7982. Caused by: java.lang.NullPointerException
  7983. Caused by: java.lang.NullPointerException
  7984. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:00.762
  7985. !MESSAGE java.lang.NullPointerException
  7986. !STACK 0
  7987. java.lang.NullPointerException
  7988. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:01.414
  7989. !MESSAGE Exception occurred during problem detection:
  7990. ----------------------------------- SOURCE BEGIN -------------------------------------
  7991. (function(){WdatePicker();})();
  7992. (function(){WdatePicker();})();
  7993. (function(){Data.get();})();
  7994. (function(){Data.set();})();
  7995. (function(){search();})();
  7996. $(function(){
  7997. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7998. getfp();
  7999. });
  8000. var Data = {
  8001. "get" : function(){
  8002. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8003. var tip = layer.load(2);
  8004. var result="";
  8005. var url = "getgyxml.do";
  8006. $.ajax({
  8007. "url" : url,
  8008. "data" : {
  8009. "start_date" : $("#dateBegin").val(),
  8010. "end_date" : $("#dateEnd").val()
  8011. },
  8012. "type" : "POST",
  8013. "dataType" : "json",
  8014. "success" : function(data) {
  8015. if(data != null && data != ""){
  8016. if ( data.status =="success"){
  8017. getfp();
  8018. alert("获取成功!");
  8019. }else {
  8020. alert(data.status);
  8021. }
  8022. }else {
  8023. alert("获取失败!");
  8024. }
  8025. },
  8026. "complete": function(){
  8027. layer.close(tip);
  8028. }
  8029. });
  8030. }else {
  8031. alert("请选择日期!");
  8032. }
  8033. },
  8034. "set" : function(){
  8035. if ( $("#fpid option:selected").text() !=""){
  8036. var tip = layer.load(2);
  8037. var gitem = $("#form1").serialize();
  8038. var jrjc;
  8039. if ($("#jrjc").prop('checked') == true){
  8040. jrjc = $("#departmentId").val();
  8041. }else {
  8042. jrjc ='N'
  8043. }
  8044. var url = "saverk.do";
  8045. $.ajax({
  8046. "url" : url,
  8047. "data" : {
  8048. "gitem" : gitem,
  8049. "jrjc" : jrjc
  8050. },
  8051. "type" : "POST",
  8052. "dataType" : "json",
  8053. "async" : true,
  8054. "success" : function(data) {
  8055. if(data.status ="success"){
  8056. alert("入库成功!");
  8057. window.location.reload();
  8058. }else {
  8059. alert(msg);
  8060. }
  8061. },
  8062. "error": function(){
  8063. alert("确认失败!");
  8064. },
  8065. "complete": function(){
  8066. layer.close(tip);
  8067. }
  8068. });
  8069. }else {
  8070. alert("请选择发票!");
  8071. }
  8072. }
  8073. }
  8074. function getfp(){
  8075. var tip = layer.load(2);
  8076. var url = "getgyfp.do";
  8077. $.ajax({
  8078. "url" : url,
  8079. "type" : "POST",
  8080. "dataType" : "json",
  8081. "async" : true,
  8082. "success" : function(data) {
  8083. if(data != null && data != ""){
  8084. $("#fpid").empty();
  8085. $("#fpid").append("_$tag_____________$tag____");
  8086. for(var i = 0; i < data.length; i++){
  8087. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8088. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8089. }
  8090. }
  8091. },
  8092. "error" : function(msg){
  8093. },
  8094. "complete": function(){
  8095. layer.close(tip);
  8096. }
  8097. });
  8098. }
  8099. $("#fpid").change(function(){
  8100. var tip = layer.load(2);
  8101. var url = "getgyrkxx.do";
  8102. var sum_total=0;
  8103. $.ajax({
  8104. "url" : url,
  8105. "data" : {
  8106. "fpId" : $("#fpid").val()
  8107. },
  8108. "type" : "POST",
  8109. "dataType" : "json",
  8110. "async" : true,
  8111. "success" : function(data) {
  8112. $("#dataTable").html("");
  8113. if(data != null && data != ""){
  8114. var html = "";
  8115. for(var i = 0; i < data.length; i++){
  8116. var ID = data[i].id == null ? "" : data[i].id;
  8117. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8118. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8119. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8120. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8121. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8122. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8123. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8124. var NAME = data[i].name == null ? "" : data[i].name;
  8125. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8126. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8127. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8128. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8129. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8130. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8131. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8132. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8133. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8134. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8135. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8136. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8137. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8138. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8139. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8140. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8141. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8142. sum_total = sum_total + DPRC
  8143. var invoice_type_cn =null;
  8144. if (invoice_type =="00" ){
  8145. invoice_type_cn="销售发票";
  8146. }else if (invoice_type == "01") {
  8147. invoice_type_cn="更正(对冲)发票";
  8148. }else if (invoice_type == "02") {
  8149. invoice_type_cn="其它类型发票";
  8150. }
  8151. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  8168. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8169. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  8179. }
  8180. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  8197. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8198. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8199. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8200. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8201. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8202. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8203. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8204. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8205. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8206. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8207. html += "_$tag";
  8208. $("#dataTable").html(html);
  8209. }else {
  8210. $("#dataTable").html("");
  8211. }
  8212. },
  8213. "error" : function(msg){
  8214. },
  8215. "complete": function(){
  8216. layer.close(tip);
  8217. }
  8218. });
  8219. });
  8220. Date.prototype.Format = function (fmt) {
  8221. var o = {
  8222. "M+": this.getMonth() + 1, //月份
  8223. "d+": this.getDate(), //日
  8224. "h+": this.getHours(), //小时
  8225. "m+": this.getMinutes(), //分
  8226. "s+": this.getSeconds(), //秒
  8227. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8228. "S": this.getMilliseconds() //毫秒
  8229. };
  8230. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8231. for (var k in o)
  8232. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8233. return fmt;
  8234. }
  8235. $("#jrjc").change(function() {
  8236. if ($("#jrjc").prop('checked') == true){
  8237. $("#departmentId").removeAttr("disabled");
  8238. }else {
  8239. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8240. }
  8241. });
  8242. ----------------------------------- SOURCE END -------------------------------------
  8243. !STACK 0
  8244. java.lang.NullPointerException
  8245. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:01.414
  8246. !MESSAGE Error while processing working copy
  8247. !STACK 1
  8248. JavaScript Model Exception: java.lang.NullPointerException
  8249. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8250. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  8251. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8252. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8253. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  8254. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  8255. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  8256. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  8257. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  8258. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  8259. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  8260. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  8261. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  8262. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  8263. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  8264. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  8265. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  8266. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  8267. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8268. Caused by: java.lang.NullPointerException
  8269. Caused by: java.lang.NullPointerException
  8270. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:01.414
  8271. !MESSAGE java.lang.NullPointerException
  8272. !STACK 0
  8273. java.lang.NullPointerException
  8274. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:02.454
  8275. !MESSAGE Exception occurred during problem detection:
  8276. ----------------------------------- SOURCE BEGIN -------------------------------------
  8277. (function(){WdatePicker();})();
  8278. (function(){WdatePicker();})();
  8279. (function(){Data.get();})();
  8280. (function(){Data.set();})();
  8281. (function(){search();})();
  8282. $(function(){
  8283. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8284. getfp();
  8285. });
  8286. var Data = {
  8287. "get" : function(){
  8288. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8289. var tip = layer.load(2);
  8290. var result="";
  8291. var url = "getgyxml.do";
  8292. $.ajax({
  8293. "url" : url,
  8294. "data" : {
  8295. "start_date" : $("#dateBegin").val(),
  8296. "end_date" : $("#dateEnd").val()
  8297. },
  8298. "type" : "POST",
  8299. "dataType" : "json",
  8300. "success" : function(data) {
  8301. if(data != null && data != ""){
  8302. if ( data.status =="success"){
  8303. getfp();
  8304. alert("获取成功!");
  8305. }else {
  8306. alert(data.status);
  8307. }
  8308. }else {
  8309. alert("获取失败!");
  8310. }
  8311. },
  8312. "complete": function(){
  8313. layer.close(tip);
  8314. }
  8315. });
  8316. }else {
  8317. alert("请选择日期!");
  8318. }
  8319. },
  8320. "set" : function(){
  8321. if ( $("#fpid option:selected").text() !=""){
  8322. var tip = layer.load(2);
  8323. var gitem = $("#form1").serialize();
  8324. var jrjc;
  8325. if ($("#jrjc").prop('checked') == true){
  8326. jrjc = $("#departmentId").val();
  8327. }else {
  8328. jrjc ='N'
  8329. }
  8330. var url = "saverk.do";
  8331. $.ajax({
  8332. "url" : url,
  8333. "data" : {
  8334. "gitem" : gitem,
  8335. "jrjc" : jrjc
  8336. },
  8337. "type" : "POST",
  8338. "dataType" : "json",
  8339. "async" : true,
  8340. "success" : function(data) {
  8341. if(data.status ="success"){
  8342. alert("入库成功!");
  8343. window.location.reload();
  8344. }else {
  8345. alert(msg);
  8346. }
  8347. },
  8348. "error": function(){
  8349. alert("确认失败!");
  8350. },
  8351. "complete": function(){
  8352. layer.close(tip);
  8353. }
  8354. });
  8355. }else {
  8356. alert("请选择发票!");
  8357. }
  8358. }
  8359. }
  8360. function getfp(){
  8361. var tip = layer.load(2);
  8362. var url = "getgyfp.do";
  8363. $.ajax({
  8364. "url" : url,
  8365. "type" : "POST",
  8366. "dataType" : "json",
  8367. "async" : true,
  8368. "success" : function(data) {
  8369. if(data != null && data != ""){
  8370. $("#fpid").empty();
  8371. $("#fpid").append("_$tag_____________$tag____");
  8372. for(var i = 0; i < data.length; i++){
  8373. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8374. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8375. }
  8376. }
  8377. },
  8378. "error" : function(msg){
  8379. },
  8380. "complete": function(){
  8381. layer.close(tip);
  8382. }
  8383. });
  8384. }
  8385. $("#fpid").change(function(){
  8386. var tip = layer.load(2);
  8387. var url = "getgyrkxx.do";
  8388. var sum_total=0;
  8389. $.ajax({
  8390. "url" : url,
  8391. "data" : {
  8392. "fpId" : $("#fpid").val()
  8393. },
  8394. "type" : "POST",
  8395. "dataType" : "json",
  8396. "async" : true,
  8397. "success" : function(data) {
  8398. $("#dataTable").html("");
  8399. if(data != null && data != ""){
  8400. var html = "";
  8401. for(var i = 0; i < data.length; i++){
  8402. var ID = data[i].id == null ? "" : data[i].id;
  8403. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8404. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8405. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8406. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8407. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8408. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8409. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8410. var NAME = data[i].name == null ? "" : data[i].name;
  8411. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8412. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8413. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8414. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8415. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8416. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8417. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8418. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8419. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8420. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8421. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8422. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8423. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8424. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8425. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8426. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8427. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8428. sum_total = sum_total + DPRC
  8429. var invoice_type_cn =null;
  8430. if (invoice_type =="00" ){
  8431. invoice_type_cn="销售发票";
  8432. }else if (invoice_type == "01") {
  8433. invoice_type_cn="更正(对冲)发票";
  8434. }else if (invoice_type == "02") {
  8435. invoice_type_cn="其它类型发票";
  8436. }
  8437. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________________$tag";
  8457. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8458. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8459. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8460. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8461. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8462. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8463. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8464. html += "_$tag";
  8465. }
  8466. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________________$tag";
  8486. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8487. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8488. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8489. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8490. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8491. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8492. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8493. html += "_$tag";
  8494. $("#dataTable").html(html);
  8495. }else {
  8496. $("#dataTable").html("");
  8497. }
  8498. },
  8499. "error" : function(msg){
  8500. },
  8501. "complete": function(){
  8502. layer.close(tip);
  8503. }
  8504. });
  8505. });
  8506. Date.prototype.Format = function (fmt) {
  8507. var o = {
  8508. "M+": this.getMonth() + 1, //月份
  8509. "d+": this.getDate(), //日
  8510. "h+": this.getHours(), //小时
  8511. "m+": this.getMinutes(), //分
  8512. "s+": this.getSeconds(), //秒
  8513. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8514. "S": this.getMilliseconds() //毫秒
  8515. };
  8516. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8517. for (var k in o)
  8518. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8519. return fmt;
  8520. }
  8521. $("#jrjc").change(function() {
  8522. if ($("#jrjc").prop('checked') == true){
  8523. $("#departmentId").removeAttr("disabled");
  8524. }else {
  8525. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8526. }
  8527. });
  8528. ----------------------------------- SOURCE END -------------------------------------
  8529. !STACK 0
  8530. java.lang.NullPointerException
  8531. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:06.115
  8532. !MESSAGE Exception occurred during problem detection:
  8533. ----------------------------------- SOURCE BEGIN -------------------------------------
  8534. (function(){WdatePicker();})();
  8535. (function(){WdatePicker();})();
  8536. (function(){Data.get();})();
  8537. (function(){Data.set();})();
  8538. (function(){search();})();
  8539. $(function(){
  8540. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8541. getfp();
  8542. });
  8543. var Data = {
  8544. "get" : function(){
  8545. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8546. var tip = layer.load(2);
  8547. var result="";
  8548. var url = "getgyxml.do";
  8549. $.ajax({
  8550. "url" : url,
  8551. "data" : {
  8552. "start_date" : $("#dateBegin").val(),
  8553. "end_date" : $("#dateEnd").val()
  8554. },
  8555. "type" : "POST",
  8556. "dataType" : "json",
  8557. "success" : function(data) {
  8558. if(data != null && data != ""){
  8559. if ( data.status =="success"){
  8560. getfp();
  8561. alert("获取成功!");
  8562. }else {
  8563. alert(data.status);
  8564. }
  8565. }else {
  8566. alert("获取失败!");
  8567. }
  8568. },
  8569. "complete": function(){
  8570. layer.close(tip);
  8571. }
  8572. });
  8573. }else {
  8574. alert("请选择日期!");
  8575. }
  8576. },
  8577. "set" : function(){
  8578. if ( $("#fpid option:selected").text() !=""){
  8579. var tip = layer.load(2);
  8580. var gitem = $("#form1").serialize();
  8581. var jrjc;
  8582. if ($("#jrjc").prop('checked') == true){
  8583. jrjc = $("#departmentId").val();
  8584. }else {
  8585. jrjc ='N'
  8586. }
  8587. var url = "saverk.do";
  8588. $.ajax({
  8589. "url" : url,
  8590. "data" : {
  8591. "gitem" : gitem,
  8592. "jrjc" : jrjc
  8593. },
  8594. "type" : "POST",
  8595. "dataType" : "json",
  8596. "async" : true,
  8597. "success" : function(data) {
  8598. if(data.status ="success"){
  8599. alert("入库成功!");
  8600. window.location.reload();
  8601. }else {
  8602. alert(msg);
  8603. }
  8604. },
  8605. "error": function(){
  8606. alert("确认失败!");
  8607. },
  8608. "complete": function(){
  8609. layer.close(tip);
  8610. }
  8611. });
  8612. }else {
  8613. alert("请选择发票!");
  8614. }
  8615. }
  8616. }
  8617. function getfp(){
  8618. var tip = layer.load(2);
  8619. var url = "getgyfp.do";
  8620. $.ajax({
  8621. "url" : url,
  8622. "type" : "POST",
  8623. "dataType" : "json",
  8624. "async" : true,
  8625. "success" : function(data) {
  8626. if(data != null && data != ""){
  8627. $("#fpid").empty();
  8628. $("#fpid").append("_$tag_____________$tag____");
  8629. for(var i = 0; i < data.length; i++){
  8630. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8631. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8632. }
  8633. }
  8634. },
  8635. "error" : function(msg){
  8636. },
  8637. "complete": function(){
  8638. layer.close(tip);
  8639. }
  8640. });
  8641. }
  8642. $("#fpid").change(function(){
  8643. var tip = layer.load(2);
  8644. var url = "getgyrkxx.do";
  8645. var sum_total=0;
  8646. $.ajax({
  8647. "url" : url,
  8648. "data" : {
  8649. "fpId" : $("#fpid").val()
  8650. },
  8651. "type" : "POST",
  8652. "dataType" : "json",
  8653. "async" : true,
  8654. "success" : function(data) {
  8655. $("#dataTable").html("");
  8656. if(data != null && data != ""){
  8657. var html = "";
  8658. for(var i = 0; i < data.length; i++){
  8659. var ID = data[i].id == null ? "" : data[i].id;
  8660. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8661. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8662. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8663. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8664. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8665. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8666. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8667. var NAME = data[i].name == null ? "" : data[i].name;
  8668. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8669. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8670. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8671. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8672. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8673. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8674. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8675. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8676. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8677. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8678. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8679. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8680. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8681. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8682. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8683. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8684. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8685. sum_total = sum_total + DPRC
  8686. var invoice_type_cn =null;
  8687. if (invoice_type =="00" ){
  8688. invoice_type_cn="销售发票";
  8689. }else if (invoice_type == "01") {
  8690. invoice_type_cn="更正(对冲)发票";
  8691. }else if (invoice_type == "02") {
  8692. invoice_type_cn="其它类型发票";
  8693. }
  8694. html += "_$ta";
  8695. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8696. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8697. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8698. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8699. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8700. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8701. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8702. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8703. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8704. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8705. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8706. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8707. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8708. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8709. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8710. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8711. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8712. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8713. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8714. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8715. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8716. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8717. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8718. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8719. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8720. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8721. html += "_$tag";
  8722. }
  8723. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________________$tag";
  8743. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8744. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8745. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8746. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8747. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8748. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8749. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8750. html += "_$tag";
  8751. $("#dataTable").html(html);
  8752. }else {
  8753. $("#dataTable").html("");
  8754. }
  8755. },
  8756. "error" : function(msg){
  8757. },
  8758. "complete": function(){
  8759. layer.close(tip);
  8760. }
  8761. });
  8762. });
  8763. Date.prototype.Format = function (fmt) {
  8764. var o = {
  8765. "M+": this.getMonth() + 1, //月份
  8766. "d+": this.getDate(), //日
  8767. "h+": this.getHours(), //小时
  8768. "m+": this.getMinutes(), //分
  8769. "s+": this.getSeconds(), //秒
  8770. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8771. "S": this.getMilliseconds() //毫秒
  8772. };
  8773. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8774. for (var k in o)
  8775. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8776. return fmt;
  8777. }
  8778. $("#jrjc").change(function() {
  8779. if ($("#jrjc").prop('checked') == true){
  8780. $("#departmentId").removeAttr("disabled");
  8781. }else {
  8782. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8783. }
  8784. });
  8785. ----------------------------------- SOURCE END -------------------------------------
  8786. !STACK 0
  8787. java.lang.NullPointerException
  8788. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:06.115
  8789. !MESSAGE java.lang.NullPointerException
  8790. !STACK 1
  8791. JavaScript Model Exception: java.lang.NullPointerException
  8792. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8793. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8794. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8795. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8796. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8797. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8798. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8799. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8800. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8801. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8802. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8803. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8804. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8805. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8806. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8807. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8808. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8809. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8810. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8811. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8812. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8813. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8814. Caused by: java.lang.NullPointerException
  8815. Caused by: java.lang.NullPointerException
  8816. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:06.115
  8817. !MESSAGE java.lang.NullPointerException
  8818. !STACK 0
  8819. java.lang.NullPointerException
  8820. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:09.047
  8821. !MESSAGE Exception occurred during problem detection:
  8822. ----------------------------------- SOURCE BEGIN -------------------------------------
  8823. (function(){WdatePicker();})();
  8824. (function(){WdatePicker();})();
  8825. (function(){Data.get();})();
  8826. (function(){Data.set();})();
  8827. (function(){search();})();
  8828. $(function(){
  8829. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8830. getfp();
  8831. });
  8832. var Data = {
  8833. "get" : function(){
  8834. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8835. var tip = layer.load(2);
  8836. var result="";
  8837. var url = "getgyxml.do";
  8838. $.ajax({
  8839. "url" : url,
  8840. "data" : {
  8841. "start_date" : $("#dateBegin").val(),
  8842. "end_date" : $("#dateEnd").val()
  8843. },
  8844. "type" : "POST",
  8845. "dataType" : "json",
  8846. "success" : function(data) {
  8847. if(data != null && data != ""){
  8848. if ( data.status =="success"){
  8849. getfp();
  8850. alert("获取成功!");
  8851. }else {
  8852. alert(data.status);
  8853. }
  8854. }else {
  8855. alert("获取失败!");
  8856. }
  8857. },
  8858. "complete": function(){
  8859. layer.close(tip);
  8860. }
  8861. });
  8862. }else {
  8863. alert("请选择日期!");
  8864. }
  8865. },
  8866. "set" : function(){
  8867. if ( $("#fpid option:selected").text() !=""){
  8868. var tip = layer.load(2);
  8869. var gitem = $("#form1").serialize();
  8870. var jrjc;
  8871. if ($("#jrjc").prop('checked') == true){
  8872. jrjc = $("#departmentId").val();
  8873. }else {
  8874. jrjc ='N'
  8875. }
  8876. var url = "saverk.do";
  8877. $.ajax({
  8878. "url" : url,
  8879. "data" : {
  8880. "gitem" : gitem,
  8881. "jrjc" : jrjc
  8882. },
  8883. "type" : "POST",
  8884. "dataType" : "json",
  8885. "async" : true,
  8886. "success" : function(data) {
  8887. if(data.status ="success"){
  8888. alert("入库成功!");
  8889. window.location.reload();
  8890. }else {
  8891. alert(msg);
  8892. }
  8893. },
  8894. "error": function(){
  8895. alert("确认失败!");
  8896. },
  8897. "complete": function(){
  8898. layer.close(tip);
  8899. }
  8900. });
  8901. }else {
  8902. alert("请选择发票!");
  8903. }
  8904. }
  8905. }
  8906. function getfp(){
  8907. var tip = layer.load(2);
  8908. var url = "getgyfp.do";
  8909. $.ajax({
  8910. "url" : url,
  8911. "type" : "POST",
  8912. "dataType" : "json",
  8913. "async" : true,
  8914. "success" : function(data) {
  8915. if(data != null && data != ""){
  8916. $("#fpid").empty();
  8917. $("#fpid").append("_$tag_____________$tag____");
  8918. for(var i = 0; i < data.length; i++){
  8919. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8920. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8921. }
  8922. }
  8923. },
  8924. "error" : function(msg){
  8925. },
  8926. "complete": function(){
  8927. layer.close(tip);
  8928. }
  8929. });
  8930. }
  8931. $("#fpid").change(function(){
  8932. var tip = layer.load(2);
  8933. var url = "getgyrkxx.do";
  8934. var sum_total=0;
  8935. $.ajax({
  8936. "url" : url,
  8937. "data" : {
  8938. "fpId" : $("#fpid").val()
  8939. },
  8940. "type" : "POST",
  8941. "dataType" : "json",
  8942. "async" : true,
  8943. "success" : function(data) {
  8944. $("#dataTable").html("");
  8945. if(data != null && data != ""){
  8946. var html = "";
  8947. for(var i = 0; i < data.length; i++){
  8948. var ID = data[i].id == null ? "" : data[i].id;
  8949. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8950. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8951. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8952. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8953. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8954. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8955. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8956. var NAME = data[i].name == null ? "" : data[i].name;
  8957. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8958. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8959. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8960. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8961. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8962. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8963. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8964. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8965. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8966. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8967. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8968. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8969. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8970. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8971. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8972. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8973. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8974. sum_total = sum_total + DPRC
  8975. var invoice_type_cn =null;
  8976. if (invoice_type =="00" ){
  8977. invoice_type_cn="销售发票";
  8978. }else if (invoice_type == "01") {
  8979. invoice_type_cn="更正(对冲)发票";
  8980. }else if (invoice_type == "02") {
  8981. invoice_type_cn="其它类型发票";
  8982. }
  8983. html += "_$ta";
  8984. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8985. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8986. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8987. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8988. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8989. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8990. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8991. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8992. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8993. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8994. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8995. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8996. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8997. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8998. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8999. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9000. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9001. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  9011. }
  9012. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  9029. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9030. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9031. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9032. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9033. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9034. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9035. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9036. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9037. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9038. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9039. html += "_$tag";
  9040. $("#dataTable").html(html);
  9041. }else {
  9042. $("#dataTable").html("");
  9043. }
  9044. },
  9045. "error" : function(msg){
  9046. },
  9047. "complete": function(){
  9048. layer.close(tip);
  9049. }
  9050. });
  9051. });
  9052. Date.prototype.Format = function (fmt) {
  9053. var o = {
  9054. "M+": this.getMonth() + 1, //月份
  9055. "d+": this.getDate(), //日
  9056. "h+": this.getHours(), //小时
  9057. "m+": this.getMinutes(), //分
  9058. "s+": this.getSeconds(), //秒
  9059. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9060. "S": this.getMilliseconds() //毫秒
  9061. };
  9062. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9063. for (var k in o)
  9064. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9065. return fmt;
  9066. }
  9067. $("#jrjc").change(function() {
  9068. if ($("#jrjc").prop('checked') == true){
  9069. $("#departmentId").removeAttr("disabled");
  9070. }else {
  9071. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9072. }
  9073. });
  9074. ----------------------------------- SOURCE END -------------------------------------
  9075. !STACK 0
  9076. java.lang.NullPointerException
  9077. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:09.047
  9078. !MESSAGE Error while processing working copy
  9079. !STACK 1
  9080. JavaScript Model Exception: java.lang.NullPointerException
  9081. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9082. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9083. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9084. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9085. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9086. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9087. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9088. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9089. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9090. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9091. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9092. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9093. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9094. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9095. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9096. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9097. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9098. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9099. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9100. Caused by: java.lang.NullPointerException
  9101. Caused by: java.lang.NullPointerException
  9102. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:09.048
  9103. !MESSAGE java.lang.NullPointerException
  9104. !STACK 0
  9105. java.lang.NullPointerException
  9106. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:09.993
  9107. !MESSAGE Exception occurred during problem detection:
  9108. ----------------------------------- SOURCE BEGIN -------------------------------------
  9109. (function(){WdatePicker();})();
  9110. (function(){WdatePicker();})();
  9111. (function(){Data.get();})();
  9112. (function(){Data.set();})();
  9113. (function(){search();})();
  9114. $(function(){
  9115. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9116. getfp();
  9117. });
  9118. var Data = {
  9119. "get" : function(){
  9120. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9121. var tip = layer.load(2);
  9122. var result="";
  9123. var url = "getgyxml.do";
  9124. $.ajax({
  9125. "url" : url,
  9126. "data" : {
  9127. "start_date" : $("#dateBegin").val(),
  9128. "end_date" : $("#dateEnd").val()
  9129. },
  9130. "type" : "POST",
  9131. "dataType" : "json",
  9132. "success" : function(data) {
  9133. if(data != null && data != ""){
  9134. if ( data.status =="success"){
  9135. getfp();
  9136. alert("获取成功!");
  9137. }else {
  9138. alert(data.status);
  9139. }
  9140. }else {
  9141. alert("获取失败!");
  9142. }
  9143. },
  9144. "complete": function(){
  9145. layer.close(tip);
  9146. }
  9147. });
  9148. }else {
  9149. alert("请选择日期!");
  9150. }
  9151. },
  9152. "set" : function(){
  9153. if ( $("#fpid option:selected").text() !=""){
  9154. var tip = layer.load(2);
  9155. var gitem = $("#form1").serialize();
  9156. var jrjc;
  9157. if ($("#jrjc").prop('checked') == true){
  9158. jrjc = $("#departmentId").val();
  9159. }else {
  9160. jrjc ='N'
  9161. }
  9162. var url = "saverk.do";
  9163. $.ajax({
  9164. "url" : url,
  9165. "data" : {
  9166. "gitem" : gitem,
  9167. "jrjc" : jrjc
  9168. },
  9169. "type" : "POST",
  9170. "dataType" : "json",
  9171. "async" : true,
  9172. "success" : function(data) {
  9173. if(data.status ="success"){
  9174. alert("入库成功!");
  9175. window.location.reload();
  9176. }else {
  9177. alert(msg);
  9178. }
  9179. },
  9180. "error": function(){
  9181. alert("确认失败!");
  9182. },
  9183. "complete": function(){
  9184. layer.close(tip);
  9185. }
  9186. });
  9187. }else {
  9188. alert("请选择发票!");
  9189. }
  9190. }
  9191. }
  9192. function getfp(){
  9193. var tip = layer.load(2);
  9194. var url = "getgyfp.do";
  9195. $.ajax({
  9196. "url" : url,
  9197. "type" : "POST",
  9198. "dataType" : "json",
  9199. "async" : true,
  9200. "success" : function(data) {
  9201. if(data != null && data != ""){
  9202. $("#fpid").empty();
  9203. $("#fpid").append("_$tag_____________$tag____");
  9204. for(var i = 0; i < data.length; i++){
  9205. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9206. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9207. }
  9208. }
  9209. },
  9210. "error" : function(msg){
  9211. },
  9212. "complete": function(){
  9213. layer.close(tip);
  9214. }
  9215. });
  9216. }
  9217. $("#fpid").change(function(){
  9218. var tip = layer.load(2);
  9219. var url = "getgyrkxx.do";
  9220. var sum_total=0;
  9221. $.ajax({
  9222. "url" : url,
  9223. "data" : {
  9224. "fpId" : $("#fpid").val()
  9225. },
  9226. "type" : "POST",
  9227. "dataType" : "json",
  9228. "async" : true,
  9229. "success" : function(data) {
  9230. $("#dataTable").html("");
  9231. if(data != null && data != ""){
  9232. var html = "";
  9233. for(var i = 0; i < data.length; i++){
  9234. var ID = data[i].id == null ? "" : data[i].id;
  9235. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9236. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9237. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9238. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9239. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9240. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9241. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9242. var NAME = data[i].name == null ? "" : data[i].name;
  9243. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9244. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9245. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9246. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9247. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9248. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9249. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9250. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9251. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9252. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9253. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9254. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9255. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9256. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9257. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9258. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9259. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9260. sum_total = sum_total + DPRC
  9261. var invoice_type_cn =null;
  9262. if (invoice_type =="00" ){
  9263. invoice_type_cn="销售发票";
  9264. }else if (invoice_type == "01") {
  9265. invoice_type_cn="更正(对冲)发票";
  9266. }else if (invoice_type == "02") {
  9267. invoice_type_cn="其它类型发票";
  9268. }
  9269. html += "_$ta";
  9270. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9271. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9272. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9273. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9274. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9275. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9276. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9277. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9278. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9279. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9280. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9281. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9282. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9283. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9284. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9285. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9286. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9287. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9288. html += "_$tag_____________$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";
  9297. }
  9298. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  9315. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9316. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9317. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9318. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9319. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9320. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9321. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9322. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9323. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9324. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9325. html += "_$tag";
  9326. $("#dataTable").html(html);
  9327. }else {
  9328. $("#dataTable").html("");
  9329. }
  9330. },
  9331. "error" : function(msg){
  9332. },
  9333. "complete": function(){
  9334. layer.close(tip);
  9335. }
  9336. });
  9337. });
  9338. Date.prototype.Format = function (fmt) {
  9339. var o = {
  9340. "M+": this.getMonth() + 1, //月份
  9341. "d+": this.getDate(), //日
  9342. "h+": this.getHours(), //小时
  9343. "m+": this.getMinutes(), //分
  9344. "s+": this.getSeconds(), //秒
  9345. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9346. "S": this.getMilliseconds() //毫秒
  9347. };
  9348. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9349. for (var k in o)
  9350. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9351. return fmt;
  9352. }
  9353. $("#jrjc").change(function() {
  9354. if ($("#jrjc").prop('checked') == true){
  9355. $("#departmentId").removeAttr("disabled");
  9356. }else {
  9357. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9358. }
  9359. });
  9360. ----------------------------------- SOURCE END -------------------------------------
  9361. !STACK 0
  9362. java.lang.NullPointerException
  9363. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:13.002
  9364. !MESSAGE Exception occurred during problem detection:
  9365. ----------------------------------- SOURCE BEGIN -------------------------------------
  9366. (function(){WdatePicker();})();
  9367. (function(){WdatePicker();})();
  9368. (function(){Data.get();})();
  9369. (function(){Data.set();})();
  9370. (function(){search();})();
  9371. $(function(){
  9372. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9373. getfp();
  9374. });
  9375. var Data = {
  9376. "get" : function(){
  9377. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9378. var tip = layer.load(2);
  9379. var result="";
  9380. var url = "getgyxml.do";
  9381. $.ajax({
  9382. "url" : url,
  9383. "data" : {
  9384. "start_date" : $("#dateBegin").val(),
  9385. "end_date" : $("#dateEnd").val()
  9386. },
  9387. "type" : "POST",
  9388. "dataType" : "json",
  9389. "success" : function(data) {
  9390. if(data != null && data != ""){
  9391. if ( data.status =="success"){
  9392. getfp();
  9393. alert("获取成功!");
  9394. }else {
  9395. alert(data.status);
  9396. }
  9397. }else {
  9398. alert("获取失败!");
  9399. }
  9400. },
  9401. "complete": function(){
  9402. layer.close(tip);
  9403. }
  9404. });
  9405. }else {
  9406. alert("请选择日期!");
  9407. }
  9408. },
  9409. "set" : function(){
  9410. if ( $("#fpid option:selected").text() !=""){
  9411. var tip = layer.load(2);
  9412. var gitem = $("#form1").serialize();
  9413. var jrjc;
  9414. if ($("#jrjc").prop('checked') == true){
  9415. jrjc = $("#departmentId").val();
  9416. }else {
  9417. jrjc ='N'
  9418. }
  9419. var url = "saverk.do";
  9420. $.ajax({
  9421. "url" : url,
  9422. "data" : {
  9423. "gitem" : gitem,
  9424. "jrjc" : jrjc
  9425. },
  9426. "type" : "POST",
  9427. "dataType" : "json",
  9428. "async" : true,
  9429. "success" : function(data) {
  9430. if(data.status ="success"){
  9431. alert("入库成功!");
  9432. window.location.reload();
  9433. }else {
  9434. alert(msg);
  9435. }
  9436. },
  9437. "error": function(){
  9438. alert("确认失败!");
  9439. },
  9440. "complete": function(){
  9441. layer.close(tip);
  9442. }
  9443. });
  9444. }else {
  9445. alert("请选择发票!");
  9446. }
  9447. }
  9448. }
  9449. function getfp(){
  9450. var tip = layer.load(2);
  9451. var url = "getgyfp.do";
  9452. $.ajax({
  9453. "url" : url,
  9454. "type" : "POST",
  9455. "dataType" : "json",
  9456. "async" : true,
  9457. "success" : function(data) {
  9458. if(data != null && data != ""){
  9459. $("#fpid").empty();
  9460. $("#fpid").append("_$tag_____________$tag____");
  9461. for(var i = 0; i < data.length; i++){
  9462. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9463. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9464. }
  9465. }
  9466. },
  9467. "error" : function(msg){
  9468. },
  9469. "complete": function(){
  9470. layer.close(tip);
  9471. }
  9472. });
  9473. }
  9474. $("#fpid").change(function(){
  9475. var tip = layer.load(2);
  9476. var url = "getgyrkxx.do";
  9477. var sum_total=0;
  9478. $.ajax({
  9479. "url" : url,
  9480. "data" : {
  9481. "fpId" : $("#fpid").val()
  9482. },
  9483. "type" : "POST",
  9484. "dataType" : "json",
  9485. "async" : true,
  9486. "success" : function(data) {
  9487. $("#dataTable").html("");
  9488. if(data != null && data != ""){
  9489. var html = "";
  9490. for(var i = 0; i < data.length; i++){
  9491. var ID = data[i].id == null ? "" : data[i].id;
  9492. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9493. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9494. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9495. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9496. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9497. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9498. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9499. var NAME = data[i].name == null ? "" : data[i].name;
  9500. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9501. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9502. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9503. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9504. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9505. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9506. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9507. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9508. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9509. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9510. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9511. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9512. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9513. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9514. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9515. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9516. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9517. sum_total = sum_total + DPRC
  9518. var invoice_type_cn =null;
  9519. if (invoice_type =="00" ){
  9520. invoice_type_cn="销售发票";
  9521. }else if (invoice_type == "01") {
  9522. invoice_type_cn="更正(对冲)发票";
  9523. }else if (invoice_type == "02") {
  9524. invoice_type_cn="其它类型发票";
  9525. }
  9526. html += "_$ta";
  9527. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9528. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9529. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9530. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9531. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9532. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9533. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9534. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9535. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9536. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9537. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9538. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9539. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9540. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9541. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9542. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9543. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9544. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9545. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9546. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9547. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9548. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9549. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9550. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9551. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9552. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9553. html += "_$tag";
  9554. }
  9555. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  9572. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9573. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9574. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9575. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9576. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9577. html += "_$tag_____________$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";
  9583. $("#dataTable").html(html);
  9584. }else {
  9585. $("#dataTable").html("");
  9586. }
  9587. },
  9588. "error" : function(msg){
  9589. },
  9590. "complete": function(){
  9591. layer.close(tip);
  9592. }
  9593. });
  9594. });
  9595. Date.prototype.Format = function (fmt) {
  9596. var o = {
  9597. "M+": this.getMonth() + 1, //月份
  9598. "d+": this.getDate(), //日
  9599. "h+": this.getHours(), //小时
  9600. "m+": this.getMinutes(), //分
  9601. "s+": this.getSeconds(), //秒
  9602. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9603. "S": this.getMilliseconds() //毫秒
  9604. };
  9605. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9606. for (var k in o)
  9607. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9608. return fmt;
  9609. }
  9610. $("#jrjc").change(function() {
  9611. if ($("#jrjc").prop('checked') == true){
  9612. $("#departmentId").removeAttr("disabled");
  9613. }else {
  9614. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9615. }
  9616. });
  9617. ----------------------------------- SOURCE END -------------------------------------
  9618. !STACK 0
  9619. java.lang.NullPointerException
  9620. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:13.002
  9621. !MESSAGE Error while processing working copy
  9622. !STACK 1
  9623. JavaScript Model Exception: java.lang.NullPointerException
  9624. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9625. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9626. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9627. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9628. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9629. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9630. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9631. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9632. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9633. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9634. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9635. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9636. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9637. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9638. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9639. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9640. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9641. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9642. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9643. Caused by: java.lang.NullPointerException
  9644. Caused by: java.lang.NullPointerException
  9645. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:13.003
  9646. !MESSAGE java.lang.NullPointerException
  9647. !STACK 0
  9648. java.lang.NullPointerException
  9649. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:14.063
  9650. !MESSAGE Exception occurred during problem detection:
  9651. ----------------------------------- SOURCE BEGIN -------------------------------------
  9652. (function(){WdatePicker();})();
  9653. (function(){WdatePicker();})();
  9654. (function(){Data.get();})();
  9655. (function(){Data.set();})();
  9656. (function(){search();})();
  9657. $(function(){
  9658. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9659. getfp();
  9660. });
  9661. var Data = {
  9662. "get" : function(){
  9663. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9664. var tip = layer.load(2);
  9665. var result="";
  9666. var url = "getgyxml.do";
  9667. $.ajax({
  9668. "url" : url,
  9669. "data" : {
  9670. "start_date" : $("#dateBegin").val(),
  9671. "end_date" : $("#dateEnd").val()
  9672. },
  9673. "type" : "POST",
  9674. "dataType" : "json",
  9675. "success" : function(data) {
  9676. if(data != null && data != ""){
  9677. if ( data.status =="success"){
  9678. getfp();
  9679. alert("获取成功!");
  9680. }else {
  9681. alert(data.status);
  9682. }
  9683. }else {
  9684. alert("获取失败!");
  9685. }
  9686. },
  9687. "complete": function(){
  9688. layer.close(tip);
  9689. }
  9690. });
  9691. }else {
  9692. alert("请选择日期!");
  9693. }
  9694. },
  9695. "set" : function(){
  9696. if ( $("#fpid option:selected").text() !=""){
  9697. var tip = layer.load(2);
  9698. var gitem = $("#form1").serialize();
  9699. var jrjc;
  9700. if ($("#jrjc").prop('checked') == true){
  9701. jrjc = $("#departmentId").val();
  9702. }else {
  9703. jrjc ='N'
  9704. }
  9705. var url = "saverk.do";
  9706. $.ajax({
  9707. "url" : url,
  9708. "data" : {
  9709. "gitem" : gitem,
  9710. "jrjc" : jrjc
  9711. },
  9712. "type" : "POST",
  9713. "dataType" : "json",
  9714. "async" : true,
  9715. "success" : function(data) {
  9716. if(data.status ="success"){
  9717. alert("入库成功!");
  9718. window.location.reload();
  9719. }else {
  9720. alert(msg);
  9721. }
  9722. },
  9723. "error": function(){
  9724. alert("确认失败!");
  9725. },
  9726. "complete": function(){
  9727. layer.close(tip);
  9728. }
  9729. });
  9730. }else {
  9731. alert("请选择发票!");
  9732. }
  9733. }
  9734. }
  9735. function getfp(){
  9736. var tip = layer.load(2);
  9737. var url = "getgyfp.do";
  9738. $.ajax({
  9739. "url" : url,
  9740. "type" : "POST",
  9741. "dataType" : "json",
  9742. "async" : true,
  9743. "success" : function(data) {
  9744. if(data != null && data != ""){
  9745. $("#fpid").empty();
  9746. $("#fpid").append("_$tag_____________$tag____");
  9747. for(var i = 0; i < data.length; i++){
  9748. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9749. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9750. }
  9751. }
  9752. },
  9753. "error" : function(msg){
  9754. },
  9755. "complete": function(){
  9756. layer.close(tip);
  9757. }
  9758. });
  9759. }
  9760. $("#fpid").change(function(){
  9761. var tip = layer.load(2);
  9762. var url = "getgyrkxx.do";
  9763. var sum_total=0;
  9764. $.ajax({
  9765. "url" : url,
  9766. "data" : {
  9767. "fpId" : $("#fpid").val()
  9768. },
  9769. "type" : "POST",
  9770. "dataType" : "json",
  9771. "async" : true,
  9772. "success" : function(data) {
  9773. $("#dataTable").html("");
  9774. if(data != null && data != ""){
  9775. var html = "";
  9776. for(var i = 0; i < data.length; i++){
  9777. var ID = data[i].id == null ? "" : data[i].id;
  9778. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9779. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9780. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9781. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9782. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9783. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9784. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9785. var NAME = data[i].name == null ? "" : data[i].name;
  9786. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9787. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9788. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9789. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9790. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9791. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9792. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9793. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9794. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9795. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9796. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9797. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9798. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9799. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9800. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9801. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9802. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9803. sum_total = sum_total + DPRC
  9804. var invoice_type_cn =null;
  9805. if (invoice_type =="00" ){
  9806. invoice_type_cn="销售发票";
  9807. }else if (invoice_type == "01") {
  9808. invoice_type_cn="更正(对冲)发票";
  9809. }else if (invoice_type == "02") {
  9810. invoice_type_cn="其它类型发票";
  9811. }
  9812. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  9829. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9830. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9831. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9832. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9833. html += "_$tag_____________$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";
  9840. }
  9841. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  9858. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9859. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9860. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9861. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9862. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9863. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9864. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9865. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9866. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9867. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9868. html += "_$tag";
  9869. $("#dataTable").html(html);
  9870. }else {
  9871. $("#dataTable").html("");
  9872. }
  9873. },
  9874. "error" : function(msg){
  9875. },
  9876. "complete": function(){
  9877. layer.close(tip);
  9878. }
  9879. });
  9880. });
  9881. Date.prototype.Format = function (fmt) {
  9882. var o = {
  9883. "M+": this.getMonth() + 1, //月份
  9884. "d+": this.getDate(), //日
  9885. "h+": this.getHours(), //小时
  9886. "m+": this.getMinutes(), //分
  9887. "s+": this.getSeconds(), //秒
  9888. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9889. "S": this.getMilliseconds() //毫秒
  9890. };
  9891. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9892. for (var k in o)
  9893. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9894. return fmt;
  9895. }
  9896. $("#jrjc").change(function() {
  9897. if ($("#jrjc").prop('checked') == true){
  9898. $("#departmentId").removeAttr("disabled");
  9899. }else {
  9900. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9901. }
  9902. });
  9903. ----------------------------------- SOURCE END -------------------------------------
  9904. !STACK 0
  9905. java.lang.NullPointerException
  9906. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:14.770
  9907. !MESSAGE Exception occurred during problem detection:
  9908. ----------------------------------- SOURCE BEGIN -------------------------------------
  9909. (function(){WdatePicker();})();
  9910. (function(){WdatePicker();})();
  9911. (function(){Data.get();})();
  9912. (function(){Data.set();})();
  9913. (function(){search();})();
  9914. $(function(){
  9915. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9916. getfp();
  9917. });
  9918. var Data = {
  9919. "get" : function(){
  9920. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9921. var tip = layer.load(2);
  9922. var result="";
  9923. var url = "getgyxml.do";
  9924. $.ajax({
  9925. "url" : url,
  9926. "data" : {
  9927. "start_date" : $("#dateBegin").val(),
  9928. "end_date" : $("#dateEnd").val()
  9929. },
  9930. "type" : "POST",
  9931. "dataType" : "json",
  9932. "success" : function(data) {
  9933. if(data != null && data != ""){
  9934. if ( data.status =="success"){
  9935. getfp();
  9936. alert("获取成功!");
  9937. }else {
  9938. alert(data.status);
  9939. }
  9940. }else {
  9941. alert("获取失败!");
  9942. }
  9943. },
  9944. "complete": function(){
  9945. layer.close(tip);
  9946. }
  9947. });
  9948. }else {
  9949. alert("请选择日期!");
  9950. }
  9951. },
  9952. "set" : function(){
  9953. if ( $("#fpid option:selected").text() !=""){
  9954. var tip = layer.load(2);
  9955. var gitem = $("#form1").serialize();
  9956. var jrjc;
  9957. if ($("#jrjc").prop('checked') == true){
  9958. jrjc = $("#departmentId").val();
  9959. }else {
  9960. jrjc ='N'
  9961. }
  9962. var url = "saverk.do";
  9963. $.ajax({
  9964. "url" : url,
  9965. "data" : {
  9966. "gitem" : gitem,
  9967. "jrjc" : jrjc
  9968. },
  9969. "type" : "POST",
  9970. "dataType" : "json",
  9971. "async" : true,
  9972. "success" : function(data) {
  9973. if(data.status ="success"){
  9974. alert("入库成功!");
  9975. window.location.reload();
  9976. }else {
  9977. alert(msg);
  9978. }
  9979. },
  9980. "error": function(){
  9981. alert("确认失败!");
  9982. },
  9983. "complete": function(){
  9984. layer.close(tip);
  9985. }
  9986. });
  9987. }else {
  9988. alert("请选择发票!");
  9989. }
  9990. }
  9991. }
  9992. function getfp(){
  9993. var tip = layer.load(2);
  9994. var url = "getgyfp.do";
  9995. $.ajax({
  9996. "url" : url,
  9997. "type" : "POST",
  9998. "dataType" : "json",
  9999. "async" : true,
  10000. "success" : function(data) {
  10001. if(data != null && data != ""){
  10002. $("#fpid").empty();
  10003. $("#fpid").append("_$tag_____________$tag____");
  10004. for(var i = 0; i < data.length; i++){
  10005. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10006. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10007. }
  10008. }
  10009. },
  10010. "error" : function(msg){
  10011. },
  10012. "complete": function(){
  10013. layer.close(tip);
  10014. }
  10015. });
  10016. }
  10017. $("#fpid").change(function(){
  10018. var tip = layer.load(2);
  10019. var url = "getgyrkxx.do";
  10020. var sum_total=0;
  10021. $.ajax({
  10022. "url" : url,
  10023. "data" : {
  10024. "fpId" : $("#fpid").val()
  10025. },
  10026. "type" : "POST",
  10027. "dataType" : "json",
  10028. "async" : true,
  10029. "success" : function(data) {
  10030. $("#dataTable").html("");
  10031. if(data != null && data != ""){
  10032. var html = "";
  10033. for(var i = 0; i < data.length; i++){
  10034. var ID = data[i].id == null ? "" : data[i].id;
  10035. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10036. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10037. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10038. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10039. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10040. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10041. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10042. var NAME = data[i].name == null ? "" : data[i].name;
  10043. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10044. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10045. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10046. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10047. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10048. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10049. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10050. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10051. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10052. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10053. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10054. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10055. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10056. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10057. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10058. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10059. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10060. sum_total = sum_total + DPRC
  10061. var invoice_type_cn =null;
  10062. if (invoice_type =="00" ){
  10063. invoice_type_cn="销售发票";
  10064. }else if (invoice_type == "01") {
  10065. invoice_type_cn="更正(对冲)发票";
  10066. }else if (invoice_type == "02") {
  10067. invoice_type_cn="其它类型发票";
  10068. }
  10069. html += "_$ta";
  10070. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10071. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10072. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10073. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10074. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10075. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10076. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10077. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10078. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10079. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10080. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10081. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10082. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10083. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10084. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10085. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10086. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10087. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10088. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10089. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10090. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10091. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10092. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10093. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10094. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10095. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10096. html += "_$tag";
  10097. }
  10098. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________________$tag";
  10118. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10119. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  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";
  10126. $("#dataTable").html(html);
  10127. }else {
  10128. $("#dataTable").html("");
  10129. }
  10130. },
  10131. "error" : function(msg){
  10132. },
  10133. "complete": function(){
  10134. layer.close(tip);
  10135. }
  10136. });
  10137. });
  10138. Date.prototype.Format = function (fmt) {
  10139. var o = {
  10140. "M+": this.getMonth() + 1, //月份
  10141. "d+": this.getDate(), //日
  10142. "h+": this.getHours(), //小时
  10143. "m+": this.getMinutes(), //分
  10144. "s+": this.getSeconds(), //秒
  10145. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10146. "S": this.getMilliseconds() //毫秒
  10147. };
  10148. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10149. for (var k in o)
  10150. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10151. return fmt;
  10152. }
  10153. $("#jrjc").change(function() {
  10154. if ($("#jrjc").prop('checked') == true){
  10155. $("#departmentId").removeAttr("disabled");
  10156. }else {
  10157. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10158. }
  10159. });
  10160. ----------------------------------- SOURCE END -------------------------------------
  10161. !STACK 0
  10162. java.lang.NullPointerException
  10163. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:14.771
  10164. !MESSAGE java.lang.NullPointerException
  10165. !STACK 1
  10166. JavaScript Model Exception: java.lang.NullPointerException
  10167. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10168. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  10169. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10170. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10171. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  10172. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  10173. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  10174. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  10175. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  10176. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  10177. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  10178. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  10179. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  10180. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  10181. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  10182. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  10183. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  10184. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  10185. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  10186. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  10187. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  10188. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  10189. Caused by: java.lang.NullPointerException
  10190. Caused by: java.lang.NullPointerException
  10191. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:14.771
  10192. !MESSAGE java.lang.NullPointerException
  10193. !STACK 0
  10194. java.lang.NullPointerException
  10195. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:19.285
  10196. !MESSAGE Exception occurred during problem detection:
  10197. ----------------------------------- SOURCE BEGIN -------------------------------------
  10198. (function(){WdatePicker();})();
  10199. (function(){WdatePicker();})();
  10200. (function(){Data.get();})();
  10201. (function(){Data.set();})();
  10202. (function(){search();})();
  10203. $(function(){
  10204. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10205. getfp();
  10206. });
  10207. var Data = {
  10208. "get" : function(){
  10209. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10210. var tip = layer.load(2);
  10211. var result="";
  10212. var url = "getgyxml.do";
  10213. $.ajax({
  10214. "url" : url,
  10215. "data" : {
  10216. "start_date" : $("#dateBegin").val(),
  10217. "end_date" : $("#dateEnd").val()
  10218. },
  10219. "type" : "POST",
  10220. "dataType" : "json",
  10221. "success" : function(data) {
  10222. if(data != null && data != ""){
  10223. if ( data.status =="success"){
  10224. getfp();
  10225. alert("获取成功!");
  10226. }else {
  10227. alert(data.status);
  10228. }
  10229. }else {
  10230. alert("获取失败!");
  10231. }
  10232. },
  10233. "complete": function(){
  10234. layer.close(tip);
  10235. }
  10236. });
  10237. }else {
  10238. alert("请选择日期!");
  10239. }
  10240. },
  10241. "set" : function(){
  10242. if ( $("#fpid option:selected").text() !=""){
  10243. var tip = layer.load(2);
  10244. var gitem = $("#form1").serialize();
  10245. var jrjc;
  10246. if ($("#jrjc").prop('checked') == true){
  10247. jrjc = $("#departmentId").val();
  10248. }else {
  10249. jrjc ='N'
  10250. }
  10251. var url = "saverk.do";
  10252. $.ajax({
  10253. "url" : url,
  10254. "data" : {
  10255. "gitem" : gitem,
  10256. "jrjc" : jrjc
  10257. },
  10258. "type" : "POST",
  10259. "dataType" : "json",
  10260. "async" : true,
  10261. "success" : function(data) {
  10262. if(data.status ="success"){
  10263. alert("入库成功!");
  10264. window.location.reload();
  10265. }else {
  10266. alert(msg);
  10267. }
  10268. },
  10269. "error": function(){
  10270. alert("确认失败!");
  10271. },
  10272. "complete": function(){
  10273. layer.close(tip);
  10274. }
  10275. });
  10276. }else {
  10277. alert("请选择发票!");
  10278. }
  10279. }
  10280. }
  10281. function getfp(){
  10282. var tip = layer.load(2);
  10283. var url = "getgyfp.do";
  10284. $.ajax({
  10285. "url" : url,
  10286. "type" : "POST",
  10287. "dataType" : "json",
  10288. "async" : true,
  10289. "success" : function(data) {
  10290. if(data != null && data != ""){
  10291. $("#fpid").empty();
  10292. $("#fpid").append("_$tag_____________$tag____");
  10293. for(var i = 0; i < data.length; i++){
  10294. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10295. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10296. }
  10297. }
  10298. },
  10299. "error" : function(msg){
  10300. },
  10301. "complete": function(){
  10302. layer.close(tip);
  10303. }
  10304. });
  10305. }
  10306. $("#fpid").change(function(){
  10307. var tip = layer.load(2);
  10308. var url = "getgyrkxx.do";
  10309. var sum_total=0;
  10310. $.ajax({
  10311. "url" : url,
  10312. "data" : {
  10313. "fpId" : $("#fpid").val()
  10314. },
  10315. "type" : "POST",
  10316. "dataType" : "json",
  10317. "async" : true,
  10318. "success" : function(data) {
  10319. $("#dataTable").html("");
  10320. if(data != null && data != ""){
  10321. var html = "";
  10322. for(var i = 0; i < data.length; i++){
  10323. var ID = data[i].id == null ? "" : data[i].id;
  10324. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10325. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10326. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10327. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10328. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10329. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10330. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10331. var NAME = data[i].name == null ? "" : data[i].name;
  10332. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10333. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10334. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10335. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10336. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10337. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10338. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10339. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10340. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10341. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10342. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10343. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10344. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10345. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10346. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10347. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10348. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10349. sum_total = sum_total + DPRC
  10350. var invoice_type_cn =null;
  10351. if (invoice_type =="00" ){
  10352. invoice_type_cn="销售发票";
  10353. }else if (invoice_type == "01") {
  10354. invoice_type_cn="更正(对冲)发票";
  10355. }else if (invoice_type == "02") {
  10356. invoice_type_cn="其它类型发票";
  10357. }
  10358. html += "_$ta";
  10359. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10360. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10361. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10362. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10363. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10364. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10365. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10366. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10367. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10368. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10369. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10370. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10371. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10372. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10373. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10374. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10375. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10376. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10377. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10378. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10379. html += "_$tag_____________$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";
  10386. }
  10387. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  10404. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10405. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  10415. $("#dataTable").html(html);
  10416. }else {
  10417. $("#dataTable").html("");
  10418. }
  10419. },
  10420. "error" : function(msg){
  10421. },
  10422. "complete": function(){
  10423. layer.close(tip);
  10424. }
  10425. });
  10426. });
  10427. Date.prototype.Format = function (fmt) {
  10428. var o = {
  10429. "M+": this.getMonth() + 1, //月份
  10430. "d+": this.getDate(), //日
  10431. "h+": this.getHours(), //小时
  10432. "m+": this.getMinutes(), //分
  10433. "s+": this.getSeconds(), //秒
  10434. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10435. "S": this.getMilliseconds() //毫秒
  10436. };
  10437. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10438. for (var k in o)
  10439. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10440. return fmt;
  10441. }
  10442. $("#jrjc").change(function() {
  10443. if ($("#jrjc").prop('checked') == true){
  10444. $("#departmentId").removeAttr("disabled");
  10445. }else {
  10446. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10447. }
  10448. });
  10449. ----------------------------------- SOURCE END -------------------------------------
  10450. !STACK 0
  10451. java.lang.NullPointerException
  10452. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:19.285
  10453. !MESSAGE Error while processing working copy
  10454. !STACK 1
  10455. JavaScript Model Exception: java.lang.NullPointerException
  10456. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10457. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10458. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10459. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10460. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10461. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10462. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10463. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10464. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10465. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10466. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10467. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10468. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10469. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10470. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10471. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10472. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10473. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10474. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10475. Caused by: java.lang.NullPointerException
  10476. Caused by: java.lang.NullPointerException
  10477. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:19.286
  10478. !MESSAGE java.lang.NullPointerException
  10479. !STACK 0
  10480. java.lang.NullPointerException
  10481. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:19.910
  10482. !MESSAGE Exception occurred during problem detection:
  10483. ----------------------------------- SOURCE BEGIN -------------------------------------
  10484. (function(){WdatePicker();})();
  10485. (function(){WdatePicker();})();
  10486. (function(){Data.get();})();
  10487. (function(){Data.set();})();
  10488. (function(){search();})();
  10489. $(function(){
  10490. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10491. getfp();
  10492. });
  10493. var Data = {
  10494. "get" : function(){
  10495. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10496. var tip = layer.load(2);
  10497. var result="";
  10498. var url = "getgyxml.do";
  10499. $.ajax({
  10500. "url" : url,
  10501. "data" : {
  10502. "start_date" : $("#dateBegin").val(),
  10503. "end_date" : $("#dateEnd").val()
  10504. },
  10505. "type" : "POST",
  10506. "dataType" : "json",
  10507. "success" : function(data) {
  10508. if(data != null && data != ""){
  10509. if ( data.status =="success"){
  10510. getfp();
  10511. alert("获取成功!");
  10512. }else {
  10513. alert(data.status);
  10514. }
  10515. }else {
  10516. alert("获取失败!");
  10517. }
  10518. },
  10519. "complete": function(){
  10520. layer.close(tip);
  10521. }
  10522. });
  10523. }else {
  10524. alert("请选择日期!");
  10525. }
  10526. },
  10527. "set" : function(){
  10528. if ( $("#fpid option:selected").text() !=""){
  10529. var tip = layer.load(2);
  10530. var gitem = $("#form1").serialize();
  10531. var jrjc;
  10532. if ($("#jrjc").prop('checked') == true){
  10533. jrjc = $("#departmentId").val();
  10534. }else {
  10535. jrjc ='N'
  10536. }
  10537. var url = "saverk.do";
  10538. $.ajax({
  10539. "url" : url,
  10540. "data" : {
  10541. "gitem" : gitem,
  10542. "jrjc" : jrjc
  10543. },
  10544. "type" : "POST",
  10545. "dataType" : "json",
  10546. "async" : true,
  10547. "success" : function(data) {
  10548. if(data.status ="success"){
  10549. alert("入库成功!");
  10550. window.location.reload();
  10551. }else {
  10552. alert(msg);
  10553. }
  10554. },
  10555. "error": function(){
  10556. alert("确认失败!");
  10557. },
  10558. "complete": function(){
  10559. layer.close(tip);
  10560. }
  10561. });
  10562. }else {
  10563. alert("请选择发票!");
  10564. }
  10565. }
  10566. }
  10567. function getfp(){
  10568. var tip = layer.load(2);
  10569. var url = "getgyfp.do";
  10570. $.ajax({
  10571. "url" : url,
  10572. "type" : "POST",
  10573. "dataType" : "json",
  10574. "async" : true,
  10575. "success" : function(data) {
  10576. if(data != null && data != ""){
  10577. $("#fpid").empty();
  10578. $("#fpid").append("_$tag_____________$tag____");
  10579. for(var i = 0; i < data.length; i++){
  10580. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10581. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10582. }
  10583. }
  10584. },
  10585. "error" : function(msg){
  10586. },
  10587. "complete": function(){
  10588. layer.close(tip);
  10589. }
  10590. });
  10591. }
  10592. $("#fpid").change(function(){
  10593. var tip = layer.load(2);
  10594. var url = "getgyrkxx.do";
  10595. var sum_total=0;
  10596. $.ajax({
  10597. "url" : url,
  10598. "data" : {
  10599. "fpId" : $("#fpid").val()
  10600. },
  10601. "type" : "POST",
  10602. "dataType" : "json",
  10603. "async" : true,
  10604. "success" : function(data) {
  10605. $("#dataTable").html("");
  10606. if(data != null && data != ""){
  10607. var html = "";
  10608. for(var i = 0; i < data.length; i++){
  10609. var ID = data[i].id == null ? "" : data[i].id;
  10610. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10611. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10612. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10613. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10614. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10615. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10616. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10617. var NAME = data[i].name == null ? "" : data[i].name;
  10618. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10619. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10620. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10621. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10622. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10623. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10624. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10625. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10626. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10627. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10628. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10629. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10630. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10631. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10632. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10633. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10634. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10635. sum_total = sum_total + DPRC
  10636. var invoice_type_cn =null;
  10637. if (invoice_type =="00" ){
  10638. invoice_type_cn="销售发票";
  10639. }else if (invoice_type == "01") {
  10640. invoice_type_cn="更正(对冲)发票";
  10641. }else if (invoice_type == "02") {
  10642. invoice_type_cn="其它类型发票";
  10643. }
  10644. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  10661. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10662. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  10672. }
  10673. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  10690. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10691. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10692. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10693. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10694. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10695. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10696. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10697. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10698. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10699. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10700. html += "_$tag";
  10701. $("#dataTable").html(html);
  10702. }else {
  10703. $("#dataTable").html("");
  10704. }
  10705. },
  10706. "error" : function(msg){
  10707. },
  10708. "complete": function(){
  10709. layer.close(tip);
  10710. }
  10711. });
  10712. });
  10713. Date.prototype.Format = function (fmt) {
  10714. var o = {
  10715. "M+": this.getMonth() + 1, //月份
  10716. "d+": this.getDate(), //日
  10717. "h+": this.getHours(), //小时
  10718. "m+": this.getMinutes(), //分
  10719. "s+": this.getSeconds(), //秒
  10720. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10721. "S": this.getMilliseconds() //毫秒
  10722. };
  10723. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10724. for (var k in o)
  10725. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10726. return fmt;
  10727. }
  10728. $("#jrjc").change(function() {
  10729. if ($("#jrjc").prop('checked') == true){
  10730. $("#departmentId").removeAttr("disabled");
  10731. }else {
  10732. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10733. }
  10734. });
  10735. ----------------------------------- SOURCE END -------------------------------------
  10736. !STACK 0
  10737. java.lang.NullPointerException
  10738. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:21.186
  10739. !MESSAGE Exception occurred during problem detection:
  10740. ----------------------------------- SOURCE BEGIN -------------------------------------
  10741. (function(){WdatePicker();})();
  10742. (function(){WdatePicker();})();
  10743. (function(){Data.get();})();
  10744. (function(){Data.set();})();
  10745. (function(){search();})();
  10746. $(function(){
  10747. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10748. getfp();
  10749. });
  10750. var Data = {
  10751. "get" : function(){
  10752. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10753. var tip = layer.load(2);
  10754. var result="";
  10755. var url = "getgyxml.do";
  10756. $.ajax({
  10757. "url" : url,
  10758. "data" : {
  10759. "start_date" : $("#dateBegin").val(),
  10760. "end_date" : $("#dateEnd").val()
  10761. },
  10762. "type" : "POST",
  10763. "dataType" : "json",
  10764. "success" : function(data) {
  10765. if(data != null && data != ""){
  10766. if ( data.status =="success"){
  10767. getfp();
  10768. alert("获取成功!");
  10769. }else {
  10770. alert(data.status);
  10771. }
  10772. }else {
  10773. alert("获取失败!");
  10774. }
  10775. },
  10776. "complete": function(){
  10777. layer.close(tip);
  10778. }
  10779. });
  10780. }else {
  10781. alert("请选择日期!");
  10782. }
  10783. },
  10784. "set" : function(){
  10785. if ( $("#fpid option:selected").text() !=""){
  10786. var tip = layer.load(2);
  10787. var gitem = $("#form1").serialize();
  10788. var jrjc;
  10789. if ($("#jrjc").prop('checked') == true){
  10790. jrjc = $("#departmentId").val();
  10791. }else {
  10792. jrjc ='N'
  10793. }
  10794. var url = "saverk.do";
  10795. $.ajax({
  10796. "url" : url,
  10797. "data" : {
  10798. "gitem" : gitem,
  10799. "jrjc" : jrjc
  10800. },
  10801. "type" : "POST",
  10802. "dataType" : "json",
  10803. "async" : true,
  10804. "success" : function(data) {
  10805. if(data.status ="success"){
  10806. alert("入库成功!");
  10807. window.location.reload();
  10808. }else {
  10809. alert(msg);
  10810. }
  10811. },
  10812. "error": function(){
  10813. alert("确认失败!");
  10814. },
  10815. "complete": function(){
  10816. layer.close(tip);
  10817. }
  10818. });
  10819. }else {
  10820. alert("请选择发票!");
  10821. }
  10822. }
  10823. }
  10824. function getfp(){
  10825. var tip = layer.load(2);
  10826. var url = "getgyfp.do";
  10827. $.ajax({
  10828. "url" : url,
  10829. "type" : "POST",
  10830. "dataType" : "json",
  10831. "async" : true,
  10832. "success" : function(data) {
  10833. if(data != null && data != ""){
  10834. $("#fpid").empty();
  10835. $("#fpid").append("_$tag_____________$tag____");
  10836. for(var i = 0; i < data.length; i++){
  10837. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10838. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10839. }
  10840. }
  10841. },
  10842. "error" : function(msg){
  10843. },
  10844. "complete": function(){
  10845. layer.close(tip);
  10846. }
  10847. });
  10848. }
  10849. $("#fpid").change(function(){
  10850. var tip = layer.load(2);
  10851. var url = "getgyrkxx.do";
  10852. var sum_total=0;
  10853. $.ajax({
  10854. "url" : url,
  10855. "data" : {
  10856. "fpId" : $("#fpid").val()
  10857. },
  10858. "type" : "POST",
  10859. "dataType" : "json",
  10860. "async" : true,
  10861. "success" : function(data) {
  10862. $("#dataTable").html("");
  10863. if(data != null && data != ""){
  10864. var html = "";
  10865. for(var i = 0; i < data.length; i++){
  10866. var ID = data[i].id == null ? "" : data[i].id;
  10867. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10868. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10869. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10870. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10871. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10872. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10873. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10874. var NAME = data[i].name == null ? "" : data[i].name;
  10875. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10876. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10877. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10878. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10879. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10880. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10881. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10882. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10883. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10884. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10885. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10886. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10887. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10888. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10889. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10890. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10891. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10892. sum_total = sum_total + DPRC
  10893. var invoice_type_cn =null;
  10894. if (invoice_type =="00" ){
  10895. invoice_type_cn="销售发票";
  10896. }else if (invoice_type == "01") {
  10897. invoice_type_cn="更正(对冲)发票";
  10898. }else if (invoice_type == "02") {
  10899. invoice_type_cn="其它类型发票";
  10900. }
  10901. html += "_$ta";
  10902. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10903. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10904. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10905. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10906. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10907. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10908. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10909. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10910. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10911. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10912. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10913. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10914. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10915. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10916. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10917. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10918. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10919. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10920. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10921. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10922. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  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";
  10929. }
  10930. html += "_$ta";
  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_____________$tag______________________________________________________________________________________________________________________________$tag";
  10950. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10951. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  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";
  10958. $("#dataTable").html(html);
  10959. }else {
  10960. $("#dataTable").html("");
  10961. }
  10962. },
  10963. "error" : function(msg){
  10964. },
  10965. "complete": function(){
  10966. layer.close(tip);
  10967. }
  10968. });
  10969. });
  10970. Date.prototype.Format = function (fmt) {
  10971. var o = {
  10972. "M+": this.getMonth() + 1, //月份
  10973. "d+": this.getDate(), //日
  10974. "h+": this.getHours(), //小时
  10975. "m+": this.getMinutes(), //分
  10976. "s+": this.getSeconds(), //秒
  10977. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10978. "S": this.getMilliseconds() //毫秒
  10979. };
  10980. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10981. for (var k in o)
  10982. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10983. return fmt;
  10984. }
  10985. $("#jrjc").change(function() {
  10986. if ($("#jrjc").prop('checked') == true){
  10987. $("#departmentId").removeAttr("disabled");
  10988. }else {
  10989. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10990. }
  10991. });
  10992. ----------------------------------- SOURCE END -------------------------------------
  10993. !STACK 0
  10994. java.lang.NullPointerException
  10995. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:21.187
  10996. !MESSAGE java.lang.NullPointerException
  10997. !STACK 1
  10998. JavaScript Model Exception: java.lang.NullPointerException
  10999. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11000. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  11001. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11002. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11003. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  11004. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  11005. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  11006. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  11007. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  11008. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  11009. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  11010. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  11011. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  11012. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  11013. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  11014. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  11015. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  11016. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  11017. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  11018. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  11019. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  11020. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  11021. Caused by: java.lang.NullPointerException
  11022. Caused by: java.lang.NullPointerException
  11023. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:21.187
  11024. !MESSAGE java.lang.NullPointerException
  11025. !STACK 0
  11026. java.lang.NullPointerException
  11027. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:21.877
  11028. !MESSAGE Exception occurred during problem detection:
  11029. ----------------------------------- SOURCE BEGIN -------------------------------------
  11030. (function(){WdatePicker();})();
  11031. (function(){WdatePicker();})();
  11032. (function(){Data.get();})();
  11033. (function(){Data.set();})();
  11034. (function(){search();})();
  11035. $(function(){
  11036. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11037. getfp();
  11038. });
  11039. var Data = {
  11040. "get" : function(){
  11041. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11042. var tip = layer.load(2);
  11043. var result="";
  11044. var url = "getgyxml.do";
  11045. $.ajax({
  11046. "url" : url,
  11047. "data" : {
  11048. "start_date" : $("#dateBegin").val(),
  11049. "end_date" : $("#dateEnd").val()
  11050. },
  11051. "type" : "POST",
  11052. "dataType" : "json",
  11053. "success" : function(data) {
  11054. if(data != null && data != ""){
  11055. if ( data.status =="success"){
  11056. getfp();
  11057. alert("获取成功!");
  11058. }else {
  11059. alert(data.status);
  11060. }
  11061. }else {
  11062. alert("获取失败!");
  11063. }
  11064. },
  11065. "complete": function(){
  11066. layer.close(tip);
  11067. }
  11068. });
  11069. }else {
  11070. alert("请选择日期!");
  11071. }
  11072. },
  11073. "set" : function(){
  11074. if ( $("#fpid option:selected").text() !=""){
  11075. var tip = layer.load(2);
  11076. var gitem = $("#form1").serialize();
  11077. var jrjc;
  11078. if ($("#jrjc").prop('checked') == true){
  11079. jrjc = $("#departmentId").val();
  11080. }else {
  11081. jrjc ='N'
  11082. }
  11083. var url = "saverk.do";
  11084. $.ajax({
  11085. "url" : url,
  11086. "data" : {
  11087. "gitem" : gitem,
  11088. "jrjc" : jrjc
  11089. },
  11090. "type" : "POST",
  11091. "dataType" : "json",
  11092. "async" : true,
  11093. "success" : function(data) {
  11094. if(data.status ="success"){
  11095. alert("入库成功!");
  11096. window.location.reload();
  11097. }else {
  11098. alert(msg);
  11099. }
  11100. },
  11101. "error": function(){
  11102. alert("确认失败!");
  11103. },
  11104. "complete": function(){
  11105. layer.close(tip);
  11106. }
  11107. });
  11108. }else {
  11109. alert("请选择发票!");
  11110. }
  11111. }
  11112. }
  11113. function getfp(){
  11114. var tip = layer.load(2);
  11115. var url = "getgyfp.do";
  11116. $.ajax({
  11117. "url" : url,
  11118. "type" : "POST",
  11119. "dataType" : "json",
  11120. "async" : true,
  11121. "success" : function(data) {
  11122. if(data != null && data != ""){
  11123. $("#fpid").empty();
  11124. $("#fpid").append("_$tag_____________$tag____");
  11125. for(var i = 0; i < data.length; i++){
  11126. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11127. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11128. }
  11129. }
  11130. },
  11131. "error" : function(msg){
  11132. },
  11133. "complete": function(){
  11134. layer.close(tip);
  11135. }
  11136. });
  11137. }
  11138. $("#fpid").change(function(){
  11139. var tip = layer.load(2);
  11140. var url = "getgyrkxx.do";
  11141. var sum_total=0;
  11142. $.ajax({
  11143. "url" : url,
  11144. "data" : {
  11145. "fpId" : $("#fpid").val()
  11146. },
  11147. "type" : "POST",
  11148. "dataType" : "json",
  11149. "async" : true,
  11150. "success" : function(data) {
  11151. $("#dataTable").html("");
  11152. if(data != null && data != ""){
  11153. var html = "";
  11154. for(var i = 0; i < data.length; i++){
  11155. var ID = data[i].id == null ? "" : data[i].id;
  11156. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11157. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11158. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11159. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11160. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11161. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11162. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11163. var NAME = data[i].name == null ? "" : data[i].name;
  11164. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11165. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11166. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11167. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11168. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11169. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11170. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11171. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11172. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11173. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11174. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11175. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11176. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11177. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11178. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11179. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11180. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11181. sum_total = sum_total + DPRC
  11182. var invoice_type_cn =null;
  11183. if (invoice_type =="00" ){
  11184. invoice_type_cn="销售发票";
  11185. }else if (invoice_type == "01") {
  11186. invoice_type_cn="更正(对冲)发票";
  11187. }else if (invoice_type == "02") {
  11188. invoice_type_cn="其它类型发票";
  11189. }
  11190. html += "_$ta";
  11191. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11192. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11193. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11194. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11195. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11196. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11197. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11198. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11199. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11200. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11201. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11202. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11203. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11204. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11205. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11206. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11207. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11208. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  11218. }
  11219. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  11236. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11237. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11238. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11239. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11240. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11241. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11242. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11243. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11244. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11245. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11246. html += "_$tag";
  11247. $("#dataTable").html(html);
  11248. }else {
  11249. $("#dataTable").html("");
  11250. }
  11251. },
  11252. "error" : function(msg){
  11253. },
  11254. "complete": function(){
  11255. layer.close(tip);
  11256. }
  11257. });
  11258. });
  11259. Date.prototype.Format = function (fmt) {
  11260. var o = {
  11261. "M+": this.getMonth() + 1, //月份
  11262. "d+": this.getDate(), //日
  11263. "h+": this.getHours(), //小时
  11264. "m+": this.getMinutes(), //分
  11265. "s+": this.getSeconds(), //秒
  11266. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11267. "S": this.getMilliseconds() //毫秒
  11268. };
  11269. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11270. for (var k in o)
  11271. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11272. return fmt;
  11273. }
  11274. $("#jrjc").change(function() {
  11275. if ($("#jrjc").prop('checked') == true){
  11276. $("#departmentId").removeAttr("disabled");
  11277. }else {
  11278. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11279. }
  11280. });
  11281. ----------------------------------- SOURCE END -------------------------------------
  11282. !STACK 0
  11283. java.lang.NullPointerException
  11284. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:21.877
  11285. !MESSAGE Error while processing working copy
  11286. !STACK 1
  11287. JavaScript Model Exception: java.lang.NullPointerException
  11288. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11289. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11290. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11291. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11292. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11293. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11294. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11295. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11296. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11297. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11298. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11299. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11300. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11301. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11302. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11303. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11304. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11305. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11306. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11307. Caused by: java.lang.NullPointerException
  11308. Caused by: java.lang.NullPointerException
  11309. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:21.877
  11310. !MESSAGE java.lang.NullPointerException
  11311. !STACK 0
  11312. java.lang.NullPointerException
  11313. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:22.522
  11314. !MESSAGE Exception occurred during problem detection:
  11315. ----------------------------------- SOURCE BEGIN -------------------------------------
  11316. (function(){WdatePicker();})();
  11317. (function(){WdatePicker();})();
  11318. (function(){Data.get();})();
  11319. (function(){Data.set();})();
  11320. (function(){search();})();
  11321. $(function(){
  11322. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11323. getfp();
  11324. });
  11325. var Data = {
  11326. "get" : function(){
  11327. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11328. var tip = layer.load(2);
  11329. var result="";
  11330. var url = "getgyxml.do";
  11331. $.ajax({
  11332. "url" : url,
  11333. "data" : {
  11334. "start_date" : $("#dateBegin").val(),
  11335. "end_date" : $("#dateEnd").val()
  11336. },
  11337. "type" : "POST",
  11338. "dataType" : "json",
  11339. "success" : function(data) {
  11340. if(data != null && data != ""){
  11341. if ( data.status =="success"){
  11342. getfp();
  11343. alert("获取成功!");
  11344. }else {
  11345. alert(data.status);
  11346. }
  11347. }else {
  11348. alert("获取失败!");
  11349. }
  11350. },
  11351. "complete": function(){
  11352. layer.close(tip);
  11353. }
  11354. });
  11355. }else {
  11356. alert("请选择日期!");
  11357. }
  11358. },
  11359. "set" : function(){
  11360. if ( $("#fpid option:selected").text() !=""){
  11361. var tip = layer.load(2);
  11362. var gitem = $("#form1").serialize();
  11363. var jrjc;
  11364. if ($("#jrjc").prop('checked') == true){
  11365. jrjc = $("#departmentId").val();
  11366. }else {
  11367. jrjc ='N'
  11368. }
  11369. var url = "saverk.do";
  11370. $.ajax({
  11371. "url" : url,
  11372. "data" : {
  11373. "gitem" : gitem,
  11374. "jrjc" : jrjc
  11375. },
  11376. "type" : "POST",
  11377. "dataType" : "json",
  11378. "async" : true,
  11379. "success" : function(data) {
  11380. if(data.status ="success"){
  11381. alert("入库成功!");
  11382. window.location.reload();
  11383. }else {
  11384. alert(msg);
  11385. }
  11386. },
  11387. "error": function(){
  11388. alert("确认失败!");
  11389. },
  11390. "complete": function(){
  11391. layer.close(tip);
  11392. }
  11393. });
  11394. }else {
  11395. alert("请选择发票!");
  11396. }
  11397. }
  11398. }
  11399. function getfp(){
  11400. var tip = layer.load(2);
  11401. var url = "getgyfp.do";
  11402. $.ajax({
  11403. "url" : url,
  11404. "type" : "POST",
  11405. "dataType" : "json",
  11406. "async" : true,
  11407. "success" : function(data) {
  11408. if(data != null && data != ""){
  11409. $("#fpid").empty();
  11410. $("#fpid").append("_$tag_____________$tag____");
  11411. for(var i = 0; i < data.length; i++){
  11412. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11413. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11414. }
  11415. }
  11416. },
  11417. "error" : function(msg){
  11418. },
  11419. "complete": function(){
  11420. layer.close(tip);
  11421. }
  11422. });
  11423. }
  11424. $("#fpid").change(function(){
  11425. var tip = layer.load(2);
  11426. var url = "getgyrkxx.do";
  11427. var sum_total=0;
  11428. $.ajax({
  11429. "url" : url,
  11430. "data" : {
  11431. "fpId" : $("#fpid").val()
  11432. },
  11433. "type" : "POST",
  11434. "dataType" : "json",
  11435. "async" : true,
  11436. "success" : function(data) {
  11437. $("#dataTable").html("");
  11438. if(data != null && data != ""){
  11439. var html = "";
  11440. for(var i = 0; i < data.length; i++){
  11441. var ID = data[i].id == null ? "" : data[i].id;
  11442. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11443. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11444. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11445. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11446. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11447. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11448. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11449. var NAME = data[i].name == null ? "" : data[i].name;
  11450. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11451. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11452. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11453. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11454. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11455. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11456. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11457. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11458. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11459. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11460. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11461. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11462. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11463. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11464. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11465. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11466. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11467. sum_total = sum_total + DPRC
  11468. var invoice_type_cn =null;
  11469. if (invoice_type =="00" ){
  11470. invoice_type_cn="销售发票";
  11471. }else if (invoice_type == "01") {
  11472. invoice_type_cn="更正(对冲)发票";
  11473. }else if (invoice_type == "02") {
  11474. invoice_type_cn="其它类型发票";
  11475. }
  11476. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  11493. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11494. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  11504. }
  11505. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  11522. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11523. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11524. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11525. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11526. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11527. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11528. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11529. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11530. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11531. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11532. html += "_$tag";
  11533. $("#dataTable").html(html);
  11534. }else {
  11535. $("#dataTable").html("");
  11536. }
  11537. },
  11538. "error" : function(msg){
  11539. },
  11540. "complete": function(){
  11541. layer.close(tip);
  11542. }
  11543. });
  11544. });
  11545. Date.prototype.Format = function (fmt) {
  11546. var o = {
  11547. "M+": this.getMonth() + 1, //月份
  11548. "d+": this.getDate(), //日
  11549. "h+": this.getHours(), //小时
  11550. "m+": this.getMinutes(), //分
  11551. "s+": this.getSeconds(), //秒
  11552. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11553. "S": this.getMilliseconds() //毫秒
  11554. };
  11555. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11556. for (var k in o)
  11557. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11558. return fmt;
  11559. }
  11560. $("#jrjc").change(function() {
  11561. if ($("#jrjc").prop('checked') == true){
  11562. $("#departmentId").removeAttr("disabled");
  11563. }else {
  11564. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11565. }
  11566. });
  11567. ----------------------------------- SOURCE END -------------------------------------
  11568. !STACK 0
  11569. java.lang.NullPointerException
  11570. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:26.005
  11571. !MESSAGE Exception occurred during problem detection:
  11572. ----------------------------------- SOURCE BEGIN -------------------------------------
  11573. (function(){WdatePicker();})();
  11574. (function(){WdatePicker();})();
  11575. (function(){Data.get();})();
  11576. (function(){Data.set();})();
  11577. (function(){search();})();
  11578. $(function(){
  11579. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11580. getfp();
  11581. });
  11582. var Data = {
  11583. "get" : function(){
  11584. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11585. var tip = layer.load(2);
  11586. var result="";
  11587. var url = "getgyxml.do";
  11588. $.ajax({
  11589. "url" : url,
  11590. "data" : {
  11591. "start_date" : $("#dateBegin").val(),
  11592. "end_date" : $("#dateEnd").val()
  11593. },
  11594. "type" : "POST",
  11595. "dataType" : "json",
  11596. "success" : function(data) {
  11597. if(data != null && data != ""){
  11598. if ( data.status =="success"){
  11599. getfp();
  11600. alert("获取成功!");
  11601. }else {
  11602. alert(data.status);
  11603. }
  11604. }else {
  11605. alert("获取失败!");
  11606. }
  11607. },
  11608. "complete": function(){
  11609. layer.close(tip);
  11610. }
  11611. });
  11612. }else {
  11613. alert("请选择日期!");
  11614. }
  11615. },
  11616. "set" : function(){
  11617. if ( $("#fpid option:selected").text() !=""){
  11618. var tip = layer.load(2);
  11619. var gitem = $("#form1").serialize();
  11620. var jrjc;
  11621. if ($("#jrjc").prop('checked') == true){
  11622. jrjc = $("#departmentId").val();
  11623. }else {
  11624. jrjc ='N'
  11625. }
  11626. var url = "saverk.do";
  11627. $.ajax({
  11628. "url" : url,
  11629. "data" : {
  11630. "gitem" : gitem,
  11631. "jrjc" : jrjc
  11632. },
  11633. "type" : "POST",
  11634. "dataType" : "json",
  11635. "async" : true,
  11636. "success" : function(data) {
  11637. if(data.status ="success"){
  11638. alert("入库成功!");
  11639. window.location.reload();
  11640. }else {
  11641. alert(msg);
  11642. }
  11643. },
  11644. "error": function(){
  11645. alert("确认失败!");
  11646. },
  11647. "complete": function(){
  11648. layer.close(tip);
  11649. }
  11650. });
  11651. }else {
  11652. alert("请选择发票!");
  11653. }
  11654. }
  11655. }
  11656. function getfp(){
  11657. var tip = layer.load(2);
  11658. var url = "getgyfp.do";
  11659. $.ajax({
  11660. "url" : url,
  11661. "type" : "POST",
  11662. "dataType" : "json",
  11663. "async" : true,
  11664. "success" : function(data) {
  11665. if(data != null && data != ""){
  11666. $("#fpid").empty();
  11667. $("#fpid").append("_$tag_____________$tag____");
  11668. for(var i = 0; i < data.length; i++){
  11669. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11670. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11671. }
  11672. }
  11673. },
  11674. "error" : function(msg){
  11675. },
  11676. "complete": function(){
  11677. layer.close(tip);
  11678. }
  11679. });
  11680. }
  11681. $("#fpid").change(function(){
  11682. var tip = layer.load(2);
  11683. var url = "getgyrkxx.do";
  11684. var sum_total=0;
  11685. $.ajax({
  11686. "url" : url,
  11687. "data" : {
  11688. "fpId" : $("#fpid").val()
  11689. },
  11690. "type" : "POST",
  11691. "dataType" : "json",
  11692. "async" : true,
  11693. "success" : function(data) {
  11694. $("#dataTable").html("");
  11695. if(data != null && data != ""){
  11696. var html = "";
  11697. for(var i = 0; i < data.length; i++){
  11698. var ID = data[i].id == null ? "" : data[i].id;
  11699. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11700. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11701. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11702. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11703. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11704. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11705. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11706. var NAME = data[i].name == null ? "" : data[i].name;
  11707. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11708. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11709. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11710. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11711. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11712. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11713. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11714. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11715. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11716. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11717. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11718. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11719. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11720. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11721. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11722. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11723. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11724. sum_total = sum_total + DPRC
  11725. var invoice_type_cn =null;
  11726. if (invoice_type =="00" ){
  11727. invoice_type_cn="销售发票";
  11728. }else if (invoice_type == "01") {
  11729. invoice_type_cn="更正(对冲)发票";
  11730. }else if (invoice_type == "02") {
  11731. invoice_type_cn="其它类型发票";
  11732. }
  11733. html += "_$ta";
  11734. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11735. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11736. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11737. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11738. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11739. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11740. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11741. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11742. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11743. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11744. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11745. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11746. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11747. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11748. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11749. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11750. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11751. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11752. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11753. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11754. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11755. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11756. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11757. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11758. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11759. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11760. html += "_$tag";
  11761. }
  11762. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  11779. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11780. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  11790. $("#dataTable").html(html);
  11791. }else {
  11792. $("#dataTable").html("");
  11793. }
  11794. },
  11795. "error" : function(msg){
  11796. },
  11797. "complete": function(){
  11798. layer.close(tip);
  11799. }
  11800. });
  11801. });
  11802. Date.prototype.Format = function (fmt) {
  11803. var o = {
  11804. "M+": this.getMonth() + 1, //月份
  11805. "d+": this.getDate(), //日
  11806. "h+": this.getHours(), //小时
  11807. "m+": this.getMinutes(), //分
  11808. "s+": this.getSeconds(), //秒
  11809. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11810. "S": this.getMilliseconds() //毫秒
  11811. };
  11812. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11813. for (var k in o)
  11814. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11815. return fmt;
  11816. }
  11817. $("#jrjc").change(function() {
  11818. if ($("#jrjc").prop('checked') == true){
  11819. $("#departmentId").removeAttr("disabled");
  11820. }else {
  11821. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11822. }
  11823. });
  11824. ----------------------------------- SOURCE END -------------------------------------
  11825. !STACK 0
  11826. java.lang.NullPointerException
  11827. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:26.006
  11828. !MESSAGE Error while processing working copy
  11829. !STACK 1
  11830. JavaScript Model Exception: java.lang.NullPointerException
  11831. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11832. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11833. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11834. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11835. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11836. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11837. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11838. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11839. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11840. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11841. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11842. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11843. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11844. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11845. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11846. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11847. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11848. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11849. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11850. Caused by: java.lang.NullPointerException
  11851. Caused by: java.lang.NullPointerException
  11852. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:26.006
  11853. !MESSAGE java.lang.NullPointerException
  11854. !STACK 0
  11855. java.lang.NullPointerException
  11856. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:26.957
  11857. !MESSAGE Exception occurred during problem detection:
  11858. ----------------------------------- SOURCE BEGIN -------------------------------------
  11859. (function(){WdatePicker();})();
  11860. (function(){WdatePicker();})();
  11861. (function(){Data.get();})();
  11862. (function(){Data.set();})();
  11863. (function(){search();})();
  11864. $(function(){
  11865. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11866. getfp();
  11867. });
  11868. var Data = {
  11869. "get" : function(){
  11870. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11871. var tip = layer.load(2);
  11872. var result="";
  11873. var url = "getgyxml.do";
  11874. $.ajax({
  11875. "url" : url,
  11876. "data" : {
  11877. "start_date" : $("#dateBegin").val(),
  11878. "end_date" : $("#dateEnd").val()
  11879. },
  11880. "type" : "POST",
  11881. "dataType" : "json",
  11882. "success" : function(data) {
  11883. if(data != null && data != ""){
  11884. if ( data.status =="success"){
  11885. getfp();
  11886. alert("获取成功!");
  11887. }else {
  11888. alert(data.status);
  11889. }
  11890. }else {
  11891. alert("获取失败!");
  11892. }
  11893. },
  11894. "complete": function(){
  11895. layer.close(tip);
  11896. }
  11897. });
  11898. }else {
  11899. alert("请选择日期!");
  11900. }
  11901. },
  11902. "set" : function(){
  11903. if ( $("#fpid option:selected").text() !=""){
  11904. var tip = layer.load(2);
  11905. var gitem = $("#form1").serialize();
  11906. var jrjc;
  11907. if ($("#jrjc").prop('checked') == true){
  11908. jrjc = $("#departmentId").val();
  11909. }else {
  11910. jrjc ='N'
  11911. }
  11912. var url = "saverk.do";
  11913. $.ajax({
  11914. "url" : url,
  11915. "data" : {
  11916. "gitem" : gitem,
  11917. "jrjc" : jrjc
  11918. },
  11919. "type" : "POST",
  11920. "dataType" : "json",
  11921. "async" : true,
  11922. "success" : function(data) {
  11923. if(data.status ="success"){
  11924. alert("入库成功!");
  11925. window.location.reload();
  11926. }else {
  11927. alert(msg);
  11928. }
  11929. },
  11930. "error": function(){
  11931. alert("确认失败!");
  11932. },
  11933. "complete": function(){
  11934. layer.close(tip);
  11935. }
  11936. });
  11937. }else {
  11938. alert("请选择发票!");
  11939. }
  11940. }
  11941. }
  11942. function getfp(){
  11943. var tip = layer.load(2);
  11944. var url = "getgyfp.do";
  11945. $.ajax({
  11946. "url" : url,
  11947. "type" : "POST",
  11948. "dataType" : "json",
  11949. "async" : true,
  11950. "success" : function(data) {
  11951. if(data != null && data != ""){
  11952. $("#fpid").empty();
  11953. $("#fpid").append("_$tag_____________$tag____");
  11954. for(var i = 0; i < data.length; i++){
  11955. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11956. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11957. }
  11958. }
  11959. },
  11960. "error" : function(msg){
  11961. },
  11962. "complete": function(){
  11963. layer.close(tip);
  11964. }
  11965. });
  11966. }
  11967. $("#fpid").change(function(){
  11968. var tip = layer.load(2);
  11969. var url = "getgyrkxx.do";
  11970. var sum_total=0;
  11971. $.ajax({
  11972. "url" : url,
  11973. "data" : {
  11974. "fpId" : $("#fpid").val()
  11975. },
  11976. "type" : "POST",
  11977. "dataType" : "json",
  11978. "async" : true,
  11979. "success" : function(data) {
  11980. $("#dataTable").html("");
  11981. if(data != null && data != ""){
  11982. var html = "";
  11983. for(var i = 0; i < data.length; i++){
  11984. var ID = data[i].id == null ? "" : data[i].id;
  11985. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11986. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11987. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11988. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11989. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11990. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11991. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11992. var NAME = data[i].name == null ? "" : data[i].name;
  11993. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11994. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11995. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11996. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11997. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11998. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11999. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12000. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12001. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12002. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12003. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12004. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12005. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12006. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12007. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12008. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12009. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12010. sum_total = sum_total + DPRC
  12011. var invoice_type_cn =null;
  12012. if (invoice_type =="00" ){
  12013. invoice_type_cn="销售发票";
  12014. }else if (invoice_type == "01") {
  12015. invoice_type_cn="更正(对冲)发票";
  12016. }else if (invoice_type == "02") {
  12017. invoice_type_cn="其它类型发票";
  12018. }
  12019. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  12036. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12037. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  12047. }
  12048. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  12065. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12066. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12067. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12068. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12069. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12070. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12071. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12072. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12073. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12074. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12075. html += "_$tag";
  12076. $("#dataTable").html(html);
  12077. }else {
  12078. $("#dataTable").html("");
  12079. }
  12080. },
  12081. "error" : function(msg){
  12082. },
  12083. "complete": function(){
  12084. layer.close(tip);
  12085. }
  12086. });
  12087. });
  12088. Date.prototype.Format = function (fmt) {
  12089. var o = {
  12090. "M+": this.getMonth() + 1, //月份
  12091. "d+": this.getDate(), //日
  12092. "h+": this.getHours(), //小时
  12093. "m+": this.getMinutes(), //分
  12094. "s+": this.getSeconds(), //秒
  12095. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12096. "S": this.getMilliseconds() //毫秒
  12097. };
  12098. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12099. for (var k in o)
  12100. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12101. return fmt;
  12102. }
  12103. $("#jrjc").change(function() {
  12104. if ($("#jrjc").prop('checked') == true){
  12105. $("#departmentId").removeAttr("disabled");
  12106. }else {
  12107. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12108. }
  12109. });
  12110. ----------------------------------- SOURCE END -------------------------------------
  12111. !STACK 0
  12112. java.lang.NullPointerException
  12113. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:29.381
  12114. !MESSAGE Exception occurred during problem detection:
  12115. ----------------------------------- SOURCE BEGIN -------------------------------------
  12116. (function(){WdatePicker();})();
  12117. (function(){WdatePicker();})();
  12118. (function(){Data.get();})();
  12119. (function(){Data.set();})();
  12120. (function(){search();})();
  12121. $(function(){
  12122. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12123. getfp();
  12124. });
  12125. var Data = {
  12126. "get" : function(){
  12127. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12128. var tip = layer.load(2);
  12129. var result="";
  12130. var url = "getgyxml.do";
  12131. $.ajax({
  12132. "url" : url,
  12133. "data" : {
  12134. "start_date" : $("#dateBegin").val(),
  12135. "end_date" : $("#dateEnd").val()
  12136. },
  12137. "type" : "POST",
  12138. "dataType" : "json",
  12139. "success" : function(data) {
  12140. if(data != null && data != ""){
  12141. if ( data.status =="success"){
  12142. getfp();
  12143. alert("获取成功!");
  12144. }else {
  12145. alert(data.status);
  12146. }
  12147. }else {
  12148. alert("获取失败!");
  12149. }
  12150. },
  12151. "complete": function(){
  12152. layer.close(tip);
  12153. }
  12154. });
  12155. }else {
  12156. alert("请选择日期!");
  12157. }
  12158. },
  12159. "set" : function(){
  12160. if ( $("#fpid option:selected").text() !=""){
  12161. var tip = layer.load(2);
  12162. var gitem = $("#form1").serialize();
  12163. var jrjc;
  12164. if ($("#jrjc").prop('checked') == true){
  12165. jrjc = $("#departmentId").val();
  12166. }else {
  12167. jrjc ='N'
  12168. }
  12169. var url = "saverk.do";
  12170. $.ajax({
  12171. "url" : url,
  12172. "data" : {
  12173. "gitem" : gitem,
  12174. "jrjc" : jrjc
  12175. },
  12176. "type" : "POST",
  12177. "dataType" : "json",
  12178. "async" : true,
  12179. "success" : function(data) {
  12180. if(data.status ="success"){
  12181. alert("入库成功!");
  12182. window.location.reload();
  12183. }else {
  12184. alert(msg);
  12185. }
  12186. },
  12187. "error": function(){
  12188. alert("确认失败!");
  12189. },
  12190. "complete": function(){
  12191. layer.close(tip);
  12192. }
  12193. });
  12194. }else {
  12195. alert("请选择发票!");
  12196. }
  12197. }
  12198. }
  12199. function getfp(){
  12200. var tip = layer.load(2);
  12201. var url = "getgyfp.do";
  12202. $.ajax({
  12203. "url" : url,
  12204. "type" : "POST",
  12205. "dataType" : "json",
  12206. "async" : true,
  12207. "success" : function(data) {
  12208. if(data != null && data != ""){
  12209. $("#fpid").empty();
  12210. $("#fpid").append("_$tag_____________$tag____");
  12211. for(var i = 0; i < data.length; i++){
  12212. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12213. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12214. }
  12215. }
  12216. },
  12217. "error" : function(msg){
  12218. },
  12219. "complete": function(){
  12220. layer.close(tip);
  12221. }
  12222. });
  12223. }
  12224. $("#fpid").change(function(){
  12225. var tip = layer.load(2);
  12226. var url = "getgyrkxx.do";
  12227. var sum_total=0;
  12228. $.ajax({
  12229. "url" : url,
  12230. "data" : {
  12231. "fpId" : $("#fpid").val()
  12232. },
  12233. "type" : "POST",
  12234. "dataType" : "json",
  12235. "async" : true,
  12236. "success" : function(data) {
  12237. $("#dataTable").html("");
  12238. if(data != null && data != ""){
  12239. var html = "";
  12240. for(var i = 0; i < data.length; i++){
  12241. var ID = data[i].id == null ? "" : data[i].id;
  12242. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12243. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12244. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12245. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12246. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12247. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12248. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12249. var NAME = data[i].name == null ? "" : data[i].name;
  12250. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12251. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12252. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12253. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12254. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12255. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12256. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12257. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12258. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12259. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12260. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12261. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12262. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12263. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12264. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12265. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12266. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12267. sum_total = sum_total + DPRC
  12268. var invoice_type_cn =null;
  12269. if (invoice_type =="00" ){
  12270. invoice_type_cn="销售发票";
  12271. }else if (invoice_type == "01") {
  12272. invoice_type_cn="更正(对冲)发票";
  12273. }else if (invoice_type == "02") {
  12274. invoice_type_cn="其它类型发票";
  12275. }
  12276. html += "_$ta";
  12277. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12278. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12279. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12280. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12281. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12282. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12283. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12284. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12285. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12286. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12287. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12288. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12289. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12290. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12291. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12292. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12293. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12294. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  12304. }
  12305. html += "_$ta";
  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_____________$tag________________________________________________________________________________________________________________________$tag";
  12322. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12323. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  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";
  12333. $("#dataTable").html(html);
  12334. }else {
  12335. $("#dataTable").html("");
  12336. }
  12337. },
  12338. "error" : function(msg){
  12339. },
  12340. "complete": function(){
  12341. layer.close(tip);
  12342. }
  12343. });
  12344. });
  12345. Date.prototype.Format = function (fmt) {
  12346. var o = {
  12347. "M+": this.getMonth() + 1, //月份
  12348. "d+": this.getDate(), //日
  12349. "h+": this.getHours(), //小时
  12350. "m+": this.getMinutes(), //分
  12351. "s+": this.getSeconds(), //秒
  12352. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12353. "S": this.getMilliseconds() //毫秒
  12354. };
  12355. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12356. for (var k in o)
  12357. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12358. return fmt;
  12359. }
  12360. $("#jrjc").change(function() {
  12361. if ($("#jrjc").prop('checked') == true){
  12362. $("#departmentId").removeAttr("disabled");
  12363. }else {
  12364. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12365. }
  12366. });
  12367. ----------------------------------- SOURCE END -------------------------------------
  12368. !STACK 0
  12369. java.lang.NullPointerException
  12370. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:29.382
  12371. !MESSAGE java.lang.NullPointerException
  12372. !STACK 1
  12373. JavaScript Model Exception: java.lang.NullPointerException
  12374. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12375. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  12376. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12377. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12378. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  12379. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  12380. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  12381. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  12382. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  12383. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  12384. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  12385. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  12386. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  12387. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  12388. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  12389. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  12390. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  12391. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  12392. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  12393. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  12394. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  12395. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  12396. Caused by: java.lang.NullPointerException
  12397. Caused by: java.lang.NullPointerException
  12398. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:29.382
  12399. !MESSAGE java.lang.NullPointerException
  12400. !STACK 0
  12401. java.lang.NullPointerException
  12402. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:34.746
  12403. !MESSAGE Exception occurred during problem detection:
  12404. ----------------------------------- SOURCE BEGIN -------------------------------------
  12405. (function(){WdatePicker();})();
  12406. (function(){WdatePicker();})();
  12407. (function(){Data.get();})();
  12408. (function(){Data.set();})();
  12409. (function(){search();})();
  12410. $(function(){
  12411. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12412. getfp();
  12413. });
  12414. var Data = {
  12415. "get" : function(){
  12416. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12417. var tip = layer.load(2);
  12418. var result="";
  12419. var url = "getgyxml.do";
  12420. $.ajax({
  12421. "url" : url,
  12422. "data" : {
  12423. "start_date" : $("#dateBegin").val(),
  12424. "end_date" : $("#dateEnd").val()
  12425. },
  12426. "type" : "POST",
  12427. "dataType" : "json",
  12428. "success" : function(data) {
  12429. if(data != null && data != ""){
  12430. if ( data.status =="success"){
  12431. getfp();
  12432. alert("获取成功!");
  12433. }else {
  12434. alert(data.status);
  12435. }
  12436. }else {
  12437. alert("获取失败!");
  12438. }
  12439. },
  12440. "complete": function(){
  12441. layer.close(tip);
  12442. }
  12443. });
  12444. }else {
  12445. alert("请选择日期!");
  12446. }
  12447. },
  12448. "set" : function(){
  12449. if ( $("#fpid option:selected").text() !=""){
  12450. var tip = layer.load(2);
  12451. var gitem = $("#form1").serialize();
  12452. var jrjc;
  12453. if ($("#jrjc").prop('checked') == true){
  12454. jrjc = $("#departmentId").val();
  12455. }else {
  12456. jrjc ='N'
  12457. }
  12458. var url = "saverk.do";
  12459. $.ajax({
  12460. "url" : url,
  12461. "data" : {
  12462. "gitem" : gitem,
  12463. "jrjc" : jrjc
  12464. },
  12465. "type" : "POST",
  12466. "dataType" : "json",
  12467. "async" : true,
  12468. "success" : function(data) {
  12469. if(data.status ="success"){
  12470. alert("入库成功!");
  12471. window.location.reload();
  12472. }else {
  12473. alert(msg);
  12474. }
  12475. },
  12476. "error": function(){
  12477. alert("确认失败!");
  12478. },
  12479. "complete": function(){
  12480. layer.close(tip);
  12481. }
  12482. });
  12483. }else {
  12484. alert("请选择发票!");
  12485. }
  12486. }
  12487. }
  12488. function getfp(){
  12489. var tip = layer.load(2);
  12490. var url = "getgyfp.do";
  12491. $.ajax({
  12492. "url" : url,
  12493. "type" : "POST",
  12494. "dataType" : "json",
  12495. "async" : true,
  12496. "success" : function(data) {
  12497. if(data != null && data != ""){
  12498. $("#fpid").empty();
  12499. $("#fpid").append("_$tag_____________$tag____");
  12500. for(var i = 0; i < data.length; i++){
  12501. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12502. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12503. }
  12504. }
  12505. },
  12506. "error" : function(msg){
  12507. },
  12508. "complete": function(){
  12509. layer.close(tip);
  12510. }
  12511. });
  12512. }
  12513. $("#fpid").change(function(){
  12514. var tip = layer.load(2);
  12515. var url = "getgyrkxx.do";
  12516. var sum_total=0;
  12517. $.ajax({
  12518. "url" : url,
  12519. "data" : {
  12520. "fpId" : $("#fpid").val()
  12521. },
  12522. "type" : "POST",
  12523. "dataType" : "json",
  12524. "async" : true,
  12525. "success" : function(data) {
  12526. $("#dataTable").html("");
  12527. if(data != null && data != ""){
  12528. var html = "";
  12529. for(var i = 0; i < data.length; i++){
  12530. var ID = data[i].id == null ? "" : data[i].id;
  12531. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12532. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12533. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12534. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12535. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12536. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12537. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12538. var NAME = data[i].name == null ? "" : data[i].name;
  12539. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12540. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12541. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12542. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12543. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12544. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12545. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12546. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12547. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12548. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12549. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12550. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12551. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12552. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12553. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12554. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12555. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12556. sum_total = sum_total + DPRC
  12557. var invoice_type_cn =null;
  12558. if (invoice_type =="00" ){
  12559. invoice_type_cn="销售发票";
  12560. }else if (invoice_type == "01") {
  12561. invoice_type_cn="更正(对冲)发票";
  12562. }else if (invoice_type == "02") {
  12563. invoice_type_cn="其它类型发票";
  12564. }
  12565. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  12579. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12580. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  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";
  12593. }
  12594. html += "_$ta";
  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_____________$tag____________________________________________________________________________________________________________________________$tag";
  12608. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12609. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12610. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12611. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12612. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12613. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12614. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12615. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12616. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12617. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12618. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12619. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12620. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12621. html += "_$tag";
  12622. $("#dataTable").html(html);
  12623. }else {
  12624. $("#dataTable").html("");
  12625. }
  12626. },
  12627. "error" : function(msg){
  12628. },
  12629. "complete": function(){
  12630. layer.close(tip);
  12631. }
  12632. });
  12633. });
  12634. Date.prototype.Format = function (fmt) {
  12635. var o = {
  12636. "M+": this.getMonth() + 1, //月份
  12637. "d+": this.getDate(), //日
  12638. "h+": this.getHours(), //小时
  12639. "m+": this.getMinutes(), //分
  12640. "s+": this.getSeconds(), //秒
  12641. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12642. "S": this.getMilliseconds() //毫秒
  12643. };
  12644. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12645. for (var k in o)
  12646. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12647. return fmt;
  12648. }
  12649. $("#jrjc").change(function() {
  12650. if ($("#jrjc").prop('checked') == true){
  12651. $("#departmentId").removeAttr("disabled");
  12652. }else {
  12653. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12654. }
  12655. });
  12656. ----------------------------------- SOURCE END -------------------------------------
  12657. !STACK 0
  12658. java.lang.NullPointerException
  12659. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:34.747
  12660. !MESSAGE java.lang.NullPointerException
  12661. !STACK 1
  12662. JavaScript Model Exception: java.lang.NullPointerException
  12663. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12664. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  12665. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12666. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12667. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  12668. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  12669. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  12670. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  12671. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  12672. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  12673. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  12674. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  12675. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  12676. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  12677. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  12678. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  12679. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  12680. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  12681. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  12682. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  12683. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  12684. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  12685. Caused by: java.lang.NullPointerException
  12686. Caused by: java.lang.NullPointerException
  12687. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:34.747
  12688. !MESSAGE java.lang.NullPointerException
  12689. !STACK 0
  12690. java.lang.NullPointerException
  12691. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:36.588
  12692. !MESSAGE Exception occurred during problem detection:
  12693. ----------------------------------- SOURCE BEGIN -------------------------------------
  12694. (function(){WdatePicker();})();
  12695. (function(){WdatePicker();})();
  12696. (function(){Data.get();})();
  12697. (function(){Data.set();})();
  12698. (function(){search();})();
  12699. $(function(){
  12700. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12701. getfp();
  12702. });
  12703. var Data = {
  12704. "get" : function(){
  12705. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12706. var tip = layer.load(2);
  12707. var result="";
  12708. var url = "getgyxml.do";
  12709. $.ajax({
  12710. "url" : url,
  12711. "data" : {
  12712. "start_date" : $("#dateBegin").val(),
  12713. "end_date" : $("#dateEnd").val()
  12714. },
  12715. "type" : "POST",
  12716. "dataType" : "json",
  12717. "success" : function(data) {
  12718. if(data != null && data != ""){
  12719. if ( data.status =="success"){
  12720. getfp();
  12721. alert("获取成功!");
  12722. }else {
  12723. alert(data.status);
  12724. }
  12725. }else {
  12726. alert("获取失败!");
  12727. }
  12728. },
  12729. "complete": function(){
  12730. layer.close(tip);
  12731. }
  12732. });
  12733. }else {
  12734. alert("请选择日期!");
  12735. }
  12736. },
  12737. "set" : function(){
  12738. if ( $("#fpid option:selected").text() !=""){
  12739. var tip = layer.load(2);
  12740. var gitem = $("#form1").serialize();
  12741. var jrjc;
  12742. if ($("#jrjc").prop('checked') == true){
  12743. jrjc = $("#departmentId").val();
  12744. }else {
  12745. jrjc ='N'
  12746. }
  12747. var url = "saverk.do";
  12748. $.ajax({
  12749. "url" : url,
  12750. "data" : {
  12751. "gitem" : gitem,
  12752. "jrjc" : jrjc
  12753. },
  12754. "type" : "POST",
  12755. "dataType" : "json",
  12756. "async" : true,
  12757. "success" : function(data) {
  12758. if(data.status ="success"){
  12759. alert("入库成功!");
  12760. window.location.reload();
  12761. }else {
  12762. alert(msg);
  12763. }
  12764. },
  12765. "error": function(){
  12766. alert("确认失败!");
  12767. },
  12768. "complete": function(){
  12769. layer.close(tip);
  12770. }
  12771. });
  12772. }else {
  12773. alert("请选择发票!");
  12774. }
  12775. }
  12776. }
  12777. function getfp(){
  12778. var tip = layer.load(2);
  12779. var url = "getgyfp.do";
  12780. $.ajax({
  12781. "url" : url,
  12782. "type" : "POST",
  12783. "dataType" : "json",
  12784. "async" : true,
  12785. "success" : function(data) {
  12786. if(data != null && data != ""){
  12787. $("#fpid").empty();
  12788. $("#fpid").append("_$tag_____________$tag____");
  12789. for(var i = 0; i < data.length; i++){
  12790. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12791. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12792. }
  12793. }
  12794. },
  12795. "error" : function(msg){
  12796. },
  12797. "complete": function(){
  12798. layer.close(tip);
  12799. }
  12800. });
  12801. }
  12802. $("#fpid").change(function(){
  12803. var tip = layer.load(2);
  12804. var url = "getgyrkxx.do";
  12805. var sum_total=0;
  12806. $.ajax({
  12807. "url" : url,
  12808. "data" : {
  12809. "fpId" : $("#fpid").val()
  12810. },
  12811. "type" : "POST",
  12812. "dataType" : "json",
  12813. "async" : true,
  12814. "success" : function(data) {
  12815. $("#dataTable").html("");
  12816. if(data != null && data != ""){
  12817. var html = "";
  12818. for(var i = 0; i < data.length; i++){
  12819. var ID = data[i].id == null ? "" : data[i].id;
  12820. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12821. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12822. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12823. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12824. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12825. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12826. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12827. var NAME = data[i].name == null ? "" : data[i].name;
  12828. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12829. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12830. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12831. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12832. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12833. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12834. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12835. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12836. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12837. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12838. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12839. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12840. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12841. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12842. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12843. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12844. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12845. sum_total = sum_total + DPRC
  12846. var invoice_type_cn =null;
  12847. if (invoice_type =="00" ){
  12848. invoice_type_cn="销售发票";
  12849. }else if (invoice_type == "01") {
  12850. invoice_type_cn="更正(对冲)发票";
  12851. }else if (invoice_type == "02") {
  12852. invoice_type_cn="其它类型发票";
  12853. }
  12854. html += "_$ta";
  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_____________$tag_____________________________________________________________________________________________________________________$tag";
  12865. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12866. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  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";
  12882. }
  12883. html += "_$ta";
  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_____________$tag_____________________________________________________________________________________________________________________$tag";
  12894. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12895. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12896. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12897. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12898. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12899. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12900. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12901. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12902. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12903. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12904. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12905. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12906. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12907. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12908. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12909. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12910. html += "_$tag";
  12911. $("#dataTable").html(html);
  12912. }else {
  12913. $("#dataTable").html("");
  12914. }
  12915. },
  12916. "error" : function(msg){
  12917. },
  12918. "complete": function(){
  12919. layer.close(tip);
  12920. }
  12921. });
  12922. });
  12923. Date.prototype.Format = function (fmt) {
  12924. var o = {
  12925. "M+": this.getMonth() + 1, //月份
  12926. "d+": this.getDate(), //日
  12927. "h+": this.getHours(), //小时
  12928. "m+": this.getMinutes(), //分
  12929. "s+": this.getSeconds(), //秒
  12930. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12931. "S": this.getMilliseconds() //毫秒
  12932. };
  12933. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12934. for (var k in o)
  12935. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12936. return fmt;
  12937. }
  12938. $("#jrjc").change(function() {
  12939. if ($("#jrjc").prop('checked') == true){
  12940. $("#departmentId").removeAttr("disabled");
  12941. }else {
  12942. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12943. }
  12944. });
  12945. ----------------------------------- SOURCE END -------------------------------------
  12946. !STACK 0
  12947. java.lang.NullPointerException
  12948. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:36.589
  12949. !MESSAGE Error while processing working copy
  12950. !STACK 1
  12951. JavaScript Model Exception: java.lang.NullPointerException
  12952. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12953. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12954. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12955. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12956. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12957. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12958. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12959. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12960. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12961. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12962. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12963. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12964. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12965. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12966. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12967. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12968. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  12969. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  12970. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  12971. Caused by: java.lang.NullPointerException
  12972. Caused by: java.lang.NullPointerException
  12973. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:36.589
  12974. !MESSAGE java.lang.NullPointerException
  12975. !STACK 0
  12976. java.lang.NullPointerException