.bak_8.log 995 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575
  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_7.log
  9. Created Time: 2018-06-21 09:30:37.228
  10. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:37.228
  11. !MESSAGE Exception occurred during problem detection:
  12. ----------------------------------- SOURCE BEGIN -------------------------------------
  13. (function(){WdatePicker();})();
  14. (function(){WdatePicker();})();
  15. (function(){Data.get();})();
  16. (function(){Data.set();})();
  17. (function(){search();})();
  18. $(function(){
  19. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  20. getfp();
  21. });
  22. var Data = {
  23. "get" : function(){
  24. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  25. var tip = layer.load(2);
  26. var result="";
  27. var url = "getgyxml.do";
  28. $.ajax({
  29. "url" : url,
  30. "data" : {
  31. "start_date" : $("#dateBegin").val(),
  32. "end_date" : $("#dateEnd").val()
  33. },
  34. "type" : "POST",
  35. "dataType" : "json",
  36. "success" : function(data) {
  37. if(data != null && data != ""){
  38. if ( data.status =="success"){
  39. getfp();
  40. alert("获取成功!");
  41. }else {
  42. alert(data.status);
  43. }
  44. }else {
  45. alert("获取失败!");
  46. }
  47. },
  48. "complete": function(){
  49. layer.close(tip);
  50. }
  51. });
  52. }else {
  53. alert("请选择日期!");
  54. }
  55. },
  56. "set" : function(){
  57. if ( $("#fpid option:selected").text() !=""){
  58. var tip = layer.load(2);
  59. var gitem = $("#form1").serialize();
  60. var jrjc;
  61. if ($("#jrjc").prop('checked') == true){
  62. jrjc = $("#departmentId").val();
  63. }else {
  64. jrjc ='N'
  65. }
  66. var url = "saverk.do";
  67. $.ajax({
  68. "url" : url,
  69. "data" : {
  70. "gitem" : gitem,
  71. "jrjc" : jrjc
  72. },
  73. "type" : "POST",
  74. "dataType" : "json",
  75. "async" : true,
  76. "success" : function(data) {
  77. if(data.status ="success"){
  78. alert("入库成功!");
  79. window.location.reload();
  80. }else {
  81. alert(msg);
  82. }
  83. },
  84. "error": function(){
  85. alert("确认失败!");
  86. },
  87. "complete": function(){
  88. layer.close(tip);
  89. }
  90. });
  91. }else {
  92. alert("请选择发票!");
  93. }
  94. }
  95. }
  96. function getfp(){
  97. var tip = layer.load(2);
  98. var url = "getgyfp.do";
  99. $.ajax({
  100. "url" : url,
  101. "type" : "POST",
  102. "dataType" : "json",
  103. "async" : true,
  104. "success" : function(data) {
  105. if(data != null && data != ""){
  106. $("#fpid").empty();
  107. $("#fpid").append("_$tag_____________$tag____");
  108. for(var i = 0; i < data.length; i++){
  109. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  110. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  111. }
  112. }
  113. },
  114. "error" : function(msg){
  115. },
  116. "complete": function(){
  117. layer.close(tip);
  118. }
  119. });
  120. }
  121. $("#fpid").change(function(){
  122. var tip = layer.load(2);
  123. var url = "getgyrkxx.do";
  124. var sum_total=0;
  125. $.ajax({
  126. "url" : url,
  127. "data" : {
  128. "fpId" : $("#fpid").val()
  129. },
  130. "type" : "POST",
  131. "dataType" : "json",
  132. "async" : true,
  133. "success" : function(data) {
  134. $("#dataTable").html("");
  135. if(data != null && data != ""){
  136. var html = "";
  137. for(var i = 0; i < data.length; i++){
  138. var ID = data[i].id == null ? "" : data[i].id;
  139. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  140. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  141. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  142. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  143. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  144. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  145. var GOODS = data[i].goods == null ? "" : data[i].goods;
  146. var NAME = data[i].name == null ? "" : data[i].name;
  147. var SPEC = data[i].spec == null ? "" : data[i].spec;
  148. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  149. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  150. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  151. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  152. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  153. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  154. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  155. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  156. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  157. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  158. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  159. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  160. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  161. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  162. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  163. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  164. sum_total = sum_total + DPRC
  165. var invoice_type_cn =null;
  166. if (invoice_type =="00" ){
  167. invoice_type_cn="销售发票";
  168. }else if (invoice_type == "01") {
  169. invoice_type_cn="更正(对冲)发票";
  170. }else if (invoice_type == "02") {
  171. invoice_type_cn="其它类型发票";
  172. }
  173. html += "_$ta";
  174. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  175. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  176. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  177. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  178. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  179. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  180. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  181. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  182. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  183. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  184. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  185. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  186. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  187. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  188. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  189. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  190. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  191. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  192. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  193. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  194. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  195. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  196. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  197. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  198. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  199. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  200. html += "_$tag";
  201. }
  202. html += "_$ta";
  203. html += "_$tag_____________$tag__________________________________________________________________$tag";
  204. html += "_$tag_____________$tag__________________________________________________________________$tag";
  205. html += "_$tag_____________$tag__________________________________________________________________$tag";
  206. html += "_$tag_____________$tag__________________________________________________________________$tag";
  207. html += "_$tag_____________$tag__________________________________________________________________$tag";
  208. html += "_$tag_____________$tag__________________________________________________________________$tag";
  209. html += "_$tag_____________$tag__________________________________________________________________$tag";
  210. html += "_$tag_____________$tag__________________________________________________________________$tag";
  211. html += "_$tag_____________$tag__________________________________________________________________$tag";
  212. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  213. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  214. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  215. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  216. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  217. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  218. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  219. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  220. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  221. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  222. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  223. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  224. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  225. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  226. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  227. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  228. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  229. html += "_$tag";
  230. $("#dataTable").html(html);
  231. }else {
  232. $("#dataTable").html("");
  233. }
  234. },
  235. "error" : function(msg){
  236. },
  237. "complete": function(){
  238. layer.close(tip);
  239. }
  240. });
  241. });
  242. Date.prototype.Format = function (fmt) {
  243. var o = {
  244. "M+": this.getMonth() + 1, //月份
  245. "d+": this.getDate(), //日
  246. "h+": this.getHours(), //小时
  247. "m+": this.getMinutes(), //分
  248. "s+": this.getSeconds(), //秒
  249. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  250. "S": this.getMilliseconds() //毫秒
  251. };
  252. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  253. for (var k in o)
  254. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  255. return fmt;
  256. }
  257. $("#jrjc").change(function() {
  258. if ($("#jrjc").prop('checked') == true){
  259. $("#departmentId").removeAttr("disabled");
  260. }else {
  261. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  262. }
  263. });
  264. ----------------------------------- SOURCE END -------------------------------------
  265. !STACK 0
  266. java.lang.NullPointerException
  267. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:38.018
  268. !MESSAGE Exception occurred during problem detection:
  269. ----------------------------------- SOURCE BEGIN -------------------------------------
  270. (function(){WdatePicker();})();
  271. (function(){WdatePicker();})();
  272. (function(){Data.get();})();
  273. (function(){Data.set();})();
  274. (function(){search();})();
  275. $(function(){
  276. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  277. getfp();
  278. });
  279. var Data = {
  280. "get" : function(){
  281. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  282. var tip = layer.load(2);
  283. var result="";
  284. var url = "getgyxml.do";
  285. $.ajax({
  286. "url" : url,
  287. "data" : {
  288. "start_date" : $("#dateBegin").val(),
  289. "end_date" : $("#dateEnd").val()
  290. },
  291. "type" : "POST",
  292. "dataType" : "json",
  293. "success" : function(data) {
  294. if(data != null && data != ""){
  295. if ( data.status =="success"){
  296. getfp();
  297. alert("获取成功!");
  298. }else {
  299. alert(data.status);
  300. }
  301. }else {
  302. alert("获取失败!");
  303. }
  304. },
  305. "complete": function(){
  306. layer.close(tip);
  307. }
  308. });
  309. }else {
  310. alert("请选择日期!");
  311. }
  312. },
  313. "set" : function(){
  314. if ( $("#fpid option:selected").text() !=""){
  315. var tip = layer.load(2);
  316. var gitem = $("#form1").serialize();
  317. var jrjc;
  318. if ($("#jrjc").prop('checked') == true){
  319. jrjc = $("#departmentId").val();
  320. }else {
  321. jrjc ='N'
  322. }
  323. var url = "saverk.do";
  324. $.ajax({
  325. "url" : url,
  326. "data" : {
  327. "gitem" : gitem,
  328. "jrjc" : jrjc
  329. },
  330. "type" : "POST",
  331. "dataType" : "json",
  332. "async" : true,
  333. "success" : function(data) {
  334. if(data.status ="success"){
  335. alert("入库成功!");
  336. window.location.reload();
  337. }else {
  338. alert(msg);
  339. }
  340. },
  341. "error": function(){
  342. alert("确认失败!");
  343. },
  344. "complete": function(){
  345. layer.close(tip);
  346. }
  347. });
  348. }else {
  349. alert("请选择发票!");
  350. }
  351. }
  352. }
  353. function getfp(){
  354. var tip = layer.load(2);
  355. var url = "getgyfp.do";
  356. $.ajax({
  357. "url" : url,
  358. "type" : "POST",
  359. "dataType" : "json",
  360. "async" : true,
  361. "success" : function(data) {
  362. if(data != null && data != ""){
  363. $("#fpid").empty();
  364. $("#fpid").append("_$tag_____________$tag____");
  365. for(var i = 0; i < data.length; i++){
  366. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  367. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  368. }
  369. }
  370. },
  371. "error" : function(msg){
  372. },
  373. "complete": function(){
  374. layer.close(tip);
  375. }
  376. });
  377. }
  378. $("#fpid").change(function(){
  379. var tip = layer.load(2);
  380. var url = "getgyrkxx.do";
  381. var sum_total=0;
  382. $.ajax({
  383. "url" : url,
  384. "data" : {
  385. "fpId" : $("#fpid").val()
  386. },
  387. "type" : "POST",
  388. "dataType" : "json",
  389. "async" : true,
  390. "success" : function(data) {
  391. $("#dataTable").html("");
  392. if(data != null && data != ""){
  393. var html = "";
  394. for(var i = 0; i < data.length; i++){
  395. var ID = data[i].id == null ? "" : data[i].id;
  396. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  397. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  398. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  399. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  400. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  401. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  402. var GOODS = data[i].goods == null ? "" : data[i].goods;
  403. var NAME = data[i].name == null ? "" : data[i].name;
  404. var SPEC = data[i].spec == null ? "" : data[i].spec;
  405. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  406. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  407. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  408. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  409. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  410. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  411. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  412. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  413. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  414. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  415. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  416. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  417. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  418. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  419. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  420. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  421. sum_total = sum_total + DPRC
  422. var invoice_type_cn =null;
  423. if (invoice_type =="00" ){
  424. invoice_type_cn="销售发票";
  425. }else if (invoice_type == "01") {
  426. invoice_type_cn="更正(对冲)发票";
  427. }else if (invoice_type == "02") {
  428. invoice_type_cn="其它类型发票";
  429. }
  430. html += "_$ta";
  431. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  432. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  433. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  434. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  435. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  436. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  437. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  438. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  439. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  440. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  441. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  442. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  443. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  444. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  445. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  446. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  447. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  448. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  449. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  450. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  451. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  452. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  453. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  454. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  455. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  456. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  457. html += "_$tag";
  458. }
  459. html += "_$ta";
  460. html += "_$tag_____________$tag__________________________________________________________________$tag";
  461. html += "_$tag_____________$tag__________________________________________________________________$tag";
  462. html += "_$tag_____________$tag__________________________________________________________________$tag";
  463. html += "_$tag_____________$tag__________________________________________________________________$tag";
  464. html += "_$tag_____________$tag__________________________________________________________________$tag";
  465. html += "_$tag_____________$tag__________________________________________________________________$tag";
  466. html += "_$tag_____________$tag__________________________________________________________________$tag";
  467. html += "_$tag_____________$tag__________________________________________________________________$tag";
  468. html += "_$tag_____________$tag__________________________________________________________________$tag";
  469. html += "_$tag_____________$tag__________________________________________________________________$tag";
  470. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  471. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  472. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  473. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  474. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  475. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  476. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  477. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  478. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  479. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  480. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  481. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  482. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  483. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  484. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  485. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  486. html += "_$tag";
  487. $("#dataTable").html(html);
  488. }else {
  489. $("#dataTable").html("");
  490. }
  491. },
  492. "error" : function(msg){
  493. },
  494. "complete": function(){
  495. layer.close(tip);
  496. }
  497. });
  498. });
  499. Date.prototype.Format = function (fmt) {
  500. var o = {
  501. "M+": this.getMonth() + 1, //月份
  502. "d+": this.getDate(), //日
  503. "h+": this.getHours(), //小时
  504. "m+": this.getMinutes(), //分
  505. "s+": this.getSeconds(), //秒
  506. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  507. "S": this.getMilliseconds() //毫秒
  508. };
  509. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  510. for (var k in o)
  511. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  512. return fmt;
  513. }
  514. $("#jrjc").change(function() {
  515. if ($("#jrjc").prop('checked') == true){
  516. $("#departmentId").removeAttr("disabled");
  517. }else {
  518. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  519. }
  520. });
  521. ----------------------------------- SOURCE END -------------------------------------
  522. !STACK 0
  523. java.lang.NullPointerException
  524. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:38.018
  525. !MESSAGE java.lang.NullPointerException
  526. !STACK 1
  527. JavaScript Model Exception: java.lang.NullPointerException
  528. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  529. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  530. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  531. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  532. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  533. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  534. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  535. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  536. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  537. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  538. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  539. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  540. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  541. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  542. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  543. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  544. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  545. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  546. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  547. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  548. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  549. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  550. Caused by: java.lang.NullPointerException
  551. Caused by: java.lang.NullPointerException
  552. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:38.018
  553. !MESSAGE java.lang.NullPointerException
  554. !STACK 0
  555. java.lang.NullPointerException
  556. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:40.622
  557. !MESSAGE Exception occurred during problem detection:
  558. ----------------------------------- SOURCE BEGIN -------------------------------------
  559. (function(){WdatePicker();})();
  560. (function(){WdatePicker();})();
  561. (function(){Data.get();})();
  562. (function(){Data.set();})();
  563. (function(){search();})();
  564. $(function(){
  565. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  566. getfp();
  567. });
  568. var Data = {
  569. "get" : function(){
  570. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  571. var tip = layer.load(2);
  572. var result="";
  573. var url = "getgyxml.do";
  574. $.ajax({
  575. "url" : url,
  576. "data" : {
  577. "start_date" : $("#dateBegin").val(),
  578. "end_date" : $("#dateEnd").val()
  579. },
  580. "type" : "POST",
  581. "dataType" : "json",
  582. "success" : function(data) {
  583. if(data != null && data != ""){
  584. if ( data.status =="success"){
  585. getfp();
  586. alert("获取成功!");
  587. }else {
  588. alert(data.status);
  589. }
  590. }else {
  591. alert("获取失败!");
  592. }
  593. },
  594. "complete": function(){
  595. layer.close(tip);
  596. }
  597. });
  598. }else {
  599. alert("请选择日期!");
  600. }
  601. },
  602. "set" : function(){
  603. if ( $("#fpid option:selected").text() !=""){
  604. var tip = layer.load(2);
  605. var gitem = $("#form1").serialize();
  606. var jrjc;
  607. if ($("#jrjc").prop('checked') == true){
  608. jrjc = $("#departmentId").val();
  609. }else {
  610. jrjc ='N'
  611. }
  612. var url = "saverk.do";
  613. $.ajax({
  614. "url" : url,
  615. "data" : {
  616. "gitem" : gitem,
  617. "jrjc" : jrjc
  618. },
  619. "type" : "POST",
  620. "dataType" : "json",
  621. "async" : true,
  622. "success" : function(data) {
  623. if(data.status ="success"){
  624. alert("入库成功!");
  625. window.location.reload();
  626. }else {
  627. alert(msg);
  628. }
  629. },
  630. "error": function(){
  631. alert("确认失败!");
  632. },
  633. "complete": function(){
  634. layer.close(tip);
  635. }
  636. });
  637. }else {
  638. alert("请选择发票!");
  639. }
  640. }
  641. }
  642. function getfp(){
  643. var tip = layer.load(2);
  644. var url = "getgyfp.do";
  645. $.ajax({
  646. "url" : url,
  647. "type" : "POST",
  648. "dataType" : "json",
  649. "async" : true,
  650. "success" : function(data) {
  651. if(data != null && data != ""){
  652. $("#fpid").empty();
  653. $("#fpid").append("_$tag_____________$tag____");
  654. for(var i = 0; i < data.length; i++){
  655. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  656. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  657. }
  658. }
  659. },
  660. "error" : function(msg){
  661. },
  662. "complete": function(){
  663. layer.close(tip);
  664. }
  665. });
  666. }
  667. $("#fpid").change(function(){
  668. var tip = layer.load(2);
  669. var url = "getgyrkxx.do";
  670. var sum_total=0;
  671. $.ajax({
  672. "url" : url,
  673. "data" : {
  674. "fpId" : $("#fpid").val()
  675. },
  676. "type" : "POST",
  677. "dataType" : "json",
  678. "async" : true,
  679. "success" : function(data) {
  680. $("#dataTable").html("");
  681. if(data != null && data != ""){
  682. var html = "";
  683. for(var i = 0; i < data.length; i++){
  684. var ID = data[i].id == null ? "" : data[i].id;
  685. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  686. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  687. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  688. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  689. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  690. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  691. var GOODS = data[i].goods == null ? "" : data[i].goods;
  692. var NAME = data[i].name == null ? "" : data[i].name;
  693. var SPEC = data[i].spec == null ? "" : data[i].spec;
  694. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  695. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  696. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  697. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  698. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  699. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  700. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  701. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  702. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  703. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  704. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  705. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  706. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  707. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  708. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  709. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  710. sum_total = sum_total + DPRC
  711. var invoice_type_cn =null;
  712. if (invoice_type =="00" ){
  713. invoice_type_cn="销售发票";
  714. }else if (invoice_type == "01") {
  715. invoice_type_cn="更正(对冲)发票";
  716. }else if (invoice_type == "02") {
  717. invoice_type_cn="其它类型发票";
  718. }
  719. html += "_$ta";
  720. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  721. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  722. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  723. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  724. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  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";
  747. }
  748. html += "_$ta";
  749. html += "_$tag_____________$tag__________________________________________________________________$tag";
  750. html += "_$tag_____________$tag__________________________________________________________________$tag";
  751. html += "_$tag_____________$tag__________________________________________________________________$tag";
  752. html += "_$tag_____________$tag__________________________________________________________________$tag";
  753. html += "_$tag_____________$tag__________________________________________________________________$tag";
  754. html += "_$tag_____________$tag__________________________________________________________________$tag";
  755. html += "_$tag_____________$tag__________________________________________________________________$tag";
  756. html += "_$tag_____________$tag__________________________________________________________________$tag";
  757. html += "_$tag_____________$tag__________________________________________________________________$tag";
  758. html += "_$tag_____________$tag__________________________________________________________________$tag";
  759. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  760. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  761. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  762. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  763. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  764. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  765. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  766. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  767. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  768. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  769. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  770. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  771. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  772. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  773. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  774. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  775. html += "_$tag";
  776. $("#dataTable").html(html);
  777. }else {
  778. $("#dataTable").html("");
  779. }
  780. },
  781. "error" : function(msg){
  782. },
  783. "complete": function(){
  784. layer.close(tip);
  785. }
  786. });
  787. });
  788. Date.prototype.Format = function (fmt) {
  789. var o = {
  790. "M+": this.getMonth() + 1, //月份
  791. "d+": this.getDate(), //日
  792. "h+": this.getHours(), //小时
  793. "m+": this.getMinutes(), //分
  794. "s+": this.getSeconds(), //秒
  795. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  796. "S": this.getMilliseconds() //毫秒
  797. };
  798. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  799. for (var k in o)
  800. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  801. return fmt;
  802. }
  803. $("#jrjc").change(function() {
  804. if ($("#jrjc").prop('checked') == true){
  805. $("#departmentId").removeAttr("disabled");
  806. }else {
  807. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  808. }
  809. });
  810. ----------------------------------- SOURCE END -------------------------------------
  811. !STACK 0
  812. java.lang.NullPointerException
  813. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:40.623
  814. !MESSAGE Error while processing working copy
  815. !STACK 1
  816. JavaScript Model Exception: java.lang.NullPointerException
  817. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  818. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  819. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  820. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  821. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  822. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  823. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  824. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  825. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  826. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  827. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  828. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  829. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  830. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  831. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  832. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  833. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  834. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  835. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  836. Caused by: java.lang.NullPointerException
  837. Caused by: java.lang.NullPointerException
  838. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:40.623
  839. !MESSAGE java.lang.NullPointerException
  840. !STACK 0
  841. java.lang.NullPointerException
  842. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:41.275
  843. !MESSAGE Exception occurred during problem detection:
  844. ----------------------------------- SOURCE BEGIN -------------------------------------
  845. (function(){WdatePicker();})();
  846. (function(){WdatePicker();})();
  847. (function(){Data.get();})();
  848. (function(){Data.set();})();
  849. (function(){search();})();
  850. $(function(){
  851. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  852. getfp();
  853. });
  854. var Data = {
  855. "get" : function(){
  856. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  857. var tip = layer.load(2);
  858. var result="";
  859. var url = "getgyxml.do";
  860. $.ajax({
  861. "url" : url,
  862. "data" : {
  863. "start_date" : $("#dateBegin").val(),
  864. "end_date" : $("#dateEnd").val()
  865. },
  866. "type" : "POST",
  867. "dataType" : "json",
  868. "success" : function(data) {
  869. if(data != null && data != ""){
  870. if ( data.status =="success"){
  871. getfp();
  872. alert("获取成功!");
  873. }else {
  874. alert(data.status);
  875. }
  876. }else {
  877. alert("获取失败!");
  878. }
  879. },
  880. "complete": function(){
  881. layer.close(tip);
  882. }
  883. });
  884. }else {
  885. alert("请选择日期!");
  886. }
  887. },
  888. "set" : function(){
  889. if ( $("#fpid option:selected").text() !=""){
  890. var tip = layer.load(2);
  891. var gitem = $("#form1").serialize();
  892. var jrjc;
  893. if ($("#jrjc").prop('checked') == true){
  894. jrjc = $("#departmentId").val();
  895. }else {
  896. jrjc ='N'
  897. }
  898. var url = "saverk.do";
  899. $.ajax({
  900. "url" : url,
  901. "data" : {
  902. "gitem" : gitem,
  903. "jrjc" : jrjc
  904. },
  905. "type" : "POST",
  906. "dataType" : "json",
  907. "async" : true,
  908. "success" : function(data) {
  909. if(data.status ="success"){
  910. alert("入库成功!");
  911. window.location.reload();
  912. }else {
  913. alert(msg);
  914. }
  915. },
  916. "error": function(){
  917. alert("确认失败!");
  918. },
  919. "complete": function(){
  920. layer.close(tip);
  921. }
  922. });
  923. }else {
  924. alert("请选择发票!");
  925. }
  926. }
  927. }
  928. function getfp(){
  929. var tip = layer.load(2);
  930. var url = "getgyfp.do";
  931. $.ajax({
  932. "url" : url,
  933. "type" : "POST",
  934. "dataType" : "json",
  935. "async" : true,
  936. "success" : function(data) {
  937. if(data != null && data != ""){
  938. $("#fpid").empty();
  939. $("#fpid").append("_$tag_____________$tag____");
  940. for(var i = 0; i < data.length; i++){
  941. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  942. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  943. }
  944. }
  945. },
  946. "error" : function(msg){
  947. },
  948. "complete": function(){
  949. layer.close(tip);
  950. }
  951. });
  952. }
  953. $("#fpid").change(function(){
  954. var tip = layer.load(2);
  955. var url = "getgyrkxx.do";
  956. var sum_total=0;
  957. $.ajax({
  958. "url" : url,
  959. "data" : {
  960. "fpId" : $("#fpid").val()
  961. },
  962. "type" : "POST",
  963. "dataType" : "json",
  964. "async" : true,
  965. "success" : function(data) {
  966. $("#dataTable").html("");
  967. if(data != null && data != ""){
  968. var html = "";
  969. for(var i = 0; i < data.length; i++){
  970. var ID = data[i].id == null ? "" : data[i].id;
  971. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  972. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  973. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  974. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  975. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  976. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  977. var GOODS = data[i].goods == null ? "" : data[i].goods;
  978. var NAME = data[i].name == null ? "" : data[i].name;
  979. var SPEC = data[i].spec == null ? "" : data[i].spec;
  980. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  981. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  982. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  983. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  984. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  985. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  986. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  987. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  988. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  989. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  990. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  991. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  992. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  993. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  994. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  995. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  996. sum_total = sum_total + DPRC
  997. var invoice_type_cn =null;
  998. if (invoice_type =="00" ){
  999. invoice_type_cn="销售发票";
  1000. }else if (invoice_type == "01") {
  1001. invoice_type_cn="更正(对冲)发票";
  1002. }else if (invoice_type == "02") {
  1003. invoice_type_cn="其它类型发票";
  1004. }
  1005. html += "_$ta";
  1006. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1007. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1008. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1009. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1010. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1011. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1012. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1013. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1014. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1015. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1016. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1017. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1018. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1019. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1020. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1021. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1022. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1023. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1024. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1025. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1026. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1027. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1028. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1029. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1030. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1031. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1032. html += "_$tag";
  1033. }
  1034. html += "_$ta";
  1035. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1036. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1037. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1038. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1039. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1040. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1041. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1042. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1043. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1044. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1045. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1046. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1047. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1048. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1049. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1050. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1051. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1052. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1053. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1054. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1055. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1056. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1057. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1058. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1059. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1060. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1061. html += "_$tag";
  1062. $("#dataTable").html(html);
  1063. }else {
  1064. $("#dataTable").html("");
  1065. }
  1066. },
  1067. "error" : function(msg){
  1068. },
  1069. "complete": function(){
  1070. layer.close(tip);
  1071. }
  1072. });
  1073. });
  1074. Date.prototype.Format = function (fmt) {
  1075. var o = {
  1076. "M+": this.getMonth() + 1, //月份
  1077. "d+": this.getDate(), //日
  1078. "h+": this.getHours(), //小时
  1079. "m+": this.getMinutes(), //分
  1080. "s+": this.getSeconds(), //秒
  1081. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1082. "S": this.getMilliseconds() //毫秒
  1083. };
  1084. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1085. for (var k in o)
  1086. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1087. return fmt;
  1088. }
  1089. $("#jrjc").change(function() {
  1090. if ($("#jrjc").prop('checked') == true){
  1091. $("#departmentId").removeAttr("disabled");
  1092. }else {
  1093. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1094. }
  1095. });
  1096. ----------------------------------- SOURCE END -------------------------------------
  1097. !STACK 0
  1098. java.lang.NullPointerException
  1099. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:41.952
  1100. !MESSAGE Exception occurred during problem detection:
  1101. ----------------------------------- SOURCE BEGIN -------------------------------------
  1102. (function(){WdatePicker();})();
  1103. (function(){WdatePicker();})();
  1104. (function(){Data.get();})();
  1105. (function(){Data.set();})();
  1106. (function(){search();})();
  1107. $(function(){
  1108. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1109. getfp();
  1110. });
  1111. var Data = {
  1112. "get" : function(){
  1113. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1114. var tip = layer.load(2);
  1115. var result="";
  1116. var url = "getgyxml.do";
  1117. $.ajax({
  1118. "url" : url,
  1119. "data" : {
  1120. "start_date" : $("#dateBegin").val(),
  1121. "end_date" : $("#dateEnd").val()
  1122. },
  1123. "type" : "POST",
  1124. "dataType" : "json",
  1125. "success" : function(data) {
  1126. if(data != null && data != ""){
  1127. if ( data.status =="success"){
  1128. getfp();
  1129. alert("获取成功!");
  1130. }else {
  1131. alert(data.status);
  1132. }
  1133. }else {
  1134. alert("获取失败!");
  1135. }
  1136. },
  1137. "complete": function(){
  1138. layer.close(tip);
  1139. }
  1140. });
  1141. }else {
  1142. alert("请选择日期!");
  1143. }
  1144. },
  1145. "set" : function(){
  1146. if ( $("#fpid option:selected").text() !=""){
  1147. var tip = layer.load(2);
  1148. var gitem = $("#form1").serialize();
  1149. var jrjc;
  1150. if ($("#jrjc").prop('checked') == true){
  1151. jrjc = $("#departmentId").val();
  1152. }else {
  1153. jrjc ='N'
  1154. }
  1155. var url = "saverk.do";
  1156. $.ajax({
  1157. "url" : url,
  1158. "data" : {
  1159. "gitem" : gitem,
  1160. "jrjc" : jrjc
  1161. },
  1162. "type" : "POST",
  1163. "dataType" : "json",
  1164. "async" : true,
  1165. "success" : function(data) {
  1166. if(data.status ="success"){
  1167. alert("入库成功!");
  1168. window.location.reload();
  1169. }else {
  1170. alert(msg);
  1171. }
  1172. },
  1173. "error": function(){
  1174. alert("确认失败!");
  1175. },
  1176. "complete": function(){
  1177. layer.close(tip);
  1178. }
  1179. });
  1180. }else {
  1181. alert("请选择发票!");
  1182. }
  1183. }
  1184. }
  1185. function getfp(){
  1186. var tip = layer.load(2);
  1187. var url = "getgyfp.do";
  1188. $.ajax({
  1189. "url" : url,
  1190. "type" : "POST",
  1191. "dataType" : "json",
  1192. "async" : true,
  1193. "success" : function(data) {
  1194. if(data != null && data != ""){
  1195. $("#fpid").empty();
  1196. $("#fpid").append("_$tag_____________$tag____");
  1197. for(var i = 0; i < data.length; i++){
  1198. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1199. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1200. }
  1201. }
  1202. },
  1203. "error" : function(msg){
  1204. },
  1205. "complete": function(){
  1206. layer.close(tip);
  1207. }
  1208. });
  1209. }
  1210. $("#fpid").change(function(){
  1211. var tip = layer.load(2);
  1212. var url = "getgyrkxx.do";
  1213. var sum_total=0;
  1214. $.ajax({
  1215. "url" : url,
  1216. "data" : {
  1217. "fpId" : $("#fpid").val()
  1218. },
  1219. "type" : "POST",
  1220. "dataType" : "json",
  1221. "async" : true,
  1222. "success" : function(data) {
  1223. $("#dataTable").html("");
  1224. if(data != null && data != ""){
  1225. var html = "";
  1226. for(var i = 0; i < data.length; i++){
  1227. var ID = data[i].id == null ? "" : data[i].id;
  1228. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1229. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1230. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1231. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1232. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1233. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1234. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1235. var NAME = data[i].name == null ? "" : data[i].name;
  1236. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1237. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1238. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1239. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1240. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1241. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1242. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1243. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1244. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1245. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1246. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1247. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1248. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1249. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1250. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1251. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1252. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1253. sum_total = sum_total + DPRC
  1254. var invoice_type_cn =null;
  1255. if (invoice_type =="00" ){
  1256. invoice_type_cn="销售发票";
  1257. }else if (invoice_type == "01") {
  1258. invoice_type_cn="更正(对冲)发票";
  1259. }else if (invoice_type == "02") {
  1260. invoice_type_cn="其它类型发票";
  1261. }
  1262. html += "_$ta";
  1263. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1264. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1265. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1266. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1267. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1268. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1269. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1270. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1271. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1272. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1273. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1274. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1275. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1276. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1277. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1278. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1279. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1280. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1281. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1282. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1283. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1284. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1285. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1286. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1287. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1288. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1289. html += "_$tag";
  1290. }
  1291. html += "_$ta";
  1292. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1293. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1294. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1295. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1296. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1297. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1298. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1299. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1300. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1301. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1302. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1303. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1304. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1305. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1306. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1307. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1308. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1309. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1310. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1311. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1312. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1313. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1314. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1315. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1316. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1317. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1318. html += "_$tag";
  1319. $("#dataTable").html(html);
  1320. }else {
  1321. $("#dataTable").html("");
  1322. }
  1323. },
  1324. "error" : function(msg){
  1325. },
  1326. "complete": function(){
  1327. layer.close(tip);
  1328. }
  1329. });
  1330. });
  1331. Date.prototype.Format = function (fmt) {
  1332. var o = {
  1333. "M+": this.getMonth() + 1, //月份
  1334. "d+": this.getDate(), //日
  1335. "h+": this.getHours(), //小时
  1336. "m+": this.getMinutes(), //分
  1337. "s+": this.getSeconds(), //秒
  1338. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1339. "S": this.getMilliseconds() //毫秒
  1340. };
  1341. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1342. for (var k in o)
  1343. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1344. return fmt;
  1345. }
  1346. $("#jrjc").change(function() {
  1347. if ($("#jrjc").prop('checked') == true){
  1348. $("#departmentId").removeAttr("disabled");
  1349. }else {
  1350. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1351. }
  1352. });
  1353. ----------------------------------- SOURCE END -------------------------------------
  1354. !STACK 0
  1355. java.lang.NullPointerException
  1356. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:41.953
  1357. !MESSAGE java.lang.NullPointerException
  1358. !STACK 1
  1359. JavaScript Model Exception: java.lang.NullPointerException
  1360. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1361. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  1362. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1363. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1364. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  1365. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  1366. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  1367. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  1368. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  1369. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  1370. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  1371. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  1372. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  1373. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  1374. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  1375. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  1376. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  1377. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  1378. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  1379. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  1380. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  1381. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  1382. Caused by: java.lang.NullPointerException
  1383. Caused by: java.lang.NullPointerException
  1384. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:41.953
  1385. !MESSAGE java.lang.NullPointerException
  1386. !STACK 0
  1387. java.lang.NullPointerException
  1388. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:43.736
  1389. !MESSAGE Exception occurred during problem detection:
  1390. ----------------------------------- SOURCE BEGIN -------------------------------------
  1391. (function(){WdatePicker();})();
  1392. (function(){WdatePicker();})();
  1393. (function(){Data.get();})();
  1394. (function(){Data.set();})();
  1395. (function(){search();})();
  1396. $(function(){
  1397. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1398. getfp();
  1399. });
  1400. var Data = {
  1401. "get" : function(){
  1402. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1403. var tip = layer.load(2);
  1404. var result="";
  1405. var url = "getgyxml.do";
  1406. $.ajax({
  1407. "url" : url,
  1408. "data" : {
  1409. "start_date" : $("#dateBegin").val(),
  1410. "end_date" : $("#dateEnd").val()
  1411. },
  1412. "type" : "POST",
  1413. "dataType" : "json",
  1414. "success" : function(data) {
  1415. if(data != null && data != ""){
  1416. if ( data.status =="success"){
  1417. getfp();
  1418. alert("获取成功!");
  1419. }else {
  1420. alert(data.status);
  1421. }
  1422. }else {
  1423. alert("获取失败!");
  1424. }
  1425. },
  1426. "complete": function(){
  1427. layer.close(tip);
  1428. }
  1429. });
  1430. }else {
  1431. alert("请选择日期!");
  1432. }
  1433. },
  1434. "set" : function(){
  1435. if ( $("#fpid option:selected").text() !=""){
  1436. var tip = layer.load(2);
  1437. var gitem = $("#form1").serialize();
  1438. var jrjc;
  1439. if ($("#jrjc").prop('checked') == true){
  1440. jrjc = $("#departmentId").val();
  1441. }else {
  1442. jrjc ='N'
  1443. }
  1444. var url = "saverk.do";
  1445. $.ajax({
  1446. "url" : url,
  1447. "data" : {
  1448. "gitem" : gitem,
  1449. "jrjc" : jrjc
  1450. },
  1451. "type" : "POST",
  1452. "dataType" : "json",
  1453. "async" : true,
  1454. "success" : function(data) {
  1455. if(data.status ="success"){
  1456. alert("入库成功!");
  1457. window.location.reload();
  1458. }else {
  1459. alert(msg);
  1460. }
  1461. },
  1462. "error": function(){
  1463. alert("确认失败!");
  1464. },
  1465. "complete": function(){
  1466. layer.close(tip);
  1467. }
  1468. });
  1469. }else {
  1470. alert("请选择发票!");
  1471. }
  1472. }
  1473. }
  1474. function getfp(){
  1475. var tip = layer.load(2);
  1476. var url = "getgyfp.do";
  1477. $.ajax({
  1478. "url" : url,
  1479. "type" : "POST",
  1480. "dataType" : "json",
  1481. "async" : true,
  1482. "success" : function(data) {
  1483. if(data != null && data != ""){
  1484. $("#fpid").empty();
  1485. $("#fpid").append("_$tag_____________$tag____");
  1486. for(var i = 0; i < data.length; i++){
  1487. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1488. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1489. }
  1490. }
  1491. },
  1492. "error" : function(msg){
  1493. },
  1494. "complete": function(){
  1495. layer.close(tip);
  1496. }
  1497. });
  1498. }
  1499. $("#fpid").change(function(){
  1500. var tip = layer.load(2);
  1501. var url = "getgyrkxx.do";
  1502. var sum_total=0;
  1503. $.ajax({
  1504. "url" : url,
  1505. "data" : {
  1506. "fpId" : $("#fpid").val()
  1507. },
  1508. "type" : "POST",
  1509. "dataType" : "json",
  1510. "async" : true,
  1511. "success" : function(data) {
  1512. $("#dataTable").html("");
  1513. if(data != null && data != ""){
  1514. var html = "";
  1515. for(var i = 0; i < data.length; i++){
  1516. var ID = data[i].id == null ? "" : data[i].id;
  1517. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1518. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1519. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1520. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1521. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1522. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1523. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1524. var NAME = data[i].name == null ? "" : data[i].name;
  1525. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1526. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1527. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1528. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1529. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1530. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1531. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1532. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1533. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1534. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1535. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1536. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1537. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1538. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1539. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1540. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1541. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1542. sum_total = sum_total + DPRC
  1543. var invoice_type_cn =null;
  1544. if (invoice_type =="00" ){
  1545. invoice_type_cn="销售发票";
  1546. }else if (invoice_type == "01") {
  1547. invoice_type_cn="更正(对冲)发票";
  1548. }else if (invoice_type == "02") {
  1549. invoice_type_cn="其它类型发票";
  1550. }
  1551. html += "_$ta";
  1552. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1553. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1554. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1555. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1556. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1557. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1558. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1559. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1560. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1561. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1562. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1563. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1564. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1565. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1566. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1567. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1568. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1569. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1570. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1571. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1572. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1573. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1574. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1575. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1576. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1577. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1578. html += "_$tag";
  1579. }
  1580. html += "_$ta";
  1581. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1582. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1583. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1584. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1585. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1586. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1587. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1588. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1589. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1590. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1591. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1592. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1593. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1594. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1595. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1596. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1597. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1598. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1599. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1600. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1601. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1602. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1603. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1604. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1605. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1606. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1607. html += "_$tag";
  1608. $("#dataTable").html(html);
  1609. }else {
  1610. $("#dataTable").html("");
  1611. }
  1612. },
  1613. "error" : function(msg){
  1614. },
  1615. "complete": function(){
  1616. layer.close(tip);
  1617. }
  1618. });
  1619. });
  1620. Date.prototype.Format = function (fmt) {
  1621. var o = {
  1622. "M+": this.getMonth() + 1, //月份
  1623. "d+": this.getDate(), //日
  1624. "h+": this.getHours(), //小时
  1625. "m+": this.getMinutes(), //分
  1626. "s+": this.getSeconds(), //秒
  1627. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1628. "S": this.getMilliseconds() //毫秒
  1629. };
  1630. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1631. for (var k in o)
  1632. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1633. return fmt;
  1634. }
  1635. $("#jrjc").change(function() {
  1636. if ($("#jrjc").prop('checked') == true){
  1637. $("#departmentId").removeAttr("disabled");
  1638. }else {
  1639. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1640. }
  1641. });
  1642. ----------------------------------- SOURCE END -------------------------------------
  1643. !STACK 0
  1644. java.lang.NullPointerException
  1645. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:43.737
  1646. !MESSAGE Error while processing working copy
  1647. !STACK 1
  1648. JavaScript Model Exception: java.lang.NullPointerException
  1649. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  1650. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  1651. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  1652. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  1653. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  1654. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  1655. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  1656. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  1657. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  1658. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  1659. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  1660. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  1661. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  1662. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  1663. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  1664. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  1665. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  1666. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  1667. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  1668. Caused by: java.lang.NullPointerException
  1669. Caused by: java.lang.NullPointerException
  1670. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:43.737
  1671. !MESSAGE java.lang.NullPointerException
  1672. !STACK 0
  1673. java.lang.NullPointerException
  1674. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:44.385
  1675. !MESSAGE Exception occurred during problem detection:
  1676. ----------------------------------- SOURCE BEGIN -------------------------------------
  1677. (function(){WdatePicker();})();
  1678. (function(){WdatePicker();})();
  1679. (function(){Data.get();})();
  1680. (function(){Data.set();})();
  1681. (function(){search();})();
  1682. $(function(){
  1683. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1684. getfp();
  1685. });
  1686. var Data = {
  1687. "get" : function(){
  1688. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1689. var tip = layer.load(2);
  1690. var result="";
  1691. var url = "getgyxml.do";
  1692. $.ajax({
  1693. "url" : url,
  1694. "data" : {
  1695. "start_date" : $("#dateBegin").val(),
  1696. "end_date" : $("#dateEnd").val()
  1697. },
  1698. "type" : "POST",
  1699. "dataType" : "json",
  1700. "success" : function(data) {
  1701. if(data != null && data != ""){
  1702. if ( data.status =="success"){
  1703. getfp();
  1704. alert("获取成功!");
  1705. }else {
  1706. alert(data.status);
  1707. }
  1708. }else {
  1709. alert("获取失败!");
  1710. }
  1711. },
  1712. "complete": function(){
  1713. layer.close(tip);
  1714. }
  1715. });
  1716. }else {
  1717. alert("请选择日期!");
  1718. }
  1719. },
  1720. "set" : function(){
  1721. if ( $("#fpid option:selected").text() !=""){
  1722. var tip = layer.load(2);
  1723. var gitem = $("#form1").serialize();
  1724. var jrjc;
  1725. if ($("#jrjc").prop('checked') == true){
  1726. jrjc = $("#departmentId").val();
  1727. }else {
  1728. jrjc ='N'
  1729. }
  1730. var url = "saverk.do";
  1731. $.ajax({
  1732. "url" : url,
  1733. "data" : {
  1734. "gitem" : gitem,
  1735. "jrjc" : jrjc
  1736. },
  1737. "type" : "POST",
  1738. "dataType" : "json",
  1739. "async" : true,
  1740. "success" : function(data) {
  1741. if(data.status ="success"){
  1742. alert("入库成功!");
  1743. window.location.reload();
  1744. }else {
  1745. alert(msg);
  1746. }
  1747. },
  1748. "error": function(){
  1749. alert("确认失败!");
  1750. },
  1751. "complete": function(){
  1752. layer.close(tip);
  1753. }
  1754. });
  1755. }else {
  1756. alert("请选择发票!");
  1757. }
  1758. }
  1759. }
  1760. function getfp(){
  1761. var tip = layer.load(2);
  1762. var url = "getgyfp.do";
  1763. $.ajax({
  1764. "url" : url,
  1765. "type" : "POST",
  1766. "dataType" : "json",
  1767. "async" : true,
  1768. "success" : function(data) {
  1769. if(data != null && data != ""){
  1770. $("#fpid").empty();
  1771. $("#fpid").append("_$tag_____________$tag____");
  1772. for(var i = 0; i < data.length; i++){
  1773. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  1774. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  1775. }
  1776. }
  1777. },
  1778. "error" : function(msg){
  1779. },
  1780. "complete": function(){
  1781. layer.close(tip);
  1782. }
  1783. });
  1784. }
  1785. $("#fpid").change(function(){
  1786. var tip = layer.load(2);
  1787. var url = "getgyrkxx.do";
  1788. var sum_total=0;
  1789. $.ajax({
  1790. "url" : url,
  1791. "data" : {
  1792. "fpId" : $("#fpid").val()
  1793. },
  1794. "type" : "POST",
  1795. "dataType" : "json",
  1796. "async" : true,
  1797. "success" : function(data) {
  1798. $("#dataTable").html("");
  1799. if(data != null && data != ""){
  1800. var html = "";
  1801. for(var i = 0; i < data.length; i++){
  1802. var ID = data[i].id == null ? "" : data[i].id;
  1803. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  1804. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  1805. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  1806. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  1807. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  1808. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  1809. var GOODS = data[i].goods == null ? "" : data[i].goods;
  1810. var NAME = data[i].name == null ? "" : data[i].name;
  1811. var SPEC = data[i].spec == null ? "" : data[i].spec;
  1812. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  1813. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  1814. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  1815. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  1816. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  1817. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  1818. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  1819. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  1820. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  1821. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  1822. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  1823. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  1824. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  1825. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  1826. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  1827. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  1828. sum_total = sum_total + DPRC
  1829. var invoice_type_cn =null;
  1830. if (invoice_type =="00" ){
  1831. invoice_type_cn="销售发票";
  1832. }else if (invoice_type == "01") {
  1833. invoice_type_cn="更正(对冲)发票";
  1834. }else if (invoice_type == "02") {
  1835. invoice_type_cn="其它类型发票";
  1836. }
  1837. html += "_$ta";
  1838. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  1839. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1840. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1841. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1842. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1843. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  1844. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  1845. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1846. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1847. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  1848. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  1849. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1850. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1851. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1852. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1853. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1854. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1855. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1856. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1857. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1858. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1859. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1860. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1861. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1862. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1863. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1864. html += "_$tag";
  1865. }
  1866. html += "_$ta";
  1867. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1868. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1869. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1870. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1871. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1872. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1873. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1874. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1875. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1876. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1877. html += "_$tag_____________$tag__________________________________________________________________$tag";
  1878. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1879. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  1880. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  1881. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1882. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1883. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  1884. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1885. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1886. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  1887. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  1888. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  1889. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  1890. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  1891. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  1892. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  1893. html += "_$tag";
  1894. $("#dataTable").html(html);
  1895. }else {
  1896. $("#dataTable").html("");
  1897. }
  1898. },
  1899. "error" : function(msg){
  1900. },
  1901. "complete": function(){
  1902. layer.close(tip);
  1903. }
  1904. });
  1905. });
  1906. Date.prototype.Format = function (fmt) {
  1907. var o = {
  1908. "M+": this.getMonth() + 1, //月份
  1909. "d+": this.getDate(), //日
  1910. "h+": this.getHours(), //小时
  1911. "m+": this.getMinutes(), //分
  1912. "s+": this.getSeconds(), //秒
  1913. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  1914. "S": this.getMilliseconds() //毫秒
  1915. };
  1916. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  1917. for (var k in o)
  1918. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  1919. return fmt;
  1920. }
  1921. $("#jrjc").change(function() {
  1922. if ($("#jrjc").prop('checked') == true){
  1923. $("#departmentId").removeAttr("disabled");
  1924. }else {
  1925. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1926. }
  1927. });
  1928. ----------------------------------- SOURCE END -------------------------------------
  1929. !STACK 0
  1930. java.lang.NullPointerException
  1931. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:45.957
  1932. !MESSAGE Exception occurred during problem detection:
  1933. ----------------------------------- SOURCE BEGIN -------------------------------------
  1934. (function(){WdatePicker();})();
  1935. (function(){WdatePicker();})();
  1936. (function(){Data.get();})();
  1937. (function(){Data.set();})();
  1938. (function(){search();})();
  1939. $(function(){
  1940. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  1941. getfp();
  1942. });
  1943. var Data = {
  1944. "get" : function(){
  1945. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  1946. var tip = layer.load(2);
  1947. var result="";
  1948. var url = "getgyxml.do";
  1949. $.ajax({
  1950. "url" : url,
  1951. "data" : {
  1952. "start_date" : $("#dateBegin").val(),
  1953. "end_date" : $("#dateEnd").val()
  1954. },
  1955. "type" : "POST",
  1956. "dataType" : "json",
  1957. "success" : function(data) {
  1958. if(data != null && data != ""){
  1959. if ( data.status =="success"){
  1960. getfp();
  1961. alert("获取成功!");
  1962. }else {
  1963. alert(data.status);
  1964. }
  1965. }else {
  1966. alert("获取失败!");
  1967. }
  1968. },
  1969. "complete": function(){
  1970. layer.close(tip);
  1971. }
  1972. });
  1973. }else {
  1974. alert("请选择日期!");
  1975. }
  1976. },
  1977. "set" : function(){
  1978. if ( $("#fpid option:selected").text() !=""){
  1979. var tip = layer.load(2);
  1980. var gitem = $("#form1").serialize();
  1981. var jrjc;
  1982. if ($("#jrjc").prop('checked') == true){
  1983. jrjc = $("#departmentId").val();
  1984. }else {
  1985. jrjc ='N'
  1986. }
  1987. var url = "saverk.do";
  1988. $.ajax({
  1989. "url" : url,
  1990. "data" : {
  1991. "gitem" : gitem,
  1992. "jrjc" : jrjc
  1993. },
  1994. "type" : "POST",
  1995. "dataType" : "json",
  1996. "async" : true,
  1997. "success" : function(data) {
  1998. if(data.status ="success"){
  1999. alert("入库成功!");
  2000. window.location.reload();
  2001. }else {
  2002. alert(msg);
  2003. }
  2004. },
  2005. "error": function(){
  2006. alert("确认失败!");
  2007. },
  2008. "complete": function(){
  2009. layer.close(tip);
  2010. }
  2011. });
  2012. }else {
  2013. alert("请选择发票!");
  2014. }
  2015. }
  2016. }
  2017. function getfp(){
  2018. var tip = layer.load(2);
  2019. var url = "getgyfp.do";
  2020. $.ajax({
  2021. "url" : url,
  2022. "type" : "POST",
  2023. "dataType" : "json",
  2024. "async" : true,
  2025. "success" : function(data) {
  2026. if(data != null && data != ""){
  2027. $("#fpid").empty();
  2028. $("#fpid").append("_$tag_____________$tag____");
  2029. for(var i = 0; i < data.length; i++){
  2030. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2031. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2032. }
  2033. }
  2034. },
  2035. "error" : function(msg){
  2036. },
  2037. "complete": function(){
  2038. layer.close(tip);
  2039. }
  2040. });
  2041. }
  2042. $("#fpid").change(function(){
  2043. var tip = layer.load(2);
  2044. var url = "getgyrkxx.do";
  2045. var sum_total=0;
  2046. $.ajax({
  2047. "url" : url,
  2048. "data" : {
  2049. "fpId" : $("#fpid").val()
  2050. },
  2051. "type" : "POST",
  2052. "dataType" : "json",
  2053. "async" : true,
  2054. "success" : function(data) {
  2055. $("#dataTable").html("");
  2056. if(data != null && data != ""){
  2057. var html = "";
  2058. for(var i = 0; i < data.length; i++){
  2059. var ID = data[i].id == null ? "" : data[i].id;
  2060. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2061. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2062. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2063. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2064. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2065. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2066. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2067. var NAME = data[i].name == null ? "" : data[i].name;
  2068. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2069. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2070. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2071. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2072. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2073. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2074. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2075. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2076. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2077. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2078. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2079. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2080. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2081. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2082. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2083. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2084. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2085. sum_total = sum_total + DPRC
  2086. var invoice_type_cn =null;
  2087. if (invoice_type =="00" ){
  2088. invoice_type_cn="销售发票";
  2089. }else if (invoice_type == "01") {
  2090. invoice_type_cn="更正(对冲)发票";
  2091. }else if (invoice_type == "02") {
  2092. invoice_type_cn="其它类型发票";
  2093. }
  2094. html += "_$ta";
  2095. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2096. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2097. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2098. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2099. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2100. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2101. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2102. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2103. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2104. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2105. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2106. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2107. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2108. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2109. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2110. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2111. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2112. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2113. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2114. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2115. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2116. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2117. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2118. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2119. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2120. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2121. html += "_$tag";
  2122. }
  2123. html += "_$ta";
  2124. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2125. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2126. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2127. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2128. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2129. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2130. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2131. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2132. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2133. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2134. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2135. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2136. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2137. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2138. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2139. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2140. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2141. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2142. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2143. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2144. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2145. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2146. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2147. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2148. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2149. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2150. html += "_$tag";
  2151. $("#dataTable").html(html);
  2152. }else {
  2153. $("#dataTable").html("");
  2154. }
  2155. },
  2156. "error" : function(msg){
  2157. },
  2158. "complete": function(){
  2159. layer.close(tip);
  2160. }
  2161. });
  2162. });
  2163. Date.prototype.Format = function (fmt) {
  2164. var o = {
  2165. "M+": this.getMonth() + 1, //月份
  2166. "d+": this.getDate(), //日
  2167. "h+": this.getHours(), //小时
  2168. "m+": this.getMinutes(), //分
  2169. "s+": this.getSeconds(), //秒
  2170. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2171. "S": this.getMilliseconds() //毫秒
  2172. };
  2173. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2174. for (var k in o)
  2175. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2176. return fmt;
  2177. }
  2178. $("#jrjc").change(function() {
  2179. if ($("#jrjc").prop('checked') == true){
  2180. $("#departmentId").removeAttr("disabled");
  2181. }else {
  2182. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2183. }
  2184. });
  2185. ----------------------------------- SOURCE END -------------------------------------
  2186. !STACK 0
  2187. java.lang.NullPointerException
  2188. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:45.957
  2189. !MESSAGE java.lang.NullPointerException
  2190. !STACK 1
  2191. JavaScript Model Exception: java.lang.NullPointerException
  2192. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2193. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  2194. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2195. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2196. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  2197. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  2198. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  2199. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  2200. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  2201. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  2202. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  2203. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  2204. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  2205. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  2206. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  2207. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  2208. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  2209. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  2210. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  2211. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  2212. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  2213. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  2214. Caused by: java.lang.NullPointerException
  2215. Caused by: java.lang.NullPointerException
  2216. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:45.958
  2217. !MESSAGE java.lang.NullPointerException
  2218. !STACK 0
  2219. java.lang.NullPointerException
  2220. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:48.970
  2221. !MESSAGE Exception occurred during problem detection:
  2222. ----------------------------------- SOURCE BEGIN -------------------------------------
  2223. (function(){WdatePicker();})();
  2224. (function(){WdatePicker();})();
  2225. (function(){Data.get();})();
  2226. (function(){Data.set();})();
  2227. (function(){search();})();
  2228. $(function(){
  2229. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2230. getfp();
  2231. });
  2232. var Data = {
  2233. "get" : function(){
  2234. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2235. var tip = layer.load(2);
  2236. var result="";
  2237. var url = "getgyxml.do";
  2238. $.ajax({
  2239. "url" : url,
  2240. "data" : {
  2241. "start_date" : $("#dateBegin").val(),
  2242. "end_date" : $("#dateEnd").val()
  2243. },
  2244. "type" : "POST",
  2245. "dataType" : "json",
  2246. "success" : function(data) {
  2247. if(data != null && data != ""){
  2248. if ( data.status =="success"){
  2249. getfp();
  2250. alert("获取成功!");
  2251. }else {
  2252. alert(data.status);
  2253. }
  2254. }else {
  2255. alert("获取失败!");
  2256. }
  2257. },
  2258. "complete": function(){
  2259. layer.close(tip);
  2260. }
  2261. });
  2262. }else {
  2263. alert("请选择日期!");
  2264. }
  2265. },
  2266. "set" : function(){
  2267. if ( $("#fpid option:selected").text() !=""){
  2268. var tip = layer.load(2);
  2269. var gitem = $("#form1").serialize();
  2270. var jrjc;
  2271. if ($("#jrjc").prop('checked') == true){
  2272. jrjc = $("#departmentId").val();
  2273. }else {
  2274. jrjc ='N'
  2275. }
  2276. var url = "saverk.do";
  2277. $.ajax({
  2278. "url" : url,
  2279. "data" : {
  2280. "gitem" : gitem,
  2281. "jrjc" : jrjc
  2282. },
  2283. "type" : "POST",
  2284. "dataType" : "json",
  2285. "async" : true,
  2286. "success" : function(data) {
  2287. if(data.status ="success"){
  2288. alert("入库成功!");
  2289. window.location.reload();
  2290. }else {
  2291. alert(msg);
  2292. }
  2293. },
  2294. "error": function(){
  2295. alert("确认失败!");
  2296. },
  2297. "complete": function(){
  2298. layer.close(tip);
  2299. }
  2300. });
  2301. }else {
  2302. alert("请选择发票!");
  2303. }
  2304. }
  2305. }
  2306. function getfp(){
  2307. var tip = layer.load(2);
  2308. var url = "getgyfp.do";
  2309. $.ajax({
  2310. "url" : url,
  2311. "type" : "POST",
  2312. "dataType" : "json",
  2313. "async" : true,
  2314. "success" : function(data) {
  2315. if(data != null && data != ""){
  2316. $("#fpid").empty();
  2317. $("#fpid").append("_$tag_____________$tag____");
  2318. for(var i = 0; i < data.length; i++){
  2319. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2320. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2321. }
  2322. }
  2323. },
  2324. "error" : function(msg){
  2325. },
  2326. "complete": function(){
  2327. layer.close(tip);
  2328. }
  2329. });
  2330. }
  2331. $("#fpid").change(function(){
  2332. var tip = layer.load(2);
  2333. var url = "getgyrkxx.do";
  2334. var sum_total=0;
  2335. $.ajax({
  2336. "url" : url,
  2337. "data" : {
  2338. "fpId" : $("#fpid").val()
  2339. },
  2340. "type" : "POST",
  2341. "dataType" : "json",
  2342. "async" : true,
  2343. "success" : function(data) {
  2344. $("#dataTable").html("");
  2345. if(data != null && data != ""){
  2346. var html = "";
  2347. for(var i = 0; i < data.length; i++){
  2348. var ID = data[i].id == null ? "" : data[i].id;
  2349. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2350. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2351. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2352. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2353. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2354. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2355. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2356. var NAME = data[i].name == null ? "" : data[i].name;
  2357. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2358. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2359. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2360. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2361. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2362. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2363. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2364. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2365. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2366. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2367. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2368. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2369. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2370. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2371. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2372. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2373. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2374. sum_total = sum_total + DPRC
  2375. var invoice_type_cn =null;
  2376. if (invoice_type =="00" ){
  2377. invoice_type_cn="销售发票";
  2378. }else if (invoice_type == "01") {
  2379. invoice_type_cn="更正(对冲)发票";
  2380. }else if (invoice_type == "02") {
  2381. invoice_type_cn="其它类型发票";
  2382. }
  2383. html += "_$ta";
  2384. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2385. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2386. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2387. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2388. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2389. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2390. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2391. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2392. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2393. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2394. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2395. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2396. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2397. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2398. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2399. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2400. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2401. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2402. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2403. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2404. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2405. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2406. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2407. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2408. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2409. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2410. html += "_$tag";
  2411. }
  2412. html += "_$ta";
  2413. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2414. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2415. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2416. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2417. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2418. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2419. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2420. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2421. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2422. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2423. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2424. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2425. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2426. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2427. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2428. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2429. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2430. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2431. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2432. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2433. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2434. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2435. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2436. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2437. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2438. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2439. html += "_$tag";
  2440. $("#dataTable").html(html);
  2441. }else {
  2442. $("#dataTable").html("");
  2443. }
  2444. },
  2445. "error" : function(msg){
  2446. },
  2447. "complete": function(){
  2448. layer.close(tip);
  2449. }
  2450. });
  2451. });
  2452. Date.prototype.Format = function (fmt) {
  2453. var o = {
  2454. "M+": this.getMonth() + 1, //月份
  2455. "d+": this.getDate(), //日
  2456. "h+": this.getHours(), //小时
  2457. "m+": this.getMinutes(), //分
  2458. "s+": this.getSeconds(), //秒
  2459. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2460. "S": this.getMilliseconds() //毫秒
  2461. };
  2462. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2463. for (var k in o)
  2464. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2465. return fmt;
  2466. }
  2467. $("#jrjc").change(function() {
  2468. if ($("#jrjc").prop('checked') == true){
  2469. $("#departmentId").removeAttr("disabled");
  2470. }else {
  2471. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2472. }
  2473. });
  2474. ----------------------------------- SOURCE END -------------------------------------
  2475. !STACK 0
  2476. java.lang.NullPointerException
  2477. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:48.971
  2478. !MESSAGE Error while processing working copy
  2479. !STACK 1
  2480. JavaScript Model Exception: java.lang.NullPointerException
  2481. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  2482. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  2483. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  2484. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  2485. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  2486. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  2487. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  2488. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  2489. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  2490. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  2491. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  2492. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  2493. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  2494. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  2495. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  2496. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  2497. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  2498. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  2499. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  2500. Caused by: java.lang.NullPointerException
  2501. Caused by: java.lang.NullPointerException
  2502. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:48.971
  2503. !MESSAGE java.lang.NullPointerException
  2504. !STACK 0
  2505. java.lang.NullPointerException
  2506. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:49.653
  2507. !MESSAGE Exception occurred during problem detection:
  2508. ----------------------------------- SOURCE BEGIN -------------------------------------
  2509. (function(){WdatePicker();})();
  2510. (function(){WdatePicker();})();
  2511. (function(){Data.get();})();
  2512. (function(){Data.set();})();
  2513. (function(){search();})();
  2514. $(function(){
  2515. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2516. getfp();
  2517. });
  2518. var Data = {
  2519. "get" : function(){
  2520. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2521. var tip = layer.load(2);
  2522. var result="";
  2523. var url = "getgyxml.do";
  2524. $.ajax({
  2525. "url" : url,
  2526. "data" : {
  2527. "start_date" : $("#dateBegin").val(),
  2528. "end_date" : $("#dateEnd").val()
  2529. },
  2530. "type" : "POST",
  2531. "dataType" : "json",
  2532. "success" : function(data) {
  2533. if(data != null && data != ""){
  2534. if ( data.status =="success"){
  2535. getfp();
  2536. alert("获取成功!");
  2537. }else {
  2538. alert(data.status);
  2539. }
  2540. }else {
  2541. alert("获取失败!");
  2542. }
  2543. },
  2544. "complete": function(){
  2545. layer.close(tip);
  2546. }
  2547. });
  2548. }else {
  2549. alert("请选择日期!");
  2550. }
  2551. },
  2552. "set" : function(){
  2553. if ( $("#fpid option:selected").text() !=""){
  2554. var tip = layer.load(2);
  2555. var gitem = $("#form1").serialize();
  2556. var jrjc;
  2557. if ($("#jrjc").prop('checked') == true){
  2558. jrjc = $("#departmentId").val();
  2559. }else {
  2560. jrjc ='N'
  2561. }
  2562. var url = "saverk.do";
  2563. $.ajax({
  2564. "url" : url,
  2565. "data" : {
  2566. "gitem" : gitem,
  2567. "jrjc" : jrjc
  2568. },
  2569. "type" : "POST",
  2570. "dataType" : "json",
  2571. "async" : true,
  2572. "success" : function(data) {
  2573. if(data.status ="success"){
  2574. alert("入库成功!");
  2575. window.location.reload();
  2576. }else {
  2577. alert(msg);
  2578. }
  2579. },
  2580. "error": function(){
  2581. alert("确认失败!");
  2582. },
  2583. "complete": function(){
  2584. layer.close(tip);
  2585. }
  2586. });
  2587. }else {
  2588. alert("请选择发票!");
  2589. }
  2590. }
  2591. }
  2592. function getfp(){
  2593. var tip = layer.load(2);
  2594. var url = "getgyfp.do";
  2595. $.ajax({
  2596. "url" : url,
  2597. "type" : "POST",
  2598. "dataType" : "json",
  2599. "async" : true,
  2600. "success" : function(data) {
  2601. if(data != null && data != ""){
  2602. $("#fpid").empty();
  2603. $("#fpid").append("_$tag_____________$tag____");
  2604. for(var i = 0; i < data.length; i++){
  2605. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2606. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2607. }
  2608. }
  2609. },
  2610. "error" : function(msg){
  2611. },
  2612. "complete": function(){
  2613. layer.close(tip);
  2614. }
  2615. });
  2616. }
  2617. $("#fpid").change(function(){
  2618. var tip = layer.load(2);
  2619. var url = "getgyrkxx.do";
  2620. var sum_total=0;
  2621. $.ajax({
  2622. "url" : url,
  2623. "data" : {
  2624. "fpId" : $("#fpid").val()
  2625. },
  2626. "type" : "POST",
  2627. "dataType" : "json",
  2628. "async" : true,
  2629. "success" : function(data) {
  2630. $("#dataTable").html("");
  2631. if(data != null && data != ""){
  2632. var html = "";
  2633. for(var i = 0; i < data.length; i++){
  2634. var ID = data[i].id == null ? "" : data[i].id;
  2635. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2636. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2637. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2638. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2639. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2640. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2641. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2642. var NAME = data[i].name == null ? "" : data[i].name;
  2643. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2644. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2645. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2646. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2647. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2648. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2649. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2650. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2651. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2652. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2653. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2654. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2655. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2656. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2657. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2658. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2659. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2660. sum_total = sum_total + DPRC
  2661. var invoice_type_cn =null;
  2662. if (invoice_type =="00" ){
  2663. invoice_type_cn="销售发票";
  2664. }else if (invoice_type == "01") {
  2665. invoice_type_cn="更正(对冲)发票";
  2666. }else if (invoice_type == "02") {
  2667. invoice_type_cn="其它类型发票";
  2668. }
  2669. html += "_$ta";
  2670. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2671. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2672. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2673. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2674. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2675. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2676. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2677. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2678. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2679. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2680. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2681. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2682. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2683. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2684. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2685. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2686. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2687. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2688. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2689. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2690. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2691. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2692. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2693. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2694. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2695. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2696. html += "_$tag";
  2697. }
  2698. html += "_$ta";
  2699. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2700. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2701. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2702. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2703. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2704. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2705. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2706. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2707. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2708. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2709. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2710. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2711. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2712. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2713. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2714. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2715. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2716. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2717. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2718. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2719. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2720. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2721. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2722. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2723. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2724. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2725. html += "_$tag";
  2726. $("#dataTable").html(html);
  2727. }else {
  2728. $("#dataTable").html("");
  2729. }
  2730. },
  2731. "error" : function(msg){
  2732. },
  2733. "complete": function(){
  2734. layer.close(tip);
  2735. }
  2736. });
  2737. });
  2738. Date.prototype.Format = function (fmt) {
  2739. var o = {
  2740. "M+": this.getMonth() + 1, //月份
  2741. "d+": this.getDate(), //日
  2742. "h+": this.getHours(), //小时
  2743. "m+": this.getMinutes(), //分
  2744. "s+": this.getSeconds(), //秒
  2745. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  2746. "S": this.getMilliseconds() //毫秒
  2747. };
  2748. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  2749. for (var k in o)
  2750. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  2751. return fmt;
  2752. }
  2753. $("#jrjc").change(function() {
  2754. if ($("#jrjc").prop('checked') == true){
  2755. $("#departmentId").removeAttr("disabled");
  2756. }else {
  2757. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2758. }
  2759. });
  2760. ----------------------------------- SOURCE END -------------------------------------
  2761. !STACK 0
  2762. java.lang.NullPointerException
  2763. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:50.215
  2764. !MESSAGE Exception occurred during problem detection:
  2765. ----------------------------------- SOURCE BEGIN -------------------------------------
  2766. (function(){WdatePicker();})();
  2767. (function(){WdatePicker();})();
  2768. (function(){Data.get();})();
  2769. (function(){Data.set();})();
  2770. (function(){search();})();
  2771. $(function(){
  2772. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  2773. getfp();
  2774. });
  2775. var Data = {
  2776. "get" : function(){
  2777. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  2778. var tip = layer.load(2);
  2779. var result="";
  2780. var url = "getgyxml.do";
  2781. $.ajax({
  2782. "url" : url,
  2783. "data" : {
  2784. "start_date" : $("#dateBegin").val(),
  2785. "end_date" : $("#dateEnd").val()
  2786. },
  2787. "type" : "POST",
  2788. "dataType" : "json",
  2789. "success" : function(data) {
  2790. if(data != null && data != ""){
  2791. if ( data.status =="success"){
  2792. getfp();
  2793. alert("获取成功!");
  2794. }else {
  2795. alert(data.status);
  2796. }
  2797. }else {
  2798. alert("获取失败!");
  2799. }
  2800. },
  2801. "complete": function(){
  2802. layer.close(tip);
  2803. }
  2804. });
  2805. }else {
  2806. alert("请选择日期!");
  2807. }
  2808. },
  2809. "set" : function(){
  2810. if ( $("#fpid option:selected").text() !=""){
  2811. var tip = layer.load(2);
  2812. var gitem = $("#form1").serialize();
  2813. var jrjc;
  2814. if ($("#jrjc").prop('checked') == true){
  2815. jrjc = $("#departmentId").val();
  2816. }else {
  2817. jrjc ='N'
  2818. }
  2819. var url = "saverk.do";
  2820. $.ajax({
  2821. "url" : url,
  2822. "data" : {
  2823. "gitem" : gitem,
  2824. "jrjc" : jrjc
  2825. },
  2826. "type" : "POST",
  2827. "dataType" : "json",
  2828. "async" : true,
  2829. "success" : function(data) {
  2830. if(data.status ="success"){
  2831. alert("入库成功!");
  2832. window.location.reload();
  2833. }else {
  2834. alert(msg);
  2835. }
  2836. },
  2837. "error": function(){
  2838. alert("确认失败!");
  2839. },
  2840. "complete": function(){
  2841. layer.close(tip);
  2842. }
  2843. });
  2844. }else {
  2845. alert("请选择发票!");
  2846. }
  2847. }
  2848. }
  2849. function getfp(){
  2850. var tip = layer.load(2);
  2851. var url = "getgyfp.do";
  2852. $.ajax({
  2853. "url" : url,
  2854. "type" : "POST",
  2855. "dataType" : "json",
  2856. "async" : true,
  2857. "success" : function(data) {
  2858. if(data != null && data != ""){
  2859. $("#fpid").empty();
  2860. $("#fpid").append("_$tag_____________$tag____");
  2861. for(var i = 0; i < data.length; i++){
  2862. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  2863. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  2864. }
  2865. }
  2866. },
  2867. "error" : function(msg){
  2868. },
  2869. "complete": function(){
  2870. layer.close(tip);
  2871. }
  2872. });
  2873. }
  2874. $("#fpid").change(function(){
  2875. var tip = layer.load(2);
  2876. var url = "getgyrkxx.do";
  2877. var sum_total=0;
  2878. $.ajax({
  2879. "url" : url,
  2880. "data" : {
  2881. "fpId" : $("#fpid").val()
  2882. },
  2883. "type" : "POST",
  2884. "dataType" : "json",
  2885. "async" : true,
  2886. "success" : function(data) {
  2887. $("#dataTable").html("");
  2888. if(data != null && data != ""){
  2889. var html = "";
  2890. for(var i = 0; i < data.length; i++){
  2891. var ID = data[i].id == null ? "" : data[i].id;
  2892. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  2893. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  2894. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  2895. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  2896. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  2897. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  2898. var GOODS = data[i].goods == null ? "" : data[i].goods;
  2899. var NAME = data[i].name == null ? "" : data[i].name;
  2900. var SPEC = data[i].spec == null ? "" : data[i].spec;
  2901. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  2902. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  2903. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  2904. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  2905. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  2906. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  2907. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  2908. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  2909. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  2910. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  2911. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  2912. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  2913. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  2914. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  2915. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  2916. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  2917. sum_total = sum_total + DPRC
  2918. var invoice_type_cn =null;
  2919. if (invoice_type =="00" ){
  2920. invoice_type_cn="销售发票";
  2921. }else if (invoice_type == "01") {
  2922. invoice_type_cn="更正(对冲)发票";
  2923. }else if (invoice_type == "02") {
  2924. invoice_type_cn="其它类型发票";
  2925. }
  2926. html += "_$ta";
  2927. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  2928. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2929. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2930. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2931. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2932. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  2933. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  2934. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2935. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2936. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  2937. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  2938. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2939. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  2940. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2941. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2942. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2943. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2944. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2945. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2946. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2947. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2948. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2949. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2950. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2951. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2952. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2953. html += "_$tag";
  2954. }
  2955. html += "_$ta";
  2956. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2957. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2958. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2959. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2960. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2961. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2962. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2963. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2964. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2965. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2966. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2967. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2968. html += "_$tag_____________$tag__________________________________________________________________$tag";
  2969. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  2970. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2971. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2972. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  2973. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2974. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2975. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  2976. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  2977. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  2978. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  2979. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  2980. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  2981. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  2982. html += "_$tag";
  2983. $("#dataTable").html(html);
  2984. }else {
  2985. $("#dataTable").html("");
  2986. }
  2987. },
  2988. "error" : function(msg){
  2989. },
  2990. "complete": function(){
  2991. layer.close(tip);
  2992. }
  2993. });
  2994. });
  2995. Date.prototype.Format = function (fmt) {
  2996. var o = {
  2997. "M+": this.getMonth() + 1, //月份
  2998. "d+": this.getDate(), //日
  2999. "h+": this.getHours(), //小时
  3000. "m+": this.getMinutes(), //分
  3001. "s+": this.getSeconds(), //秒
  3002. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3003. "S": this.getMilliseconds() //毫秒
  3004. };
  3005. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3006. for (var k in o)
  3007. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3008. return fmt;
  3009. }
  3010. $("#jrjc").change(function() {
  3011. if ($("#jrjc").prop('checked') == true){
  3012. $("#departmentId").removeAttr("disabled");
  3013. }else {
  3014. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3015. }
  3016. });
  3017. ----------------------------------- SOURCE END -------------------------------------
  3018. !STACK 0
  3019. java.lang.NullPointerException
  3020. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:50.215
  3021. !MESSAGE java.lang.NullPointerException
  3022. !STACK 1
  3023. JavaScript Model Exception: java.lang.NullPointerException
  3024. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3025. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3026. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3027. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3028. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3029. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3030. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3031. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3032. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3033. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3034. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3035. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3036. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3037. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3038. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3039. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3040. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3041. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3042. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3043. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3044. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3045. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3046. Caused by: java.lang.NullPointerException
  3047. Caused by: java.lang.NullPointerException
  3048. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:50.215
  3049. !MESSAGE java.lang.NullPointerException
  3050. !STACK 0
  3051. java.lang.NullPointerException
  3052. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:50.550
  3053. !MESSAGE Exception occurred during problem detection:
  3054. ----------------------------------- SOURCE BEGIN -------------------------------------
  3055. (function(){WdatePicker();})();
  3056. (function(){WdatePicker();})();
  3057. (function(){Data.get();})();
  3058. (function(){Data.set();})();
  3059. (function(){search();})();
  3060. $(function(){
  3061. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3062. getfp();
  3063. });
  3064. var Data = {
  3065. "get" : function(){
  3066. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3067. var tip = layer.load(2);
  3068. var result="";
  3069. var url = "getgyxml.do";
  3070. $.ajax({
  3071. "url" : url,
  3072. "data" : {
  3073. "start_date" : $("#dateBegin").val(),
  3074. "end_date" : $("#dateEnd").val()
  3075. },
  3076. "type" : "POST",
  3077. "dataType" : "json",
  3078. "success" : function(data) {
  3079. if(data != null && data != ""){
  3080. if ( data.status =="success"){
  3081. getfp();
  3082. alert("获取成功!");
  3083. }else {
  3084. alert(data.status);
  3085. }
  3086. }else {
  3087. alert("获取失败!");
  3088. }
  3089. },
  3090. "complete": function(){
  3091. layer.close(tip);
  3092. }
  3093. });
  3094. }else {
  3095. alert("请选择日期!");
  3096. }
  3097. },
  3098. "set" : function(){
  3099. if ( $("#fpid option:selected").text() !=""){
  3100. var tip = layer.load(2);
  3101. var gitem = $("#form1").serialize();
  3102. var jrjc;
  3103. if ($("#jrjc").prop('checked') == true){
  3104. jrjc = $("#departmentId").val();
  3105. }else {
  3106. jrjc ='N'
  3107. }
  3108. var url = "saverk.do";
  3109. $.ajax({
  3110. "url" : url,
  3111. "data" : {
  3112. "gitem" : gitem,
  3113. "jrjc" : jrjc
  3114. },
  3115. "type" : "POST",
  3116. "dataType" : "json",
  3117. "async" : true,
  3118. "success" : function(data) {
  3119. if(data.status ="success"){
  3120. alert("入库成功!");
  3121. window.location.reload();
  3122. }else {
  3123. alert(msg);
  3124. }
  3125. },
  3126. "error": function(){
  3127. alert("确认失败!");
  3128. },
  3129. "complete": function(){
  3130. layer.close(tip);
  3131. }
  3132. });
  3133. }else {
  3134. alert("请选择发票!");
  3135. }
  3136. }
  3137. }
  3138. function getfp(){
  3139. var tip = layer.load(2);
  3140. var url = "getgyfp.do";
  3141. $.ajax({
  3142. "url" : url,
  3143. "type" : "POST",
  3144. "dataType" : "json",
  3145. "async" : true,
  3146. "success" : function(data) {
  3147. if(data != null && data != ""){
  3148. $("#fpid").empty();
  3149. $("#fpid").append("_$tag_____________$tag____");
  3150. for(var i = 0; i < data.length; i++){
  3151. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3152. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3153. }
  3154. }
  3155. },
  3156. "error" : function(msg){
  3157. },
  3158. "complete": function(){
  3159. layer.close(tip);
  3160. }
  3161. });
  3162. }
  3163. $("#fpid").change(function(){
  3164. var tip = layer.load(2);
  3165. var url = "getgyrkxx.do";
  3166. var sum_total=0;
  3167. $.ajax({
  3168. "url" : url,
  3169. "data" : {
  3170. "fpId" : $("#fpid").val()
  3171. },
  3172. "type" : "POST",
  3173. "dataType" : "json",
  3174. "async" : true,
  3175. "success" : function(data) {
  3176. $("#dataTable").html("");
  3177. if(data != null && data != ""){
  3178. var html = "";
  3179. for(var i = 0; i < data.length; i++){
  3180. var ID = data[i].id == null ? "" : data[i].id;
  3181. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3182. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3183. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3184. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3185. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3186. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3187. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3188. var NAME = data[i].name == null ? "" : data[i].name;
  3189. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3190. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3191. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3192. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3193. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3194. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3195. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3196. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3197. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3198. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3199. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3200. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3201. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3202. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3203. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3204. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3205. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3206. sum_total = sum_total + DPRC
  3207. var invoice_type_cn =null;
  3208. if (invoice_type =="00" ){
  3209. invoice_type_cn="销售发票";
  3210. }else if (invoice_type == "01") {
  3211. invoice_type_cn="更正(对冲)发票";
  3212. }else if (invoice_type == "02") {
  3213. invoice_type_cn="其它类型发票";
  3214. }
  3215. html += "_$ta";
  3216. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3217. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3218. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3219. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3220. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3221. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3222. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3223. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3224. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3225. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3226. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3227. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3228. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3229. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3230. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3231. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3232. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3233. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3234. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3235. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3236. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3237. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3238. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3239. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3240. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3241. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3242. html += "_$tag";
  3243. }
  3244. html += "_$ta";
  3245. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3246. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3247. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3248. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3249. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3250. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3251. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3252. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3253. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3254. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3255. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3256. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3257. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3258. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3259. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3260. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3261. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3262. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3263. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3264. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3265. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3266. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3268. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3269. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3270. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3271. html += "_$tag";
  3272. $("#dataTable").html(html);
  3273. }else {
  3274. $("#dataTable").html("");
  3275. }
  3276. },
  3277. "error" : function(msg){
  3278. },
  3279. "complete": function(){
  3280. layer.close(tip);
  3281. }
  3282. });
  3283. });
  3284. Date.prototype.Format = function (fmt) {
  3285. var o = {
  3286. "M+": this.getMonth() + 1, //月份
  3287. "d+": this.getDate(), //日
  3288. "h+": this.getHours(), //小时
  3289. "m+": this.getMinutes(), //分
  3290. "s+": this.getSeconds(), //秒
  3291. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3292. "S": this.getMilliseconds() //毫秒
  3293. };
  3294. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3295. for (var k in o)
  3296. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3297. return fmt;
  3298. }
  3299. $("#jrjc").change(function() {
  3300. if ($("#jrjc").prop('checked') == true){
  3301. $("#departmentId").removeAttr("disabled");
  3302. }else {
  3303. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3304. }
  3305. });
  3306. ----------------------------------- SOURCE END -------------------------------------
  3307. !STACK 0
  3308. java.lang.NullPointerException
  3309. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:50.550
  3310. !MESSAGE Error while processing working copy
  3311. !STACK 1
  3312. JavaScript Model Exception: java.lang.NullPointerException
  3313. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3314. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  3315. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3316. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3317. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  3318. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  3319. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  3320. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  3321. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  3322. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  3323. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  3324. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  3325. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  3326. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  3327. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  3328. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  3329. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  3330. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  3331. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  3332. Caused by: java.lang.NullPointerException
  3333. Caused by: java.lang.NullPointerException
  3334. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:50.551
  3335. !MESSAGE java.lang.NullPointerException
  3336. !STACK 0
  3337. java.lang.NullPointerException
  3338. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:51.566
  3339. !MESSAGE Exception occurred during problem detection:
  3340. ----------------------------------- SOURCE BEGIN -------------------------------------
  3341. (function(){WdatePicker();})();
  3342. (function(){WdatePicker();})();
  3343. (function(){Data.get();})();
  3344. (function(){Data.set();})();
  3345. (function(){search();})();
  3346. $(function(){
  3347. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3348. getfp();
  3349. });
  3350. var Data = {
  3351. "get" : function(){
  3352. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3353. var tip = layer.load(2);
  3354. var result="";
  3355. var url = "getgyxml.do";
  3356. $.ajax({
  3357. "url" : url,
  3358. "data" : {
  3359. "start_date" : $("#dateBegin").val(),
  3360. "end_date" : $("#dateEnd").val()
  3361. },
  3362. "type" : "POST",
  3363. "dataType" : "json",
  3364. "success" : function(data) {
  3365. if(data != null && data != ""){
  3366. if ( data.status =="success"){
  3367. getfp();
  3368. alert("获取成功!");
  3369. }else {
  3370. alert(data.status);
  3371. }
  3372. }else {
  3373. alert("获取失败!");
  3374. }
  3375. },
  3376. "complete": function(){
  3377. layer.close(tip);
  3378. }
  3379. });
  3380. }else {
  3381. alert("请选择日期!");
  3382. }
  3383. },
  3384. "set" : function(){
  3385. if ( $("#fpid option:selected").text() !=""){
  3386. var tip = layer.load(2);
  3387. var gitem = $("#form1").serialize();
  3388. var jrjc;
  3389. if ($("#jrjc").prop('checked') == true){
  3390. jrjc = $("#departmentId").val();
  3391. }else {
  3392. jrjc ='N'
  3393. }
  3394. var url = "saverk.do";
  3395. $.ajax({
  3396. "url" : url,
  3397. "data" : {
  3398. "gitem" : gitem,
  3399. "jrjc" : jrjc
  3400. },
  3401. "type" : "POST",
  3402. "dataType" : "json",
  3403. "async" : true,
  3404. "success" : function(data) {
  3405. if(data.status ="success"){
  3406. alert("入库成功!");
  3407. window.location.reload();
  3408. }else {
  3409. alert(msg);
  3410. }
  3411. },
  3412. "error": function(){
  3413. alert("确认失败!");
  3414. },
  3415. "complete": function(){
  3416. layer.close(tip);
  3417. }
  3418. });
  3419. }else {
  3420. alert("请选择发票!");
  3421. }
  3422. }
  3423. }
  3424. function getfp(){
  3425. var tip = layer.load(2);
  3426. var url = "getgyfp.do";
  3427. $.ajax({
  3428. "url" : url,
  3429. "type" : "POST",
  3430. "dataType" : "json",
  3431. "async" : true,
  3432. "success" : function(data) {
  3433. if(data != null && data != ""){
  3434. $("#fpid").empty();
  3435. $("#fpid").append("_$tag_____________$tag____");
  3436. for(var i = 0; i < data.length; i++){
  3437. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3438. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3439. }
  3440. }
  3441. },
  3442. "error" : function(msg){
  3443. },
  3444. "complete": function(){
  3445. layer.close(tip);
  3446. }
  3447. });
  3448. }
  3449. $("#fpid").change(function(){
  3450. var tip = layer.load(2);
  3451. var url = "getgyrkxx.do";
  3452. var sum_total=0;
  3453. $.ajax({
  3454. "url" : url,
  3455. "data" : {
  3456. "fpId" : $("#fpid").val()
  3457. },
  3458. "type" : "POST",
  3459. "dataType" : "json",
  3460. "async" : true,
  3461. "success" : function(data) {
  3462. $("#dataTable").html("");
  3463. if(data != null && data != ""){
  3464. var html = "";
  3465. for(var i = 0; i < data.length; i++){
  3466. var ID = data[i].id == null ? "" : data[i].id;
  3467. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3468. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3469. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3470. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3471. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3472. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3473. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3474. var NAME = data[i].name == null ? "" : data[i].name;
  3475. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3476. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3477. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3478. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3479. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3480. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3481. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3482. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3483. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3484. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3485. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3486. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3487. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3488. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3489. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3490. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3491. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3492. sum_total = sum_total + DPRC
  3493. var invoice_type_cn =null;
  3494. if (invoice_type =="00" ){
  3495. invoice_type_cn="销售发票";
  3496. }else if (invoice_type == "01") {
  3497. invoice_type_cn="更正(对冲)发票";
  3498. }else if (invoice_type == "02") {
  3499. invoice_type_cn="其它类型发票";
  3500. }
  3501. html += "_$ta";
  3502. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3503. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3504. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3505. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3506. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3507. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3508. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3509. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3510. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3511. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3512. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3513. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3514. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3515. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3516. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3517. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3518. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3519. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3520. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3521. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3522. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3523. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3524. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3525. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3526. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3527. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3528. html += "_$tag";
  3529. }
  3530. html += "_$ta";
  3531. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3532. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3533. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3534. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3535. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3536. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3537. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3538. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3539. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3540. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3541. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3542. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3543. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3544. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3545. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3546. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3547. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3548. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3549. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3550. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3551. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3552. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3553. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3554. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3555. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3556. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3557. html += "_$tag";
  3558. $("#dataTable").html(html);
  3559. }else {
  3560. $("#dataTable").html("");
  3561. }
  3562. },
  3563. "error" : function(msg){
  3564. },
  3565. "complete": function(){
  3566. layer.close(tip);
  3567. }
  3568. });
  3569. });
  3570. Date.prototype.Format = function (fmt) {
  3571. var o = {
  3572. "M+": this.getMonth() + 1, //月份
  3573. "d+": this.getDate(), //日
  3574. "h+": this.getHours(), //小时
  3575. "m+": this.getMinutes(), //分
  3576. "s+": this.getSeconds(), //秒
  3577. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3578. "S": this.getMilliseconds() //毫秒
  3579. };
  3580. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3581. for (var k in o)
  3582. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3583. return fmt;
  3584. }
  3585. $("#jrjc").change(function() {
  3586. if ($("#jrjc").prop('checked') == true){
  3587. $("#departmentId").removeAttr("disabled");
  3588. }else {
  3589. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3590. }
  3591. });
  3592. ----------------------------------- SOURCE END -------------------------------------
  3593. !STACK 0
  3594. java.lang.NullPointerException
  3595. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:53.420
  3596. !MESSAGE Exception occurred during problem detection:
  3597. ----------------------------------- SOURCE BEGIN -------------------------------------
  3598. (function(){WdatePicker();})();
  3599. (function(){WdatePicker();})();
  3600. (function(){Data.get();})();
  3601. (function(){Data.set();})();
  3602. (function(){search();})();
  3603. $(function(){
  3604. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3605. getfp();
  3606. });
  3607. var Data = {
  3608. "get" : function(){
  3609. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3610. var tip = layer.load(2);
  3611. var result="";
  3612. var url = "getgyxml.do";
  3613. $.ajax({
  3614. "url" : url,
  3615. "data" : {
  3616. "start_date" : $("#dateBegin").val(),
  3617. "end_date" : $("#dateEnd").val()
  3618. },
  3619. "type" : "POST",
  3620. "dataType" : "json",
  3621. "success" : function(data) {
  3622. if(data != null && data != ""){
  3623. if ( data.status =="success"){
  3624. getfp();
  3625. alert("获取成功!");
  3626. }else {
  3627. alert(data.status);
  3628. }
  3629. }else {
  3630. alert("获取失败!");
  3631. }
  3632. },
  3633. "complete": function(){
  3634. layer.close(tip);
  3635. }
  3636. });
  3637. }else {
  3638. alert("请选择日期!");
  3639. }
  3640. },
  3641. "set" : function(){
  3642. if ( $("#fpid option:selected").text() !=""){
  3643. var tip = layer.load(2);
  3644. var gitem = $("#form1").serialize();
  3645. var jrjc;
  3646. if ($("#jrjc").prop('checked') == true){
  3647. jrjc = $("#departmentId").val();
  3648. }else {
  3649. jrjc ='N'
  3650. }
  3651. var url = "saverk.do";
  3652. $.ajax({
  3653. "url" : url,
  3654. "data" : {
  3655. "gitem" : gitem,
  3656. "jrjc" : jrjc
  3657. },
  3658. "type" : "POST",
  3659. "dataType" : "json",
  3660. "async" : true,
  3661. "success" : function(data) {
  3662. if(data.status ="success"){
  3663. alert("入库成功!");
  3664. window.location.reload();
  3665. }else {
  3666. alert(msg);
  3667. }
  3668. },
  3669. "error": function(){
  3670. alert("确认失败!");
  3671. },
  3672. "complete": function(){
  3673. layer.close(tip);
  3674. }
  3675. });
  3676. }else {
  3677. alert("请选择发票!");
  3678. }
  3679. }
  3680. }
  3681. function getfp(){
  3682. var tip = layer.load(2);
  3683. var url = "getgyfp.do";
  3684. $.ajax({
  3685. "url" : url,
  3686. "type" : "POST",
  3687. "dataType" : "json",
  3688. "async" : true,
  3689. "success" : function(data) {
  3690. if(data != null && data != ""){
  3691. $("#fpid").empty();
  3692. $("#fpid").append("_$tag_____________$tag____");
  3693. for(var i = 0; i < data.length; i++){
  3694. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3695. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3696. }
  3697. }
  3698. },
  3699. "error" : function(msg){
  3700. },
  3701. "complete": function(){
  3702. layer.close(tip);
  3703. }
  3704. });
  3705. }
  3706. $("#fpid").change(function(){
  3707. var tip = layer.load(2);
  3708. var url = "getgyrkxx.do";
  3709. var sum_total=0;
  3710. $.ajax({
  3711. "url" : url,
  3712. "data" : {
  3713. "fpId" : $("#fpid").val()
  3714. },
  3715. "type" : "POST",
  3716. "dataType" : "json",
  3717. "async" : true,
  3718. "success" : function(data) {
  3719. $("#dataTable").html("");
  3720. if(data != null && data != ""){
  3721. var html = "";
  3722. for(var i = 0; i < data.length; i++){
  3723. var ID = data[i].id == null ? "" : data[i].id;
  3724. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  3725. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  3726. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  3727. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  3728. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  3729. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  3730. var GOODS = data[i].goods == null ? "" : data[i].goods;
  3731. var NAME = data[i].name == null ? "" : data[i].name;
  3732. var SPEC = data[i].spec == null ? "" : data[i].spec;
  3733. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  3734. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  3735. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  3736. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  3737. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  3738. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  3739. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  3740. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  3741. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  3742. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  3743. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  3744. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  3745. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  3746. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  3747. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  3748. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  3749. sum_total = sum_total + DPRC
  3750. var invoice_type_cn =null;
  3751. if (invoice_type =="00" ){
  3752. invoice_type_cn="销售发票";
  3753. }else if (invoice_type == "01") {
  3754. invoice_type_cn="更正(对冲)发票";
  3755. }else if (invoice_type == "02") {
  3756. invoice_type_cn="其它类型发票";
  3757. }
  3758. html += "_$ta";
  3759. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  3760. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3761. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3762. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3763. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3764. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  3765. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  3766. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3767. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3768. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  3769. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  3770. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3771. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3772. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3773. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3774. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3775. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3776. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3777. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3778. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3779. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3780. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3781. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3782. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3783. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3784. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3785. html += "_$tag";
  3786. }
  3787. html += "_$ta";
  3788. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3789. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3790. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3791. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3792. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3793. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3794. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3795. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3796. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3797. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3798. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3799. html += "_$tag_____________$tag__________________________________________________________________$tag";
  3800. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  3801. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  3802. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3803. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3804. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  3805. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3806. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3807. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  3808. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  3809. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  3810. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  3811. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  3812. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  3813. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  3814. html += "_$tag";
  3815. $("#dataTable").html(html);
  3816. }else {
  3817. $("#dataTable").html("");
  3818. }
  3819. },
  3820. "error" : function(msg){
  3821. },
  3822. "complete": function(){
  3823. layer.close(tip);
  3824. }
  3825. });
  3826. });
  3827. Date.prototype.Format = function (fmt) {
  3828. var o = {
  3829. "M+": this.getMonth() + 1, //月份
  3830. "d+": this.getDate(), //日
  3831. "h+": this.getHours(), //小时
  3832. "m+": this.getMinutes(), //分
  3833. "s+": this.getSeconds(), //秒
  3834. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  3835. "S": this.getMilliseconds() //毫秒
  3836. };
  3837. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  3838. for (var k in o)
  3839. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  3840. return fmt;
  3841. }
  3842. $("#jrjc").change(function() {
  3843. if ($("#jrjc").prop('checked') == true){
  3844. $("#departmentId").removeAttr("disabled");
  3845. }else {
  3846. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3847. }
  3848. });
  3849. ----------------------------------- SOURCE END -------------------------------------
  3850. !STACK 0
  3851. java.lang.NullPointerException
  3852. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:30:53.421
  3853. !MESSAGE java.lang.NullPointerException
  3854. !STACK 1
  3855. JavaScript Model Exception: java.lang.NullPointerException
  3856. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  3857. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  3858. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  3859. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  3860. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  3861. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  3862. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  3863. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  3864. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  3865. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  3866. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  3867. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  3868. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  3869. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  3870. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  3871. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  3872. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  3873. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  3874. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  3875. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  3876. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  3877. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  3878. Caused by: java.lang.NullPointerException
  3879. Caused by: java.lang.NullPointerException
  3880. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:53.421
  3881. !MESSAGE java.lang.NullPointerException
  3882. !STACK 0
  3883. java.lang.NullPointerException
  3884. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:53.820
  3885. !MESSAGE Exception occurred during problem detection:
  3886. ----------------------------------- SOURCE BEGIN -------------------------------------
  3887. (function(){WdatePicker();})();
  3888. (function(){WdatePicker();})();
  3889. (function(){Data.get();})();
  3890. (function(){Data.set();})();
  3891. (function(){search();})();
  3892. $(function(){
  3893. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  3894. getfp();
  3895. });
  3896. var Data = {
  3897. "get" : function(){
  3898. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  3899. var tip = layer.load(2);
  3900. var result="";
  3901. var url = "getgyxml.do";
  3902. $.ajax({
  3903. "url" : url,
  3904. "data" : {
  3905. "start_date" : $("#dateBegin").val(),
  3906. "end_date" : $("#dateEnd").val()
  3907. },
  3908. "type" : "POST",
  3909. "dataType" : "json",
  3910. "success" : function(data) {
  3911. if(data != null && data != ""){
  3912. if ( data.status =="success"){
  3913. getfp();
  3914. alert("获取成功!");
  3915. }else {
  3916. alert(data.status);
  3917. }
  3918. }else {
  3919. alert("获取失败!");
  3920. }
  3921. },
  3922. "complete": function(){
  3923. layer.close(tip);
  3924. }
  3925. });
  3926. }else {
  3927. alert("请选择日期!");
  3928. }
  3929. },
  3930. "set" : function(){
  3931. if ( $("#fpid option:selected").text() !=""){
  3932. var tip = layer.load(2);
  3933. var gitem = $("#form1").serialize();
  3934. var jrjc;
  3935. if ($("#jrjc").prop('checked') == true){
  3936. jrjc = $("#departmentId").val();
  3937. }else {
  3938. jrjc ='N'
  3939. }
  3940. var url = "saverk.do";
  3941. $.ajax({
  3942. "url" : url,
  3943. "data" : {
  3944. "gitem" : gitem,
  3945. "jrjc" : jrjc
  3946. },
  3947. "type" : "POST",
  3948. "dataType" : "json",
  3949. "async" : true,
  3950. "success" : function(data) {
  3951. if(data.status ="success"){
  3952. alert("入库成功!");
  3953. window.location.reload();
  3954. }else {
  3955. alert(msg);
  3956. }
  3957. },
  3958. "error": function(){
  3959. alert("确认失败!");
  3960. },
  3961. "complete": function(){
  3962. layer.close(tip);
  3963. }
  3964. });
  3965. }else {
  3966. alert("请选择发票!");
  3967. }
  3968. }
  3969. }
  3970. function getfp(){
  3971. var tip = layer.load(2);
  3972. var url = "getgyfp.do";
  3973. $.ajax({
  3974. "url" : url,
  3975. "type" : "POST",
  3976. "dataType" : "json",
  3977. "async" : true,
  3978. "success" : function(data) {
  3979. if(data != null && data != ""){
  3980. $("#fpid").empty();
  3981. $("#fpid").append("_$tag_____________$tag____");
  3982. for(var i = 0; i < data.length; i++){
  3983. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  3984. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  3985. }
  3986. }
  3987. },
  3988. "error" : function(msg){
  3989. },
  3990. "complete": function(){
  3991. layer.close(tip);
  3992. }
  3993. });
  3994. }
  3995. $("#fpid").change(function(){
  3996. var tip = layer.load(2);
  3997. var url = "getgyrkxx.do";
  3998. var sum_total=0;
  3999. $.ajax({
  4000. "url" : url,
  4001. "data" : {
  4002. "fpId" : $("#fpid").val()
  4003. },
  4004. "type" : "POST",
  4005. "dataType" : "json",
  4006. "async" : true,
  4007. "success" : function(data) {
  4008. $("#dataTable").html("");
  4009. if(data != null && data != ""){
  4010. var html = "";
  4011. for(var i = 0; i < data.length; i++){
  4012. var ID = data[i].id == null ? "" : data[i].id;
  4013. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4014. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4015. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4016. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4017. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4018. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4019. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4020. var NAME = data[i].name == null ? "" : data[i].name;
  4021. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4022. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4023. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4024. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4025. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4026. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4027. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4028. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4029. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4030. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4031. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4032. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4033. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4034. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4035. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4036. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4037. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4038. sum_total = sum_total + DPRC
  4039. var invoice_type_cn =null;
  4040. if (invoice_type =="00" ){
  4041. invoice_type_cn="销售发票";
  4042. }else if (invoice_type == "01") {
  4043. invoice_type_cn="更正(对冲)发票";
  4044. }else if (invoice_type == "02") {
  4045. invoice_type_cn="其它类型发票";
  4046. }
  4047. html += "_$ta";
  4048. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4049. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4050. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4051. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4052. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4053. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4054. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4055. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4056. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4057. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4058. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4059. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4060. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4061. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4062. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4063. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4064. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4065. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4066. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4067. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4068. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4069. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4070. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4071. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4072. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4073. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4074. html += "_$tag";
  4075. }
  4076. html += "_$ta";
  4077. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4078. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4079. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4080. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4081. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4082. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4083. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4084. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4085. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4086. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4087. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4088. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4089. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4090. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4091. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4092. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4093. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4094. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4095. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4096. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4097. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4098. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4099. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4100. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4101. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4102. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4103. html += "_$tag";
  4104. $("#dataTable").html(html);
  4105. }else {
  4106. $("#dataTable").html("");
  4107. }
  4108. },
  4109. "error" : function(msg){
  4110. },
  4111. "complete": function(){
  4112. layer.close(tip);
  4113. }
  4114. });
  4115. });
  4116. Date.prototype.Format = function (fmt) {
  4117. var o = {
  4118. "M+": this.getMonth() + 1, //月份
  4119. "d+": this.getDate(), //日
  4120. "h+": this.getHours(), //小时
  4121. "m+": this.getMinutes(), //分
  4122. "s+": this.getSeconds(), //秒
  4123. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4124. "S": this.getMilliseconds() //毫秒
  4125. };
  4126. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4127. for (var k in o)
  4128. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4129. return fmt;
  4130. }
  4131. $("#jrjc").change(function() {
  4132. if ($("#jrjc").prop('checked') == true){
  4133. $("#departmentId").removeAttr("disabled");
  4134. }else {
  4135. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4136. }
  4137. });
  4138. ----------------------------------- SOURCE END -------------------------------------
  4139. !STACK 0
  4140. java.lang.NullPointerException
  4141. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:53.820
  4142. !MESSAGE Error while processing working copy
  4143. !STACK 1
  4144. JavaScript Model Exception: java.lang.NullPointerException
  4145. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4146. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4147. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4148. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4149. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4150. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4151. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4152. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4153. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4154. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4155. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4156. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4157. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4158. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4159. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4160. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4161. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4162. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4163. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4164. Caused by: java.lang.NullPointerException
  4165. Caused by: java.lang.NullPointerException
  4166. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:53.821
  4167. !MESSAGE java.lang.NullPointerException
  4168. !STACK 0
  4169. java.lang.NullPointerException
  4170. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:54.781
  4171. !MESSAGE Exception occurred during problem detection:
  4172. ----------------------------------- SOURCE BEGIN -------------------------------------
  4173. (function(){WdatePicker();})();
  4174. (function(){WdatePicker();})();
  4175. (function(){Data.get();})();
  4176. (function(){Data.set();})();
  4177. (function(){search();})();
  4178. $(function(){
  4179. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4180. getfp();
  4181. });
  4182. var Data = {
  4183. "get" : function(){
  4184. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4185. var tip = layer.load(2);
  4186. var result="";
  4187. var url = "getgyxml.do";
  4188. $.ajax({
  4189. "url" : url,
  4190. "data" : {
  4191. "start_date" : $("#dateBegin").val(),
  4192. "end_date" : $("#dateEnd").val()
  4193. },
  4194. "type" : "POST",
  4195. "dataType" : "json",
  4196. "success" : function(data) {
  4197. if(data != null && data != ""){
  4198. if ( data.status =="success"){
  4199. getfp();
  4200. alert("获取成功!");
  4201. }else {
  4202. alert(data.status);
  4203. }
  4204. }else {
  4205. alert("获取失败!");
  4206. }
  4207. },
  4208. "complete": function(){
  4209. layer.close(tip);
  4210. }
  4211. });
  4212. }else {
  4213. alert("请选择日期!");
  4214. }
  4215. },
  4216. "set" : function(){
  4217. if ( $("#fpid option:selected").text() !=""){
  4218. var tip = layer.load(2);
  4219. var gitem = $("#form1").serialize();
  4220. var jrjc;
  4221. if ($("#jrjc").prop('checked') == true){
  4222. jrjc = $("#departmentId").val();
  4223. }else {
  4224. jrjc ='N'
  4225. }
  4226. var url = "saverk.do";
  4227. $.ajax({
  4228. "url" : url,
  4229. "data" : {
  4230. "gitem" : gitem,
  4231. "jrjc" : jrjc
  4232. },
  4233. "type" : "POST",
  4234. "dataType" : "json",
  4235. "async" : true,
  4236. "success" : function(data) {
  4237. if(data.status ="success"){
  4238. alert("入库成功!");
  4239. window.location.reload();
  4240. }else {
  4241. alert(msg);
  4242. }
  4243. },
  4244. "error": function(){
  4245. alert("确认失败!");
  4246. },
  4247. "complete": function(){
  4248. layer.close(tip);
  4249. }
  4250. });
  4251. }else {
  4252. alert("请选择发票!");
  4253. }
  4254. }
  4255. }
  4256. function getfp(){
  4257. var tip = layer.load(2);
  4258. var url = "getgyfp.do";
  4259. $.ajax({
  4260. "url" : url,
  4261. "type" : "POST",
  4262. "dataType" : "json",
  4263. "async" : true,
  4264. "success" : function(data) {
  4265. if(data != null && data != ""){
  4266. $("#fpid").empty();
  4267. $("#fpid").append("_$tag_____________$tag____");
  4268. for(var i = 0; i < data.length; i++){
  4269. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4270. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4271. }
  4272. }
  4273. },
  4274. "error" : function(msg){
  4275. },
  4276. "complete": function(){
  4277. layer.close(tip);
  4278. }
  4279. });
  4280. }
  4281. $("#fpid").change(function(){
  4282. var tip = layer.load(2);
  4283. var url = "getgyrkxx.do";
  4284. var sum_total=0;
  4285. $.ajax({
  4286. "url" : url,
  4287. "data" : {
  4288. "fpId" : $("#fpid").val()
  4289. },
  4290. "type" : "POST",
  4291. "dataType" : "json",
  4292. "async" : true,
  4293. "success" : function(data) {
  4294. $("#dataTable").html("");
  4295. if(data != null && data != ""){
  4296. var html = "";
  4297. for(var i = 0; i < data.length; i++){
  4298. var ID = data[i].id == null ? "" : data[i].id;
  4299. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4300. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4301. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4302. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4303. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4304. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4305. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4306. var NAME = data[i].name == null ? "" : data[i].name;
  4307. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4308. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4309. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4310. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4311. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4312. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4313. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4314. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4315. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4316. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4317. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4318. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4319. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4320. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4321. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4322. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4323. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4324. sum_total = sum_total + DPRC
  4325. var invoice_type_cn =null;
  4326. if (invoice_type =="00" ){
  4327. invoice_type_cn="销售发票";
  4328. }else if (invoice_type == "01") {
  4329. invoice_type_cn="更正(对冲)发票";
  4330. }else if (invoice_type == "02") {
  4331. invoice_type_cn="其它类型发票";
  4332. }
  4333. html += "_$ta";
  4334. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4335. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4336. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4337. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4338. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4339. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4340. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4341. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4342. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4343. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4344. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4345. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4346. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4347. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4348. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4349. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4350. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4351. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4352. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4353. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4354. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4355. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4356. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4357. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4358. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4359. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4360. html += "_$tag";
  4361. }
  4362. html += "_$ta";
  4363. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4364. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4365. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4366. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4367. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4368. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4369. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4370. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4371. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4372. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4373. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4374. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4375. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4376. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4377. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4378. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4379. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4380. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4381. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4382. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4383. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4384. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4385. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4386. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4387. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4388. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4389. html += "_$tag";
  4390. $("#dataTable").html(html);
  4391. }else {
  4392. $("#dataTable").html("");
  4393. }
  4394. },
  4395. "error" : function(msg){
  4396. },
  4397. "complete": function(){
  4398. layer.close(tip);
  4399. }
  4400. });
  4401. });
  4402. Date.prototype.Format = function (fmt) {
  4403. var o = {
  4404. "M+": this.getMonth() + 1, //月份
  4405. "d+": this.getDate(), //日
  4406. "h+": this.getHours(), //小时
  4407. "m+": this.getMinutes(), //分
  4408. "s+": this.getSeconds(), //秒
  4409. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4410. "S": this.getMilliseconds() //毫秒
  4411. };
  4412. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4413. for (var k in o)
  4414. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4415. return fmt;
  4416. }
  4417. $("#jrjc").change(function() {
  4418. if ($("#jrjc").prop('checked') == true){
  4419. $("#departmentId").removeAttr("disabled");
  4420. }else {
  4421. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4422. }
  4423. });
  4424. ----------------------------------- SOURCE END -------------------------------------
  4425. !STACK 0
  4426. java.lang.NullPointerException
  4427. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:57.193
  4428. !MESSAGE Exception occurred during problem detection:
  4429. ----------------------------------- SOURCE BEGIN -------------------------------------
  4430. (function(){WdatePicker();})();
  4431. (function(){WdatePicker();})();
  4432. (function(){Data.get();})();
  4433. (function(){Data.set();})();
  4434. (function(){search();})();
  4435. $(function(){
  4436. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4437. getfp();
  4438. });
  4439. var Data = {
  4440. "get" : function(){
  4441. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4442. var tip = layer.load(2);
  4443. var result="";
  4444. var url = "getgyxml.do";
  4445. $.ajax({
  4446. "url" : url,
  4447. "data" : {
  4448. "start_date" : $("#dateBegin").val(),
  4449. "end_date" : $("#dateEnd").val()
  4450. },
  4451. "type" : "POST",
  4452. "dataType" : "json",
  4453. "success" : function(data) {
  4454. if(data != null && data != ""){
  4455. if ( data.status =="success"){
  4456. getfp();
  4457. alert("获取成功!");
  4458. }else {
  4459. alert(data.status);
  4460. }
  4461. }else {
  4462. alert("获取失败!");
  4463. }
  4464. },
  4465. "complete": function(){
  4466. layer.close(tip);
  4467. }
  4468. });
  4469. }else {
  4470. alert("请选择日期!");
  4471. }
  4472. },
  4473. "set" : function(){
  4474. if ( $("#fpid option:selected").text() !=""){
  4475. var tip = layer.load(2);
  4476. var gitem = $("#form1").serialize();
  4477. var jrjc;
  4478. if ($("#jrjc").prop('checked') == true){
  4479. jrjc = $("#departmentId").val();
  4480. }else {
  4481. jrjc ='N'
  4482. }
  4483. var url = "saverk.do";
  4484. $.ajax({
  4485. "url" : url,
  4486. "data" : {
  4487. "gitem" : gitem,
  4488. "jrjc" : jrjc
  4489. },
  4490. "type" : "POST",
  4491. "dataType" : "json",
  4492. "async" : true,
  4493. "success" : function(data) {
  4494. if(data.status ="success"){
  4495. alert("入库成功!");
  4496. window.location.reload();
  4497. }else {
  4498. alert(msg);
  4499. }
  4500. },
  4501. "error": function(){
  4502. alert("确认失败!");
  4503. },
  4504. "complete": function(){
  4505. layer.close(tip);
  4506. }
  4507. });
  4508. }else {
  4509. alert("请选择发票!");
  4510. }
  4511. }
  4512. }
  4513. function getfp(){
  4514. var tip = layer.load(2);
  4515. var url = "getgyfp.do";
  4516. $.ajax({
  4517. "url" : url,
  4518. "type" : "POST",
  4519. "dataType" : "json",
  4520. "async" : true,
  4521. "success" : function(data) {
  4522. if(data != null && data != ""){
  4523. $("#fpid").empty();
  4524. $("#fpid").append("_$tag_____________$tag____");
  4525. for(var i = 0; i < data.length; i++){
  4526. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4527. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4528. }
  4529. }
  4530. },
  4531. "error" : function(msg){
  4532. },
  4533. "complete": function(){
  4534. layer.close(tip);
  4535. }
  4536. });
  4537. }
  4538. $("#fpid").change(function(){
  4539. var tip = layer.load(2);
  4540. var url = "getgyrkxx.do";
  4541. var sum_total=0;
  4542. $.ajax({
  4543. "url" : url,
  4544. "data" : {
  4545. "fpId" : $("#fpid").val()
  4546. },
  4547. "type" : "POST",
  4548. "dataType" : "json",
  4549. "async" : true,
  4550. "success" : function(data) {
  4551. $("#dataTable").html("");
  4552. if(data != null && data != ""){
  4553. var html = "";
  4554. for(var i = 0; i < data.length; i++){
  4555. var ID = data[i].id == null ? "" : data[i].id;
  4556. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4557. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4558. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4559. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4560. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4561. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4562. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4563. var NAME = data[i].name == null ? "" : data[i].name;
  4564. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4565. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4566. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4567. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4568. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4569. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4570. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4571. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4572. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4573. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4574. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4575. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4576. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4577. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4578. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4579. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4580. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4581. sum_total = sum_total + DPRC
  4582. var invoice_type_cn =null;
  4583. if (invoice_type =="00" ){
  4584. invoice_type_cn="销售发票";
  4585. }else if (invoice_type == "01") {
  4586. invoice_type_cn="更正(对冲)发票";
  4587. }else if (invoice_type == "02") {
  4588. invoice_type_cn="其它类型发票";
  4589. }
  4590. html += "_$ta";
  4591. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4592. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4593. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4594. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4595. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4596. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4597. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4598. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4599. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4600. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4601. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4602. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4603. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4604. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4605. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4606. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4607. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4608. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4609. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4610. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4611. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4612. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4613. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4614. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4615. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4616. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4617. html += "_$tag";
  4618. }
  4619. html += "_$ta";
  4620. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4621. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4622. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4623. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4624. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4625. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4626. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4627. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4628. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4629. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4630. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4631. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4632. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4633. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4634. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4635. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4636. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4637. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4638. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4639. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4640. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4641. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4642. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4643. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4644. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4645. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4646. html += "_$tag";
  4647. $("#dataTable").html(html);
  4648. }else {
  4649. $("#dataTable").html("");
  4650. }
  4651. },
  4652. "error" : function(msg){
  4653. },
  4654. "complete": function(){
  4655. layer.close(tip);
  4656. }
  4657. });
  4658. });
  4659. Date.prototype.Format = function (fmt) {
  4660. var o = {
  4661. "M+": this.getMonth() + 1, //月份
  4662. "d+": this.getDate(), //日
  4663. "h+": this.getHours(), //小时
  4664. "m+": this.getMinutes(), //分
  4665. "s+": this.getSeconds(), //秒
  4666. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4667. "S": this.getMilliseconds() //毫秒
  4668. };
  4669. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4670. for (var k in o)
  4671. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4672. return fmt;
  4673. }
  4674. $("#jrjc").change(function() {
  4675. if ($("#jrjc").prop('checked') == true){
  4676. $("#departmentId").removeAttr("disabled");
  4677. }else {
  4678. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4679. }
  4680. });
  4681. ----------------------------------- SOURCE END -------------------------------------
  4682. !STACK 0
  4683. java.lang.NullPointerException
  4684. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:57.194
  4685. !MESSAGE Error while processing working copy
  4686. !STACK 1
  4687. JavaScript Model Exception: java.lang.NullPointerException
  4688. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  4689. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  4690. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  4691. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  4692. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  4693. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  4694. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  4695. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  4696. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  4697. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  4698. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  4699. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  4700. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  4701. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  4702. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  4703. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  4704. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  4705. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  4706. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  4707. Caused by: java.lang.NullPointerException
  4708. Caused by: java.lang.NullPointerException
  4709. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:57.194
  4710. !MESSAGE java.lang.NullPointerException
  4711. !STACK 0
  4712. java.lang.NullPointerException
  4713. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:58.255
  4714. !MESSAGE Exception occurred during problem detection:
  4715. ----------------------------------- SOURCE BEGIN -------------------------------------
  4716. (function(){WdatePicker();})();
  4717. (function(){WdatePicker();})();
  4718. (function(){Data.get();})();
  4719. (function(){Data.set();})();
  4720. (function(){search();})();
  4721. $(function(){
  4722. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4723. getfp();
  4724. });
  4725. var Data = {
  4726. "get" : function(){
  4727. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4728. var tip = layer.load(2);
  4729. var result="";
  4730. var url = "getgyxml.do";
  4731. $.ajax({
  4732. "url" : url,
  4733. "data" : {
  4734. "start_date" : $("#dateBegin").val(),
  4735. "end_date" : $("#dateEnd").val()
  4736. },
  4737. "type" : "POST",
  4738. "dataType" : "json",
  4739. "success" : function(data) {
  4740. if(data != null && data != ""){
  4741. if ( data.status =="success"){
  4742. getfp();
  4743. alert("获取成功!");
  4744. }else {
  4745. alert(data.status);
  4746. }
  4747. }else {
  4748. alert("获取失败!");
  4749. }
  4750. },
  4751. "complete": function(){
  4752. layer.close(tip);
  4753. }
  4754. });
  4755. }else {
  4756. alert("请选择日期!");
  4757. }
  4758. },
  4759. "set" : function(){
  4760. if ( $("#fpid option:selected").text() !=""){
  4761. var tip = layer.load(2);
  4762. var gitem = $("#form1").serialize();
  4763. var jrjc;
  4764. if ($("#jrjc").prop('checked') == true){
  4765. jrjc = $("#departmentId").val();
  4766. }else {
  4767. jrjc ='N'
  4768. }
  4769. var url = "saverk.do";
  4770. $.ajax({
  4771. "url" : url,
  4772. "data" : {
  4773. "gitem" : gitem,
  4774. "jrjc" : jrjc
  4775. },
  4776. "type" : "POST",
  4777. "dataType" : "json",
  4778. "async" : true,
  4779. "success" : function(data) {
  4780. if(data.status ="success"){
  4781. alert("入库成功!");
  4782. window.location.reload();
  4783. }else {
  4784. alert(msg);
  4785. }
  4786. },
  4787. "error": function(){
  4788. alert("确认失败!");
  4789. },
  4790. "complete": function(){
  4791. layer.close(tip);
  4792. }
  4793. });
  4794. }else {
  4795. alert("请选择发票!");
  4796. }
  4797. }
  4798. }
  4799. function getfp(){
  4800. var tip = layer.load(2);
  4801. var url = "getgyfp.do";
  4802. $.ajax({
  4803. "url" : url,
  4804. "type" : "POST",
  4805. "dataType" : "json",
  4806. "async" : true,
  4807. "success" : function(data) {
  4808. if(data != null && data != ""){
  4809. $("#fpid").empty();
  4810. $("#fpid").append("_$tag_____________$tag____");
  4811. for(var i = 0; i < data.length; i++){
  4812. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  4813. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  4814. }
  4815. }
  4816. },
  4817. "error" : function(msg){
  4818. },
  4819. "complete": function(){
  4820. layer.close(tip);
  4821. }
  4822. });
  4823. }
  4824. $("#fpid").change(function(){
  4825. var tip = layer.load(2);
  4826. var url = "getgyrkxx.do";
  4827. var sum_total=0;
  4828. $.ajax({
  4829. "url" : url,
  4830. "data" : {
  4831. "fpId" : $("#fpid").val()
  4832. },
  4833. "type" : "POST",
  4834. "dataType" : "json",
  4835. "async" : true,
  4836. "success" : function(data) {
  4837. $("#dataTable").html("");
  4838. if(data != null && data != ""){
  4839. var html = "";
  4840. for(var i = 0; i < data.length; i++){
  4841. var ID = data[i].id == null ? "" : data[i].id;
  4842. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  4843. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  4844. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  4845. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  4846. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  4847. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  4848. var GOODS = data[i].goods == null ? "" : data[i].goods;
  4849. var NAME = data[i].name == null ? "" : data[i].name;
  4850. var SPEC = data[i].spec == null ? "" : data[i].spec;
  4851. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  4852. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  4853. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  4854. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  4855. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  4856. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  4857. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  4858. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  4859. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  4860. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  4861. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  4862. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  4863. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  4864. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  4865. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  4866. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  4867. sum_total = sum_total + DPRC
  4868. var invoice_type_cn =null;
  4869. if (invoice_type =="00" ){
  4870. invoice_type_cn="销售发票";
  4871. }else if (invoice_type == "01") {
  4872. invoice_type_cn="更正(对冲)发票";
  4873. }else if (invoice_type == "02") {
  4874. invoice_type_cn="其它类型发票";
  4875. }
  4876. html += "_$ta";
  4877. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  4878. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4879. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4880. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4881. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4882. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  4883. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  4884. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4885. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4886. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  4887. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  4888. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4889. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4890. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4891. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4892. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4893. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4894. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4895. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4896. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4897. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4898. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4899. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4900. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4901. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4902. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4903. html += "_$tag";
  4904. }
  4905. html += "_$ta";
  4906. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4907. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4908. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4909. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4910. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4911. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4912. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4913. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4914. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4915. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4916. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4917. html += "_$tag_____________$tag__________________________________________________________________$tag";
  4918. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  4919. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  4920. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4921. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4922. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  4923. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4924. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4925. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  4926. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  4927. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  4928. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  4929. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  4930. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  4931. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  4932. html += "_$tag";
  4933. $("#dataTable").html(html);
  4934. }else {
  4935. $("#dataTable").html("");
  4936. }
  4937. },
  4938. "error" : function(msg){
  4939. },
  4940. "complete": function(){
  4941. layer.close(tip);
  4942. }
  4943. });
  4944. });
  4945. Date.prototype.Format = function (fmt) {
  4946. var o = {
  4947. "M+": this.getMonth() + 1, //月份
  4948. "d+": this.getDate(), //日
  4949. "h+": this.getHours(), //小时
  4950. "m+": this.getMinutes(), //分
  4951. "s+": this.getSeconds(), //秒
  4952. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  4953. "S": this.getMilliseconds() //毫秒
  4954. };
  4955. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  4956. for (var k in o)
  4957. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  4958. return fmt;
  4959. }
  4960. $("#jrjc").change(function() {
  4961. if ($("#jrjc").prop('checked') == true){
  4962. $("#departmentId").removeAttr("disabled");
  4963. }else {
  4964. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4965. }
  4966. });
  4967. ----------------------------------- SOURCE END -------------------------------------
  4968. !STACK 0
  4969. java.lang.NullPointerException
  4970. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:58.967
  4971. !MESSAGE Exception occurred during problem detection:
  4972. ----------------------------------- SOURCE BEGIN -------------------------------------
  4973. (function(){WdatePicker();})();
  4974. (function(){WdatePicker();})();
  4975. (function(){Data.get();})();
  4976. (function(){Data.set();})();
  4977. (function(){search();})();
  4978. $(function(){
  4979. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  4980. getfp();
  4981. });
  4982. var Data = {
  4983. "get" : function(){
  4984. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  4985. var tip = layer.load(2);
  4986. var result="";
  4987. var url = "getgyxml.do";
  4988. $.ajax({
  4989. "url" : url,
  4990. "data" : {
  4991. "start_date" : $("#dateBegin").val(),
  4992. "end_date" : $("#dateEnd").val()
  4993. },
  4994. "type" : "POST",
  4995. "dataType" : "json",
  4996. "success" : function(data) {
  4997. if(data != null && data != ""){
  4998. if ( data.status =="success"){
  4999. getfp();
  5000. alert("获取成功!");
  5001. }else {
  5002. alert(data.status);
  5003. }
  5004. }else {
  5005. alert("获取失败!");
  5006. }
  5007. },
  5008. "complete": function(){
  5009. layer.close(tip);
  5010. }
  5011. });
  5012. }else {
  5013. alert("请选择日期!");
  5014. }
  5015. },
  5016. "set" : function(){
  5017. if ( $("#fpid option:selected").text() !=""){
  5018. var tip = layer.load(2);
  5019. var gitem = $("#form1").serialize();
  5020. var jrjc;
  5021. if ($("#jrjc").prop('checked') == true){
  5022. jrjc = $("#departmentId").val();
  5023. }else {
  5024. jrjc ='N'
  5025. }
  5026. var url = "saverk.do";
  5027. $.ajax({
  5028. "url" : url,
  5029. "data" : {
  5030. "gitem" : gitem,
  5031. "jrjc" : jrjc
  5032. },
  5033. "type" : "POST",
  5034. "dataType" : "json",
  5035. "async" : true,
  5036. "success" : function(data) {
  5037. if(data.status ="success"){
  5038. alert("入库成功!");
  5039. window.location.reload();
  5040. }else {
  5041. alert(msg);
  5042. }
  5043. },
  5044. "error": function(){
  5045. alert("确认失败!");
  5046. },
  5047. "complete": function(){
  5048. layer.close(tip);
  5049. }
  5050. });
  5051. }else {
  5052. alert("请选择发票!");
  5053. }
  5054. }
  5055. }
  5056. function getfp(){
  5057. var tip = layer.load(2);
  5058. var url = "getgyfp.do";
  5059. $.ajax({
  5060. "url" : url,
  5061. "type" : "POST",
  5062. "dataType" : "json",
  5063. "async" : true,
  5064. "success" : function(data) {
  5065. if(data != null && data != ""){
  5066. $("#fpid").empty();
  5067. $("#fpid").append("_$tag_____________$tag____");
  5068. for(var i = 0; i < data.length; i++){
  5069. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5070. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5071. }
  5072. }
  5073. },
  5074. "error" : function(msg){
  5075. },
  5076. "complete": function(){
  5077. layer.close(tip);
  5078. }
  5079. });
  5080. }
  5081. $("#fpid").change(function(){
  5082. var tip = layer.load(2);
  5083. var url = "getgyrkxx.do";
  5084. var sum_total=0;
  5085. $.ajax({
  5086. "url" : url,
  5087. "data" : {
  5088. "fpId" : $("#fpid").val()
  5089. },
  5090. "type" : "POST",
  5091. "dataType" : "json",
  5092. "async" : true,
  5093. "success" : function(data) {
  5094. $("#dataTable").html("");
  5095. if(data != null && data != ""){
  5096. var html = "";
  5097. for(var i = 0; i < data.length; i++){
  5098. var ID = data[i].id == null ? "" : data[i].id;
  5099. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5100. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5101. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5102. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5103. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5104. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5105. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5106. var NAME = data[i].name == null ? "" : data[i].name;
  5107. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5108. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5109. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5110. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5111. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5112. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5113. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5114. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5115. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5116. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5117. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5118. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5119. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5120. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5121. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5122. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5123. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5124. sum_total = sum_total + DPRC
  5125. var invoice_type_cn =null;
  5126. if (invoice_type =="00" ){
  5127. invoice_type_cn="销售发票";
  5128. }else if (invoice_type == "01") {
  5129. invoice_type_cn="更正(对冲)发票";
  5130. }else if (invoice_type == "02") {
  5131. invoice_type_cn="其它类型发票";
  5132. }
  5133. html += "_$ta";
  5134. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5135. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5136. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5137. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5138. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5139. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5140. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5141. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5142. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5143. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5144. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5145. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5146. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5147. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5148. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5149. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5150. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5151. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5152. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5153. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5154. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5155. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5156. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5157. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5158. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5159. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5160. html += "_$tag";
  5161. }
  5162. html += "_$ta";
  5163. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5164. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5165. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5166. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5167. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5168. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5169. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5170. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5171. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5172. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5173. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5174. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5175. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5176. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5177. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5178. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5179. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5180. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5181. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5182. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5183. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5184. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5185. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5186. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5187. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5188. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5189. html += "_$tag";
  5190. $("#dataTable").html(html);
  5191. }else {
  5192. $("#dataTable").html("");
  5193. }
  5194. },
  5195. "error" : function(msg){
  5196. },
  5197. "complete": function(){
  5198. layer.close(tip);
  5199. }
  5200. });
  5201. });
  5202. Date.prototype.Format = function (fmt) {
  5203. var o = {
  5204. "M+": this.getMonth() + 1, //月份
  5205. "d+": this.getDate(), //日
  5206. "h+": this.getHours(), //小时
  5207. "m+": this.getMinutes(), //分
  5208. "s+": this.getSeconds(), //秒
  5209. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5210. "S": this.getMilliseconds() //毫秒
  5211. };
  5212. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5213. for (var k in o)
  5214. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5215. return fmt;
  5216. }
  5217. $("#jrjc").change(function() {
  5218. if ($("#jrjc").prop('checked') == true){
  5219. $("#departmentId").removeAttr("disabled");
  5220. }else {
  5221. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5222. }
  5223. });
  5224. ----------------------------------- SOURCE END -------------------------------------
  5225. !STACK 0
  5226. java.lang.NullPointerException
  5227. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:30:58.967
  5228. !MESSAGE Error while processing working copy
  5229. !STACK 1
  5230. JavaScript Model Exception: java.lang.NullPointerException
  5231. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5232. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5233. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5234. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5235. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5236. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5237. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5238. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5239. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5240. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5241. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5242. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5243. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5244. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5245. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5246. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5247. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5248. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5249. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5250. Caused by: java.lang.NullPointerException
  5251. Caused by: java.lang.NullPointerException
  5252. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:30:58.967
  5253. !MESSAGE java.lang.NullPointerException
  5254. !STACK 0
  5255. java.lang.NullPointerException
  5256. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:00.009
  5257. !MESSAGE Exception occurred during problem detection:
  5258. ----------------------------------- SOURCE BEGIN -------------------------------------
  5259. (function(){WdatePicker();})();
  5260. (function(){WdatePicker();})();
  5261. (function(){Data.get();})();
  5262. (function(){Data.set();})();
  5263. (function(){search();})();
  5264. $(function(){
  5265. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5266. getfp();
  5267. });
  5268. var Data = {
  5269. "get" : function(){
  5270. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5271. var tip = layer.load(2);
  5272. var result="";
  5273. var url = "getgyxml.do";
  5274. $.ajax({
  5275. "url" : url,
  5276. "data" : {
  5277. "start_date" : $("#dateBegin").val(),
  5278. "end_date" : $("#dateEnd").val()
  5279. },
  5280. "type" : "POST",
  5281. "dataType" : "json",
  5282. "success" : function(data) {
  5283. if(data != null && data != ""){
  5284. if ( data.status =="success"){
  5285. getfp();
  5286. alert("获取成功!");
  5287. }else {
  5288. alert(data.status);
  5289. }
  5290. }else {
  5291. alert("获取失败!");
  5292. }
  5293. },
  5294. "complete": function(){
  5295. layer.close(tip);
  5296. }
  5297. });
  5298. }else {
  5299. alert("请选择日期!");
  5300. }
  5301. },
  5302. "set" : function(){
  5303. if ( $("#fpid option:selected").text() !=""){
  5304. var tip = layer.load(2);
  5305. var gitem = $("#form1").serialize();
  5306. var jrjc;
  5307. if ($("#jrjc").prop('checked') == true){
  5308. jrjc = $("#departmentId").val();
  5309. }else {
  5310. jrjc ='N'
  5311. }
  5312. var url = "saverk.do";
  5313. $.ajax({
  5314. "url" : url,
  5315. "data" : {
  5316. "gitem" : gitem,
  5317. "jrjc" : jrjc
  5318. },
  5319. "type" : "POST",
  5320. "dataType" : "json",
  5321. "async" : true,
  5322. "success" : function(data) {
  5323. if(data.status ="success"){
  5324. alert("入库成功!");
  5325. window.location.reload();
  5326. }else {
  5327. alert(msg);
  5328. }
  5329. },
  5330. "error": function(){
  5331. alert("确认失败!");
  5332. },
  5333. "complete": function(){
  5334. layer.close(tip);
  5335. }
  5336. });
  5337. }else {
  5338. alert("请选择发票!");
  5339. }
  5340. }
  5341. }
  5342. function getfp(){
  5343. var tip = layer.load(2);
  5344. var url = "getgyfp.do";
  5345. $.ajax({
  5346. "url" : url,
  5347. "type" : "POST",
  5348. "dataType" : "json",
  5349. "async" : true,
  5350. "success" : function(data) {
  5351. if(data != null && data != ""){
  5352. $("#fpid").empty();
  5353. $("#fpid").append("_$tag_____________$tag____");
  5354. for(var i = 0; i < data.length; i++){
  5355. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5356. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5357. }
  5358. }
  5359. },
  5360. "error" : function(msg){
  5361. },
  5362. "complete": function(){
  5363. layer.close(tip);
  5364. }
  5365. });
  5366. }
  5367. $("#fpid").change(function(){
  5368. var tip = layer.load(2);
  5369. var url = "getgyrkxx.do";
  5370. var sum_total=0;
  5371. $.ajax({
  5372. "url" : url,
  5373. "data" : {
  5374. "fpId" : $("#fpid").val()
  5375. },
  5376. "type" : "POST",
  5377. "dataType" : "json",
  5378. "async" : true,
  5379. "success" : function(data) {
  5380. $("#dataTable").html("");
  5381. if(data != null && data != ""){
  5382. var html = "";
  5383. for(var i = 0; i < data.length; i++){
  5384. var ID = data[i].id == null ? "" : data[i].id;
  5385. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5386. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5387. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5388. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5389. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5390. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5391. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5392. var NAME = data[i].name == null ? "" : data[i].name;
  5393. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5394. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5395. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5396. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5397. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5398. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5399. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5400. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5401. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5402. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5403. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5404. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5405. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5406. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5407. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5408. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5409. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5410. sum_total = sum_total + DPRC
  5411. var invoice_type_cn =null;
  5412. if (invoice_type =="00" ){
  5413. invoice_type_cn="销售发票";
  5414. }else if (invoice_type == "01") {
  5415. invoice_type_cn="更正(对冲)发票";
  5416. }else if (invoice_type == "02") {
  5417. invoice_type_cn="其它类型发票";
  5418. }
  5419. html += "_$ta";
  5420. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5421. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5422. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5423. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5424. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5425. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5426. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5427. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5428. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5429. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5430. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5431. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5432. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5433. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5434. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5435. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5436. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5437. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5438. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5439. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5440. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5441. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5442. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5443. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5444. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5445. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5446. html += "_$tag";
  5447. }
  5448. html += "_$ta";
  5449. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5450. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5451. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5452. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5453. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5454. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5455. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5456. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5457. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5458. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5459. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5460. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5461. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5462. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5463. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5464. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5465. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5466. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5467. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5468. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5469. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5470. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5471. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5472. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5473. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5474. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5475. html += "_$tag";
  5476. $("#dataTable").html(html);
  5477. }else {
  5478. $("#dataTable").html("");
  5479. }
  5480. },
  5481. "error" : function(msg){
  5482. },
  5483. "complete": function(){
  5484. layer.close(tip);
  5485. }
  5486. });
  5487. });
  5488. Date.prototype.Format = function (fmt) {
  5489. var o = {
  5490. "M+": this.getMonth() + 1, //月份
  5491. "d+": this.getDate(), //日
  5492. "h+": this.getHours(), //小时
  5493. "m+": this.getMinutes(), //分
  5494. "s+": this.getSeconds(), //秒
  5495. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5496. "S": this.getMilliseconds() //毫秒
  5497. };
  5498. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5499. for (var k in o)
  5500. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5501. return fmt;
  5502. }
  5503. $("#jrjc").change(function() {
  5504. if ($("#jrjc").prop('checked') == true){
  5505. $("#departmentId").removeAttr("disabled");
  5506. }else {
  5507. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5508. }
  5509. });
  5510. ----------------------------------- SOURCE END -------------------------------------
  5511. !STACK 0
  5512. java.lang.NullPointerException
  5513. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:02.078
  5514. !MESSAGE Exception occurred during problem detection:
  5515. ----------------------------------- SOURCE BEGIN -------------------------------------
  5516. (function(){WdatePicker();})();
  5517. (function(){WdatePicker();})();
  5518. (function(){Data.get();})();
  5519. (function(){Data.set();})();
  5520. (function(){search();})();
  5521. $(function(){
  5522. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5523. getfp();
  5524. });
  5525. var Data = {
  5526. "get" : function(){
  5527. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5528. var tip = layer.load(2);
  5529. var result="";
  5530. var url = "getgyxml.do";
  5531. $.ajax({
  5532. "url" : url,
  5533. "data" : {
  5534. "start_date" : $("#dateBegin").val(),
  5535. "end_date" : $("#dateEnd").val()
  5536. },
  5537. "type" : "POST",
  5538. "dataType" : "json",
  5539. "success" : function(data) {
  5540. if(data != null && data != ""){
  5541. if ( data.status =="success"){
  5542. getfp();
  5543. alert("获取成功!");
  5544. }else {
  5545. alert(data.status);
  5546. }
  5547. }else {
  5548. alert("获取失败!");
  5549. }
  5550. },
  5551. "complete": function(){
  5552. layer.close(tip);
  5553. }
  5554. });
  5555. }else {
  5556. alert("请选择日期!");
  5557. }
  5558. },
  5559. "set" : function(){
  5560. if ( $("#fpid option:selected").text() !=""){
  5561. var tip = layer.load(2);
  5562. var gitem = $("#form1").serialize();
  5563. var jrjc;
  5564. if ($("#jrjc").prop('checked') == true){
  5565. jrjc = $("#departmentId").val();
  5566. }else {
  5567. jrjc ='N'
  5568. }
  5569. var url = "saverk.do";
  5570. $.ajax({
  5571. "url" : url,
  5572. "data" : {
  5573. "gitem" : gitem,
  5574. "jrjc" : jrjc
  5575. },
  5576. "type" : "POST",
  5577. "dataType" : "json",
  5578. "async" : true,
  5579. "success" : function(data) {
  5580. if(data.status ="success"){
  5581. alert("入库成功!");
  5582. window.location.reload();
  5583. }else {
  5584. alert(msg);
  5585. }
  5586. },
  5587. "error": function(){
  5588. alert("确认失败!");
  5589. },
  5590. "complete": function(){
  5591. layer.close(tip);
  5592. }
  5593. });
  5594. }else {
  5595. alert("请选择发票!");
  5596. }
  5597. }
  5598. }
  5599. function getfp(){
  5600. var tip = layer.load(2);
  5601. var url = "getgyfp.do";
  5602. $.ajax({
  5603. "url" : url,
  5604. "type" : "POST",
  5605. "dataType" : "json",
  5606. "async" : true,
  5607. "success" : function(data) {
  5608. if(data != null && data != ""){
  5609. $("#fpid").empty();
  5610. $("#fpid").append("_$tag_____________$tag____");
  5611. for(var i = 0; i < data.length; i++){
  5612. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5613. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5614. }
  5615. }
  5616. },
  5617. "error" : function(msg){
  5618. },
  5619. "complete": function(){
  5620. layer.close(tip);
  5621. }
  5622. });
  5623. }
  5624. $("#fpid").change(function(){
  5625. var tip = layer.load(2);
  5626. var url = "getgyrkxx.do";
  5627. var sum_total=0;
  5628. $.ajax({
  5629. "url" : url,
  5630. "data" : {
  5631. "fpId" : $("#fpid").val()
  5632. },
  5633. "type" : "POST",
  5634. "dataType" : "json",
  5635. "async" : true,
  5636. "success" : function(data) {
  5637. $("#dataTable").html("");
  5638. if(data != null && data != ""){
  5639. var html = "";
  5640. for(var i = 0; i < data.length; i++){
  5641. var ID = data[i].id == null ? "" : data[i].id;
  5642. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5643. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5644. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5645. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5646. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5647. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5648. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5649. var NAME = data[i].name == null ? "" : data[i].name;
  5650. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5651. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5652. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5653. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5654. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5655. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5656. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5657. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5658. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5659. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5660. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5661. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5662. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5663. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5664. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5665. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5666. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5667. sum_total = sum_total + DPRC
  5668. var invoice_type_cn =null;
  5669. if (invoice_type =="00" ){
  5670. invoice_type_cn="销售发票";
  5671. }else if (invoice_type == "01") {
  5672. invoice_type_cn="更正(对冲)发票";
  5673. }else if (invoice_type == "02") {
  5674. invoice_type_cn="其它类型发票";
  5675. }
  5676. html += "_$ta";
  5677. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  5678. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5679. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5680. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5681. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5682. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5683. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5684. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5685. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5686. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  5687. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  5688. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5689. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5690. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5691. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5692. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5693. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5694. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5695. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5696. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5697. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5698. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5699. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5700. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5701. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5702. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5703. html += "_$tag";
  5704. }
  5705. html += "_$ta";
  5706. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5707. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5708. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5709. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5710. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5711. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5712. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5713. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5714. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5715. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5716. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5717. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5718. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  5719. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  5720. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5721. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5722. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  5723. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5724. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5725. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  5726. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  5727. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  5728. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  5729. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  5730. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  5731. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  5732. html += "_$tag";
  5733. $("#dataTable").html(html);
  5734. }else {
  5735. $("#dataTable").html("");
  5736. }
  5737. },
  5738. "error" : function(msg){
  5739. },
  5740. "complete": function(){
  5741. layer.close(tip);
  5742. }
  5743. });
  5744. });
  5745. Date.prototype.Format = function (fmt) {
  5746. var o = {
  5747. "M+": this.getMonth() + 1, //月份
  5748. "d+": this.getDate(), //日
  5749. "h+": this.getHours(), //小时
  5750. "m+": this.getMinutes(), //分
  5751. "s+": this.getSeconds(), //秒
  5752. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  5753. "S": this.getMilliseconds() //毫秒
  5754. };
  5755. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  5756. for (var k in o)
  5757. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  5758. return fmt;
  5759. }
  5760. $("#jrjc").change(function() {
  5761. if ($("#jrjc").prop('checked') == true){
  5762. $("#departmentId").removeAttr("disabled");
  5763. }else {
  5764. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5765. }
  5766. });
  5767. ----------------------------------- SOURCE END -------------------------------------
  5768. !STACK 0
  5769. java.lang.NullPointerException
  5770. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:02.079
  5771. !MESSAGE Error while processing working copy
  5772. !STACK 1
  5773. JavaScript Model Exception: java.lang.NullPointerException
  5774. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  5775. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  5776. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  5777. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  5778. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  5779. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  5780. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  5781. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  5782. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  5783. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  5784. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  5785. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  5786. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  5787. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  5788. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  5789. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  5790. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  5791. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  5792. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  5793. Caused by: java.lang.NullPointerException
  5794. Caused by: java.lang.NullPointerException
  5795. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:02.079
  5796. !MESSAGE java.lang.NullPointerException
  5797. !STACK 0
  5798. java.lang.NullPointerException
  5799. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:03.113
  5800. !MESSAGE Exception occurred during problem detection:
  5801. ----------------------------------- SOURCE BEGIN -------------------------------------
  5802. (function(){WdatePicker();})();
  5803. (function(){WdatePicker();})();
  5804. (function(){Data.get();})();
  5805. (function(){Data.set();})();
  5806. (function(){search();})();
  5807. $(function(){
  5808. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  5809. getfp();
  5810. });
  5811. var Data = {
  5812. "get" : function(){
  5813. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  5814. var tip = layer.load(2);
  5815. var result="";
  5816. var url = "getgyxml.do";
  5817. $.ajax({
  5818. "url" : url,
  5819. "data" : {
  5820. "start_date" : $("#dateBegin").val(),
  5821. "end_date" : $("#dateEnd").val()
  5822. },
  5823. "type" : "POST",
  5824. "dataType" : "json",
  5825. "success" : function(data) {
  5826. if(data != null && data != ""){
  5827. if ( data.status =="success"){
  5828. getfp();
  5829. alert("获取成功!");
  5830. }else {
  5831. alert(data.status);
  5832. }
  5833. }else {
  5834. alert("获取失败!");
  5835. }
  5836. },
  5837. "complete": function(){
  5838. layer.close(tip);
  5839. }
  5840. });
  5841. }else {
  5842. alert("请选择日期!");
  5843. }
  5844. },
  5845. "set" : function(){
  5846. if ( $("#fpid option:selected").text() !=""){
  5847. var tip = layer.load(2);
  5848. var gitem = $("#form1").serialize();
  5849. var jrjc;
  5850. if ($("#jrjc").prop('checked') == true){
  5851. jrjc = $("#departmentId").val();
  5852. }else {
  5853. jrjc ='N'
  5854. }
  5855. var url = "saverk.do";
  5856. $.ajax({
  5857. "url" : url,
  5858. "data" : {
  5859. "gitem" : gitem,
  5860. "jrjc" : jrjc
  5861. },
  5862. "type" : "POST",
  5863. "dataType" : "json",
  5864. "async" : true,
  5865. "success" : function(data) {
  5866. if(data.status ="success"){
  5867. alert("入库成功!");
  5868. window.location.reload();
  5869. }else {
  5870. alert(msg);
  5871. }
  5872. },
  5873. "error": function(){
  5874. alert("确认失败!");
  5875. },
  5876. "complete": function(){
  5877. layer.close(tip);
  5878. }
  5879. });
  5880. }else {
  5881. alert("请选择发票!");
  5882. }
  5883. }
  5884. }
  5885. function getfp(){
  5886. var tip = layer.load(2);
  5887. var url = "getgyfp.do";
  5888. $.ajax({
  5889. "url" : url,
  5890. "type" : "POST",
  5891. "dataType" : "json",
  5892. "async" : true,
  5893. "success" : function(data) {
  5894. if(data != null && data != ""){
  5895. $("#fpid").empty();
  5896. $("#fpid").append("_$tag_____________$tag____");
  5897. for(var i = 0; i < data.length; i++){
  5898. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  5899. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  5900. }
  5901. }
  5902. },
  5903. "error" : function(msg){
  5904. },
  5905. "complete": function(){
  5906. layer.close(tip);
  5907. }
  5908. });
  5909. }
  5910. $("#fpid").change(function(){
  5911. var tip = layer.load(2);
  5912. var url = "getgyrkxx.do";
  5913. var sum_total=0;
  5914. $.ajax({
  5915. "url" : url,
  5916. "data" : {
  5917. "fpId" : $("#fpid").val()
  5918. },
  5919. "type" : "POST",
  5920. "dataType" : "json",
  5921. "async" : true,
  5922. "success" : function(data) {
  5923. $("#dataTable").html("");
  5924. if(data != null && data != ""){
  5925. var html = "";
  5926. for(var i = 0; i < data.length; i++){
  5927. var ID = data[i].id == null ? "" : data[i].id;
  5928. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  5929. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  5930. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  5931. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  5932. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  5933. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  5934. var GOODS = data[i].goods == null ? "" : data[i].goods;
  5935. var NAME = data[i].name == null ? "" : data[i].name;
  5936. var SPEC = data[i].spec == null ? "" : data[i].spec;
  5937. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  5938. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  5939. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  5940. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  5941. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  5942. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  5943. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  5944. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  5945. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  5946. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  5947. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  5948. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  5949. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  5950. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  5951. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  5952. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  5953. sum_total = sum_total + DPRC
  5954. var invoice_type_cn =null;
  5955. if (invoice_type =="00" ){
  5956. invoice_type_cn="销售发票";
  5957. }else if (invoice_type == "01") {
  5958. invoice_type_cn="更正(对冲)发票";
  5959. }else if (invoice_type == "02") {
  5960. invoice_type_cn="其它类型发票";
  5961. }
  5962. html += "_$ta";
  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_____________$tag__________________________________________________________________________________________________________________________________$tag";
  5969. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  5970. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  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";
  5990. }
  5991. html += "_$ta";
  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_____________$tag__________________________________________________________________$tag";
  5998. html += "_$tag_____________$tag__________________________________________________________________$tag";
  5999. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6000. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6001. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6002. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6003. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6004. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6005. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6006. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6007. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6008. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6009. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6010. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6011. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6012. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6013. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6014. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6015. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6016. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6017. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6018. html += "_$tag";
  6019. $("#dataTable").html(html);
  6020. }else {
  6021. $("#dataTable").html("");
  6022. }
  6023. },
  6024. "error" : function(msg){
  6025. },
  6026. "complete": function(){
  6027. layer.close(tip);
  6028. }
  6029. });
  6030. });
  6031. Date.prototype.Format = function (fmt) {
  6032. var o = {
  6033. "M+": this.getMonth() + 1, //月份
  6034. "d+": this.getDate(), //日
  6035. "h+": this.getHours(), //小时
  6036. "m+": this.getMinutes(), //分
  6037. "s+": this.getSeconds(), //秒
  6038. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6039. "S": this.getMilliseconds() //毫秒
  6040. };
  6041. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6042. for (var k in o)
  6043. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6044. return fmt;
  6045. }
  6046. $("#jrjc").change(function() {
  6047. if ($("#jrjc").prop('checked') == true){
  6048. $("#departmentId").removeAttr("disabled");
  6049. }else {
  6050. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6051. }
  6052. });
  6053. ----------------------------------- SOURCE END -------------------------------------
  6054. !STACK 0
  6055. java.lang.NullPointerException
  6056. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:03.729
  6057. !MESSAGE Exception occurred during problem detection:
  6058. ----------------------------------- SOURCE BEGIN -------------------------------------
  6059. (function(){WdatePicker();})();
  6060. (function(){WdatePicker();})();
  6061. (function(){Data.get();})();
  6062. (function(){Data.set();})();
  6063. (function(){search();})();
  6064. $(function(){
  6065. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6066. getfp();
  6067. });
  6068. var Data = {
  6069. "get" : function(){
  6070. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6071. var tip = layer.load(2);
  6072. var result="";
  6073. var url = "getgyxml.do";
  6074. $.ajax({
  6075. "url" : url,
  6076. "data" : {
  6077. "start_date" : $("#dateBegin").val(),
  6078. "end_date" : $("#dateEnd").val()
  6079. },
  6080. "type" : "POST",
  6081. "dataType" : "json",
  6082. "success" : function(data) {
  6083. if(data != null && data != ""){
  6084. if ( data.status =="success"){
  6085. getfp();
  6086. alert("获取成功!");
  6087. }else {
  6088. alert(data.status);
  6089. }
  6090. }else {
  6091. alert("获取失败!");
  6092. }
  6093. },
  6094. "complete": function(){
  6095. layer.close(tip);
  6096. }
  6097. });
  6098. }else {
  6099. alert("请选择日期!");
  6100. }
  6101. },
  6102. "set" : function(){
  6103. if ( $("#fpid option:selected").text() !=""){
  6104. var tip = layer.load(2);
  6105. var gitem = $("#form1").serialize();
  6106. var jrjc;
  6107. if ($("#jrjc").prop('checked') == true){
  6108. jrjc = $("#departmentId").val();
  6109. }else {
  6110. jrjc ='N'
  6111. }
  6112. var url = "saverk.do";
  6113. $.ajax({
  6114. "url" : url,
  6115. "data" : {
  6116. "gitem" : gitem,
  6117. "jrjc" : jrjc
  6118. },
  6119. "type" : "POST",
  6120. "dataType" : "json",
  6121. "async" : true,
  6122. "success" : function(data) {
  6123. if(data.status ="success"){
  6124. alert("入库成功!");
  6125. window.location.reload();
  6126. }else {
  6127. alert(msg);
  6128. }
  6129. },
  6130. "error": function(){
  6131. alert("确认失败!");
  6132. },
  6133. "complete": function(){
  6134. layer.close(tip);
  6135. }
  6136. });
  6137. }else {
  6138. alert("请选择发票!");
  6139. }
  6140. }
  6141. }
  6142. function getfp(){
  6143. var tip = layer.load(2);
  6144. var url = "getgyfp.do";
  6145. $.ajax({
  6146. "url" : url,
  6147. "type" : "POST",
  6148. "dataType" : "json",
  6149. "async" : true,
  6150. "success" : function(data) {
  6151. if(data != null && data != ""){
  6152. $("#fpid").empty();
  6153. $("#fpid").append("_$tag_____________$tag____");
  6154. for(var i = 0; i < data.length; i++){
  6155. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6156. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6157. }
  6158. }
  6159. },
  6160. "error" : function(msg){
  6161. },
  6162. "complete": function(){
  6163. layer.close(tip);
  6164. }
  6165. });
  6166. }
  6167. $("#fpid").change(function(){
  6168. var tip = layer.load(2);
  6169. var url = "getgyrkxx.do";
  6170. var sum_total=0;
  6171. $.ajax({
  6172. "url" : url,
  6173. "data" : {
  6174. "fpId" : $("#fpid").val()
  6175. },
  6176. "type" : "POST",
  6177. "dataType" : "json",
  6178. "async" : true,
  6179. "success" : function(data) {
  6180. $("#dataTable").html("");
  6181. if(data != null && data != ""){
  6182. var html = "";
  6183. for(var i = 0; i < data.length; i++){
  6184. var ID = data[i].id == null ? "" : data[i].id;
  6185. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6186. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6187. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6188. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6189. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6190. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6191. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6192. var NAME = data[i].name == null ? "" : data[i].name;
  6193. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6194. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6195. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6196. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6197. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6198. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6199. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6200. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6201. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6202. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6203. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6204. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6205. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6206. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6207. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6208. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6209. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6210. sum_total = sum_total + DPRC
  6211. var invoice_type_cn =null;
  6212. if (invoice_type =="00" ){
  6213. invoice_type_cn="销售发票";
  6214. }else if (invoice_type == "01") {
  6215. invoice_type_cn="更正(对冲)发票";
  6216. }else if (invoice_type == "02") {
  6217. invoice_type_cn="其它类型发票";
  6218. }
  6219. html += "_$ta";
  6220. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6221. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6222. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6223. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6224. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6225. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6226. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6227. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6228. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6229. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6230. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6231. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6232. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6233. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6234. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6235. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6236. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6237. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6238. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6239. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6240. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6241. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6242. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6243. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6244. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6245. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6246. html += "_$tag";
  6247. }
  6248. html += "_$ta";
  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_____________$tag__________________________________________________________________$tag";
  6255. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6256. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6257. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6258. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6259. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6260. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6261. html += "_$tag_____________$tag___________________________________________________________________$tag";
  6262. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6263. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6264. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6265. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6266. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6267. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6268. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6269. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6270. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6271. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6272. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6273. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6274. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6275. html += "_$tag";
  6276. $("#dataTable").html(html);
  6277. }else {
  6278. $("#dataTable").html("");
  6279. }
  6280. },
  6281. "error" : function(msg){
  6282. },
  6283. "complete": function(){
  6284. layer.close(tip);
  6285. }
  6286. });
  6287. });
  6288. Date.prototype.Format = function (fmt) {
  6289. var o = {
  6290. "M+": this.getMonth() + 1, //月份
  6291. "d+": this.getDate(), //日
  6292. "h+": this.getHours(), //小时
  6293. "m+": this.getMinutes(), //分
  6294. "s+": this.getSeconds(), //秒
  6295. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6296. "S": this.getMilliseconds() //毫秒
  6297. };
  6298. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6299. for (var k in o)
  6300. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6301. return fmt;
  6302. }
  6303. $("#jrjc").change(function() {
  6304. if ($("#jrjc").prop('checked') == true){
  6305. $("#departmentId").removeAttr("disabled");
  6306. }else {
  6307. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6308. }
  6309. });
  6310. ----------------------------------- SOURCE END -------------------------------------
  6311. !STACK 0
  6312. java.lang.NullPointerException
  6313. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:03.729
  6314. !MESSAGE java.lang.NullPointerException
  6315. !STACK 1
  6316. JavaScript Model Exception: java.lang.NullPointerException
  6317. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6318. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  6319. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6320. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6321. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  6322. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  6323. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  6324. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  6325. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  6326. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  6327. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  6328. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  6329. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  6330. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  6331. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  6332. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  6333. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  6334. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  6335. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  6336. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  6337. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  6338. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  6339. Caused by: java.lang.NullPointerException
  6340. Caused by: java.lang.NullPointerException
  6341. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:03.730
  6342. !MESSAGE java.lang.NullPointerException
  6343. !STACK 0
  6344. java.lang.NullPointerException
  6345. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:04.416
  6346. !MESSAGE Exception occurred during problem detection:
  6347. ----------------------------------- SOURCE BEGIN -------------------------------------
  6348. (function(){WdatePicker();})();
  6349. (function(){WdatePicker();})();
  6350. (function(){Data.get();})();
  6351. (function(){Data.set();})();
  6352. (function(){search();})();
  6353. $(function(){
  6354. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6355. getfp();
  6356. });
  6357. var Data = {
  6358. "get" : function(){
  6359. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6360. var tip = layer.load(2);
  6361. var result="";
  6362. var url = "getgyxml.do";
  6363. $.ajax({
  6364. "url" : url,
  6365. "data" : {
  6366. "start_date" : $("#dateBegin").val(),
  6367. "end_date" : $("#dateEnd").val()
  6368. },
  6369. "type" : "POST",
  6370. "dataType" : "json",
  6371. "success" : function(data) {
  6372. if(data != null && data != ""){
  6373. if ( data.status =="success"){
  6374. getfp();
  6375. alert("获取成功!");
  6376. }else {
  6377. alert(data.status);
  6378. }
  6379. }else {
  6380. alert("获取失败!");
  6381. }
  6382. },
  6383. "complete": function(){
  6384. layer.close(tip);
  6385. }
  6386. });
  6387. }else {
  6388. alert("请选择日期!");
  6389. }
  6390. },
  6391. "set" : function(){
  6392. if ( $("#fpid option:selected").text() !=""){
  6393. var tip = layer.load(2);
  6394. var gitem = $("#form1").serialize();
  6395. var jrjc;
  6396. if ($("#jrjc").prop('checked') == true){
  6397. jrjc = $("#departmentId").val();
  6398. }else {
  6399. jrjc ='N'
  6400. }
  6401. var url = "saverk.do";
  6402. $.ajax({
  6403. "url" : url,
  6404. "data" : {
  6405. "gitem" : gitem,
  6406. "jrjc" : jrjc
  6407. },
  6408. "type" : "POST",
  6409. "dataType" : "json",
  6410. "async" : true,
  6411. "success" : function(data) {
  6412. if(data.status ="success"){
  6413. alert("入库成功!");
  6414. window.location.reload();
  6415. }else {
  6416. alert(msg);
  6417. }
  6418. },
  6419. "error": function(){
  6420. alert("确认失败!");
  6421. },
  6422. "complete": function(){
  6423. layer.close(tip);
  6424. }
  6425. });
  6426. }else {
  6427. alert("请选择发票!");
  6428. }
  6429. }
  6430. }
  6431. function getfp(){
  6432. var tip = layer.load(2);
  6433. var url = "getgyfp.do";
  6434. $.ajax({
  6435. "url" : url,
  6436. "type" : "POST",
  6437. "dataType" : "json",
  6438. "async" : true,
  6439. "success" : function(data) {
  6440. if(data != null && data != ""){
  6441. $("#fpid").empty();
  6442. $("#fpid").append("_$tag_____________$tag____");
  6443. for(var i = 0; i < data.length; i++){
  6444. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6445. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6446. }
  6447. }
  6448. },
  6449. "error" : function(msg){
  6450. },
  6451. "complete": function(){
  6452. layer.close(tip);
  6453. }
  6454. });
  6455. }
  6456. $("#fpid").change(function(){
  6457. var tip = layer.load(2);
  6458. var url = "getgyrkxx.do";
  6459. var sum_total=0;
  6460. $.ajax({
  6461. "url" : url,
  6462. "data" : {
  6463. "fpId" : $("#fpid").val()
  6464. },
  6465. "type" : "POST",
  6466. "dataType" : "json",
  6467. "async" : true,
  6468. "success" : function(data) {
  6469. $("#dataTable").html("");
  6470. if(data != null && data != ""){
  6471. var html = "";
  6472. for(var i = 0; i < data.length; i++){
  6473. var ID = data[i].id == null ? "" : data[i].id;
  6474. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6475. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6476. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6477. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6478. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6479. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6480. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6481. var NAME = data[i].name == null ? "" : data[i].name;
  6482. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6483. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6484. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6485. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6486. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6487. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6488. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6489. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6490. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6491. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6492. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6493. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6494. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6495. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6496. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6497. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6498. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6499. sum_total = sum_total + DPRC
  6500. var invoice_type_cn =null;
  6501. if (invoice_type =="00" ){
  6502. invoice_type_cn="销售发票";
  6503. }else if (invoice_type == "01") {
  6504. invoice_type_cn="更正(对冲)发票";
  6505. }else if (invoice_type == "02") {
  6506. invoice_type_cn="其它类型发票";
  6507. }
  6508. html += "_$ta";
  6509. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6510. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6511. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6512. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6513. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  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";
  6536. }
  6537. html += "_$ta";
  6538. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6539. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6540. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6541. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6542. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6543. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6544. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6545. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6546. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6547. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6548. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6549. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6550. html += "_$tag_____________$tag___________________________________________________________________$tag";
  6551. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6552. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6553. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6554. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6555. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6556. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6557. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6558. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6559. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6560. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6561. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6562. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6563. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6564. html += "_$tag";
  6565. $("#dataTable").html(html);
  6566. }else {
  6567. $("#dataTable").html("");
  6568. }
  6569. },
  6570. "error" : function(msg){
  6571. },
  6572. "complete": function(){
  6573. layer.close(tip);
  6574. }
  6575. });
  6576. });
  6577. Date.prototype.Format = function (fmt) {
  6578. var o = {
  6579. "M+": this.getMonth() + 1, //月份
  6580. "d+": this.getDate(), //日
  6581. "h+": this.getHours(), //小时
  6582. "m+": this.getMinutes(), //分
  6583. "s+": this.getSeconds(), //秒
  6584. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6585. "S": this.getMilliseconds() //毫秒
  6586. };
  6587. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6588. for (var k in o)
  6589. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6590. return fmt;
  6591. }
  6592. $("#jrjc").change(function() {
  6593. if ($("#jrjc").prop('checked') == true){
  6594. $("#departmentId").removeAttr("disabled");
  6595. }else {
  6596. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6597. }
  6598. });
  6599. ----------------------------------- SOURCE END -------------------------------------
  6600. !STACK 0
  6601. java.lang.NullPointerException
  6602. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:04.417
  6603. !MESSAGE Error while processing working copy
  6604. !STACK 1
  6605. JavaScript Model Exception: java.lang.NullPointerException
  6606. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  6607. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  6608. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  6609. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  6610. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  6611. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  6612. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  6613. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  6614. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  6615. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  6616. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  6617. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  6618. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  6619. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  6620. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  6621. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  6622. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  6623. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  6624. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  6625. Caused by: java.lang.NullPointerException
  6626. Caused by: java.lang.NullPointerException
  6627. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:04.417
  6628. !MESSAGE java.lang.NullPointerException
  6629. !STACK 0
  6630. java.lang.NullPointerException
  6631. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:05.358
  6632. !MESSAGE Exception occurred during problem detection:
  6633. ----------------------------------- SOURCE BEGIN -------------------------------------
  6634. (function(){WdatePicker();})();
  6635. (function(){WdatePicker();})();
  6636. (function(){Data.get();})();
  6637. (function(){Data.set();})();
  6638. (function(){search();})();
  6639. $(function(){
  6640. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6641. getfp();
  6642. });
  6643. var Data = {
  6644. "get" : function(){
  6645. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6646. var tip = layer.load(2);
  6647. var result="";
  6648. var url = "getgyxml.do";
  6649. $.ajax({
  6650. "url" : url,
  6651. "data" : {
  6652. "start_date" : $("#dateBegin").val(),
  6653. "end_date" : $("#dateEnd").val()
  6654. },
  6655. "type" : "POST",
  6656. "dataType" : "json",
  6657. "success" : function(data) {
  6658. if(data != null && data != ""){
  6659. if ( data.status =="success"){
  6660. getfp();
  6661. alert("获取成功!");
  6662. }else {
  6663. alert(data.status);
  6664. }
  6665. }else {
  6666. alert("获取失败!");
  6667. }
  6668. },
  6669. "complete": function(){
  6670. layer.close(tip);
  6671. }
  6672. });
  6673. }else {
  6674. alert("请选择日期!");
  6675. }
  6676. },
  6677. "set" : function(){
  6678. if ( $("#fpid option:selected").text() !=""){
  6679. var tip = layer.load(2);
  6680. var gitem = $("#form1").serialize();
  6681. var jrjc;
  6682. if ($("#jrjc").prop('checked') == true){
  6683. jrjc = $("#departmentId").val();
  6684. }else {
  6685. jrjc ='N'
  6686. }
  6687. var url = "saverk.do";
  6688. $.ajax({
  6689. "url" : url,
  6690. "data" : {
  6691. "gitem" : gitem,
  6692. "jrjc" : jrjc
  6693. },
  6694. "type" : "POST",
  6695. "dataType" : "json",
  6696. "async" : true,
  6697. "success" : function(data) {
  6698. if(data.status ="success"){
  6699. alert("入库成功!");
  6700. window.location.reload();
  6701. }else {
  6702. alert(msg);
  6703. }
  6704. },
  6705. "error": function(){
  6706. alert("确认失败!");
  6707. },
  6708. "complete": function(){
  6709. layer.close(tip);
  6710. }
  6711. });
  6712. }else {
  6713. alert("请选择发票!");
  6714. }
  6715. }
  6716. }
  6717. function getfp(){
  6718. var tip = layer.load(2);
  6719. var url = "getgyfp.do";
  6720. $.ajax({
  6721. "url" : url,
  6722. "type" : "POST",
  6723. "dataType" : "json",
  6724. "async" : true,
  6725. "success" : function(data) {
  6726. if(data != null && data != ""){
  6727. $("#fpid").empty();
  6728. $("#fpid").append("_$tag_____________$tag____");
  6729. for(var i = 0; i < data.length; i++){
  6730. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6731. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6732. }
  6733. }
  6734. },
  6735. "error" : function(msg){
  6736. },
  6737. "complete": function(){
  6738. layer.close(tip);
  6739. }
  6740. });
  6741. }
  6742. $("#fpid").change(function(){
  6743. var tip = layer.load(2);
  6744. var url = "getgyrkxx.do";
  6745. var sum_total=0;
  6746. $.ajax({
  6747. "url" : url,
  6748. "data" : {
  6749. "fpId" : $("#fpid").val()
  6750. },
  6751. "type" : "POST",
  6752. "dataType" : "json",
  6753. "async" : true,
  6754. "success" : function(data) {
  6755. $("#dataTable").html("");
  6756. if(data != null && data != ""){
  6757. var html = "";
  6758. for(var i = 0; i < data.length; i++){
  6759. var ID = data[i].id == null ? "" : data[i].id;
  6760. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  6761. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  6762. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  6763. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  6764. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  6765. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  6766. var GOODS = data[i].goods == null ? "" : data[i].goods;
  6767. var NAME = data[i].name == null ? "" : data[i].name;
  6768. var SPEC = data[i].spec == null ? "" : data[i].spec;
  6769. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  6770. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  6771. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  6772. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  6773. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  6774. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  6775. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  6776. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  6777. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  6778. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  6779. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  6780. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  6781. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  6782. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  6783. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  6784. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  6785. sum_total = sum_total + DPRC
  6786. var invoice_type_cn =null;
  6787. if (invoice_type =="00" ){
  6788. invoice_type_cn="销售发票";
  6789. }else if (invoice_type == "01") {
  6790. invoice_type_cn="更正(对冲)发票";
  6791. }else if (invoice_type == "02") {
  6792. invoice_type_cn="其它类型发票";
  6793. }
  6794. html += "_$ta";
  6795. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  6796. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6797. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6798. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6799. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6800. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  6801. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  6802. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6803. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6804. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  6805. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  6806. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6807. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  6808. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6809. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6810. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6811. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6812. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6813. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6814. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6815. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6816. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6817. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6818. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6819. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6820. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6821. html += "_$tag";
  6822. }
  6823. html += "_$ta";
  6824. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6825. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6826. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6827. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6828. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6829. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6830. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6831. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6832. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6833. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6834. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6835. html += "_$tag_____________$tag__________________________________________________________________$tag";
  6836. html += "_$tag_____________$tag___________________________________________________________________$tag";
  6837. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  6838. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6839. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6840. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  6841. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6842. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6843. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  6844. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  6845. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  6846. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  6847. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  6848. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  6849. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  6850. html += "_$tag";
  6851. $("#dataTable").html(html);
  6852. }else {
  6853. $("#dataTable").html("");
  6854. }
  6855. },
  6856. "error" : function(msg){
  6857. },
  6858. "complete": function(){
  6859. layer.close(tip);
  6860. }
  6861. });
  6862. });
  6863. Date.prototype.Format = function (fmt) {
  6864. var o = {
  6865. "M+": this.getMonth() + 1, //月份
  6866. "d+": this.getDate(), //日
  6867. "h+": this.getHours(), //小时
  6868. "m+": this.getMinutes(), //分
  6869. "s+": this.getSeconds(), //秒
  6870. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  6871. "S": this.getMilliseconds() //毫秒
  6872. };
  6873. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  6874. for (var k in o)
  6875. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  6876. return fmt;
  6877. }
  6878. $("#jrjc").change(function() {
  6879. if ($("#jrjc").prop('checked') == true){
  6880. $("#departmentId").removeAttr("disabled");
  6881. }else {
  6882. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6883. }
  6884. });
  6885. ----------------------------------- SOURCE END -------------------------------------
  6886. !STACK 0
  6887. java.lang.NullPointerException
  6888. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:05.785
  6889. !MESSAGE Exception occurred during problem detection:
  6890. ----------------------------------- SOURCE BEGIN -------------------------------------
  6891. (function(){WdatePicker();})();
  6892. (function(){WdatePicker();})();
  6893. (function(){Data.get();})();
  6894. (function(){Data.set();})();
  6895. (function(){search();})();
  6896. $(function(){
  6897. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  6898. getfp();
  6899. });
  6900. var Data = {
  6901. "get" : function(){
  6902. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  6903. var tip = layer.load(2);
  6904. var result="";
  6905. var url = "getgyxml.do";
  6906. $.ajax({
  6907. "url" : url,
  6908. "data" : {
  6909. "start_date" : $("#dateBegin").val(),
  6910. "end_date" : $("#dateEnd").val()
  6911. },
  6912. "type" : "POST",
  6913. "dataType" : "json",
  6914. "success" : function(data) {
  6915. if(data != null && data != ""){
  6916. if ( data.status =="success"){
  6917. getfp();
  6918. alert("获取成功!");
  6919. }else {
  6920. alert(data.status);
  6921. }
  6922. }else {
  6923. alert("获取失败!");
  6924. }
  6925. },
  6926. "complete": function(){
  6927. layer.close(tip);
  6928. }
  6929. });
  6930. }else {
  6931. alert("请选择日期!");
  6932. }
  6933. },
  6934. "set" : function(){
  6935. if ( $("#fpid option:selected").text() !=""){
  6936. var tip = layer.load(2);
  6937. var gitem = $("#form1").serialize();
  6938. var jrjc;
  6939. if ($("#jrjc").prop('checked') == true){
  6940. jrjc = $("#departmentId").val();
  6941. }else {
  6942. jrjc ='N'
  6943. }
  6944. var url = "saverk.do";
  6945. $.ajax({
  6946. "url" : url,
  6947. "data" : {
  6948. "gitem" : gitem,
  6949. "jrjc" : jrjc
  6950. },
  6951. "type" : "POST",
  6952. "dataType" : "json",
  6953. "async" : true,
  6954. "success" : function(data) {
  6955. if(data.status ="success"){
  6956. alert("入库成功!");
  6957. window.location.reload();
  6958. }else {
  6959. alert(msg);
  6960. }
  6961. },
  6962. "error": function(){
  6963. alert("确认失败!");
  6964. },
  6965. "complete": function(){
  6966. layer.close(tip);
  6967. }
  6968. });
  6969. }else {
  6970. alert("请选择发票!");
  6971. }
  6972. }
  6973. }
  6974. function getfp(){
  6975. var tip = layer.load(2);
  6976. var url = "getgyfp.do";
  6977. $.ajax({
  6978. "url" : url,
  6979. "type" : "POST",
  6980. "dataType" : "json",
  6981. "async" : true,
  6982. "success" : function(data) {
  6983. if(data != null && data != ""){
  6984. $("#fpid").empty();
  6985. $("#fpid").append("_$tag_____________$tag____");
  6986. for(var i = 0; i < data.length; i++){
  6987. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  6988. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  6989. }
  6990. }
  6991. },
  6992. "error" : function(msg){
  6993. },
  6994. "complete": function(){
  6995. layer.close(tip);
  6996. }
  6997. });
  6998. }
  6999. $("#fpid").change(function(){
  7000. var tip = layer.load(2);
  7001. var url = "getgyrkxx.do";
  7002. var sum_total=0;
  7003. $.ajax({
  7004. "url" : url,
  7005. "data" : {
  7006. "fpId" : $("#fpid").val()
  7007. },
  7008. "type" : "POST",
  7009. "dataType" : "json",
  7010. "async" : true,
  7011. "success" : function(data) {
  7012. $("#dataTable").html("");
  7013. if(data != null && data != ""){
  7014. var html = "";
  7015. for(var i = 0; i < data.length; i++){
  7016. var ID = data[i].id == null ? "" : data[i].id;
  7017. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7018. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7019. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7020. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7021. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7022. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7023. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7024. var NAME = data[i].name == null ? "" : data[i].name;
  7025. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7026. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7027. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7028. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7029. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7030. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7031. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7032. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7033. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7034. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7035. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7036. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7037. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7038. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7039. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7040. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7041. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7042. sum_total = sum_total + DPRC
  7043. var invoice_type_cn =null;
  7044. if (invoice_type =="00" ){
  7045. invoice_type_cn="销售发票";
  7046. }else if (invoice_type == "01") {
  7047. invoice_type_cn="更正(对冲)发票";
  7048. }else if (invoice_type == "02") {
  7049. invoice_type_cn="其它类型发票";
  7050. }
  7051. html += "_$ta";
  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_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7058. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7059. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  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";
  7079. }
  7080. html += "_$ta";
  7081. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7082. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7083. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7084. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7085. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7086. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7087. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7088. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7089. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7090. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7091. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7092. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7093. html += "_$tag_____________$tag___________________________________________________________________$tag";
  7094. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7095. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7096. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7097. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7098. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7099. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7100. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7101. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7102. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7103. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7104. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7105. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7106. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7107. html += "_$tag";
  7108. $("#dataTable").html(html);
  7109. }else {
  7110. $("#dataTable").html("");
  7111. }
  7112. },
  7113. "error" : function(msg){
  7114. },
  7115. "complete": function(){
  7116. layer.close(tip);
  7117. }
  7118. });
  7119. });
  7120. Date.prototype.Format = function (fmt) {
  7121. var o = {
  7122. "M+": this.getMonth() + 1, //月份
  7123. "d+": this.getDate(), //日
  7124. "h+": this.getHours(), //小时
  7125. "m+": this.getMinutes(), //分
  7126. "s+": this.getSeconds(), //秒
  7127. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7128. "S": this.getMilliseconds() //毫秒
  7129. };
  7130. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7131. for (var k in o)
  7132. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7133. return fmt;
  7134. }
  7135. $("#jrjc").change(function() {
  7136. if ($("#jrjc").prop('checked') == true){
  7137. $("#departmentId").removeAttr("disabled");
  7138. }else {
  7139. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7140. }
  7141. });
  7142. ----------------------------------- SOURCE END -------------------------------------
  7143. !STACK 0
  7144. java.lang.NullPointerException
  7145. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:05.786
  7146. !MESSAGE Error while processing working copy
  7147. !STACK 1
  7148. JavaScript Model Exception: java.lang.NullPointerException
  7149. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7150. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7151. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7152. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7153. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7154. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7155. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7156. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7157. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7158. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7159. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7160. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7161. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7162. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7163. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7164. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7165. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7166. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7167. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  7168. Caused by: java.lang.NullPointerException
  7169. Caused by: java.lang.NullPointerException
  7170. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:05.786
  7171. !MESSAGE java.lang.NullPointerException
  7172. !STACK 0
  7173. java.lang.NullPointerException
  7174. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:06.840
  7175. !MESSAGE Exception occurred during problem detection:
  7176. ----------------------------------- SOURCE BEGIN -------------------------------------
  7177. (function(){WdatePicker();})();
  7178. (function(){WdatePicker();})();
  7179. (function(){Data.get();})();
  7180. (function(){Data.set();})();
  7181. (function(){search();})();
  7182. $(function(){
  7183. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7184. getfp();
  7185. });
  7186. var Data = {
  7187. "get" : function(){
  7188. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7189. var tip = layer.load(2);
  7190. var result="";
  7191. var url = "getgyxml.do";
  7192. $.ajax({
  7193. "url" : url,
  7194. "data" : {
  7195. "start_date" : $("#dateBegin").val(),
  7196. "end_date" : $("#dateEnd").val()
  7197. },
  7198. "type" : "POST",
  7199. "dataType" : "json",
  7200. "success" : function(data) {
  7201. if(data != null && data != ""){
  7202. if ( data.status =="success"){
  7203. getfp();
  7204. alert("获取成功!");
  7205. }else {
  7206. alert(data.status);
  7207. }
  7208. }else {
  7209. alert("获取失败!");
  7210. }
  7211. },
  7212. "complete": function(){
  7213. layer.close(tip);
  7214. }
  7215. });
  7216. }else {
  7217. alert("请选择日期!");
  7218. }
  7219. },
  7220. "set" : function(){
  7221. if ( $("#fpid option:selected").text() !=""){
  7222. var tip = layer.load(2);
  7223. var gitem = $("#form1").serialize();
  7224. var jrjc;
  7225. if ($("#jrjc").prop('checked') == true){
  7226. jrjc = $("#departmentId").val();
  7227. }else {
  7228. jrjc ='N'
  7229. }
  7230. var url = "saverk.do";
  7231. $.ajax({
  7232. "url" : url,
  7233. "data" : {
  7234. "gitem" : gitem,
  7235. "jrjc" : jrjc
  7236. },
  7237. "type" : "POST",
  7238. "dataType" : "json",
  7239. "async" : true,
  7240. "success" : function(data) {
  7241. if(data.status ="success"){
  7242. alert("入库成功!");
  7243. window.location.reload();
  7244. }else {
  7245. alert(msg);
  7246. }
  7247. },
  7248. "error": function(){
  7249. alert("确认失败!");
  7250. },
  7251. "complete": function(){
  7252. layer.close(tip);
  7253. }
  7254. });
  7255. }else {
  7256. alert("请选择发票!");
  7257. }
  7258. }
  7259. }
  7260. function getfp(){
  7261. var tip = layer.load(2);
  7262. var url = "getgyfp.do";
  7263. $.ajax({
  7264. "url" : url,
  7265. "type" : "POST",
  7266. "dataType" : "json",
  7267. "async" : true,
  7268. "success" : function(data) {
  7269. if(data != null && data != ""){
  7270. $("#fpid").empty();
  7271. $("#fpid").append("_$tag_____________$tag____");
  7272. for(var i = 0; i < data.length; i++){
  7273. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7274. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7275. }
  7276. }
  7277. },
  7278. "error" : function(msg){
  7279. },
  7280. "complete": function(){
  7281. layer.close(tip);
  7282. }
  7283. });
  7284. }
  7285. $("#fpid").change(function(){
  7286. var tip = layer.load(2);
  7287. var url = "getgyrkxx.do";
  7288. var sum_total=0;
  7289. $.ajax({
  7290. "url" : url,
  7291. "data" : {
  7292. "fpId" : $("#fpid").val()
  7293. },
  7294. "type" : "POST",
  7295. "dataType" : "json",
  7296. "async" : true,
  7297. "success" : function(data) {
  7298. $("#dataTable").html("");
  7299. if(data != null && data != ""){
  7300. var html = "";
  7301. for(var i = 0; i < data.length; i++){
  7302. var ID = data[i].id == null ? "" : data[i].id;
  7303. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7304. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7305. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7306. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7307. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7308. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7309. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7310. var NAME = data[i].name == null ? "" : data[i].name;
  7311. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7312. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7313. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7314. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7315. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7316. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7317. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7318. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7319. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7320. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7321. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7322. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7323. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7324. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7325. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7326. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7327. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7328. sum_total = sum_total + DPRC
  7329. var invoice_type_cn =null;
  7330. if (invoice_type =="00" ){
  7331. invoice_type_cn="销售发票";
  7332. }else if (invoice_type == "01") {
  7333. invoice_type_cn="更正(对冲)发票";
  7334. }else if (invoice_type == "02") {
  7335. invoice_type_cn="其它类型发票";
  7336. }
  7337. html += "_$ta";
  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_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7344. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7345. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  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";
  7365. }
  7366. html += "_$ta";
  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_____________$tag__________________________________________________________________$tag";
  7373. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7374. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7375. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7376. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7377. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7378. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7379. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7380. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7381. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7382. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7383. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7384. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7385. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7386. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7387. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7388. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7389. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7390. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7391. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7392. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7393. html += "_$tag";
  7394. $("#dataTable").html(html);
  7395. }else {
  7396. $("#dataTable").html("");
  7397. }
  7398. },
  7399. "error" : function(msg){
  7400. },
  7401. "complete": function(){
  7402. layer.close(tip);
  7403. }
  7404. });
  7405. });
  7406. Date.prototype.Format = function (fmt) {
  7407. var o = {
  7408. "M+": this.getMonth() + 1, //月份
  7409. "d+": this.getDate(), //日
  7410. "h+": this.getHours(), //小时
  7411. "m+": this.getMinutes(), //分
  7412. "s+": this.getSeconds(), //秒
  7413. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7414. "S": this.getMilliseconds() //毫秒
  7415. };
  7416. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7417. for (var k in o)
  7418. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7419. return fmt;
  7420. }
  7421. $("#jrjc").change(function() {
  7422. if ($("#jrjc").prop('checked') == true){
  7423. $("#departmentId").removeAttr("disabled");
  7424. }else {
  7425. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7426. }
  7427. });
  7428. ----------------------------------- SOURCE END -------------------------------------
  7429. !STACK 0
  7430. java.lang.NullPointerException
  7431. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:07.207
  7432. !MESSAGE Exception occurred during problem detection:
  7433. ----------------------------------- SOURCE BEGIN -------------------------------------
  7434. (function(){WdatePicker();})();
  7435. (function(){WdatePicker();})();
  7436. (function(){Data.get();})();
  7437. (function(){Data.set();})();
  7438. (function(){search();})();
  7439. $(function(){
  7440. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7441. getfp();
  7442. });
  7443. var Data = {
  7444. "get" : function(){
  7445. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7446. var tip = layer.load(2);
  7447. var result="";
  7448. var url = "getgyxml.do";
  7449. $.ajax({
  7450. "url" : url,
  7451. "data" : {
  7452. "start_date" : $("#dateBegin").val(),
  7453. "end_date" : $("#dateEnd").val()
  7454. },
  7455. "type" : "POST",
  7456. "dataType" : "json",
  7457. "success" : function(data) {
  7458. if(data != null && data != ""){
  7459. if ( data.status =="success"){
  7460. getfp();
  7461. alert("获取成功!");
  7462. }else {
  7463. alert(data.status);
  7464. }
  7465. }else {
  7466. alert("获取失败!");
  7467. }
  7468. },
  7469. "complete": function(){
  7470. layer.close(tip);
  7471. }
  7472. });
  7473. }else {
  7474. alert("请选择日期!");
  7475. }
  7476. },
  7477. "set" : function(){
  7478. if ( $("#fpid option:selected").text() !=""){
  7479. var tip = layer.load(2);
  7480. var gitem = $("#form1").serialize();
  7481. var jrjc;
  7482. if ($("#jrjc").prop('checked') == true){
  7483. jrjc = $("#departmentId").val();
  7484. }else {
  7485. jrjc ='N'
  7486. }
  7487. var url = "saverk.do";
  7488. $.ajax({
  7489. "url" : url,
  7490. "data" : {
  7491. "gitem" : gitem,
  7492. "jrjc" : jrjc
  7493. },
  7494. "type" : "POST",
  7495. "dataType" : "json",
  7496. "async" : true,
  7497. "success" : function(data) {
  7498. if(data.status ="success"){
  7499. alert("入库成功!");
  7500. window.location.reload();
  7501. }else {
  7502. alert(msg);
  7503. }
  7504. },
  7505. "error": function(){
  7506. alert("确认失败!");
  7507. },
  7508. "complete": function(){
  7509. layer.close(tip);
  7510. }
  7511. });
  7512. }else {
  7513. alert("请选择发票!");
  7514. }
  7515. }
  7516. }
  7517. function getfp(){
  7518. var tip = layer.load(2);
  7519. var url = "getgyfp.do";
  7520. $.ajax({
  7521. "url" : url,
  7522. "type" : "POST",
  7523. "dataType" : "json",
  7524. "async" : true,
  7525. "success" : function(data) {
  7526. if(data != null && data != ""){
  7527. $("#fpid").empty();
  7528. $("#fpid").append("_$tag_____________$tag____");
  7529. for(var i = 0; i < data.length; i++){
  7530. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7531. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7532. }
  7533. }
  7534. },
  7535. "error" : function(msg){
  7536. },
  7537. "complete": function(){
  7538. layer.close(tip);
  7539. }
  7540. });
  7541. }
  7542. $("#fpid").change(function(){
  7543. var tip = layer.load(2);
  7544. var url = "getgyrkxx.do";
  7545. var sum_total=0;
  7546. $.ajax({
  7547. "url" : url,
  7548. "data" : {
  7549. "fpId" : $("#fpid").val()
  7550. },
  7551. "type" : "POST",
  7552. "dataType" : "json",
  7553. "async" : true,
  7554. "success" : function(data) {
  7555. $("#dataTable").html("");
  7556. if(data != null && data != ""){
  7557. var html = "";
  7558. for(var i = 0; i < data.length; i++){
  7559. var ID = data[i].id == null ? "" : data[i].id;
  7560. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7561. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7562. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7563. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7564. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7565. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7566. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7567. var NAME = data[i].name == null ? "" : data[i].name;
  7568. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7569. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7570. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7571. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7572. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7573. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7574. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7575. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7576. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7577. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7578. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7579. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7580. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7581. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7582. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7583. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7584. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7585. sum_total = sum_total + DPRC
  7586. var invoice_type_cn =null;
  7587. if (invoice_type =="00" ){
  7588. invoice_type_cn="销售发票";
  7589. }else if (invoice_type == "01") {
  7590. invoice_type_cn="更正(对冲)发票";
  7591. }else if (invoice_type == "02") {
  7592. invoice_type_cn="其它类型发票";
  7593. }
  7594. html += "_$ta";
  7595. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7596. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7597. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7598. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7599. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7600. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7601. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7602. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7603. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7604. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7605. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7606. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7607. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7608. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7609. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7610. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7611. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7612. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7613. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7614. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7615. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7616. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7617. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7618. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7619. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7620. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7621. html += "_$tag";
  7622. }
  7623. html += "_$ta";
  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_____________$tag__________________________________________________________________$tag";
  7630. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7631. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7632. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7633. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7634. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7635. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7636. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7637. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7638. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7639. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7640. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7641. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7642. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7643. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7644. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7645. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7646. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7647. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7648. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7649. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7650. html += "_$tag";
  7651. $("#dataTable").html(html);
  7652. }else {
  7653. $("#dataTable").html("");
  7654. }
  7655. },
  7656. "error" : function(msg){
  7657. },
  7658. "complete": function(){
  7659. layer.close(tip);
  7660. }
  7661. });
  7662. });
  7663. Date.prototype.Format = function (fmt) {
  7664. var o = {
  7665. "M+": this.getMonth() + 1, //月份
  7666. "d+": this.getDate(), //日
  7667. "h+": this.getHours(), //小时
  7668. "m+": this.getMinutes(), //分
  7669. "s+": this.getSeconds(), //秒
  7670. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7671. "S": this.getMilliseconds() //毫秒
  7672. };
  7673. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7674. for (var k in o)
  7675. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7676. return fmt;
  7677. }
  7678. $("#jrjc").change(function() {
  7679. if ($("#jrjc").prop('checked') == true){
  7680. $("#departmentId").removeAttr("disabled");
  7681. }else {
  7682. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7683. }
  7684. });
  7685. ----------------------------------- SOURCE END -------------------------------------
  7686. !STACK 0
  7687. java.lang.NullPointerException
  7688. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:07.208
  7689. !MESSAGE java.lang.NullPointerException
  7690. !STACK 1
  7691. JavaScript Model Exception: java.lang.NullPointerException
  7692. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7693. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  7694. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7695. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7696. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  7697. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  7698. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  7699. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  7700. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  7701. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  7702. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  7703. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  7704. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  7705. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  7706. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  7707. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  7708. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  7709. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  7710. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  7711. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  7712. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  7713. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  7714. Caused by: java.lang.NullPointerException
  7715. Caused by: java.lang.NullPointerException
  7716. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:07.208
  7717. !MESSAGE java.lang.NullPointerException
  7718. !STACK 0
  7719. java.lang.NullPointerException
  7720. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:07.558
  7721. !MESSAGE Exception occurred during problem detection:
  7722. ----------------------------------- SOURCE BEGIN -------------------------------------
  7723. (function(){WdatePicker();})();
  7724. (function(){WdatePicker();})();
  7725. (function(){Data.get();})();
  7726. (function(){Data.set();})();
  7727. (function(){search();})();
  7728. $(function(){
  7729. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7730. getfp();
  7731. });
  7732. var Data = {
  7733. "get" : function(){
  7734. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  7735. var tip = layer.load(2);
  7736. var result="";
  7737. var url = "getgyxml.do";
  7738. $.ajax({
  7739. "url" : url,
  7740. "data" : {
  7741. "start_date" : $("#dateBegin").val(),
  7742. "end_date" : $("#dateEnd").val()
  7743. },
  7744. "type" : "POST",
  7745. "dataType" : "json",
  7746. "success" : function(data) {
  7747. if(data != null && data != ""){
  7748. if ( data.status =="success"){
  7749. getfp();
  7750. alert("获取成功!");
  7751. }else {
  7752. alert(data.status);
  7753. }
  7754. }else {
  7755. alert("获取失败!");
  7756. }
  7757. },
  7758. "complete": function(){
  7759. layer.close(tip);
  7760. }
  7761. });
  7762. }else {
  7763. alert("请选择日期!");
  7764. }
  7765. },
  7766. "set" : function(){
  7767. if ( $("#fpid option:selected").text() !=""){
  7768. var tip = layer.load(2);
  7769. var gitem = $("#form1").serialize();
  7770. var jrjc;
  7771. if ($("#jrjc").prop('checked') == true){
  7772. jrjc = $("#departmentId").val();
  7773. }else {
  7774. jrjc ='N'
  7775. }
  7776. var url = "saverk.do";
  7777. $.ajax({
  7778. "url" : url,
  7779. "data" : {
  7780. "gitem" : gitem,
  7781. "jrjc" : jrjc
  7782. },
  7783. "type" : "POST",
  7784. "dataType" : "json",
  7785. "async" : true,
  7786. "success" : function(data) {
  7787. if(data.status ="success"){
  7788. alert("入库成功!");
  7789. window.location.reload();
  7790. }else {
  7791. alert(msg);
  7792. }
  7793. },
  7794. "error": function(){
  7795. alert("确认失败!");
  7796. },
  7797. "complete": function(){
  7798. layer.close(tip);
  7799. }
  7800. });
  7801. }else {
  7802. alert("请选择发票!");
  7803. }
  7804. }
  7805. }
  7806. function getfp(){
  7807. var tip = layer.load(2);
  7808. var url = "getgyfp.do";
  7809. $.ajax({
  7810. "url" : url,
  7811. "type" : "POST",
  7812. "dataType" : "json",
  7813. "async" : true,
  7814. "success" : function(data) {
  7815. if(data != null && data != ""){
  7816. $("#fpid").empty();
  7817. $("#fpid").append("_$tag_____________$tag____");
  7818. for(var i = 0; i < data.length; i++){
  7819. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  7820. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  7821. }
  7822. }
  7823. },
  7824. "error" : function(msg){
  7825. },
  7826. "complete": function(){
  7827. layer.close(tip);
  7828. }
  7829. });
  7830. }
  7831. $("#fpid").change(function(){
  7832. var tip = layer.load(2);
  7833. var url = "getgyrkxx.do";
  7834. var sum_total=0;
  7835. $.ajax({
  7836. "url" : url,
  7837. "data" : {
  7838. "fpId" : $("#fpid").val()
  7839. },
  7840. "type" : "POST",
  7841. "dataType" : "json",
  7842. "async" : true,
  7843. "success" : function(data) {
  7844. $("#dataTable").html("");
  7845. if(data != null && data != ""){
  7846. var html = "";
  7847. for(var i = 0; i < data.length; i++){
  7848. var ID = data[i].id == null ? "" : data[i].id;
  7849. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  7850. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  7851. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  7852. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  7853. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  7854. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  7855. var GOODS = data[i].goods == null ? "" : data[i].goods;
  7856. var NAME = data[i].name == null ? "" : data[i].name;
  7857. var SPEC = data[i].spec == null ? "" : data[i].spec;
  7858. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  7859. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  7860. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  7861. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  7862. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  7863. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  7864. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  7865. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  7866. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  7867. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  7868. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  7869. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  7870. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  7871. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  7872. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  7873. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  7874. sum_total = sum_total + DPRC
  7875. var invoice_type_cn =null;
  7876. if (invoice_type =="00" ){
  7877. invoice_type_cn="销售发票";
  7878. }else if (invoice_type == "01") {
  7879. invoice_type_cn="更正(对冲)发票";
  7880. }else if (invoice_type == "02") {
  7881. invoice_type_cn="其它类型发票";
  7882. }
  7883. html += "_$ta";
  7884. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  7885. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7886. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7887. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7888. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7889. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  7890. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  7891. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7892. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7893. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  7894. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  7895. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7896. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  7897. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7898. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7899. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7900. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7901. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7902. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7903. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7904. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7905. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7906. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7907. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7908. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7909. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7910. html += "_$tag";
  7911. }
  7912. html += "_$ta";
  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_____________$tag__________________________________________________________________$tag";
  7919. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7920. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7921. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7922. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7923. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7924. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7925. html += "_$tag_____________$tag__________________________________________________________________$tag";
  7926. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  7927. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7928. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7929. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  7930. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7931. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7932. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  7933. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  7934. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  7935. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  7936. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  7937. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  7938. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  7939. html += "_$tag";
  7940. $("#dataTable").html(html);
  7941. }else {
  7942. $("#dataTable").html("");
  7943. }
  7944. },
  7945. "error" : function(msg){
  7946. },
  7947. "complete": function(){
  7948. layer.close(tip);
  7949. }
  7950. });
  7951. });
  7952. Date.prototype.Format = function (fmt) {
  7953. var o = {
  7954. "M+": this.getMonth() + 1, //月份
  7955. "d+": this.getDate(), //日
  7956. "h+": this.getHours(), //小时
  7957. "m+": this.getMinutes(), //分
  7958. "s+": this.getSeconds(), //秒
  7959. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  7960. "S": this.getMilliseconds() //毫秒
  7961. };
  7962. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  7963. for (var k in o)
  7964. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  7965. return fmt;
  7966. }
  7967. $("#jrjc").change(function() {
  7968. if ($("#jrjc").prop('checked') == true){
  7969. $("#departmentId").removeAttr("disabled");
  7970. }else {
  7971. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  7972. }
  7973. });
  7974. ----------------------------------- SOURCE END -------------------------------------
  7975. !STACK 0
  7976. java.lang.NullPointerException
  7977. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:07.558
  7978. !MESSAGE Error while processing working copy
  7979. !STACK 1
  7980. JavaScript Model Exception: java.lang.NullPointerException
  7981. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  7982. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  7983. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  7984. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  7985. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  7986. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  7987. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  7988. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  7989. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  7990. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  7991. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  7992. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  7993. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  7994. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  7995. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  7996. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  7997. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  7998. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  7999. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  8000. Caused by: java.lang.NullPointerException
  8001. Caused by: java.lang.NullPointerException
  8002. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:07.558
  8003. !MESSAGE java.lang.NullPointerException
  8004. !STACK 0
  8005. java.lang.NullPointerException
  8006. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:08.602
  8007. !MESSAGE Exception occurred during problem detection:
  8008. ----------------------------------- SOURCE BEGIN -------------------------------------
  8009. (function(){WdatePicker();})();
  8010. (function(){WdatePicker();})();
  8011. (function(){Data.get();})();
  8012. (function(){Data.set();})();
  8013. (function(){search();})();
  8014. $(function(){
  8015. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8016. getfp();
  8017. });
  8018. var Data = {
  8019. "get" : function(){
  8020. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8021. var tip = layer.load(2);
  8022. var result="";
  8023. var url = "getgyxml.do";
  8024. $.ajax({
  8025. "url" : url,
  8026. "data" : {
  8027. "start_date" : $("#dateBegin").val(),
  8028. "end_date" : $("#dateEnd").val()
  8029. },
  8030. "type" : "POST",
  8031. "dataType" : "json",
  8032. "success" : function(data) {
  8033. if(data != null && data != ""){
  8034. if ( data.status =="success"){
  8035. getfp();
  8036. alert("获取成功!");
  8037. }else {
  8038. alert(data.status);
  8039. }
  8040. }else {
  8041. alert("获取失败!");
  8042. }
  8043. },
  8044. "complete": function(){
  8045. layer.close(tip);
  8046. }
  8047. });
  8048. }else {
  8049. alert("请选择日期!");
  8050. }
  8051. },
  8052. "set" : function(){
  8053. if ( $("#fpid option:selected").text() !=""){
  8054. var tip = layer.load(2);
  8055. var gitem = $("#form1").serialize();
  8056. var jrjc;
  8057. if ($("#jrjc").prop('checked') == true){
  8058. jrjc = $("#departmentId").val();
  8059. }else {
  8060. jrjc ='N'
  8061. }
  8062. var url = "saverk.do";
  8063. $.ajax({
  8064. "url" : url,
  8065. "data" : {
  8066. "gitem" : gitem,
  8067. "jrjc" : jrjc
  8068. },
  8069. "type" : "POST",
  8070. "dataType" : "json",
  8071. "async" : true,
  8072. "success" : function(data) {
  8073. if(data.status ="success"){
  8074. alert("入库成功!");
  8075. window.location.reload();
  8076. }else {
  8077. alert(msg);
  8078. }
  8079. },
  8080. "error": function(){
  8081. alert("确认失败!");
  8082. },
  8083. "complete": function(){
  8084. layer.close(tip);
  8085. }
  8086. });
  8087. }else {
  8088. alert("请选择发票!");
  8089. }
  8090. }
  8091. }
  8092. function getfp(){
  8093. var tip = layer.load(2);
  8094. var url = "getgyfp.do";
  8095. $.ajax({
  8096. "url" : url,
  8097. "type" : "POST",
  8098. "dataType" : "json",
  8099. "async" : true,
  8100. "success" : function(data) {
  8101. if(data != null && data != ""){
  8102. $("#fpid").empty();
  8103. $("#fpid").append("_$tag_____________$tag____");
  8104. for(var i = 0; i < data.length; i++){
  8105. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8106. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8107. }
  8108. }
  8109. },
  8110. "error" : function(msg){
  8111. },
  8112. "complete": function(){
  8113. layer.close(tip);
  8114. }
  8115. });
  8116. }
  8117. $("#fpid").change(function(){
  8118. var tip = layer.load(2);
  8119. var url = "getgyrkxx.do";
  8120. var sum_total=0;
  8121. $.ajax({
  8122. "url" : url,
  8123. "data" : {
  8124. "fpId" : $("#fpid").val()
  8125. },
  8126. "type" : "POST",
  8127. "dataType" : "json",
  8128. "async" : true,
  8129. "success" : function(data) {
  8130. $("#dataTable").html("");
  8131. if(data != null && data != ""){
  8132. var html = "";
  8133. for(var i = 0; i < data.length; i++){
  8134. var ID = data[i].id == null ? "" : data[i].id;
  8135. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8136. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8137. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8138. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8139. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8140. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8141. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8142. var NAME = data[i].name == null ? "" : data[i].name;
  8143. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8144. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8145. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8146. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8147. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8148. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8149. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8150. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8151. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8152. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8153. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8154. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8155. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8156. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8157. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8158. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8159. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8160. sum_total = sum_total + DPRC
  8161. var invoice_type_cn =null;
  8162. if (invoice_type =="00" ){
  8163. invoice_type_cn="销售发票";
  8164. }else if (invoice_type == "01") {
  8165. invoice_type_cn="更正(对冲)发票";
  8166. }else if (invoice_type == "02") {
  8167. invoice_type_cn="其它类型发票";
  8168. }
  8169. html += "_$ta";
  8170. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8171. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8172. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8173. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8174. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8175. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8176. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8177. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8178. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8179. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8180. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8181. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8182. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8183. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8184. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8185. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8186. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8187. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8188. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8189. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8190. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8191. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8192. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8193. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8194. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8195. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8196. html += "_$tag";
  8197. }
  8198. html += "_$ta";
  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_____________$tag__________________________________________________________________$tag";
  8208. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8209. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8210. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8211. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8212. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8213. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8214. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8215. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8216. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8217. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8218. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8219. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8220. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8221. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8222. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8223. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8224. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8225. html += "_$tag";
  8226. $("#dataTable").html(html);
  8227. }else {
  8228. $("#dataTable").html("");
  8229. }
  8230. },
  8231. "error" : function(msg){
  8232. },
  8233. "complete": function(){
  8234. layer.close(tip);
  8235. }
  8236. });
  8237. });
  8238. Date.prototype.Format = function (fmt) {
  8239. var o = {
  8240. "M+": this.getMonth() + 1, //月份
  8241. "d+": this.getDate(), //日
  8242. "h+": this.getHours(), //小时
  8243. "m+": this.getMinutes(), //分
  8244. "s+": this.getSeconds(), //秒
  8245. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8246. "S": this.getMilliseconds() //毫秒
  8247. };
  8248. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8249. for (var k in o)
  8250. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8251. return fmt;
  8252. }
  8253. $("#jrjc").change(function() {
  8254. if ($("#jrjc").prop('checked') == true){
  8255. $("#departmentId").removeAttr("disabled");
  8256. }else {
  8257. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8258. }
  8259. });
  8260. ----------------------------------- SOURCE END -------------------------------------
  8261. !STACK 0
  8262. java.lang.NullPointerException
  8263. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:11.757
  8264. !MESSAGE Exception occurred during problem detection:
  8265. ----------------------------------- SOURCE BEGIN -------------------------------------
  8266. (function(){WdatePicker();})();
  8267. (function(){WdatePicker();})();
  8268. (function(){Data.get();})();
  8269. (function(){Data.set();})();
  8270. (function(){search();})();
  8271. $(function(){
  8272. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8273. getfp();
  8274. });
  8275. var Data = {
  8276. "get" : function(){
  8277. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8278. var tip = layer.load(2);
  8279. var result="";
  8280. var url = "getgyxml.do";
  8281. $.ajax({
  8282. "url" : url,
  8283. "data" : {
  8284. "start_date" : $("#dateBegin").val(),
  8285. "end_date" : $("#dateEnd").val()
  8286. },
  8287. "type" : "POST",
  8288. "dataType" : "json",
  8289. "success" : function(data) {
  8290. if(data != null && data != ""){
  8291. if ( data.status =="success"){
  8292. getfp();
  8293. alert("获取成功!");
  8294. }else {
  8295. alert(data.status);
  8296. }
  8297. }else {
  8298. alert("获取失败!");
  8299. }
  8300. },
  8301. "complete": function(){
  8302. layer.close(tip);
  8303. }
  8304. });
  8305. }else {
  8306. alert("请选择日期!");
  8307. }
  8308. },
  8309. "set" : function(){
  8310. if ( $("#fpid option:selected").text() !=""){
  8311. var tip = layer.load(2);
  8312. var gitem = $("#form1").serialize();
  8313. var jrjc;
  8314. if ($("#jrjc").prop('checked') == true){
  8315. jrjc = $("#departmentId").val();
  8316. }else {
  8317. jrjc ='N'
  8318. }
  8319. var url = "saverk.do";
  8320. $.ajax({
  8321. "url" : url,
  8322. "data" : {
  8323. "gitem" : gitem,
  8324. "jrjc" : jrjc
  8325. },
  8326. "type" : "POST",
  8327. "dataType" : "json",
  8328. "async" : true,
  8329. "success" : function(data) {
  8330. if(data.status ="success"){
  8331. alert("入库成功!");
  8332. window.location.reload();
  8333. }else {
  8334. alert(msg);
  8335. }
  8336. },
  8337. "error": function(){
  8338. alert("确认失败!");
  8339. },
  8340. "complete": function(){
  8341. layer.close(tip);
  8342. }
  8343. });
  8344. }else {
  8345. alert("请选择发票!");
  8346. }
  8347. }
  8348. }
  8349. function getfp(){
  8350. var tip = layer.load(2);
  8351. var url = "getgyfp.do";
  8352. $.ajax({
  8353. "url" : url,
  8354. "type" : "POST",
  8355. "dataType" : "json",
  8356. "async" : true,
  8357. "success" : function(data) {
  8358. if(data != null && data != ""){
  8359. $("#fpid").empty();
  8360. $("#fpid").append("_$tag_____________$tag____");
  8361. for(var i = 0; i < data.length; i++){
  8362. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8363. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8364. }
  8365. }
  8366. },
  8367. "error" : function(msg){
  8368. },
  8369. "complete": function(){
  8370. layer.close(tip);
  8371. }
  8372. });
  8373. }
  8374. $("#fpid").change(function(){
  8375. var tip = layer.load(2);
  8376. var url = "getgyrkxx.do";
  8377. var sum_total=0;
  8378. $.ajax({
  8379. "url" : url,
  8380. "data" : {
  8381. "fpId" : $("#fpid").val()
  8382. },
  8383. "type" : "POST",
  8384. "dataType" : "json",
  8385. "async" : true,
  8386. "success" : function(data) {
  8387. $("#dataTable").html("");
  8388. if(data != null && data != ""){
  8389. var html = "";
  8390. for(var i = 0; i < data.length; i++){
  8391. var ID = data[i].id == null ? "" : data[i].id;
  8392. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8393. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8394. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8395. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8396. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8397. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8398. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8399. var NAME = data[i].name == null ? "" : data[i].name;
  8400. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8401. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8402. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8403. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8404. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8405. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8406. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8407. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8408. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8409. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8410. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8411. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8412. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8413. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8414. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8415. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8416. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8417. sum_total = sum_total + DPRC
  8418. var invoice_type_cn =null;
  8419. if (invoice_type =="00" ){
  8420. invoice_type_cn="销售发票";
  8421. }else if (invoice_type == "01") {
  8422. invoice_type_cn="更正(对冲)发票";
  8423. }else if (invoice_type == "02") {
  8424. invoice_type_cn="其它类型发票";
  8425. }
  8426. html += "_$ta";
  8427. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8428. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8429. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8430. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8431. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8432. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8433. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8434. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8435. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8436. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8437. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8438. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8439. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8440. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8441. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8442. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8443. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8444. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8445. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8446. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8447. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8448. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8449. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8450. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8451. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8452. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8453. html += "_$tag";
  8454. }
  8455. html += "_$ta";
  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_____________$tag__________________________________________________________________$tag";
  8465. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8466. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8467. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8468. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8469. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8470. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8471. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8472. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8473. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8474. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8475. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8476. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8477. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8478. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8479. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8480. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8481. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8482. html += "_$tag";
  8483. $("#dataTable").html(html);
  8484. }else {
  8485. $("#dataTable").html("");
  8486. }
  8487. },
  8488. "error" : function(msg){
  8489. },
  8490. "complete": function(){
  8491. layer.close(tip);
  8492. }
  8493. });
  8494. });
  8495. Date.prototype.Format = function (fmt) {
  8496. var o = {
  8497. "M+": this.getMonth() + 1, //月份
  8498. "d+": this.getDate(), //日
  8499. "h+": this.getHours(), //小时
  8500. "m+": this.getMinutes(), //分
  8501. "s+": this.getSeconds(), //秒
  8502. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8503. "S": this.getMilliseconds() //毫秒
  8504. };
  8505. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8506. for (var k in o)
  8507. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8508. return fmt;
  8509. }
  8510. $("#jrjc").change(function() {
  8511. if ($("#jrjc").prop('checked') == true){
  8512. $("#departmentId").removeAttr("disabled");
  8513. }else {
  8514. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8515. }
  8516. });
  8517. ----------------------------------- SOURCE END -------------------------------------
  8518. !STACK 0
  8519. java.lang.NullPointerException
  8520. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:11.757
  8521. !MESSAGE java.lang.NullPointerException
  8522. !STACK 1
  8523. JavaScript Model Exception: java.lang.NullPointerException
  8524. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8525. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8526. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8527. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8528. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8529. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8530. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8531. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8532. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8533. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8534. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8535. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8536. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8537. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8538. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8539. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8540. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8541. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8542. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8543. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8544. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8545. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8546. Caused by: java.lang.NullPointerException
  8547. Caused by: java.lang.NullPointerException
  8548. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:11.758
  8549. !MESSAGE java.lang.NullPointerException
  8550. !STACK 0
  8551. java.lang.NullPointerException
  8552. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:16.192
  8553. !MESSAGE Exception occurred during problem detection:
  8554. ----------------------------------- SOURCE BEGIN -------------------------------------
  8555. (function(){WdatePicker();})();
  8556. (function(){WdatePicker();})();
  8557. (function(){Data.get();})();
  8558. (function(){Data.set();})();
  8559. (function(){search();})();
  8560. $(function(){
  8561. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8562. getfp();
  8563. });
  8564. var Data = {
  8565. "get" : function(){
  8566. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8567. var tip = layer.load(2);
  8568. var result="";
  8569. var url = "getgyxml.do";
  8570. $.ajax({
  8571. "url" : url,
  8572. "data" : {
  8573. "start_date" : $("#dateBegin").val(),
  8574. "end_date" : $("#dateEnd").val()
  8575. },
  8576. "type" : "POST",
  8577. "dataType" : "json",
  8578. "success" : function(data) {
  8579. if(data != null && data != ""){
  8580. if ( data.status =="success"){
  8581. getfp();
  8582. alert("获取成功!");
  8583. }else {
  8584. alert(data.status);
  8585. }
  8586. }else {
  8587. alert("获取失败!");
  8588. }
  8589. },
  8590. "complete": function(){
  8591. layer.close(tip);
  8592. }
  8593. });
  8594. }else {
  8595. alert("请选择日期!");
  8596. }
  8597. },
  8598. "set" : function(){
  8599. if ( $("#fpid option:selected").text() !=""){
  8600. var tip = layer.load(2);
  8601. var gitem = $("#form1").serialize();
  8602. var jrjc;
  8603. if ($("#jrjc").prop('checked') == true){
  8604. jrjc = $("#departmentId").val();
  8605. }else {
  8606. jrjc ='N'
  8607. }
  8608. var url = "saverk.do";
  8609. $.ajax({
  8610. "url" : url,
  8611. "data" : {
  8612. "gitem" : gitem,
  8613. "jrjc" : jrjc
  8614. },
  8615. "type" : "POST",
  8616. "dataType" : "json",
  8617. "async" : true,
  8618. "success" : function(data) {
  8619. if(data.status ="success"){
  8620. alert("入库成功!");
  8621. window.location.reload();
  8622. }else {
  8623. alert(msg);
  8624. }
  8625. },
  8626. "error": function(){
  8627. alert("确认失败!");
  8628. },
  8629. "complete": function(){
  8630. layer.close(tip);
  8631. }
  8632. });
  8633. }else {
  8634. alert("请选择发票!");
  8635. }
  8636. }
  8637. }
  8638. function getfp(){
  8639. var tip = layer.load(2);
  8640. var url = "getgyfp.do";
  8641. $.ajax({
  8642. "url" : url,
  8643. "type" : "POST",
  8644. "dataType" : "json",
  8645. "async" : true,
  8646. "success" : function(data) {
  8647. if(data != null && data != ""){
  8648. $("#fpid").empty();
  8649. $("#fpid").append("_$tag_____________$tag____");
  8650. for(var i = 0; i < data.length; i++){
  8651. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8652. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8653. }
  8654. }
  8655. },
  8656. "error" : function(msg){
  8657. },
  8658. "complete": function(){
  8659. layer.close(tip);
  8660. }
  8661. });
  8662. }
  8663. $("#fpid").change(function(){
  8664. var tip = layer.load(2);
  8665. var url = "getgyrkxx.do";
  8666. var sum_total=0;
  8667. $.ajax({
  8668. "url" : url,
  8669. "data" : {
  8670. "fpId" : $("#fpid").val()
  8671. },
  8672. "type" : "POST",
  8673. "dataType" : "json",
  8674. "async" : true,
  8675. "success" : function(data) {
  8676. $("#dataTable").html("");
  8677. if(data != null && data != ""){
  8678. var html = "";
  8679. for(var i = 0; i < data.length; i++){
  8680. var ID = data[i].id == null ? "" : data[i].id;
  8681. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8682. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8683. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8684. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8685. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8686. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8687. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8688. var NAME = data[i].name == null ? "" : data[i].name;
  8689. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8690. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8691. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8692. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8693. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8694. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8695. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8696. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8697. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8698. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8699. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8700. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8701. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8702. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8703. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8704. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8705. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8706. sum_total = sum_total + DPRC
  8707. var invoice_type_cn =null;
  8708. if (invoice_type =="00" ){
  8709. invoice_type_cn="销售发票";
  8710. }else if (invoice_type == "01") {
  8711. invoice_type_cn="更正(对冲)发票";
  8712. }else if (invoice_type == "02") {
  8713. invoice_type_cn="其它类型发票";
  8714. }
  8715. html += "_$ta";
  8716. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  8717. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8718. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8719. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8720. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8721. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  8722. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  8723. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8724. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8725. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  8726. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  8727. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8728. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  8729. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8730. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8731. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8732. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8733. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8734. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8735. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8736. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8737. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8738. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8739. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8740. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8741. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8742. html += "_$tag";
  8743. }
  8744. html += "_$ta";
  8745. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8746. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8747. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8748. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8749. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8750. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8751. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8752. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8753. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8754. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8755. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8756. html += "_$tag_____________$tag__________________________________________________________________$tag";
  8757. html += "_$tag_____________$tag_________________________________________________________________合计_$tag";
  8758. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  8759. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8760. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8761. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  8762. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8763. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8764. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  8765. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  8766. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  8767. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  8768. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  8769. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  8770. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  8771. html += "_$tag";
  8772. $("#dataTable").html(html);
  8773. }else {
  8774. $("#dataTable").html("");
  8775. }
  8776. },
  8777. "error" : function(msg){
  8778. },
  8779. "complete": function(){
  8780. layer.close(tip);
  8781. }
  8782. });
  8783. });
  8784. Date.prototype.Format = function (fmt) {
  8785. var o = {
  8786. "M+": this.getMonth() + 1, //月份
  8787. "d+": this.getDate(), //日
  8788. "h+": this.getHours(), //小时
  8789. "m+": this.getMinutes(), //分
  8790. "s+": this.getSeconds(), //秒
  8791. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  8792. "S": this.getMilliseconds() //毫秒
  8793. };
  8794. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  8795. for (var k in o)
  8796. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  8797. return fmt;
  8798. }
  8799. $("#jrjc").change(function() {
  8800. if ($("#jrjc").prop('checked') == true){
  8801. $("#departmentId").removeAttr("disabled");
  8802. }else {
  8803. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8804. }
  8805. });
  8806. ----------------------------------- SOURCE END -------------------------------------
  8807. !STACK 0
  8808. java.lang.NullPointerException
  8809. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:16.193
  8810. !MESSAGE java.lang.NullPointerException
  8811. !STACK 1
  8812. JavaScript Model Exception: java.lang.NullPointerException
  8813. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  8814. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  8815. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  8816. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  8817. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  8818. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  8819. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  8820. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  8821. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  8822. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  8823. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  8824. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  8825. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  8826. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  8827. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  8828. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  8829. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  8830. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  8831. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  8832. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  8833. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  8834. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  8835. Caused by: java.lang.NullPointerException
  8836. Caused by: java.lang.NullPointerException
  8837. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:16.193
  8838. !MESSAGE java.lang.NullPointerException
  8839. !STACK 0
  8840. java.lang.NullPointerException
  8841. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:17.855
  8842. !MESSAGE Exception occurred during problem detection:
  8843. ----------------------------------- SOURCE BEGIN -------------------------------------
  8844. (function(){WdatePicker();})();
  8845. (function(){WdatePicker();})();
  8846. (function(){Data.get();})();
  8847. (function(){Data.set();})();
  8848. (function(){search();})();
  8849. $(function(){
  8850. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  8851. getfp();
  8852. });
  8853. var Data = {
  8854. "get" : function(){
  8855. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  8856. var tip = layer.load(2);
  8857. var result="";
  8858. var url = "getgyxml.do";
  8859. $.ajax({
  8860. "url" : url,
  8861. "data" : {
  8862. "start_date" : $("#dateBegin").val(),
  8863. "end_date" : $("#dateEnd").val()
  8864. },
  8865. "type" : "POST",
  8866. "dataType" : "json",
  8867. "success" : function(data) {
  8868. if(data != null && data != ""){
  8869. if ( data.status =="success"){
  8870. getfp();
  8871. alert("获取成功!");
  8872. }else {
  8873. alert(data.status);
  8874. }
  8875. }else {
  8876. alert("获取失败!");
  8877. }
  8878. },
  8879. "complete": function(){
  8880. layer.close(tip);
  8881. }
  8882. });
  8883. }else {
  8884. alert("请选择日期!");
  8885. }
  8886. },
  8887. "set" : function(){
  8888. if ( $("#fpid option:selected").text() !=""){
  8889. var tip = layer.load(2);
  8890. var gitem = $("#form1").serialize();
  8891. var jrjc;
  8892. if ($("#jrjc").prop('checked') == true){
  8893. jrjc = $("#departmentId").val();
  8894. }else {
  8895. jrjc ='N'
  8896. }
  8897. var url = "saverk.do";
  8898. $.ajax({
  8899. "url" : url,
  8900. "data" : {
  8901. "gitem" : gitem,
  8902. "jrjc" : jrjc
  8903. },
  8904. "type" : "POST",
  8905. "dataType" : "json",
  8906. "async" : true,
  8907. "success" : function(data) {
  8908. if(data.status ="success"){
  8909. alert("入库成功!");
  8910. window.location.reload();
  8911. }else {
  8912. alert(msg);
  8913. }
  8914. },
  8915. "error": function(){
  8916. alert("确认失败!");
  8917. },
  8918. "complete": function(){
  8919. layer.close(tip);
  8920. }
  8921. });
  8922. }else {
  8923. alert("请选择发票!");
  8924. }
  8925. }
  8926. }
  8927. function getfp(){
  8928. var tip = layer.load(2);
  8929. var url = "getgyfp.do";
  8930. $.ajax({
  8931. "url" : url,
  8932. "type" : "POST",
  8933. "dataType" : "json",
  8934. "async" : true,
  8935. "success" : function(data) {
  8936. if(data != null && data != ""){
  8937. $("#fpid").empty();
  8938. $("#fpid").append("_$tag_____________$tag____");
  8939. for(var i = 0; i < data.length; i++){
  8940. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  8941. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  8942. }
  8943. }
  8944. },
  8945. "error" : function(msg){
  8946. },
  8947. "complete": function(){
  8948. layer.close(tip);
  8949. }
  8950. });
  8951. }
  8952. $("#fpid").change(function(){
  8953. var tip = layer.load(2);
  8954. var url = "getgyrkxx.do";
  8955. var sum_total=0;
  8956. $.ajax({
  8957. "url" : url,
  8958. "data" : {
  8959. "fpId" : $("#fpid").val()
  8960. },
  8961. "type" : "POST",
  8962. "dataType" : "json",
  8963. "async" : true,
  8964. "success" : function(data) {
  8965. $("#dataTable").html("");
  8966. if(data != null && data != ""){
  8967. var html = "";
  8968. for(var i = 0; i < data.length; i++){
  8969. var ID = data[i].id == null ? "" : data[i].id;
  8970. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  8971. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  8972. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  8973. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  8974. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  8975. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  8976. var GOODS = data[i].goods == null ? "" : data[i].goods;
  8977. var NAME = data[i].name == null ? "" : data[i].name;
  8978. var SPEC = data[i].spec == null ? "" : data[i].spec;
  8979. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  8980. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  8981. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  8982. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  8983. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  8984. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  8985. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  8986. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  8987. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  8988. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  8989. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  8990. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  8991. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  8992. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  8993. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  8994. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  8995. sum_total = sum_total + DPRC
  8996. var invoice_type_cn =null;
  8997. if (invoice_type =="00" ){
  8998. invoice_type_cn="销售发票";
  8999. }else if (invoice_type == "01") {
  9000. invoice_type_cn="更正(对冲)发票";
  9001. }else if (invoice_type == "02") {
  9002. invoice_type_cn="其它类型发票";
  9003. }
  9004. html += "_$ta";
  9005. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9006. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9007. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9008. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9009. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9010. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9011. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9012. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9013. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9014. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9015. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9016. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9017. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9018. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9019. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9020. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9021. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9022. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9023. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9024. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9025. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9026. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9027. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9028. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9029. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9030. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9031. html += "_$tag";
  9032. }
  9033. html += "_$ta";
  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_____________$tag__________________________________________________________________$tag";
  9040. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9041. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9042. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9043. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9044. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9045. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9046. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  9047. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9048. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9049. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9050. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9051. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9052. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9053. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9054. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9055. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9056. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9057. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9058. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9059. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9060. html += "_$tag";
  9061. $("#dataTable").html(html);
  9062. }else {
  9063. $("#dataTable").html("");
  9064. }
  9065. },
  9066. "error" : function(msg){
  9067. },
  9068. "complete": function(){
  9069. layer.close(tip);
  9070. }
  9071. });
  9072. });
  9073. Date.prototype.Format = function (fmt) {
  9074. var o = {
  9075. "M+": this.getMonth() + 1, //月份
  9076. "d+": this.getDate(), //日
  9077. "h+": this.getHours(), //小时
  9078. "m+": this.getMinutes(), //分
  9079. "s+": this.getSeconds(), //秒
  9080. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9081. "S": this.getMilliseconds() //毫秒
  9082. };
  9083. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9084. for (var k in o)
  9085. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9086. return fmt;
  9087. }
  9088. $("#jrjc").change(function() {
  9089. if ($("#jrjc").prop('checked') == true){
  9090. $("#departmentId").removeAttr("disabled");
  9091. }else {
  9092. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9093. }
  9094. });
  9095. ----------------------------------- SOURCE END -------------------------------------
  9096. !STACK 0
  9097. java.lang.NullPointerException
  9098. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:17.856
  9099. !MESSAGE java.lang.NullPointerException
  9100. !STACK 1
  9101. JavaScript Model Exception: java.lang.NullPointerException
  9102. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9103. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  9104. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9105. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9106. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  9107. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  9108. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  9109. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  9110. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  9111. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  9112. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  9113. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  9114. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  9115. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  9116. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  9117. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  9118. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  9119. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  9120. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  9121. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  9122. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  9123. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  9124. Caused by: java.lang.NullPointerException
  9125. Caused by: java.lang.NullPointerException
  9126. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:17.856
  9127. !MESSAGE java.lang.NullPointerException
  9128. !STACK 0
  9129. java.lang.NullPointerException
  9130. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:24.347
  9131. !MESSAGE Exception occurred during problem detection:
  9132. ----------------------------------- SOURCE BEGIN -------------------------------------
  9133. (function(){WdatePicker();})();
  9134. (function(){WdatePicker();})();
  9135. (function(){Data.get();})();
  9136. (function(){Data.set();})();
  9137. (function(){search();})();
  9138. $(function(){
  9139. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9140. getfp();
  9141. });
  9142. var Data = {
  9143. "get" : function(){
  9144. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9145. var tip = layer.load(2);
  9146. var result="";
  9147. var url = "getgyxml.do";
  9148. $.ajax({
  9149. "url" : url,
  9150. "data" : {
  9151. "start_date" : $("#dateBegin").val(),
  9152. "end_date" : $("#dateEnd").val()
  9153. },
  9154. "type" : "POST",
  9155. "dataType" : "json",
  9156. "success" : function(data) {
  9157. if(data != null && data != ""){
  9158. if ( data.status =="success"){
  9159. getfp();
  9160. alert("获取成功!");
  9161. }else {
  9162. alert(data.status);
  9163. }
  9164. }else {
  9165. alert("获取失败!");
  9166. }
  9167. },
  9168. "complete": function(){
  9169. layer.close(tip);
  9170. }
  9171. });
  9172. }else {
  9173. alert("请选择日期!");
  9174. }
  9175. },
  9176. "set" : function(){
  9177. if ( $("#fpid option:selected").text() !=""){
  9178. var tip = layer.load(2);
  9179. var gitem = $("#form1").serialize();
  9180. var jrjc;
  9181. if ($("#jrjc").prop('checked') == true){
  9182. jrjc = $("#departmentId").val();
  9183. }else {
  9184. jrjc ='N'
  9185. }
  9186. var url = "saverk.do";
  9187. $.ajax({
  9188. "url" : url,
  9189. "data" : {
  9190. "gitem" : gitem,
  9191. "jrjc" : jrjc
  9192. },
  9193. "type" : "POST",
  9194. "dataType" : "json",
  9195. "async" : true,
  9196. "success" : function(data) {
  9197. if(data.status ="success"){
  9198. alert("入库成功!");
  9199. window.location.reload();
  9200. }else {
  9201. alert(msg);
  9202. }
  9203. },
  9204. "error": function(){
  9205. alert("确认失败!");
  9206. },
  9207. "complete": function(){
  9208. layer.close(tip);
  9209. }
  9210. });
  9211. }else {
  9212. alert("请选择发票!");
  9213. }
  9214. }
  9215. }
  9216. function getfp(){
  9217. var tip = layer.load(2);
  9218. var url = "getgyfp.do";
  9219. $.ajax({
  9220. "url" : url,
  9221. "type" : "POST",
  9222. "dataType" : "json",
  9223. "async" : true,
  9224. "success" : function(data) {
  9225. if(data != null && data != ""){
  9226. $("#fpid").empty();
  9227. $("#fpid").append("_$tag_____________$tag____");
  9228. for(var i = 0; i < data.length; i++){
  9229. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9230. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9231. }
  9232. }
  9233. },
  9234. "error" : function(msg){
  9235. },
  9236. "complete": function(){
  9237. layer.close(tip);
  9238. }
  9239. });
  9240. }
  9241. $("#fpid").change(function(){
  9242. var tip = layer.load(2);
  9243. var url = "getgyrkxx.do";
  9244. var sum_total=0;
  9245. $.ajax({
  9246. "url" : url,
  9247. "data" : {
  9248. "fpId" : $("#fpid").val()
  9249. },
  9250. "type" : "POST",
  9251. "dataType" : "json",
  9252. "async" : true,
  9253. "success" : function(data) {
  9254. $("#dataTable").html("");
  9255. if(data != null && data != ""){
  9256. var html = "";
  9257. for(var i = 0; i < data.length; i++){
  9258. var ID = data[i].id == null ? "" : data[i].id;
  9259. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9260. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9261. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9262. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9263. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9264. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9265. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9266. var NAME = data[i].name == null ? "" : data[i].name;
  9267. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9268. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9269. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9270. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9271. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9272. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9273. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9274. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9275. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9276. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9277. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9278. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9279. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9280. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9281. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9282. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9283. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9284. sum_total = sum_total + DPRC
  9285. var invoice_type_cn =null;
  9286. if (invoice_type =="00" ){
  9287. invoice_type_cn="销售发票";
  9288. }else if (invoice_type == "01") {
  9289. invoice_type_cn="更正(对冲)发票";
  9290. }else if (invoice_type == "02") {
  9291. invoice_type_cn="其它类型发票";
  9292. }
  9293. html += "_$ta";
  9294. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9295. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9296. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9297. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9298. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9299. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9300. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9301. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9302. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9303. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9304. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9305. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9306. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9307. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9308. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9309. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9310. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9311. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9312. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9313. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9314. html += "_$tag_____________$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";
  9321. }
  9322. html += "_$ta";
  9323. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9324. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9325. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9326. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9327. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9328. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9329. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9330. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9331. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9332. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9333. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9334. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9335. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  9336. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9337. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9338. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9339. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9340. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9341. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9342. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9343. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9344. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9345. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9346. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9347. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9348. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9349. html += "_$tag";
  9350. $("#dataTable").html(html);
  9351. }else {
  9352. $("#dataTable").html("");
  9353. }
  9354. },
  9355. "error" : function(msg){
  9356. },
  9357. "complete": function(){
  9358. layer.close(tip);
  9359. }
  9360. });
  9361. });
  9362. Date.prototype.Format = function (fmt) {
  9363. var o = {
  9364. "M+": this.getMonth() + 1, //月份
  9365. "d+": this.getDate(), //日
  9366. "h+": this.getHours(), //小时
  9367. "m+": this.getMinutes(), //分
  9368. "s+": this.getSeconds(), //秒
  9369. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9370. "S": this.getMilliseconds() //毫秒
  9371. };
  9372. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9373. for (var k in o)
  9374. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9375. return fmt;
  9376. }
  9377. $("#jrjc").change(function() {
  9378. if ($("#jrjc").prop('checked') == true){
  9379. $("#departmentId").removeAttr("disabled");
  9380. }else {
  9381. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9382. }
  9383. });
  9384. ----------------------------------- SOURCE END -------------------------------------
  9385. !STACK 0
  9386. java.lang.NullPointerException
  9387. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:24.347
  9388. !MESSAGE Error while processing working copy
  9389. !STACK 1
  9390. JavaScript Model Exception: java.lang.NullPointerException
  9391. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9392. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  9393. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9394. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9395. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  9396. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  9397. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  9398. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  9399. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  9400. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  9401. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  9402. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  9403. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  9404. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  9405. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  9406. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  9407. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  9408. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  9409. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  9410. Caused by: java.lang.NullPointerException
  9411. Caused by: java.lang.NullPointerException
  9412. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:24.348
  9413. !MESSAGE java.lang.NullPointerException
  9414. !STACK 0
  9415. java.lang.NullPointerException
  9416. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:25.017
  9417. !MESSAGE Exception occurred during problem detection:
  9418. ----------------------------------- SOURCE BEGIN -------------------------------------
  9419. (function(){WdatePicker();})();
  9420. (function(){WdatePicker();})();
  9421. (function(){Data.get();})();
  9422. (function(){Data.set();})();
  9423. (function(){search();})();
  9424. $(function(){
  9425. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9426. getfp();
  9427. });
  9428. var Data = {
  9429. "get" : function(){
  9430. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9431. var tip = layer.load(2);
  9432. var result="";
  9433. var url = "getgyxml.do";
  9434. $.ajax({
  9435. "url" : url,
  9436. "data" : {
  9437. "start_date" : $("#dateBegin").val(),
  9438. "end_date" : $("#dateEnd").val()
  9439. },
  9440. "type" : "POST",
  9441. "dataType" : "json",
  9442. "success" : function(data) {
  9443. if(data != null && data != ""){
  9444. if ( data.status =="success"){
  9445. getfp();
  9446. alert("获取成功!");
  9447. }else {
  9448. alert(data.status);
  9449. }
  9450. }else {
  9451. alert("获取失败!");
  9452. }
  9453. },
  9454. "complete": function(){
  9455. layer.close(tip);
  9456. }
  9457. });
  9458. }else {
  9459. alert("请选择日期!");
  9460. }
  9461. },
  9462. "set" : function(){
  9463. if ( $("#fpid option:selected").text() !=""){
  9464. var tip = layer.load(2);
  9465. var gitem = $("#form1").serialize();
  9466. var jrjc;
  9467. if ($("#jrjc").prop('checked') == true){
  9468. jrjc = $("#departmentId").val();
  9469. }else {
  9470. jrjc ='N'
  9471. }
  9472. var url = "saverk.do";
  9473. $.ajax({
  9474. "url" : url,
  9475. "data" : {
  9476. "gitem" : gitem,
  9477. "jrjc" : jrjc
  9478. },
  9479. "type" : "POST",
  9480. "dataType" : "json",
  9481. "async" : true,
  9482. "success" : function(data) {
  9483. if(data.status ="success"){
  9484. alert("入库成功!");
  9485. window.location.reload();
  9486. }else {
  9487. alert(msg);
  9488. }
  9489. },
  9490. "error": function(){
  9491. alert("确认失败!");
  9492. },
  9493. "complete": function(){
  9494. layer.close(tip);
  9495. }
  9496. });
  9497. }else {
  9498. alert("请选择发票!");
  9499. }
  9500. }
  9501. }
  9502. function getfp(){
  9503. var tip = layer.load(2);
  9504. var url = "getgyfp.do";
  9505. $.ajax({
  9506. "url" : url,
  9507. "type" : "POST",
  9508. "dataType" : "json",
  9509. "async" : true,
  9510. "success" : function(data) {
  9511. if(data != null && data != ""){
  9512. $("#fpid").empty();
  9513. $("#fpid").append("_$tag_____________$tag____");
  9514. for(var i = 0; i < data.length; i++){
  9515. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9516. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9517. }
  9518. }
  9519. },
  9520. "error" : function(msg){
  9521. },
  9522. "complete": function(){
  9523. layer.close(tip);
  9524. }
  9525. });
  9526. }
  9527. $("#fpid").change(function(){
  9528. var tip = layer.load(2);
  9529. var url = "getgyrkxx.do";
  9530. var sum_total=0;
  9531. $.ajax({
  9532. "url" : url,
  9533. "data" : {
  9534. "fpId" : $("#fpid").val()
  9535. },
  9536. "type" : "POST",
  9537. "dataType" : "json",
  9538. "async" : true,
  9539. "success" : function(data) {
  9540. $("#dataTable").html("");
  9541. if(data != null && data != ""){
  9542. var html = "";
  9543. for(var i = 0; i < data.length; i++){
  9544. var ID = data[i].id == null ? "" : data[i].id;
  9545. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9546. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9547. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9548. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9549. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9550. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9551. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9552. var NAME = data[i].name == null ? "" : data[i].name;
  9553. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9554. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9555. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9556. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9557. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9558. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9559. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9560. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9561. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9562. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9563. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9564. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9565. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9566. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9567. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9568. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9569. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9570. sum_total = sum_total + DPRC
  9571. var invoice_type_cn =null;
  9572. if (invoice_type =="00" ){
  9573. invoice_type_cn="销售发票";
  9574. }else if (invoice_type == "01") {
  9575. invoice_type_cn="更正(对冲)发票";
  9576. }else if (invoice_type == "02") {
  9577. invoice_type_cn="其它类型发票";
  9578. }
  9579. html += "_$ta";
  9580. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9581. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9582. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9583. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9584. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9585. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9586. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9587. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9588. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9589. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9590. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9591. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9592. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9593. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9594. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9595. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9596. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9597. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9598. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9599. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9600. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9601. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9602. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9603. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9604. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9605. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9606. html += "_$tag";
  9607. }
  9608. html += "_$ta";
  9609. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9610. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9611. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9612. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9613. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9614. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9615. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9616. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9617. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9618. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9619. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9620. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9621. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  9622. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9623. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9624. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9625. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9626. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9627. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9628. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9629. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9630. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9631. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9632. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9633. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9634. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9635. html += "_$tag";
  9636. $("#dataTable").html(html);
  9637. }else {
  9638. $("#dataTable").html("");
  9639. }
  9640. },
  9641. "error" : function(msg){
  9642. },
  9643. "complete": function(){
  9644. layer.close(tip);
  9645. }
  9646. });
  9647. });
  9648. Date.prototype.Format = function (fmt) {
  9649. var o = {
  9650. "M+": this.getMonth() + 1, //月份
  9651. "d+": this.getDate(), //日
  9652. "h+": this.getHours(), //小时
  9653. "m+": this.getMinutes(), //分
  9654. "s+": this.getSeconds(), //秒
  9655. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9656. "S": this.getMilliseconds() //毫秒
  9657. };
  9658. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9659. for (var k in o)
  9660. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9661. return fmt;
  9662. }
  9663. $("#jrjc").change(function() {
  9664. if ($("#jrjc").prop('checked') == true){
  9665. $("#departmentId").removeAttr("disabled");
  9666. }else {
  9667. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9668. }
  9669. });
  9670. ----------------------------------- SOURCE END -------------------------------------
  9671. !STACK 0
  9672. java.lang.NullPointerException
  9673. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:26.984
  9674. !MESSAGE Exception occurred during problem detection:
  9675. ----------------------------------- SOURCE BEGIN -------------------------------------
  9676. (function(){WdatePicker();})();
  9677. (function(){WdatePicker();})();
  9678. (function(){Data.get();})();
  9679. (function(){Data.set();})();
  9680. (function(){search();})();
  9681. $(function(){
  9682. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9683. getfp();
  9684. });
  9685. var Data = {
  9686. "get" : function(){
  9687. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9688. var tip = layer.load(2);
  9689. var result="";
  9690. var url = "getgyxml.do";
  9691. $.ajax({
  9692. "url" : url,
  9693. "data" : {
  9694. "start_date" : $("#dateBegin").val(),
  9695. "end_date" : $("#dateEnd").val()
  9696. },
  9697. "type" : "POST",
  9698. "dataType" : "json",
  9699. "success" : function(data) {
  9700. if(data != null && data != ""){
  9701. if ( data.status =="success"){
  9702. getfp();
  9703. alert("获取成功!");
  9704. }else {
  9705. alert(data.status);
  9706. }
  9707. }else {
  9708. alert("获取失败!");
  9709. }
  9710. },
  9711. "complete": function(){
  9712. layer.close(tip);
  9713. }
  9714. });
  9715. }else {
  9716. alert("请选择日期!");
  9717. }
  9718. },
  9719. "set" : function(){
  9720. if ( $("#fpid option:selected").text() !=""){
  9721. var tip = layer.load(2);
  9722. var gitem = $("#form1").serialize();
  9723. var jrjc;
  9724. if ($("#jrjc").prop('checked') == true){
  9725. jrjc = $("#departmentId").val();
  9726. }else {
  9727. jrjc ='N'
  9728. }
  9729. var url = "saverk.do";
  9730. $.ajax({
  9731. "url" : url,
  9732. "data" : {
  9733. "gitem" : gitem,
  9734. "jrjc" : jrjc
  9735. },
  9736. "type" : "POST",
  9737. "dataType" : "json",
  9738. "async" : true,
  9739. "success" : function(data) {
  9740. if(data.status ="success"){
  9741. alert("入库成功!");
  9742. window.location.reload();
  9743. }else {
  9744. alert(msg);
  9745. }
  9746. },
  9747. "error": function(){
  9748. alert("确认失败!");
  9749. },
  9750. "complete": function(){
  9751. layer.close(tip);
  9752. }
  9753. });
  9754. }else {
  9755. alert("请选择发票!");
  9756. }
  9757. }
  9758. }
  9759. function getfp(){
  9760. var tip = layer.load(2);
  9761. var url = "getgyfp.do";
  9762. $.ajax({
  9763. "url" : url,
  9764. "type" : "POST",
  9765. "dataType" : "json",
  9766. "async" : true,
  9767. "success" : function(data) {
  9768. if(data != null && data != ""){
  9769. $("#fpid").empty();
  9770. $("#fpid").append("_$tag_____________$tag____");
  9771. for(var i = 0; i < data.length; i++){
  9772. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  9773. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  9774. }
  9775. }
  9776. },
  9777. "error" : function(msg){
  9778. },
  9779. "complete": function(){
  9780. layer.close(tip);
  9781. }
  9782. });
  9783. }
  9784. $("#fpid").change(function(){
  9785. var tip = layer.load(2);
  9786. var url = "getgyrkxx.do";
  9787. var sum_total=0;
  9788. $.ajax({
  9789. "url" : url,
  9790. "data" : {
  9791. "fpId" : $("#fpid").val()
  9792. },
  9793. "type" : "POST",
  9794. "dataType" : "json",
  9795. "async" : true,
  9796. "success" : function(data) {
  9797. $("#dataTable").html("");
  9798. if(data != null && data != ""){
  9799. var html = "";
  9800. for(var i = 0; i < data.length; i++){
  9801. var ID = data[i].id == null ? "" : data[i].id;
  9802. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  9803. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  9804. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  9805. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  9806. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  9807. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  9808. var GOODS = data[i].goods == null ? "" : data[i].goods;
  9809. var NAME = data[i].name == null ? "" : data[i].name;
  9810. var SPEC = data[i].spec == null ? "" : data[i].spec;
  9811. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  9812. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  9813. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  9814. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  9815. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  9816. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  9817. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  9818. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  9819. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  9820. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  9821. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  9822. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  9823. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  9824. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  9825. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  9826. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  9827. sum_total = sum_total + DPRC
  9828. var invoice_type_cn =null;
  9829. if (invoice_type =="00" ){
  9830. invoice_type_cn="销售发票";
  9831. }else if (invoice_type == "01") {
  9832. invoice_type_cn="更正(对冲)发票";
  9833. }else if (invoice_type == "02") {
  9834. invoice_type_cn="其它类型发票";
  9835. }
  9836. html += "_$ta";
  9837. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  9838. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9839. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9840. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9841. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9842. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  9843. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  9844. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9845. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9846. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  9847. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  9848. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9849. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  9850. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  9851. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9852. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9853. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9854. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9855. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9856. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9857. html += "_$tag_____________$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";
  9864. }
  9865. html += "_$ta";
  9866. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9867. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9868. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9869. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9870. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9871. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9872. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9873. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9874. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9875. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9876. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9877. html += "_$tag_____________$tag__________________________________________________________________$tag";
  9878. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  9879. html += "_$tag_____________$tag___________________________________________________________________________________________________________________$tag";
  9880. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9881. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9882. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  9883. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9884. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9885. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  9886. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  9887. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  9888. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  9889. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  9890. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  9891. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  9892. html += "_$tag";
  9893. $("#dataTable").html(html);
  9894. }else {
  9895. $("#dataTable").html("");
  9896. }
  9897. },
  9898. "error" : function(msg){
  9899. },
  9900. "complete": function(){
  9901. layer.close(tip);
  9902. }
  9903. });
  9904. });
  9905. Date.prototype.Format = function (fmt) {
  9906. var o = {
  9907. "M+": this.getMonth() + 1, //月份
  9908. "d+": this.getDate(), //日
  9909. "h+": this.getHours(), //小时
  9910. "m+": this.getMinutes(), //分
  9911. "s+": this.getSeconds(), //秒
  9912. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  9913. "S": this.getMilliseconds() //毫秒
  9914. };
  9915. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  9916. for (var k in o)
  9917. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  9918. return fmt;
  9919. }
  9920. $("#jrjc").change(function() {
  9921. if ($("#jrjc").prop('checked') == true){
  9922. $("#departmentId").removeAttr("disabled");
  9923. }else {
  9924. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9925. }
  9926. });
  9927. ----------------------------------- SOURCE END -------------------------------------
  9928. !STACK 0
  9929. java.lang.NullPointerException
  9930. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:26.985
  9931. !MESSAGE java.lang.NullPointerException
  9932. !STACK 1
  9933. JavaScript Model Exception: java.lang.NullPointerException
  9934. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  9935. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  9936. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  9937. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  9938. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  9939. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  9940. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  9941. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  9942. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  9943. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  9944. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  9945. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  9946. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  9947. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  9948. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  9949. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  9950. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  9951. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  9952. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  9953. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  9954. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  9955. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  9956. Caused by: java.lang.NullPointerException
  9957. Caused by: java.lang.NullPointerException
  9958. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:26.985
  9959. !MESSAGE java.lang.NullPointerException
  9960. !STACK 0
  9961. java.lang.NullPointerException
  9962. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:28.364
  9963. !MESSAGE Exception occurred during problem detection:
  9964. ----------------------------------- SOURCE BEGIN -------------------------------------
  9965. (function(){WdatePicker();})();
  9966. (function(){WdatePicker();})();
  9967. (function(){Data.get();})();
  9968. (function(){Data.set();})();
  9969. (function(){search();})();
  9970. $(function(){
  9971. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  9972. getfp();
  9973. });
  9974. var Data = {
  9975. "get" : function(){
  9976. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  9977. var tip = layer.load(2);
  9978. var result="";
  9979. var url = "getgyxml.do";
  9980. $.ajax({
  9981. "url" : url,
  9982. "data" : {
  9983. "start_date" : $("#dateBegin").val(),
  9984. "end_date" : $("#dateEnd").val()
  9985. },
  9986. "type" : "POST",
  9987. "dataType" : "json",
  9988. "success" : function(data) {
  9989. if(data != null && data != ""){
  9990. if ( data.status =="success"){
  9991. getfp();
  9992. alert("获取成功!");
  9993. }else {
  9994. alert(data.status);
  9995. }
  9996. }else {
  9997. alert("获取失败!");
  9998. }
  9999. },
  10000. "complete": function(){
  10001. layer.close(tip);
  10002. }
  10003. });
  10004. }else {
  10005. alert("请选择日期!");
  10006. }
  10007. },
  10008. "set" : function(){
  10009. if ( $("#fpid option:selected").text() !=""){
  10010. var tip = layer.load(2);
  10011. var gitem = $("#form1").serialize();
  10012. var jrjc;
  10013. if ($("#jrjc").prop('checked') == true){
  10014. jrjc = $("#departmentId").val();
  10015. }else {
  10016. jrjc ='N'
  10017. }
  10018. var url = "saverk.do";
  10019. $.ajax({
  10020. "url" : url,
  10021. "data" : {
  10022. "gitem" : gitem,
  10023. "jrjc" : jrjc
  10024. },
  10025. "type" : "POST",
  10026. "dataType" : "json",
  10027. "async" : true,
  10028. "success" : function(data) {
  10029. if(data.status ="success"){
  10030. alert("入库成功!");
  10031. window.location.reload();
  10032. }else {
  10033. alert(msg);
  10034. }
  10035. },
  10036. "error": function(){
  10037. alert("确认失败!");
  10038. },
  10039. "complete": function(){
  10040. layer.close(tip);
  10041. }
  10042. });
  10043. }else {
  10044. alert("请选择发票!");
  10045. }
  10046. }
  10047. }
  10048. function getfp(){
  10049. var tip = layer.load(2);
  10050. var url = "getgyfp.do";
  10051. $.ajax({
  10052. "url" : url,
  10053. "type" : "POST",
  10054. "dataType" : "json",
  10055. "async" : true,
  10056. "success" : function(data) {
  10057. if(data != null && data != ""){
  10058. $("#fpid").empty();
  10059. $("#fpid").append("_$tag_____________$tag____");
  10060. for(var i = 0; i < data.length; i++){
  10061. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10062. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10063. }
  10064. }
  10065. },
  10066. "error" : function(msg){
  10067. },
  10068. "complete": function(){
  10069. layer.close(tip);
  10070. }
  10071. });
  10072. }
  10073. $("#fpid").change(function(){
  10074. var tip = layer.load(2);
  10075. var url = "getgyrkxx.do";
  10076. var sum_total=0;
  10077. $.ajax({
  10078. "url" : url,
  10079. "data" : {
  10080. "fpId" : $("#fpid").val()
  10081. },
  10082. "type" : "POST",
  10083. "dataType" : "json",
  10084. "async" : true,
  10085. "success" : function(data) {
  10086. $("#dataTable").html("");
  10087. if(data != null && data != ""){
  10088. var html = "";
  10089. for(var i = 0; i < data.length; i++){
  10090. var ID = data[i].id == null ? "" : data[i].id;
  10091. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10092. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10093. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10094. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10095. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10096. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10097. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10098. var NAME = data[i].name == null ? "" : data[i].name;
  10099. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10100. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10101. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10102. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10103. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10104. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10105. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10106. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10107. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10108. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10109. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10110. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10111. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10112. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10113. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10114. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10115. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10116. sum_total = sum_total + DPRC
  10117. var invoice_type_cn =null;
  10118. if (invoice_type =="00" ){
  10119. invoice_type_cn="销售发票";
  10120. }else if (invoice_type == "01") {
  10121. invoice_type_cn="更正(对冲)发票";
  10122. }else if (invoice_type == "02") {
  10123. invoice_type_cn="其它类型发票";
  10124. }
  10125. html += "_$ta";
  10126. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10127. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10128. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10129. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10130. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10131. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10132. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10133. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10134. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10135. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10136. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10137. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10138. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10139. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10140. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10141. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10142. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10143. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10144. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10145. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10146. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10147. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10148. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10149. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10150. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10151. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10152. html += "_$tag";
  10153. }
  10154. html += "_$ta";
  10155. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10156. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10157. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10158. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10159. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10160. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10161. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10162. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10163. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10164. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10165. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10166. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10167. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  10168. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10169. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10170. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10171. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10172. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10173. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10174. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10175. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10176. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10177. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10178. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10179. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10180. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10181. html += "_$tag";
  10182. $("#dataTable").html(html);
  10183. }else {
  10184. $("#dataTable").html("");
  10185. }
  10186. },
  10187. "error" : function(msg){
  10188. },
  10189. "complete": function(){
  10190. layer.close(tip);
  10191. }
  10192. });
  10193. });
  10194. Date.prototype.Format = function (fmt) {
  10195. var o = {
  10196. "M+": this.getMonth() + 1, //月份
  10197. "d+": this.getDate(), //日
  10198. "h+": this.getHours(), //小时
  10199. "m+": this.getMinutes(), //分
  10200. "s+": this.getSeconds(), //秒
  10201. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10202. "S": this.getMilliseconds() //毫秒
  10203. };
  10204. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10205. for (var k in o)
  10206. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10207. return fmt;
  10208. }
  10209. $("#jrjc").change(function() {
  10210. if ($("#jrjc").prop('checked') == true){
  10211. $("#departmentId").removeAttr("disabled");
  10212. }else {
  10213. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10214. }
  10215. });
  10216. ----------------------------------- SOURCE END -------------------------------------
  10217. !STACK 0
  10218. java.lang.NullPointerException
  10219. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:28.365
  10220. !MESSAGE java.lang.NullPointerException
  10221. !STACK 1
  10222. JavaScript Model Exception: java.lang.NullPointerException
  10223. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10224. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  10225. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10226. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10227. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  10228. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  10229. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  10230. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  10231. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  10232. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  10233. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  10234. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  10235. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  10236. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  10237. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  10238. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  10239. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  10240. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  10241. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  10242. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  10243. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  10244. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  10245. Caused by: java.lang.NullPointerException
  10246. Caused by: java.lang.NullPointerException
  10247. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:28.365
  10248. !MESSAGE java.lang.NullPointerException
  10249. !STACK 0
  10250. java.lang.NullPointerException
  10251. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:29.744
  10252. !MESSAGE Exception occurred during problem detection:
  10253. ----------------------------------- SOURCE BEGIN -------------------------------------
  10254. (function(){WdatePicker();})();
  10255. (function(){WdatePicker();})();
  10256. (function(){Data.get();})();
  10257. (function(){Data.set();})();
  10258. (function(){search();})();
  10259. $(function(){
  10260. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10261. getfp();
  10262. });
  10263. var Data = {
  10264. "get" : function(){
  10265. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10266. var tip = layer.load(2);
  10267. var result="";
  10268. var url = "getgyxml.do";
  10269. $.ajax({
  10270. "url" : url,
  10271. "data" : {
  10272. "start_date" : $("#dateBegin").val(),
  10273. "end_date" : $("#dateEnd").val()
  10274. },
  10275. "type" : "POST",
  10276. "dataType" : "json",
  10277. "success" : function(data) {
  10278. if(data != null && data != ""){
  10279. if ( data.status =="success"){
  10280. getfp();
  10281. alert("获取成功!");
  10282. }else {
  10283. alert(data.status);
  10284. }
  10285. }else {
  10286. alert("获取失败!");
  10287. }
  10288. },
  10289. "complete": function(){
  10290. layer.close(tip);
  10291. }
  10292. });
  10293. }else {
  10294. alert("请选择日期!");
  10295. }
  10296. },
  10297. "set" : function(){
  10298. if ( $("#fpid option:selected").text() !=""){
  10299. var tip = layer.load(2);
  10300. var gitem = $("#form1").serialize();
  10301. var jrjc;
  10302. if ($("#jrjc").prop('checked') == true){
  10303. jrjc = $("#departmentId").val();
  10304. }else {
  10305. jrjc ='N'
  10306. }
  10307. var url = "saverk.do";
  10308. $.ajax({
  10309. "url" : url,
  10310. "data" : {
  10311. "gitem" : gitem,
  10312. "jrjc" : jrjc
  10313. },
  10314. "type" : "POST",
  10315. "dataType" : "json",
  10316. "async" : true,
  10317. "success" : function(data) {
  10318. if(data.status ="success"){
  10319. alert("入库成功!");
  10320. window.location.reload();
  10321. }else {
  10322. alert(msg);
  10323. }
  10324. },
  10325. "error": function(){
  10326. alert("确认失败!");
  10327. },
  10328. "complete": function(){
  10329. layer.close(tip);
  10330. }
  10331. });
  10332. }else {
  10333. alert("请选择发票!");
  10334. }
  10335. }
  10336. }
  10337. function getfp(){
  10338. var tip = layer.load(2);
  10339. var url = "getgyfp.do";
  10340. $.ajax({
  10341. "url" : url,
  10342. "type" : "POST",
  10343. "dataType" : "json",
  10344. "async" : true,
  10345. "success" : function(data) {
  10346. if(data != null && data != ""){
  10347. $("#fpid").empty();
  10348. $("#fpid").append("_$tag_____________$tag____");
  10349. for(var i = 0; i < data.length; i++){
  10350. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10351. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10352. }
  10353. }
  10354. },
  10355. "error" : function(msg){
  10356. },
  10357. "complete": function(){
  10358. layer.close(tip);
  10359. }
  10360. });
  10361. }
  10362. $("#fpid").change(function(){
  10363. var tip = layer.load(2);
  10364. var url = "getgyrkxx.do";
  10365. var sum_total=0;
  10366. $.ajax({
  10367. "url" : url,
  10368. "data" : {
  10369. "fpId" : $("#fpid").val()
  10370. },
  10371. "type" : "POST",
  10372. "dataType" : "json",
  10373. "async" : true,
  10374. "success" : function(data) {
  10375. $("#dataTable").html("");
  10376. if(data != null && data != ""){
  10377. var html = "";
  10378. for(var i = 0; i < data.length; i++){
  10379. var ID = data[i].id == null ? "" : data[i].id;
  10380. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10381. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10382. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10383. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10384. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10385. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10386. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10387. var NAME = data[i].name == null ? "" : data[i].name;
  10388. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10389. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10390. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10391. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10392. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10393. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10394. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10395. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10396. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10397. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10398. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10399. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10400. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10401. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10402. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10403. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10404. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10405. sum_total = sum_total + DPRC
  10406. var invoice_type_cn =null;
  10407. if (invoice_type =="00" ){
  10408. invoice_type_cn="销售发票";
  10409. }else if (invoice_type == "01") {
  10410. invoice_type_cn="更正(对冲)发票";
  10411. }else if (invoice_type == "02") {
  10412. invoice_type_cn="其它类型发票";
  10413. }
  10414. html += "_$ta";
  10415. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10416. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10417. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10418. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10419. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10420. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10421. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10422. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10423. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10424. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10425. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10426. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10427. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10428. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10429. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10430. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10431. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10432. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10433. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10434. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10435. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10436. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10437. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10438. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10439. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10440. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10441. html += "_$tag";
  10442. }
  10443. html += "_$ta";
  10444. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10445. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10446. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10447. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10448. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10449. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10450. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10451. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10452. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10453. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10454. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10455. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10456. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  10457. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  10458. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10459. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10460. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10461. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10462. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10463. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10464. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10465. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10466. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10467. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10468. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10469. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10470. html += "_$tag";
  10471. $("#dataTable").html(html);
  10472. }else {
  10473. $("#dataTable").html("");
  10474. }
  10475. },
  10476. "error" : function(msg){
  10477. },
  10478. "complete": function(){
  10479. layer.close(tip);
  10480. }
  10481. });
  10482. });
  10483. Date.prototype.Format = function (fmt) {
  10484. var o = {
  10485. "M+": this.getMonth() + 1, //月份
  10486. "d+": this.getDate(), //日
  10487. "h+": this.getHours(), //小时
  10488. "m+": this.getMinutes(), //分
  10489. "s+": this.getSeconds(), //秒
  10490. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10491. "S": this.getMilliseconds() //毫秒
  10492. };
  10493. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10494. for (var k in o)
  10495. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10496. return fmt;
  10497. }
  10498. $("#jrjc").change(function() {
  10499. if ($("#jrjc").prop('checked') == true){
  10500. $("#departmentId").removeAttr("disabled");
  10501. }else {
  10502. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10503. }
  10504. });
  10505. ----------------------------------- SOURCE END -------------------------------------
  10506. !STACK 0
  10507. java.lang.NullPointerException
  10508. !ENTRY org.eclipse.wst.jsdt.web.core 4 4 2018-06-21 09:31:29.745
  10509. !MESSAGE java.lang.NullPointerException
  10510. !STACK 1
  10511. JavaScript Model Exception: java.lang.NullPointerException
  10512. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10513. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:259)
  10514. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10515. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10516. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1117)
  10517. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(ReconcileWorkingCopyOperation.java:177)
  10518. at org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:96)
  10519. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:742)
  10520. at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:802)
  10521. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1272)
  10522. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1249)
  10523. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.reconcileCompilationUnit(JsTranslation.java:565)
  10524. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.performValidation(JsValidator.java:181)
  10525. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validateFile(JsValidator.java:380)
  10526. at org.eclipse.wst.jsdt.web.core.internal.validation.JsValidator.validate(JsValidator.java:290)
  10527. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:303)
  10528. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:262)
  10529. at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:95)
  10530. at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:269)
  10531. at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:321)
  10532. at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:258)
  10533. at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:691)
  10534. Caused by: java.lang.NullPointerException
  10535. Caused by: java.lang.NullPointerException
  10536. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:29.745
  10537. !MESSAGE java.lang.NullPointerException
  10538. !STACK 0
  10539. java.lang.NullPointerException
  10540. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:34.855
  10541. !MESSAGE Exception occurred during problem detection:
  10542. ----------------------------------- SOURCE BEGIN -------------------------------------
  10543. (function(){WdatePicker();})();
  10544. (function(){WdatePicker();})();
  10545. (function(){Data.get();})();
  10546. (function(){Data.set();})();
  10547. (function(){search();})();
  10548. $(function(){
  10549. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10550. getfp();
  10551. });
  10552. var Data = {
  10553. "get" : function(){
  10554. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10555. var tip = layer.load(2);
  10556. var result="";
  10557. var url = "getgyxml.do";
  10558. $.ajax({
  10559. "url" : url,
  10560. "data" : {
  10561. "start_date" : $("#dateBegin").val(),
  10562. "end_date" : $("#dateEnd").val()
  10563. },
  10564. "type" : "POST",
  10565. "dataType" : "json",
  10566. "success" : function(data) {
  10567. if(data != null && data != ""){
  10568. if ( data.status =="success"){
  10569. getfp();
  10570. alert("获取成功!");
  10571. }else {
  10572. alert(data.status);
  10573. }
  10574. }else {
  10575. alert("获取失败!");
  10576. }
  10577. },
  10578. "complete": function(){
  10579. layer.close(tip);
  10580. }
  10581. });
  10582. }else {
  10583. alert("请选择日期!");
  10584. }
  10585. },
  10586. "set" : function(){
  10587. if ( $("#fpid option:selected").text() !=""){
  10588. var tip = layer.load(2);
  10589. var gitem = $("#form1").serialize();
  10590. var jrjc;
  10591. if ($("#jrjc").prop('checked') == true){
  10592. jrjc = $("#departmentId").val();
  10593. }else {
  10594. jrjc ='N'
  10595. }
  10596. var url = "saverk.do";
  10597. $.ajax({
  10598. "url" : url,
  10599. "data" : {
  10600. "gitem" : gitem,
  10601. "jrjc" : jrjc
  10602. },
  10603. "type" : "POST",
  10604. "dataType" : "json",
  10605. "async" : true,
  10606. "success" : function(data) {
  10607. if(data.status ="success"){
  10608. alert("入库成功!");
  10609. window.location.reload();
  10610. }else {
  10611. alert(msg);
  10612. }
  10613. },
  10614. "error": function(){
  10615. alert("确认失败!");
  10616. },
  10617. "complete": function(){
  10618. layer.close(tip);
  10619. }
  10620. });
  10621. }else {
  10622. alert("请选择发票!");
  10623. }
  10624. }
  10625. }
  10626. function getfp(){
  10627. var tip = layer.load(2);
  10628. var url = "getgyfp.do";
  10629. $.ajax({
  10630. "url" : url,
  10631. "type" : "POST",
  10632. "dataType" : "json",
  10633. "async" : true,
  10634. "success" : function(data) {
  10635. if(data != null && data != ""){
  10636. $("#fpid").empty();
  10637. $("#fpid").append("_$tag_____________$tag____");
  10638. for(var i = 0; i < data.length; i++){
  10639. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10640. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10641. }
  10642. }
  10643. },
  10644. "error" : function(msg){
  10645. },
  10646. "complete": function(){
  10647. layer.close(tip);
  10648. }
  10649. });
  10650. }
  10651. $("#fpid").change(function(){
  10652. var tip = layer.load(2);
  10653. var url = "getgyrkxx.do";
  10654. var sum_total=0;
  10655. $.ajax({
  10656. "url" : url,
  10657. "data" : {
  10658. "fpId" : $("#fpid").val()
  10659. },
  10660. "type" : "POST",
  10661. "dataType" : "json",
  10662. "async" : true,
  10663. "success" : function(data) {
  10664. $("#dataTable").html("");
  10665. if(data != null && data != ""){
  10666. var html = "";
  10667. for(var i = 0; i < data.length; i++){
  10668. var ID = data[i].id == null ? "" : data[i].id;
  10669. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10670. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10671. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10672. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10673. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10674. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10675. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10676. var NAME = data[i].name == null ? "" : data[i].name;
  10677. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10678. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10679. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10680. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10681. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10682. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10683. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10684. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10685. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10686. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10687. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10688. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10689. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10690. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10691. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10692. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10693. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10694. sum_total = sum_total + DPRC
  10695. var invoice_type_cn =null;
  10696. if (invoice_type =="00" ){
  10697. invoice_type_cn="销售发票";
  10698. }else if (invoice_type == "01") {
  10699. invoice_type_cn="更正(对冲)发票";
  10700. }else if (invoice_type == "02") {
  10701. invoice_type_cn="其它类型发票";
  10702. }
  10703. html += "_$ta";
  10704. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10705. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10706. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10707. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10708. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10709. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10710. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10711. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10712. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10713. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10714. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  10715. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10716. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  10717. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  10718. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10719. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10720. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10721. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10722. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10723. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10724. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10725. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10726. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10727. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10728. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10729. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10730. html += "_$tag";
  10731. }
  10732. html += "_$ta";
  10733. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10734. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10735. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10736. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10737. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10738. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10739. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10740. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10741. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10742. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10743. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10744. html += "_$tag_____________$tag__________________________________________________________________$tag";
  10745. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  10746. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  10747. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10748. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10749. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10750. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10751. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10752. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10753. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  10754. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  10755. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  10756. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  10757. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  10758. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  10759. html += "_$tag";
  10760. $("#dataTable").html(html);
  10761. }else {
  10762. $("#dataTable").html("");
  10763. }
  10764. },
  10765. "error" : function(msg){
  10766. },
  10767. "complete": function(){
  10768. layer.close(tip);
  10769. }
  10770. });
  10771. });
  10772. Date.prototype.Format = function (fmt) {
  10773. var o = {
  10774. "M+": this.getMonth() + 1, //月份
  10775. "d+": this.getDate(), //日
  10776. "h+": this.getHours(), //小时
  10777. "m+": this.getMinutes(), //分
  10778. "s+": this.getSeconds(), //秒
  10779. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  10780. "S": this.getMilliseconds() //毫秒
  10781. };
  10782. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  10783. for (var k in o)
  10784. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  10785. return fmt;
  10786. }
  10787. $("#jrjc").change(function() {
  10788. if ($("#jrjc").prop('checked') == true){
  10789. $("#departmentId").removeAttr("disabled");
  10790. }else {
  10791. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10792. }
  10793. });
  10794. ----------------------------------- SOURCE END -------------------------------------
  10795. !STACK 0
  10796. java.lang.NullPointerException
  10797. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:34.856
  10798. !MESSAGE Error while processing working copy
  10799. !STACK 1
  10800. JavaScript Model Exception: java.lang.NullPointerException
  10801. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  10802. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  10803. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  10804. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  10805. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  10806. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  10807. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  10808. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  10809. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  10810. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  10811. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  10812. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  10813. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  10814. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  10815. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  10816. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  10817. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  10818. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  10819. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  10820. Caused by: java.lang.NullPointerException
  10821. Caused by: java.lang.NullPointerException
  10822. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:34.856
  10823. !MESSAGE java.lang.NullPointerException
  10824. !STACK 0
  10825. java.lang.NullPointerException
  10826. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:35.886
  10827. !MESSAGE Exception occurred during problem detection:
  10828. ----------------------------------- SOURCE BEGIN -------------------------------------
  10829. (function(){WdatePicker();})();
  10830. (function(){WdatePicker();})();
  10831. (function(){Data.get();})();
  10832. (function(){Data.set();})();
  10833. (function(){search();})();
  10834. $(function(){
  10835. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  10836. getfp();
  10837. });
  10838. var Data = {
  10839. "get" : function(){
  10840. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  10841. var tip = layer.load(2);
  10842. var result="";
  10843. var url = "getgyxml.do";
  10844. $.ajax({
  10845. "url" : url,
  10846. "data" : {
  10847. "start_date" : $("#dateBegin").val(),
  10848. "end_date" : $("#dateEnd").val()
  10849. },
  10850. "type" : "POST",
  10851. "dataType" : "json",
  10852. "success" : function(data) {
  10853. if(data != null && data != ""){
  10854. if ( data.status =="success"){
  10855. getfp();
  10856. alert("获取成功!");
  10857. }else {
  10858. alert(data.status);
  10859. }
  10860. }else {
  10861. alert("获取失败!");
  10862. }
  10863. },
  10864. "complete": function(){
  10865. layer.close(tip);
  10866. }
  10867. });
  10868. }else {
  10869. alert("请选择日期!");
  10870. }
  10871. },
  10872. "set" : function(){
  10873. if ( $("#fpid option:selected").text() !=""){
  10874. var tip = layer.load(2);
  10875. var gitem = $("#form1").serialize();
  10876. var jrjc;
  10877. if ($("#jrjc").prop('checked') == true){
  10878. jrjc = $("#departmentId").val();
  10879. }else {
  10880. jrjc ='N'
  10881. }
  10882. var url = "saverk.do";
  10883. $.ajax({
  10884. "url" : url,
  10885. "data" : {
  10886. "gitem" : gitem,
  10887. "jrjc" : jrjc
  10888. },
  10889. "type" : "POST",
  10890. "dataType" : "json",
  10891. "async" : true,
  10892. "success" : function(data) {
  10893. if(data.status ="success"){
  10894. alert("入库成功!");
  10895. window.location.reload();
  10896. }else {
  10897. alert(msg);
  10898. }
  10899. },
  10900. "error": function(){
  10901. alert("确认失败!");
  10902. },
  10903. "complete": function(){
  10904. layer.close(tip);
  10905. }
  10906. });
  10907. }else {
  10908. alert("请选择发票!");
  10909. }
  10910. }
  10911. }
  10912. function getfp(){
  10913. var tip = layer.load(2);
  10914. var url = "getgyfp.do";
  10915. $.ajax({
  10916. "url" : url,
  10917. "type" : "POST",
  10918. "dataType" : "json",
  10919. "async" : true,
  10920. "success" : function(data) {
  10921. if(data != null && data != ""){
  10922. $("#fpid").empty();
  10923. $("#fpid").append("_$tag_____________$tag____");
  10924. for(var i = 0; i < data.length; i++){
  10925. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  10926. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  10927. }
  10928. }
  10929. },
  10930. "error" : function(msg){
  10931. },
  10932. "complete": function(){
  10933. layer.close(tip);
  10934. }
  10935. });
  10936. }
  10937. $("#fpid").change(function(){
  10938. var tip = layer.load(2);
  10939. var url = "getgyrkxx.do";
  10940. var sum_total=0;
  10941. $.ajax({
  10942. "url" : url,
  10943. "data" : {
  10944. "fpId" : $("#fpid").val()
  10945. },
  10946. "type" : "POST",
  10947. "dataType" : "json",
  10948. "async" : true,
  10949. "success" : function(data) {
  10950. $("#dataTable").html("");
  10951. if(data != null && data != ""){
  10952. var html = "";
  10953. for(var i = 0; i < data.length; i++){
  10954. var ID = data[i].id == null ? "" : data[i].id;
  10955. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  10956. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  10957. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  10958. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  10959. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  10960. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  10961. var GOODS = data[i].goods == null ? "" : data[i].goods;
  10962. var NAME = data[i].name == null ? "" : data[i].name;
  10963. var SPEC = data[i].spec == null ? "" : data[i].spec;
  10964. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  10965. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  10966. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  10967. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  10968. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  10969. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  10970. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  10971. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  10972. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  10973. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  10974. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  10975. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  10976. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  10977. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  10978. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  10979. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  10980. sum_total = sum_total + DPRC
  10981. var invoice_type_cn =null;
  10982. if (invoice_type =="00" ){
  10983. invoice_type_cn="销售发票";
  10984. }else if (invoice_type == "01") {
  10985. invoice_type_cn="更正(对冲)发票";
  10986. }else if (invoice_type == "02") {
  10987. invoice_type_cn="其它类型发票";
  10988. }
  10989. html += "_$ta";
  10990. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  10991. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10992. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  10993. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10994. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10995. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  10996. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  10997. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  10998. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  10999. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11000. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11001. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11002. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11003. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11004. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11005. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11006. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11007. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11008. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11009. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11010. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11011. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11012. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11013. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11014. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11015. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11016. html += "_$tag";
  11017. }
  11018. html += "_$ta";
  11019. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11020. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11021. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11022. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11023. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11024. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11025. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11026. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11027. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11028. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11029. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11030. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11031. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  11032. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  11033. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11034. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11035. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11036. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11037. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11038. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11039. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11040. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11041. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11042. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11043. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11044. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11045. html += "_$tag";
  11046. $("#dataTable").html(html);
  11047. }else {
  11048. $("#dataTable").html("");
  11049. }
  11050. },
  11051. "error" : function(msg){
  11052. },
  11053. "complete": function(){
  11054. layer.close(tip);
  11055. }
  11056. });
  11057. });
  11058. Date.prototype.Format = function (fmt) {
  11059. var o = {
  11060. "M+": this.getMonth() + 1, //月份
  11061. "d+": this.getDate(), //日
  11062. "h+": this.getHours(), //小时
  11063. "m+": this.getMinutes(), //分
  11064. "s+": this.getSeconds(), //秒
  11065. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11066. "S": this.getMilliseconds() //毫秒
  11067. };
  11068. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11069. for (var k in o)
  11070. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11071. return fmt;
  11072. }
  11073. $("#jrjc").change(function() {
  11074. if ($("#jrjc").prop('checked') == true){
  11075. $("#departmentId").removeAttr("disabled");
  11076. }else {
  11077. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11078. }
  11079. });
  11080. ----------------------------------- SOURCE END -------------------------------------
  11081. !STACK 0
  11082. java.lang.NullPointerException
  11083. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:36.277
  11084. !MESSAGE Exception occurred during problem detection:
  11085. ----------------------------------- SOURCE BEGIN -------------------------------------
  11086. (function(){WdatePicker();})();
  11087. (function(){WdatePicker();})();
  11088. (function(){Data.get();})();
  11089. (function(){Data.set();})();
  11090. (function(){search();})();
  11091. $(function(){
  11092. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11093. getfp();
  11094. });
  11095. var Data = {
  11096. "get" : function(){
  11097. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11098. var tip = layer.load(2);
  11099. var result="";
  11100. var url = "getgyxml.do";
  11101. $.ajax({
  11102. "url" : url,
  11103. "data" : {
  11104. "start_date" : $("#dateBegin").val(),
  11105. "end_date" : $("#dateEnd").val()
  11106. },
  11107. "type" : "POST",
  11108. "dataType" : "json",
  11109. "success" : function(data) {
  11110. if(data != null && data != ""){
  11111. if ( data.status =="success"){
  11112. getfp();
  11113. alert("获取成功!");
  11114. }else {
  11115. alert(data.status);
  11116. }
  11117. }else {
  11118. alert("获取失败!");
  11119. }
  11120. },
  11121. "complete": function(){
  11122. layer.close(tip);
  11123. }
  11124. });
  11125. }else {
  11126. alert("请选择日期!");
  11127. }
  11128. },
  11129. "set" : function(){
  11130. if ( $("#fpid option:selected").text() !=""){
  11131. var tip = layer.load(2);
  11132. var gitem = $("#form1").serialize();
  11133. var jrjc;
  11134. if ($("#jrjc").prop('checked') == true){
  11135. jrjc = $("#departmentId").val();
  11136. }else {
  11137. jrjc ='N'
  11138. }
  11139. var url = "saverk.do";
  11140. $.ajax({
  11141. "url" : url,
  11142. "data" : {
  11143. "gitem" : gitem,
  11144. "jrjc" : jrjc
  11145. },
  11146. "type" : "POST",
  11147. "dataType" : "json",
  11148. "async" : true,
  11149. "success" : function(data) {
  11150. if(data.status ="success"){
  11151. alert("入库成功!");
  11152. window.location.reload();
  11153. }else {
  11154. alert(msg);
  11155. }
  11156. },
  11157. "error": function(){
  11158. alert("确认失败!");
  11159. },
  11160. "complete": function(){
  11161. layer.close(tip);
  11162. }
  11163. });
  11164. }else {
  11165. alert("请选择发票!");
  11166. }
  11167. }
  11168. }
  11169. function getfp(){
  11170. var tip = layer.load(2);
  11171. var url = "getgyfp.do";
  11172. $.ajax({
  11173. "url" : url,
  11174. "type" : "POST",
  11175. "dataType" : "json",
  11176. "async" : true,
  11177. "success" : function(data) {
  11178. if(data != null && data != ""){
  11179. $("#fpid").empty();
  11180. $("#fpid").append("_$tag_____________$tag____");
  11181. for(var i = 0; i < data.length; i++){
  11182. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11183. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11184. }
  11185. }
  11186. },
  11187. "error" : function(msg){
  11188. },
  11189. "complete": function(){
  11190. layer.close(tip);
  11191. }
  11192. });
  11193. }
  11194. $("#fpid").change(function(){
  11195. var tip = layer.load(2);
  11196. var url = "getgyrkxx.do";
  11197. var sum_total=0;
  11198. $.ajax({
  11199. "url" : url,
  11200. "data" : {
  11201. "fpId" : $("#fpid").val()
  11202. },
  11203. "type" : "POST",
  11204. "dataType" : "json",
  11205. "async" : true,
  11206. "success" : function(data) {
  11207. $("#dataTable").html("");
  11208. if(data != null && data != ""){
  11209. var html = "";
  11210. for(var i = 0; i < data.length; i++){
  11211. var ID = data[i].id == null ? "" : data[i].id;
  11212. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11213. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11214. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11215. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11216. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11217. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11218. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11219. var NAME = data[i].name == null ? "" : data[i].name;
  11220. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11221. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11222. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11223. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11224. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11225. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11226. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11227. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11228. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11229. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11230. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11231. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11232. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11233. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11234. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11235. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11236. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11237. sum_total = sum_total + DPRC
  11238. var invoice_type_cn =null;
  11239. if (invoice_type =="00" ){
  11240. invoice_type_cn="销售发票";
  11241. }else if (invoice_type == "01") {
  11242. invoice_type_cn="更正(对冲)发票";
  11243. }else if (invoice_type == "02") {
  11244. invoice_type_cn="其它类型发票";
  11245. }
  11246. html += "_$ta";
  11247. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11248. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11249. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11250. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11251. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11252. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11253. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11254. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11255. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11256. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11257. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11258. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11259. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11260. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11261. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11262. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11263. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11264. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11265. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11266. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11267. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11268. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11269. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11270. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11271. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11272. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11273. html += "_$tag";
  11274. }
  11275. html += "_$ta";
  11276. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11277. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11278. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11279. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11280. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11281. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11282. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11283. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11284. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11285. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11286. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11287. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11288. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  11289. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  11290. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11291. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11292. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11293. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11294. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11295. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11296. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11297. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11298. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11299. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11300. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11301. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11302. html += "_$tag";
  11303. $("#dataTable").html(html);
  11304. }else {
  11305. $("#dataTable").html("");
  11306. }
  11307. },
  11308. "error" : function(msg){
  11309. },
  11310. "complete": function(){
  11311. layer.close(tip);
  11312. }
  11313. });
  11314. });
  11315. Date.prototype.Format = function (fmt) {
  11316. var o = {
  11317. "M+": this.getMonth() + 1, //月份
  11318. "d+": this.getDate(), //日
  11319. "h+": this.getHours(), //小时
  11320. "m+": this.getMinutes(), //分
  11321. "s+": this.getSeconds(), //秒
  11322. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11323. "S": this.getMilliseconds() //毫秒
  11324. };
  11325. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11326. for (var k in o)
  11327. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11328. return fmt;
  11329. }
  11330. $("#jrjc").change(function() {
  11331. if ($("#jrjc").prop('checked') == true){
  11332. $("#departmentId").removeAttr("disabled");
  11333. }else {
  11334. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11335. }
  11336. });
  11337. ----------------------------------- SOURCE END -------------------------------------
  11338. !STACK 0
  11339. java.lang.NullPointerException
  11340. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:36.278
  11341. !MESSAGE Error while processing working copy
  11342. !STACK 1
  11343. JavaScript Model Exception: java.lang.NullPointerException
  11344. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11345. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11346. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11347. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11348. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11349. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11350. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11351. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11352. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11353. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11354. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11355. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11356. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11357. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11358. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11359. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11360. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  11361. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  11362. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  11363. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  11364. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  11365. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  11366. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  11367. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  11368. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  11369. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  11370. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  11371. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  11372. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  11373. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  11374. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  11375. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  11376. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  11377. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  11378. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  11379. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  11380. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  11381. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  11382. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  11383. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  11384. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  11385. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  11386. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  11387. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  11388. at java.lang.reflect.Method.invoke(Unknown Source)
  11389. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  11390. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  11391. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  11392. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  11393. Caused by: java.lang.NullPointerException
  11394. Caused by: java.lang.NullPointerException
  11395. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:36.278
  11396. !MESSAGE java.lang.NullPointerException
  11397. !STACK 0
  11398. java.lang.NullPointerException
  11399. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:37.376
  11400. !MESSAGE Exception occurred during problem detection:
  11401. ----------------------------------- SOURCE BEGIN -------------------------------------
  11402. (function(){WdatePicker();})();
  11403. (function(){WdatePicker();})();
  11404. (function(){Data.get();})();
  11405. (function(){Data.set();})();
  11406. (function(){search();})();
  11407. $(function(){
  11408. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11409. getfp();
  11410. });
  11411. var Data = {
  11412. "get" : function(){
  11413. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11414. var tip = layer.load(2);
  11415. var result="";
  11416. var url = "getgyxml.do";
  11417. $.ajax({
  11418. "url" : url,
  11419. "data" : {
  11420. "start_date" : $("#dateBegin").val(),
  11421. "end_date" : $("#dateEnd").val()
  11422. },
  11423. "type" : "POST",
  11424. "dataType" : "json",
  11425. "success" : function(data) {
  11426. if(data != null && data != ""){
  11427. if ( data.status =="success"){
  11428. getfp();
  11429. alert("获取成功!");
  11430. }else {
  11431. alert(data.status);
  11432. }
  11433. }else {
  11434. alert("获取失败!");
  11435. }
  11436. },
  11437. "complete": function(){
  11438. layer.close(tip);
  11439. }
  11440. });
  11441. }else {
  11442. alert("请选择日期!");
  11443. }
  11444. },
  11445. "set" : function(){
  11446. if ( $("#fpid option:selected").text() !=""){
  11447. var tip = layer.load(2);
  11448. var gitem = $("#form1").serialize();
  11449. var jrjc;
  11450. if ($("#jrjc").prop('checked') == true){
  11451. jrjc = $("#departmentId").val();
  11452. }else {
  11453. jrjc ='N'
  11454. }
  11455. var url = "saverk.do";
  11456. $.ajax({
  11457. "url" : url,
  11458. "data" : {
  11459. "gitem" : gitem,
  11460. "jrjc" : jrjc
  11461. },
  11462. "type" : "POST",
  11463. "dataType" : "json",
  11464. "async" : true,
  11465. "success" : function(data) {
  11466. if(data.status ="success"){
  11467. alert("入库成功!");
  11468. window.location.reload();
  11469. }else {
  11470. alert(msg);
  11471. }
  11472. },
  11473. "error": function(){
  11474. alert("确认失败!");
  11475. },
  11476. "complete": function(){
  11477. layer.close(tip);
  11478. }
  11479. });
  11480. }else {
  11481. alert("请选择发票!");
  11482. }
  11483. }
  11484. }
  11485. function getfp(){
  11486. var tip = layer.load(2);
  11487. var url = "getgyfp.do";
  11488. $.ajax({
  11489. "url" : url,
  11490. "type" : "POST",
  11491. "dataType" : "json",
  11492. "async" : true,
  11493. "success" : function(data) {
  11494. if(data != null && data != ""){
  11495. $("#fpid").empty();
  11496. $("#fpid").append("_$tag_____________$tag____");
  11497. for(var i = 0; i < data.length; i++){
  11498. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11499. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11500. }
  11501. }
  11502. },
  11503. "error" : function(msg){
  11504. },
  11505. "complete": function(){
  11506. layer.close(tip);
  11507. }
  11508. });
  11509. }
  11510. $("#fpid").change(function(){
  11511. var tip = layer.load(2);
  11512. var url = "getgyrkxx.do";
  11513. var sum_total=0;
  11514. $.ajax({
  11515. "url" : url,
  11516. "data" : {
  11517. "fpId" : $("#fpid").val()
  11518. },
  11519. "type" : "POST",
  11520. "dataType" : "json",
  11521. "async" : true,
  11522. "success" : function(data) {
  11523. $("#dataTable").html("");
  11524. if(data != null && data != ""){
  11525. var html = "";
  11526. for(var i = 0; i < data.length; i++){
  11527. var ID = data[i].id == null ? "" : data[i].id;
  11528. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11529. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11530. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11531. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11532. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11533. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11534. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11535. var NAME = data[i].name == null ? "" : data[i].name;
  11536. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11537. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11538. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11539. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11540. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11541. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11542. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11543. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11544. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11545. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11546. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11547. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11548. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11549. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11550. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11551. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11552. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11553. sum_total = sum_total + DPRC
  11554. var invoice_type_cn =null;
  11555. if (invoice_type =="00" ){
  11556. invoice_type_cn="销售发票";
  11557. }else if (invoice_type == "01") {
  11558. invoice_type_cn="更正(对冲)发票";
  11559. }else if (invoice_type == "02") {
  11560. invoice_type_cn="其它类型发票";
  11561. }
  11562. html += "_$ta";
  11563. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11564. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11565. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11566. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11567. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11568. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11569. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11570. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11571. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11572. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11573. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11574. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11575. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11576. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11577. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11578. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11579. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11580. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11581. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11582. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11583. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11584. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11585. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11586. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11587. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11588. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11589. html += "_$tag";
  11590. }
  11591. html += "_$ta";
  11592. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11593. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11594. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11595. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11596. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11597. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11598. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11599. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11600. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11601. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11602. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11603. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11604. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  11605. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  11606. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11607. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11608. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11609. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11610. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11611. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11612. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11613. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11614. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11615. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11616. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11617. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11618. html += "_$tag";
  11619. $("#dataTable").html(html);
  11620. }else {
  11621. $("#dataTable").html("");
  11622. }
  11623. },
  11624. "error" : function(msg){
  11625. },
  11626. "complete": function(){
  11627. layer.close(tip);
  11628. }
  11629. });
  11630. });
  11631. Date.prototype.Format = function (fmt) {
  11632. var o = {
  11633. "M+": this.getMonth() + 1, //月份
  11634. "d+": this.getDate(), //日
  11635. "h+": this.getHours(), //小时
  11636. "m+": this.getMinutes(), //分
  11637. "s+": this.getSeconds(), //秒
  11638. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11639. "S": this.getMilliseconds() //毫秒
  11640. };
  11641. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11642. for (var k in o)
  11643. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11644. return fmt;
  11645. }
  11646. $("#jrjc").change(function() {
  11647. if ($("#jrjc").prop('checked') == true){
  11648. $("#departmentId").removeAttr("disabled");
  11649. }else {
  11650. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11651. }
  11652. });
  11653. ----------------------------------- SOURCE END -------------------------------------
  11654. !STACK 0
  11655. java.lang.NullPointerException
  11656. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:37.940
  11657. !MESSAGE Exception occurred during problem detection:
  11658. ----------------------------------- SOURCE BEGIN -------------------------------------
  11659. (function(){WdatePicker();})();
  11660. (function(){WdatePicker();})();
  11661. (function(){Data.get();})();
  11662. (function(){Data.set();})();
  11663. (function(){search();})();
  11664. $(function(){
  11665. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11666. getfp();
  11667. });
  11668. var Data = {
  11669. "get" : function(){
  11670. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11671. var tip = layer.load(2);
  11672. var result="";
  11673. var url = "getgyxml.do";
  11674. $.ajax({
  11675. "url" : url,
  11676. "data" : {
  11677. "start_date" : $("#dateBegin").val(),
  11678. "end_date" : $("#dateEnd").val()
  11679. },
  11680. "type" : "POST",
  11681. "dataType" : "json",
  11682. "success" : function(data) {
  11683. if(data != null && data != ""){
  11684. if ( data.status =="success"){
  11685. getfp();
  11686. alert("获取成功!");
  11687. }else {
  11688. alert(data.status);
  11689. }
  11690. }else {
  11691. alert("获取失败!");
  11692. }
  11693. },
  11694. "complete": function(){
  11695. layer.close(tip);
  11696. }
  11697. });
  11698. }else {
  11699. alert("请选择日期!");
  11700. }
  11701. },
  11702. "set" : function(){
  11703. if ( $("#fpid option:selected").text() !=""){
  11704. var tip = layer.load(2);
  11705. var gitem = $("#form1").serialize();
  11706. var jrjc;
  11707. if ($("#jrjc").prop('checked') == true){
  11708. jrjc = $("#departmentId").val();
  11709. }else {
  11710. jrjc ='N'
  11711. }
  11712. var url = "saverk.do";
  11713. $.ajax({
  11714. "url" : url,
  11715. "data" : {
  11716. "gitem" : gitem,
  11717. "jrjc" : jrjc
  11718. },
  11719. "type" : "POST",
  11720. "dataType" : "json",
  11721. "async" : true,
  11722. "success" : function(data) {
  11723. if(data.status ="success"){
  11724. alert("入库成功!");
  11725. window.location.reload();
  11726. }else {
  11727. alert(msg);
  11728. }
  11729. },
  11730. "error": function(){
  11731. alert("确认失败!");
  11732. },
  11733. "complete": function(){
  11734. layer.close(tip);
  11735. }
  11736. });
  11737. }else {
  11738. alert("请选择发票!");
  11739. }
  11740. }
  11741. }
  11742. function getfp(){
  11743. var tip = layer.load(2);
  11744. var url = "getgyfp.do";
  11745. $.ajax({
  11746. "url" : url,
  11747. "type" : "POST",
  11748. "dataType" : "json",
  11749. "async" : true,
  11750. "success" : function(data) {
  11751. if(data != null && data != ""){
  11752. $("#fpid").empty();
  11753. $("#fpid").append("_$tag_____________$tag____");
  11754. for(var i = 0; i < data.length; i++){
  11755. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  11756. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  11757. }
  11758. }
  11759. },
  11760. "error" : function(msg){
  11761. },
  11762. "complete": function(){
  11763. layer.close(tip);
  11764. }
  11765. });
  11766. }
  11767. $("#fpid").change(function(){
  11768. var tip = layer.load(2);
  11769. var url = "getgyrkxx.do";
  11770. var sum_total=0;
  11771. $.ajax({
  11772. "url" : url,
  11773. "data" : {
  11774. "fpId" : $("#fpid").val()
  11775. },
  11776. "type" : "POST",
  11777. "dataType" : "json",
  11778. "async" : true,
  11779. "success" : function(data) {
  11780. $("#dataTable").html("");
  11781. if(data != null && data != ""){
  11782. var html = "";
  11783. for(var i = 0; i < data.length; i++){
  11784. var ID = data[i].id == null ? "" : data[i].id;
  11785. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  11786. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  11787. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  11788. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  11789. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  11790. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  11791. var GOODS = data[i].goods == null ? "" : data[i].goods;
  11792. var NAME = data[i].name == null ? "" : data[i].name;
  11793. var SPEC = data[i].spec == null ? "" : data[i].spec;
  11794. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  11795. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  11796. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  11797. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  11798. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  11799. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  11800. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  11801. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  11802. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  11803. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  11804. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  11805. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  11806. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  11807. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  11808. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  11809. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  11810. sum_total = sum_total + DPRC
  11811. var invoice_type_cn =null;
  11812. if (invoice_type =="00" ){
  11813. invoice_type_cn="销售发票";
  11814. }else if (invoice_type == "01") {
  11815. invoice_type_cn="更正(对冲)发票";
  11816. }else if (invoice_type == "02") {
  11817. invoice_type_cn="其它类型发票";
  11818. }
  11819. html += "_$ta";
  11820. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  11821. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11822. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11823. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11824. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11825. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  11826. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  11827. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11828. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11829. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  11830. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  11831. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11832. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  11833. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  11834. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11835. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11836. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11837. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11838. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11839. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11840. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11841. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11842. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11843. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11844. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11845. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11846. html += "_$tag";
  11847. }
  11848. html += "_$ta";
  11849. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11850. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11851. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11852. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11853. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11854. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11855. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11856. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11857. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11858. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11859. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11860. html += "_$tag_____________$tag__________________________________________________________________$tag";
  11861. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  11862. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  11863. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11864. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11865. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  11866. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11867. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11868. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  11869. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  11870. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  11871. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  11872. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  11873. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  11874. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  11875. html += "_$tag";
  11876. $("#dataTable").html(html);
  11877. }else {
  11878. $("#dataTable").html("");
  11879. }
  11880. },
  11881. "error" : function(msg){
  11882. },
  11883. "complete": function(){
  11884. layer.close(tip);
  11885. }
  11886. });
  11887. });
  11888. Date.prototype.Format = function (fmt) {
  11889. var o = {
  11890. "M+": this.getMonth() + 1, //月份
  11891. "d+": this.getDate(), //日
  11892. "h+": this.getHours(), //小时
  11893. "m+": this.getMinutes(), //分
  11894. "s+": this.getSeconds(), //秒
  11895. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  11896. "S": this.getMilliseconds() //毫秒
  11897. };
  11898. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  11899. for (var k in o)
  11900. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  11901. return fmt;
  11902. }
  11903. $("#jrjc").change(function() {
  11904. if ($("#jrjc").prop('checked') == true){
  11905. $("#departmentId").removeAttr("disabled");
  11906. }else {
  11907. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11908. }
  11909. });
  11910. ----------------------------------- SOURCE END -------------------------------------
  11911. !STACK 0
  11912. java.lang.NullPointerException
  11913. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:37.940
  11914. !MESSAGE Error while processing working copy
  11915. !STACK 1
  11916. JavaScript Model Exception: java.lang.NullPointerException
  11917. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  11918. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  11919. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  11920. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  11921. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  11922. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  11923. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  11924. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  11925. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  11926. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  11927. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  11928. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  11929. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  11930. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  11931. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  11932. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  11933. at org.eclipse.wst.jsdt.web.ui.internal.taginfo.JSDTHoverProcessor.getHoverInfo(JSDTHoverProcessor.java:120)
  11934. at org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverInfo2(BestMatchHover.java:142)
  11935. at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
  11936. Caused by: java.lang.NullPointerException
  11937. Caused by: java.lang.NullPointerException
  11938. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:37.940
  11939. !MESSAGE java.lang.NullPointerException
  11940. !STACK 0
  11941. java.lang.NullPointerException
  11942. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:38.976
  11943. !MESSAGE Exception occurred during problem detection:
  11944. ----------------------------------- SOURCE BEGIN -------------------------------------
  11945. (function(){WdatePicker();})();
  11946. (function(){WdatePicker();})();
  11947. (function(){Data.get();})();
  11948. (function(){Data.set();})();
  11949. (function(){search();})();
  11950. $(function(){
  11951. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  11952. getfp();
  11953. });
  11954. var Data = {
  11955. "get" : function(){
  11956. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  11957. var tip = layer.load(2);
  11958. var result="";
  11959. var url = "getgyxml.do";
  11960. $.ajax({
  11961. "url" : url,
  11962. "data" : {
  11963. "start_date" : $("#dateBegin").val(),
  11964. "end_date" : $("#dateEnd").val()
  11965. },
  11966. "type" : "POST",
  11967. "dataType" : "json",
  11968. "success" : function(data) {
  11969. if(data != null && data != ""){
  11970. if ( data.status =="success"){
  11971. getfp();
  11972. alert("获取成功!");
  11973. }else {
  11974. alert(data.status);
  11975. }
  11976. }else {
  11977. alert("获取失败!");
  11978. }
  11979. },
  11980. "complete": function(){
  11981. layer.close(tip);
  11982. }
  11983. });
  11984. }else {
  11985. alert("请选择日期!");
  11986. }
  11987. },
  11988. "set" : function(){
  11989. if ( $("#fpid option:selected").text() !=""){
  11990. var tip = layer.load(2);
  11991. var gitem = $("#form1").serialize();
  11992. var jrjc;
  11993. if ($("#jrjc").prop('checked') == true){
  11994. jrjc = $("#departmentId").val();
  11995. }else {
  11996. jrjc ='N'
  11997. }
  11998. var url = "saverk.do";
  11999. $.ajax({
  12000. "url" : url,
  12001. "data" : {
  12002. "gitem" : gitem,
  12003. "jrjc" : jrjc
  12004. },
  12005. "type" : "POST",
  12006. "dataType" : "json",
  12007. "async" : true,
  12008. "success" : function(data) {
  12009. if(data.status ="success"){
  12010. alert("入库成功!");
  12011. window.location.reload();
  12012. }else {
  12013. alert(msg);
  12014. }
  12015. },
  12016. "error": function(){
  12017. alert("确认失败!");
  12018. },
  12019. "complete": function(){
  12020. layer.close(tip);
  12021. }
  12022. });
  12023. }else {
  12024. alert("请选择发票!");
  12025. }
  12026. }
  12027. }
  12028. function getfp(){
  12029. var tip = layer.load(2);
  12030. var url = "getgyfp.do";
  12031. $.ajax({
  12032. "url" : url,
  12033. "type" : "POST",
  12034. "dataType" : "json",
  12035. "async" : true,
  12036. "success" : function(data) {
  12037. if(data != null && data != ""){
  12038. $("#fpid").empty();
  12039. $("#fpid").append("_$tag_____________$tag____");
  12040. for(var i = 0; i < data.length; i++){
  12041. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12042. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12043. }
  12044. }
  12045. },
  12046. "error" : function(msg){
  12047. },
  12048. "complete": function(){
  12049. layer.close(tip);
  12050. }
  12051. });
  12052. }
  12053. $("#fpid").change(function(){
  12054. var tip = layer.load(2);
  12055. var url = "getgyrkxx.do";
  12056. var sum_total=0;
  12057. $.ajax({
  12058. "url" : url,
  12059. "data" : {
  12060. "fpId" : $("#fpid").val()
  12061. },
  12062. "type" : "POST",
  12063. "dataType" : "json",
  12064. "async" : true,
  12065. "success" : function(data) {
  12066. $("#dataTable").html("");
  12067. if(data != null && data != ""){
  12068. var html = "";
  12069. for(var i = 0; i < data.length; i++){
  12070. var ID = data[i].id == null ? "" : data[i].id;
  12071. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12072. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12073. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12074. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12075. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12076. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12077. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12078. var NAME = data[i].name == null ? "" : data[i].name;
  12079. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12080. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12081. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12082. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12083. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12084. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12085. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12086. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12087. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12088. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12089. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12090. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12091. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12092. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12093. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12094. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12095. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12096. sum_total = sum_total + DPRC
  12097. var invoice_type_cn =null;
  12098. if (invoice_type =="00" ){
  12099. invoice_type_cn="销售发票";
  12100. }else if (invoice_type == "01") {
  12101. invoice_type_cn="更正(对冲)发票";
  12102. }else if (invoice_type == "02") {
  12103. invoice_type_cn="其它类型发票";
  12104. }
  12105. html += "_$ta";
  12106. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12107. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12108. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12109. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12110. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12111. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12112. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12113. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12114. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12115. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12116. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12117. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12118. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12119. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12120. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12121. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12122. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12123. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12124. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12125. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12126. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12127. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12128. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12129. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12130. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12131. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12132. html += "_$tag";
  12133. }
  12134. html += "_$ta";
  12135. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12136. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12137. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12138. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12139. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12140. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12141. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12142. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12143. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12144. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12145. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12146. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12147. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  12148. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  12149. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12150. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12151. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12152. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12153. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12154. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12155. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12156. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12157. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12158. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12159. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12160. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12161. html += "_$tag";
  12162. $("#dataTable").html(html);
  12163. }else {
  12164. $("#dataTable").html("");
  12165. }
  12166. },
  12167. "error" : function(msg){
  12168. },
  12169. "complete": function(){
  12170. layer.close(tip);
  12171. }
  12172. });
  12173. });
  12174. Date.prototype.Format = function (fmt) {
  12175. var o = {
  12176. "M+": this.getMonth() + 1, //月份
  12177. "d+": this.getDate(), //日
  12178. "h+": this.getHours(), //小时
  12179. "m+": this.getMinutes(), //分
  12180. "s+": this.getSeconds(), //秒
  12181. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12182. "S": this.getMilliseconds() //毫秒
  12183. };
  12184. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12185. for (var k in o)
  12186. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12187. return fmt;
  12188. }
  12189. $("#jrjc").change(function() {
  12190. if ($("#jrjc").prop('checked') == true){
  12191. $("#departmentId").removeAttr("disabled");
  12192. }else {
  12193. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12194. }
  12195. });
  12196. ----------------------------------- SOURCE END -------------------------------------
  12197. !STACK 0
  12198. java.lang.NullPointerException
  12199. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:39.368
  12200. !MESSAGE Exception occurred during problem detection:
  12201. ----------------------------------- SOURCE BEGIN -------------------------------------
  12202. (function(){WdatePicker();})();
  12203. (function(){WdatePicker();})();
  12204. (function(){Data.get();})();
  12205. (function(){Data.set();})();
  12206. (function(){search();})();
  12207. $(function(){
  12208. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12209. getfp();
  12210. });
  12211. var Data = {
  12212. "get" : function(){
  12213. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12214. var tip = layer.load(2);
  12215. var result="";
  12216. var url = "getgyxml.do";
  12217. $.ajax({
  12218. "url" : url,
  12219. "data" : {
  12220. "start_date" : $("#dateBegin").val(),
  12221. "end_date" : $("#dateEnd").val()
  12222. },
  12223. "type" : "POST",
  12224. "dataType" : "json",
  12225. "success" : function(data) {
  12226. if(data != null && data != ""){
  12227. if ( data.status =="success"){
  12228. getfp();
  12229. alert("获取成功!");
  12230. }else {
  12231. alert(data.status);
  12232. }
  12233. }else {
  12234. alert("获取失败!");
  12235. }
  12236. },
  12237. "complete": function(){
  12238. layer.close(tip);
  12239. }
  12240. });
  12241. }else {
  12242. alert("请选择日期!");
  12243. }
  12244. },
  12245. "set" : function(){
  12246. if ( $("#fpid option:selected").text() !=""){
  12247. var tip = layer.load(2);
  12248. var gitem = $("#form1").serialize();
  12249. var jrjc;
  12250. if ($("#jrjc").prop('checked') == true){
  12251. jrjc = $("#departmentId").val();
  12252. }else {
  12253. jrjc ='N'
  12254. }
  12255. var url = "saverk.do";
  12256. $.ajax({
  12257. "url" : url,
  12258. "data" : {
  12259. "gitem" : gitem,
  12260. "jrjc" : jrjc
  12261. },
  12262. "type" : "POST",
  12263. "dataType" : "json",
  12264. "async" : true,
  12265. "success" : function(data) {
  12266. if(data.status ="success"){
  12267. alert("入库成功!");
  12268. window.location.reload();
  12269. }else {
  12270. alert(msg);
  12271. }
  12272. },
  12273. "error": function(){
  12274. alert("确认失败!");
  12275. },
  12276. "complete": function(){
  12277. layer.close(tip);
  12278. }
  12279. });
  12280. }else {
  12281. alert("请选择发票!");
  12282. }
  12283. }
  12284. }
  12285. function getfp(){
  12286. var tip = layer.load(2);
  12287. var url = "getgyfp.do";
  12288. $.ajax({
  12289. "url" : url,
  12290. "type" : "POST",
  12291. "dataType" : "json",
  12292. "async" : true,
  12293. "success" : function(data) {
  12294. if(data != null && data != ""){
  12295. $("#fpid").empty();
  12296. $("#fpid").append("_$tag_____________$tag____");
  12297. for(var i = 0; i < data.length; i++){
  12298. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12299. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12300. }
  12301. }
  12302. },
  12303. "error" : function(msg){
  12304. },
  12305. "complete": function(){
  12306. layer.close(tip);
  12307. }
  12308. });
  12309. }
  12310. $("#fpid").change(function(){
  12311. var tip = layer.load(2);
  12312. var url = "getgyrkxx.do";
  12313. var sum_total=0;
  12314. $.ajax({
  12315. "url" : url,
  12316. "data" : {
  12317. "fpId" : $("#fpid").val()
  12318. },
  12319. "type" : "POST",
  12320. "dataType" : "json",
  12321. "async" : true,
  12322. "success" : function(data) {
  12323. $("#dataTable").html("");
  12324. if(data != null && data != ""){
  12325. var html = "";
  12326. for(var i = 0; i < data.length; i++){
  12327. var ID = data[i].id == null ? "" : data[i].id;
  12328. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12329. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12330. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12331. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12332. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12333. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12334. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12335. var NAME = data[i].name == null ? "" : data[i].name;
  12336. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12337. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12338. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12339. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12340. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12341. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12342. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12343. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12344. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12345. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12346. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12347. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12348. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12349. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12350. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12351. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12352. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12353. sum_total = sum_total + DPRC
  12354. var invoice_type_cn =null;
  12355. if (invoice_type =="00" ){
  12356. invoice_type_cn="销售发票";
  12357. }else if (invoice_type == "01") {
  12358. invoice_type_cn="更正(对冲)发票";
  12359. }else if (invoice_type == "02") {
  12360. invoice_type_cn="其它类型发票";
  12361. }
  12362. html += "_$ta";
  12363. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12364. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12365. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12366. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12367. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12368. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12369. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12370. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12371. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12372. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12373. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12374. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12375. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12376. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12377. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12378. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12379. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12380. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12381. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12382. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12383. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12384. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12385. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12386. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12387. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12388. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12389. html += "_$tag";
  12390. }
  12391. html += "_$ta";
  12392. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12393. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12394. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12395. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12396. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12397. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12398. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12399. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12400. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12401. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12402. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12403. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12404. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  12405. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  12406. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12407. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12408. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12409. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12410. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12411. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12412. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12413. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12414. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12415. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12416. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12417. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12418. html += "_$tag";
  12419. $("#dataTable").html(html);
  12420. }else {
  12421. $("#dataTable").html("");
  12422. }
  12423. },
  12424. "error" : function(msg){
  12425. },
  12426. "complete": function(){
  12427. layer.close(tip);
  12428. }
  12429. });
  12430. });
  12431. Date.prototype.Format = function (fmt) {
  12432. var o = {
  12433. "M+": this.getMonth() + 1, //月份
  12434. "d+": this.getDate(), //日
  12435. "h+": this.getHours(), //小时
  12436. "m+": this.getMinutes(), //分
  12437. "s+": this.getSeconds(), //秒
  12438. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12439. "S": this.getMilliseconds() //毫秒
  12440. };
  12441. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12442. for (var k in o)
  12443. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12444. return fmt;
  12445. }
  12446. $("#jrjc").change(function() {
  12447. if ($("#jrjc").prop('checked') == true){
  12448. $("#departmentId").removeAttr("disabled");
  12449. }else {
  12450. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12451. }
  12452. });
  12453. ----------------------------------- SOURCE END -------------------------------------
  12454. !STACK 0
  12455. java.lang.NullPointerException
  12456. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:39.368
  12457. !MESSAGE Error while processing working copy
  12458. !STACK 1
  12459. JavaScript Model Exception: java.lang.NullPointerException
  12460. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  12461. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  12462. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  12463. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  12464. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  12465. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  12466. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  12467. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  12468. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  12469. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  12470. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  12471. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  12472. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  12473. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  12474. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  12475. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  12476. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  12477. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  12478. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  12479. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  12480. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  12481. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  12482. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  12483. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  12484. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  12485. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  12486. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  12487. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  12488. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  12489. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  12490. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  12491. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  12492. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  12493. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  12494. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  12495. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  12496. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  12497. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  12498. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  12499. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  12500. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  12501. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  12502. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  12503. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  12504. at java.lang.reflect.Method.invoke(Unknown Source)
  12505. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  12506. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  12507. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  12508. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  12509. Caused by: java.lang.NullPointerException
  12510. Caused by: java.lang.NullPointerException
  12511. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:39.369
  12512. !MESSAGE java.lang.NullPointerException
  12513. !STACK 0
  12514. java.lang.NullPointerException
  12515. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:40.479
  12516. !MESSAGE Exception occurred during problem detection:
  12517. ----------------------------------- SOURCE BEGIN -------------------------------------
  12518. (function(){WdatePicker();})();
  12519. (function(){WdatePicker();})();
  12520. (function(){Data.get();})();
  12521. (function(){Data.set();})();
  12522. (function(){search();})();
  12523. $(function(){
  12524. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12525. getfp();
  12526. });
  12527. var Data = {
  12528. "get" : function(){
  12529. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12530. var tip = layer.load(2);
  12531. var result="";
  12532. var url = "getgyxml.do";
  12533. $.ajax({
  12534. "url" : url,
  12535. "data" : {
  12536. "start_date" : $("#dateBegin").val(),
  12537. "end_date" : $("#dateEnd").val()
  12538. },
  12539. "type" : "POST",
  12540. "dataType" : "json",
  12541. "success" : function(data) {
  12542. if(data != null && data != ""){
  12543. if ( data.status =="success"){
  12544. getfp();
  12545. alert("获取成功!");
  12546. }else {
  12547. alert(data.status);
  12548. }
  12549. }else {
  12550. alert("获取失败!");
  12551. }
  12552. },
  12553. "complete": function(){
  12554. layer.close(tip);
  12555. }
  12556. });
  12557. }else {
  12558. alert("请选择日期!");
  12559. }
  12560. },
  12561. "set" : function(){
  12562. if ( $("#fpid option:selected").text() !=""){
  12563. var tip = layer.load(2);
  12564. var gitem = $("#form1").serialize();
  12565. var jrjc;
  12566. if ($("#jrjc").prop('checked') == true){
  12567. jrjc = $("#departmentId").val();
  12568. }else {
  12569. jrjc ='N'
  12570. }
  12571. var url = "saverk.do";
  12572. $.ajax({
  12573. "url" : url,
  12574. "data" : {
  12575. "gitem" : gitem,
  12576. "jrjc" : jrjc
  12577. },
  12578. "type" : "POST",
  12579. "dataType" : "json",
  12580. "async" : true,
  12581. "success" : function(data) {
  12582. if(data.status ="success"){
  12583. alert("入库成功!");
  12584. window.location.reload();
  12585. }else {
  12586. alert(msg);
  12587. }
  12588. },
  12589. "error": function(){
  12590. alert("确认失败!");
  12591. },
  12592. "complete": function(){
  12593. layer.close(tip);
  12594. }
  12595. });
  12596. }else {
  12597. alert("请选择发票!");
  12598. }
  12599. }
  12600. }
  12601. function getfp(){
  12602. var tip = layer.load(2);
  12603. var url = "getgyfp.do";
  12604. $.ajax({
  12605. "url" : url,
  12606. "type" : "POST",
  12607. "dataType" : "json",
  12608. "async" : true,
  12609. "success" : function(data) {
  12610. if(data != null && data != ""){
  12611. $("#fpid").empty();
  12612. $("#fpid").append("_$tag_____________$tag____");
  12613. for(var i = 0; i < data.length; i++){
  12614. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12615. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12616. }
  12617. }
  12618. },
  12619. "error" : function(msg){
  12620. },
  12621. "complete": function(){
  12622. layer.close(tip);
  12623. }
  12624. });
  12625. }
  12626. $("#fpid").change(function(){
  12627. var tip = layer.load(2);
  12628. var url = "getgyrkxx.do";
  12629. var sum_total=0;
  12630. $.ajax({
  12631. "url" : url,
  12632. "data" : {
  12633. "fpId" : $("#fpid").val()
  12634. },
  12635. "type" : "POST",
  12636. "dataType" : "json",
  12637. "async" : true,
  12638. "success" : function(data) {
  12639. $("#dataTable").html("");
  12640. if(data != null && data != ""){
  12641. var html = "";
  12642. for(var i = 0; i < data.length; i++){
  12643. var ID = data[i].id == null ? "" : data[i].id;
  12644. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12645. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12646. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12647. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12648. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12649. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12650. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12651. var NAME = data[i].name == null ? "" : data[i].name;
  12652. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12653. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12654. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12655. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12656. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12657. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12658. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12659. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12660. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12661. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12662. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12663. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12664. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12665. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12666. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12667. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12668. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12669. sum_total = sum_total + DPRC
  12670. var invoice_type_cn =null;
  12671. if (invoice_type =="00" ){
  12672. invoice_type_cn="销售发票";
  12673. }else if (invoice_type == "01") {
  12674. invoice_type_cn="更正(对冲)发票";
  12675. }else if (invoice_type == "02") {
  12676. invoice_type_cn="其它类型发票";
  12677. }
  12678. html += "_$ta";
  12679. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12680. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12681. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12682. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12683. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12684. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12685. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12686. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12687. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12688. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12689. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12690. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12691. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12692. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12693. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12694. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12695. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12696. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12697. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12698. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12699. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12700. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12701. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12702. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12703. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12704. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12705. html += "_$tag";
  12706. }
  12707. html += "_$ta";
  12708. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12709. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12710. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12711. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12712. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12713. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12714. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12715. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12716. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12717. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12718. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12719. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12720. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  12721. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  12722. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12723. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12724. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12725. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12726. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12727. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12728. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12729. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12730. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12731. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12732. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12733. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12734. html += "_$tag";
  12735. $("#dataTable").html(html);
  12736. }else {
  12737. $("#dataTable").html("");
  12738. }
  12739. },
  12740. "error" : function(msg){
  12741. },
  12742. "complete": function(){
  12743. layer.close(tip);
  12744. }
  12745. });
  12746. });
  12747. Date.prototype.Format = function (fmt) {
  12748. var o = {
  12749. "M+": this.getMonth() + 1, //月份
  12750. "d+": this.getDate(), //日
  12751. "h+": this.getHours(), //小时
  12752. "m+": this.getMinutes(), //分
  12753. "s+": this.getSeconds(), //秒
  12754. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  12755. "S": this.getMilliseconds() //毫秒
  12756. };
  12757. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  12758. for (var k in o)
  12759. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  12760. return fmt;
  12761. }
  12762. $("#jrjc").change(function() {
  12763. if ($("#jrjc").prop('checked') == true){
  12764. $("#departmentId").removeAttr("disabled");
  12765. }else {
  12766. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12767. }
  12768. });
  12769. ----------------------------------- SOURCE END -------------------------------------
  12770. !STACK 0
  12771. java.lang.NullPointerException
  12772. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:40.883
  12773. !MESSAGE Exception occurred during problem detection:
  12774. ----------------------------------- SOURCE BEGIN -------------------------------------
  12775. (function(){WdatePicker();})();
  12776. (function(){WdatePicker();})();
  12777. (function(){Data.get();})();
  12778. (function(){Data.set();})();
  12779. (function(){search();})();
  12780. $(function(){
  12781. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  12782. getfp();
  12783. });
  12784. var Data = {
  12785. "get" : function(){
  12786. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  12787. var tip = layer.load(2);
  12788. var result="";
  12789. var url = "getgyxml.do";
  12790. $.ajax({
  12791. "url" : url,
  12792. "data" : {
  12793. "start_date" : $("#dateBegin").val(),
  12794. "end_date" : $("#dateEnd").val()
  12795. },
  12796. "type" : "POST",
  12797. "dataType" : "json",
  12798. "success" : function(data) {
  12799. if(data != null && data != ""){
  12800. if ( data.status =="success"){
  12801. getfp();
  12802. alert("获取成功!");
  12803. }else {
  12804. alert(data.status);
  12805. }
  12806. }else {
  12807. alert("获取失败!");
  12808. }
  12809. },
  12810. "complete": function(){
  12811. layer.close(tip);
  12812. }
  12813. });
  12814. }else {
  12815. alert("请选择日期!");
  12816. }
  12817. },
  12818. "set" : function(){
  12819. if ( $("#fpid option:selected").text() !=""){
  12820. var tip = layer.load(2);
  12821. var gitem = $("#form1").serialize();
  12822. var jrjc;
  12823. if ($("#jrjc").prop('checked') == true){
  12824. jrjc = $("#departmentId").val();
  12825. }else {
  12826. jrjc ='N'
  12827. }
  12828. var url = "saverk.do";
  12829. $.ajax({
  12830. "url" : url,
  12831. "data" : {
  12832. "gitem" : gitem,
  12833. "jrjc" : jrjc
  12834. },
  12835. "type" : "POST",
  12836. "dataType" : "json",
  12837. "async" : true,
  12838. "success" : function(data) {
  12839. if(data.status ="success"){
  12840. alert("入库成功!");
  12841. window.location.reload();
  12842. }else {
  12843. alert(msg);
  12844. }
  12845. },
  12846. "error": function(){
  12847. alert("确认失败!");
  12848. },
  12849. "complete": function(){
  12850. layer.close(tip);
  12851. }
  12852. });
  12853. }else {
  12854. alert("请选择发票!");
  12855. }
  12856. }
  12857. }
  12858. function getfp(){
  12859. var tip = layer.load(2);
  12860. var url = "getgyfp.do";
  12861. $.ajax({
  12862. "url" : url,
  12863. "type" : "POST",
  12864. "dataType" : "json",
  12865. "async" : true,
  12866. "success" : function(data) {
  12867. if(data != null && data != ""){
  12868. $("#fpid").empty();
  12869. $("#fpid").append("_$tag_____________$tag____");
  12870. for(var i = 0; i < data.length; i++){
  12871. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  12872. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  12873. }
  12874. }
  12875. },
  12876. "error" : function(msg){
  12877. },
  12878. "complete": function(){
  12879. layer.close(tip);
  12880. }
  12881. });
  12882. }
  12883. $("#fpid").change(function(){
  12884. var tip = layer.load(2);
  12885. var url = "getgyrkxx.do";
  12886. var sum_total=0;
  12887. $.ajax({
  12888. "url" : url,
  12889. "data" : {
  12890. "fpId" : $("#fpid").val()
  12891. },
  12892. "type" : "POST",
  12893. "dataType" : "json",
  12894. "async" : true,
  12895. "success" : function(data) {
  12896. $("#dataTable").html("");
  12897. if(data != null && data != ""){
  12898. var html = "";
  12899. for(var i = 0; i < data.length; i++){
  12900. var ID = data[i].id == null ? "" : data[i].id;
  12901. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  12902. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  12903. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  12904. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  12905. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  12906. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  12907. var GOODS = data[i].goods == null ? "" : data[i].goods;
  12908. var NAME = data[i].name == null ? "" : data[i].name;
  12909. var SPEC = data[i].spec == null ? "" : data[i].spec;
  12910. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  12911. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  12912. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  12913. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  12914. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  12915. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  12916. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  12917. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  12918. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  12919. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  12920. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  12921. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  12922. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  12923. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  12924. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  12925. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  12926. sum_total = sum_total + DPRC
  12927. var invoice_type_cn =null;
  12928. if (invoice_type =="00" ){
  12929. invoice_type_cn="销售发票";
  12930. }else if (invoice_type == "01") {
  12931. invoice_type_cn="更正(对冲)发票";
  12932. }else if (invoice_type == "02") {
  12933. invoice_type_cn="其它类型发票";
  12934. }
  12935. html += "_$ta";
  12936. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  12937. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12938. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12939. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12940. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12941. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  12942. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  12943. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12944. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12945. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  12946. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  12947. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12948. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  12949. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  12950. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12951. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12952. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12953. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12954. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12955. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12956. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12957. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12958. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12959. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12960. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12961. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12962. html += "_$tag";
  12963. }
  12964. html += "_$ta";
  12965. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12966. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12967. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12968. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12969. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12970. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12971. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12972. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12973. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12974. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12975. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12976. html += "_$tag_____________$tag__________________________________________________________________$tag";
  12977. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  12978. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  12979. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12980. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12981. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  12982. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12983. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12984. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  12985. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  12986. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  12987. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  12988. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  12989. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  12990. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  12991. html += "_$tag";
  12992. $("#dataTable").html(html);
  12993. }else {
  12994. $("#dataTable").html("");
  12995. }
  12996. },
  12997. "error" : function(msg){
  12998. },
  12999. "complete": function(){
  13000. layer.close(tip);
  13001. }
  13002. });
  13003. });
  13004. Date.prototype.Format = function (fmt) {
  13005. var o = {
  13006. "M+": this.getMonth() + 1, //月份
  13007. "d+": this.getDate(), //日
  13008. "h+": this.getHours(), //小时
  13009. "m+": this.getMinutes(), //分
  13010. "s+": this.getSeconds(), //秒
  13011. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13012. "S": this.getMilliseconds() //毫秒
  13013. };
  13014. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13015. for (var k in o)
  13016. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13017. return fmt;
  13018. }
  13019. $("#jrjc").change(function() {
  13020. if ($("#jrjc").prop('checked') == true){
  13021. $("#departmentId").removeAttr("disabled");
  13022. }else {
  13023. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13024. }
  13025. });
  13026. ----------------------------------- SOURCE END -------------------------------------
  13027. !STACK 0
  13028. java.lang.NullPointerException
  13029. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:40.884
  13030. !MESSAGE Error while processing working copy
  13031. !STACK 1
  13032. JavaScript Model Exception: java.lang.NullPointerException
  13033. at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:313)
  13034. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:244)
  13035. at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos(Openable.java:241)
  13036. at org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:538)
  13037. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1122)
  13038. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:1100)
  13039. at org.eclipse.wst.jsdt.internal.core.search.BasicSearchEngine.searchAllVariables(BasicSearchEngine.java:1865)
  13040. at org.eclipse.wst.jsdt.internal.core.SearchableEnvironment.findVariables(SearchableEnvironment.java:665)
  13041. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildSuperType(CompilationUnitScope.java:520)
  13042. at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:409)
  13043. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:343)
  13044. at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:327)
  13045. at org.eclipse.wst.jsdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:754)
  13046. at org.eclipse.wst.jsdt.internal.core.Openable.codeSelect(Openable.java:167)
  13047. at org.eclipse.wst.jsdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:330)
  13048. at org.eclipse.wst.jsdt.web.core.javascript.JsTranslation.getElementsFromJsRange(JsTranslation.java:310)
  13049. at org.eclipse.wst.jsdt.web.ui.internal.hyperlink.JSDTHyperlinkDetector.detectHyperlinks(JSDTHyperlinkDetector.java:176)
  13050. at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:80)
  13051. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:289)
  13052. at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:261)
  13053. at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:469)
  13054. at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:212)
  13055. at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  13056. at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
  13057. at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
  13058. at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
  13059. at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
  13060. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
  13061. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  13062. at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
  13063. at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
  13064. at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
  13065. at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  13066. at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
  13067. at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
  13068. at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
  13069. at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  13070. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
  13071. at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
  13072. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
  13073. at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
  13074. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  13075. at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  13076. at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  13077. at java.lang.reflect.Method.invoke(Unknown Source)
  13078. at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
  13079. at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
  13080. at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
  13081. at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
  13082. Caused by: java.lang.NullPointerException
  13083. Caused by: java.lang.NullPointerException
  13084. !SUBENTRY 1 org.eclipse.wst.jsdt.core 4 1005 2018-06-21 09:31:40.884
  13085. !MESSAGE java.lang.NullPointerException
  13086. !STACK 0
  13087. java.lang.NullPointerException
  13088. !ENTRY org.eclipse.wst.jsdt.core 4 4 2018-06-21 09:31:41.996
  13089. !MESSAGE Exception occurred during problem detection:
  13090. ----------------------------------- SOURCE BEGIN -------------------------------------
  13091. (function(){WdatePicker();})();
  13092. (function(){WdatePicker();})();
  13093. (function(){Data.get();})();
  13094. (function(){Data.set();})();
  13095. (function(){search();})();
  13096. $(function(){
  13097. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13098. getfp();
  13099. });
  13100. var Data = {
  13101. "get" : function(){
  13102. if ( $("#dateBegin").val() !="" && $("#dateEnd").val() !="" ){
  13103. var tip = layer.load(2);
  13104. var result="";
  13105. var url = "getgyxml.do";
  13106. $.ajax({
  13107. "url" : url,
  13108. "data" : {
  13109. "start_date" : $("#dateBegin").val(),
  13110. "end_date" : $("#dateEnd").val()
  13111. },
  13112. "type" : "POST",
  13113. "dataType" : "json",
  13114. "success" : function(data) {
  13115. if(data != null && data != ""){
  13116. if ( data.status =="success"){
  13117. getfp();
  13118. alert("获取成功!");
  13119. }else {
  13120. alert(data.status);
  13121. }
  13122. }else {
  13123. alert("获取失败!");
  13124. }
  13125. },
  13126. "complete": function(){
  13127. layer.close(tip);
  13128. }
  13129. });
  13130. }else {
  13131. alert("请选择日期!");
  13132. }
  13133. },
  13134. "set" : function(){
  13135. if ( $("#fpid option:selected").text() !=""){
  13136. var tip = layer.load(2);
  13137. var gitem = $("#form1").serialize();
  13138. var jrjc;
  13139. if ($("#jrjc").prop('checked') == true){
  13140. jrjc = $("#departmentId").val();
  13141. }else {
  13142. jrjc ='N'
  13143. }
  13144. var url = "saverk.do";
  13145. $.ajax({
  13146. "url" : url,
  13147. "data" : {
  13148. "gitem" : gitem,
  13149. "jrjc" : jrjc
  13150. },
  13151. "type" : "POST",
  13152. "dataType" : "json",
  13153. "async" : true,
  13154. "success" : function(data) {
  13155. if(data.status ="success"){
  13156. alert("入库成功!");
  13157. window.location.reload();
  13158. }else {
  13159. alert(msg);
  13160. }
  13161. },
  13162. "error": function(){
  13163. alert("确认失败!");
  13164. },
  13165. "complete": function(){
  13166. layer.close(tip);
  13167. }
  13168. });
  13169. }else {
  13170. alert("请选择发票!");
  13171. }
  13172. }
  13173. }
  13174. function getfp(){
  13175. var tip = layer.load(2);
  13176. var url = "getgyfp.do";
  13177. $.ajax({
  13178. "url" : url,
  13179. "type" : "POST",
  13180. "dataType" : "json",
  13181. "async" : true,
  13182. "success" : function(data) {
  13183. if(data != null && data != ""){
  13184. $("#fpid").empty();
  13185. $("#fpid").append("_$tag_____________$tag____");
  13186. for(var i = 0; i < data.length; i++){
  13187. var invoiceno = data[i].INVOICENO == null ? "" : data[i].INVOICENO;
  13188. $("#fpid").append("_$tag_________________________"+invoiceno+"_$tag____");
  13189. }
  13190. }
  13191. },
  13192. "error" : function(msg){
  13193. },
  13194. "complete": function(){
  13195. layer.close(tip);
  13196. }
  13197. });
  13198. }
  13199. $("#fpid").change(function(){
  13200. var tip = layer.load(2);
  13201. var url = "getgyrkxx.do";
  13202. var sum_total=0;
  13203. $.ajax({
  13204. "url" : url,
  13205. "data" : {
  13206. "fpId" : $("#fpid").val()
  13207. },
  13208. "type" : "POST",
  13209. "dataType" : "json",
  13210. "async" : true,
  13211. "success" : function(data) {
  13212. $("#dataTable").html("");
  13213. if(data != null && data != ""){
  13214. var html = "";
  13215. for(var i = 0; i < data.length; i++){
  13216. var ID = data[i].id == null ? "" : data[i].id;
  13217. var INVOICENO = data[i].invoiceno == null ? "" : data[i].invoiceno;
  13218. var INVOICEID = data[i].invoiceid == null ? "" : data[i].invoiceid;
  13219. var INVOICEDATE = data[i].invoicedate == null ? "" : new Date(data[i].invoicedate).Format("yyyy-MM-dd");
  13220. var HOSDEPTCODE = data[i].hosdeptcode == null ? "" : data[i].hosdeptcode;
  13221. var DEALHOSCODE = data[i].dealhoscode == null ? "" : data[i].dealhoscode;
  13222. var DEALHOSNAME = data[i].dealhosname == null ? "" : data[i].dealhosname;
  13223. var GOODS = data[i].goods == null ? "" : data[i].goods;
  13224. var NAME = data[i].name == null ? "" : data[i].name;
  13225. var SPEC = data[i].spec == null ? "" : data[i].spec;
  13226. var PRODUCER = data[i].producer == null ? "" : data[i].producer;
  13227. var MSUNITNO = data[i].msunitno == null ? "" : data[i].msunitno;
  13228. var DBILLQTY = data[i].dbillqty == null ? "" : data[i].dbillqty;
  13229. var DPRC = data[i].dprc == null ? "" : data[i].dprc;
  13230. var TRDPRC = data[i].trdprc == null ? "" : data[i].trdprc;
  13231. var RTLPRC = data[i].rtlprc == null ? "" : data[i].rtlprc;
  13232. var LOTNO = data[i].lotno == null ? "" : data[i].lotno;
  13233. var ENDDATE = data[i].enddate == null ? "" : new Date(data[i].enddate).Format("yyyy-MM-dd");
  13234. var DSUMVALUE = data[i].dsumvalue == null ? "" : data[i].dsumvalue;
  13235. var CREATE_DT = data[i].create_dt == null ? "" : data[i].create_dt;
  13236. var SALEBILLID = data[i].salebillid == null ? "" : data[i].salebillid;
  13237. var GRPNO = data[i].grpno == null ? "" : data[i].grpno;
  13238. var DEALHOSCODEZY = data[i].dealhoscodezy == null ? "" : data[i].dealhoscodezy;
  13239. var PROADD = data[i].proadd == null ? "" : data[i].proadd;
  13240. var PT_CODE = data[i].pt_code == null ? "" : data[i].pt_code;
  13241. var invoice_type = data[i].invoice_type == null ? "" : data[i].invoice_type;
  13242. sum_total = sum_total + DPRC
  13243. var invoice_type_cn =null;
  13244. if (invoice_type =="00" ){
  13245. invoice_type_cn="销售发票";
  13246. }else if (invoice_type == "01") {
  13247. invoice_type_cn="更正(对冲)发票";
  13248. }else if (invoice_type == "02") {
  13249. invoice_type_cn="其它类型发票";
  13250. }
  13251. html += "_$ta";
  13252. html += "_$tag_____________$tag________________________________________________________________________________________________________________$tag";
  13253. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13254. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13255. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13256. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13257. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________$tag";
  13258. html += "_$tag_____________$tag___________________________________________________________________________________________________________________________________$tag";
  13259. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13260. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13261. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________$tag";
  13262. html += "_$tag_____________$tag_____________________________________________________________________________________________________________________________$tag";
  13263. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13264. html += "_$tag_____________$tag____________________________________________________________________________________________________________________________$tag";
  13265. html += "_$tag_____________$tag____________________________________________________________________________________________________________________$tag";
  13266. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13267. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13268. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13269. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13270. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13271. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13272. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13273. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13274. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13275. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13276. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13277. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13278. html += "_$tag";
  13279. }
  13280. html += "_$ta";
  13281. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13282. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13283. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13284. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13285. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13286. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13287. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13288. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13289. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13290. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13291. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13292. html += "_$tag_____________$tag__________________________________________________________________$tag";
  13293. html += "_$tag_____________$tag_________________________________________________________________合计:_$tag";
  13294. html += "_$tag_____________$tag_________________________________________________________________________________________________________________________$tag";
  13295. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13296. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13297. html += "_$tag_____________$tag______________________________________________________________________________________________________________________$tag";
  13298. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13299. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13300. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________$tag";
  13301. html += "_$tag_____________$tag________________________________________________________________________________________________________________________________$tag";
  13302. html += "_$tag_____________$tag_______________________________________________________________________________________________________________________$tag";
  13303. html += "_$tag_____________$tag______________________________________________________________________________________________________________________________________$tag";
  13304. html += "_$tag_____________$tag________________________________________________________________________________________________________________________$tag";
  13305. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________$tag";
  13306. html += "_$tag_____________$tag__________________________________________________________________________________________________________________________________________$tag";
  13307. html += "_$tag";
  13308. $("#dataTable").html(html);
  13309. }else {
  13310. $("#dataTable").html("");
  13311. }
  13312. },
  13313. "error" : function(msg){
  13314. },
  13315. "complete": function(){
  13316. layer.close(tip);
  13317. }
  13318. });
  13319. });
  13320. Date.prototype.Format = function (fmt) {
  13321. var o = {
  13322. "M+": this.getMonth() + 1, //月份
  13323. "d+": this.getDate(), //日
  13324. "h+": this.getHours(), //小时
  13325. "m+": this.getMinutes(), //分
  13326. "s+": this.getSeconds(), //秒
  13327. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  13328. "S": this.getMilliseconds() //毫秒
  13329. };
  13330. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  13331. for (var k in o)
  13332. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  13333. return fmt;
  13334. }
  13335. $("#jrjc").change(function() {
  13336. if ($("#jrjc").prop('checked') == true){
  13337. $("#departmentId").removeAttr("disabled");
  13338. }else {
  13339. $("#departmentId").attr("disabled","disabled").css("background-color","#EEEEEE;");
  13340. }
  13341. });
  13342. ----------------------------------- SOURCE END -------------------------------------
  13343. !STACK 0
  13344. java.lang.NullPointerException